LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/vcl/inc/headless - svpframe.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 3 33.3 %
Date: 2013-07-09 Functions: 1 3 33.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _SVP_SVPFRAME_HXX
      21             : 
      22             : #include <vcl/sysdata.hxx>
      23             : #include <basegfx/range/b2ibox.hxx>
      24             : #include <basebmp/bitmapdevice.hxx>
      25             : 
      26             : #include <salframe.hxx>
      27             : 
      28             : #include <list>
      29             : 
      30             : #ifdef IOS
      31             : #define SvpSalGraphics AquaSalGraphics
      32             : #endif
      33             : 
      34             : class SvpSalInstance;
      35             : class SvpSalGraphics;
      36             : 
      37             : class SvpSalFrame : public SalFrame
      38             : {
      39             :     SvpSalInstance*                     m_pInstance;
      40             :     SvpSalFrame*                        m_pParent;       // pointer to parent frame
      41             :     std::list< SvpSalFrame* >           m_aChildren;     // List of child frames
      42             :     sal_uLong                           m_nStyle;
      43             :     bool                                m_bVisible;
      44             :     bool                                m_bDamageTracking;
      45             :     bool                                m_bTopDown;
      46             :     sal_Int32                           m_nScanlineFormat;
      47             :     long                                m_nMinWidth;
      48             :     long                                m_nMinHeight;
      49             :     long                                m_nMaxWidth;
      50             :     long                                m_nMaxHeight;
      51             : 
      52             :     SystemEnvData                       m_aSystemChildData;
      53             : 
      54             :     basebmp::BitmapDeviceSharedPtr      m_aFrame;
      55             :     std::list< SvpSalGraphics* >        m_aGraphics;
      56             : 
      57             :     static SvpSalFrame*       s_pFocusFrame;
      58             : public:
      59             :     SvpSalFrame( SvpSalInstance* pInstance,
      60             :                  SalFrame* pParent,
      61             :                  sal_uLong nSalFrameStyle,
      62             :                  bool      bTopDown,
      63             :                  sal_Int32 nScanlineFormat,
      64             :                  SystemParentData* pSystemParent = NULL );
      65             :     virtual ~SvpSalFrame();
      66             : 
      67             :     void GetFocus();
      68             :     void LoseFocus();
      69             :     void PostPaint(bool bImmediate) const;
      70             :     void AllocateFrame();
      71             : 
      72             : #if defined IOS || defined ANDROID
      73             :     const basebmp::BitmapDeviceSharedPtr& getDevice() const { return m_aFrame; }
      74             : #endif
      75             : 
      76             :     // SalFrame
      77             :     virtual SalGraphics*        GetGraphics();
      78             :     virtual void                ReleaseGraphics( SalGraphics* pGraphics );
      79             : 
      80             :     virtual sal_Bool            PostEvent( void* pData );
      81             : 
      82             :     virtual void                SetTitle( const OUString& rTitle );
      83             :     virtual void                SetIcon( sal_uInt16 nIcon );
      84             :     virtual void                SetMenu( SalMenu* pMenu );
      85             :     virtual void                DrawMenuBar();
      86             : 
      87             :     virtual void                SetExtendedFrameStyle( SalExtStyle nExtStyle );
      88             :     virtual void                Show( sal_Bool bVisible, sal_Bool bNoActivate = sal_False );
      89             :     virtual void                Enable( sal_Bool bEnable );
      90             :     virtual void                SetMinClientSize( long nWidth, long nHeight );
      91             :     virtual void                SetMaxClientSize( long nWidth, long nHeight );
      92             :     virtual void                SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_uInt16 nFlags );
      93             :     virtual void                GetClientSize( long& rWidth, long& rHeight );
      94             :     virtual void                GetWorkArea( Rectangle& rRect );
      95             :     virtual SalFrame*           GetParent() const;
      96             :     virtual void                SetWindowState( const SalFrameState* pState );
      97             :     virtual sal_Bool            GetWindowState( SalFrameState* pState );
      98             :     virtual void                ShowFullScreen( sal_Bool bFullScreen, sal_Int32 nDisplay );
      99             :     virtual void                StartPresentation( sal_Bool bStart );
     100             :     virtual void                SetAlwaysOnTop( sal_Bool bOnTop );
     101             :     virtual void                ToTop( sal_uInt16 nFlags );
     102             :     virtual void                SetPointer( PointerStyle ePointerStyle );
     103             :     virtual void                CaptureMouse( sal_Bool bMouse );
     104             :     virtual void                SetPointerPos( long nX, long nY );
     105             :     using SalFrame::Flush;
     106             :     virtual void                Flush();
     107             :     virtual void                Sync();
     108             :     virtual void                SetInputContext( SalInputContext* pContext );
     109             :     virtual void                EndExtTextInput( sal_uInt16 nFlags );
     110             :     virtual OUString       GetKeyName( sal_uInt16 nKeyCode );
     111             :     virtual sal_Bool            MapUnicodeToKeyCode( sal_Unicode aUnicode, LanguageType aLangType, KeyCode& rKeyCode );
     112             :     virtual LanguageType        GetInputLanguage();
     113             :     virtual void                UpdateSettings( AllSettings& rSettings );
     114             :     virtual void                Beep();
     115             :     virtual const SystemEnvData* GetSystemData() const;
     116             :     virtual SalPointerState     GetPointerState();
     117             :     virtual SalIndicatorState   GetIndicatorState();
     118             :     virtual void                SimulateKeyPress( sal_uInt16 nKeyCode );
     119             :     virtual void                SetParent( SalFrame* pNewParent );
     120             :     virtual bool                SetPluginParent( SystemParentData* pNewParent );
     121             :     virtual void                ResetClipRegion();
     122             :     virtual void                BeginSetClipRegion( sal_uLong nRects );
     123             :     virtual void                UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
     124             :     virtual void                EndSetClipRegion();
     125             : 
     126             :     // If enabled we can get damage notifications for regions immediately rendered to ...
     127             :     virtual void                enableDamageTracker( bool bOn = true );
     128           0 :     virtual void                damaged( const basegfx::B2IBox& /* rDamageRect */) {}
     129             : 
     130             :     /*TODO: functional implementation */
     131           0 :     virtual void                SetScreenNumber( unsigned int nScreen ) { (void)nScreen; }
     132        3339 :     virtual void                SetApplicationID(const OUString &rApplicationID) { (void) rApplicationID; }
     133             :     bool                        IsVisible() { return m_bVisible; }
     134             : 
     135             :     static SvpSalFrame*         GetFocusFrame() { return s_pFocusFrame; }
     136             : 
     137             : };
     138             : #endif // _SVP_SVPFRAME_HXX
     139             : 
     140             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10