LCOV - code coverage report
Current view: top level - libreoffice/vcl/inc - salobj.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 16 0.0 %
Date: 2012-12-27 Functions: 0 11 0.0 %
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 _SV_SALOBJ_HXX
      21             : #define _SV_SALOBJ_HXX
      22             : 
      23             : #include <tools/solar.h>
      24             : #include <vcl/dllapi.h>
      25             : #include <vcl/salgtype.hxx>
      26             : #include <salwtype.hxx>
      27             : 
      28             : struct SystemEnvData;
      29             : 
      30             : // -------------------
      31             : // - SalObject-Types -
      32             : // -------------------
      33             : 
      34             : #define SAL_OBJECT_CLIP_INCLUDERECTS            ((sal_uInt16)0x0001)
      35             : #define SAL_OBJECT_CLIP_EXCLUDERECTS            ((sal_uInt16)0x0002)
      36             : #define SAL_OBJECT_CLIP_ABSOLUTE                ((sal_uInt16)0x0004)
      37             : 
      38             : // -------------
      39             : // - SalObject -
      40             : // -------------
      41             : 
      42             : class VCL_PLUGIN_PUBLIC SalObject
      43             : {
      44             :     void*               m_pInst;
      45             :     SALOBJECTPROC       m_pCallback;
      46             :     sal_Bool                m_bMouseTransparent:1,
      47             :                         m_bEraseBackground:1;
      48             : public:
      49           0 :     SalObject() : m_pInst( NULL ), m_pCallback( NULL ), m_bMouseTransparent( sal_False ), m_bEraseBackground( sal_True ) {}
      50             :     virtual ~SalObject();
      51             : 
      52             :     virtual void                    ResetClipRegion() = 0;
      53             :     virtual sal_uInt16                  GetClipRegionType() = 0;
      54             :     virtual void                    BeginSetClipRegion( sal_uLong nRects ) = 0;
      55             :     virtual void                    UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) = 0;
      56             :     virtual void                    EndSetClipRegion() = 0;
      57             : 
      58             :     virtual void                    SetPosSize( long nX, long nY, long nWidth, long nHeight ) = 0;
      59             :     virtual void                    Show( sal_Bool bVisible ) = 0;
      60           0 :     virtual void                    Enable( sal_Bool /* nEnable */ ) {}
      61           0 :     virtual void                    GrabFocus() {}
      62             : 
      63           0 :     virtual void                    SetBackground() {}
      64           0 :     virtual void                    SetBackground( SalColor /* nSalColor */ ) {}
      65             : 
      66           0 :     virtual void                    SetForwardKey( sal_Bool /* bEnable */ ) {}
      67             : 
      68             :     virtual const SystemEnvData*    GetSystemData() const = 0;
      69             : 
      70           0 :     void                    SetCallback( void* pInst, SALOBJECTPROC pProc )
      71           0 :     { m_pInst = pInst; m_pCallback = pProc; }
      72           0 :     long                    CallCallback( sal_uInt16 nEvent, const void* pEvent )
      73           0 :     { return m_pCallback ? m_pCallback( m_pInst, this, nEvent, pEvent ) : 0; }
      74           0 :     void                    SetMouseTransparent( sal_Bool bMouseTransparent )
      75           0 :     { m_bMouseTransparent = bMouseTransparent; }
      76           0 :     sal_Bool                    IsMouseTransparent()
      77           0 :     { return m_bMouseTransparent; }
      78           0 :     void                    EnableEraseBackground( sal_Bool bEnable )
      79           0 :     { m_bEraseBackground = bEnable; }
      80             :     sal_Bool                    IsEraseBackgroundEnabled()
      81             :     { return m_bEraseBackground; }
      82             : };
      83             : 
      84             : #endif // _SV_SALOBJ_HXX
      85             : 
      86             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10