LCOV - code coverage report
Current view: top level - vcl/inc/unx - salobj.h (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 8 0.0 %
Date: 2014-04-14 Functions: 0 4 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 INCLUDED_VCL_INC_UNX_SALOBJ_H
      21             : #define INCLUDED_VCL_INC_UNX_SALOBJ_H
      22             : 
      23             : #include <salobj.hxx>
      24             : #include <vcl/sysdata.hxx>
      25             : #include <vclpluginapi.h>
      26             : 
      27             : class SalClipRegion
      28             : {
      29             : 
      30             : public:
      31             : 
      32             :                 SalClipRegion();
      33             :                ~SalClipRegion();
      34             : 
      35             :     void        BeginSetClipRegion( sal_uIntPtr nRects );
      36             :     void        UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
      37             : 
      38           0 :     XRectangle *EndSetClipRegion()  {
      39           0 :         return ClipRectangleList;   }
      40           0 :     void        ResetClipRegion()   {
      41           0 :         numClipRectangles = 0;      }
      42           0 :     sal_uInt16      GetClipRegionType() {
      43           0 :         return nClipRegionType;     }
      44             :     void        SetClipRegionType( sal_uInt16 nType ) {
      45             :         nClipRegionType = nType;    }
      46           0 :     int         GetRectangleCount() {
      47           0 :         return numClipRectangles;   }
      48             : 
      49             : private:
      50             : 
      51             :     XRectangle* ClipRectangleList;
      52             :     int         numClipRectangles;
      53             :     int         maxClipRectangles;
      54             :     sal_uInt16      nClipRegionType;
      55             : };
      56             : 
      57             : class VCLPLUG_GEN_PUBLIC X11SalObject : public SalObject
      58             : {
      59             : public:
      60             :     SystemEnvData maSystemChildData;
      61             :     SalFrame*       mpParent;
      62             :     XLIB_Window     maPrimary;
      63             :     XLIB_Window     maSecondary;
      64             :     Colormap        maColormap;
      65             :     SalClipRegion   maClipRegion;
      66             :     bool            mbVisible;
      67             : 
      68             :     static VCL_DLLPUBLIC bool Dispatch( XEvent* pEvent );
      69             :     static VCL_DLLPUBLIC X11SalObject* CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, bool bShow = true );
      70             : 
      71             :     X11SalObject();
      72             :     virtual ~X11SalObject();
      73             : 
      74             :     // overload all pure virtual methods
      75             :      virtual void                   ResetClipRegion() SAL_OVERRIDE;
      76             :     virtual sal_uInt16                  GetClipRegionType() SAL_OVERRIDE;
      77             :     virtual void                    BeginSetClipRegion( sal_uIntPtr nRects ) SAL_OVERRIDE;
      78             :     virtual void                    UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) SAL_OVERRIDE;
      79             :     virtual void                    EndSetClipRegion() SAL_OVERRIDE;
      80             : 
      81             :     virtual void                    SetPosSize( long nX, long nY, long nWidth, long nHeight ) SAL_OVERRIDE;
      82             :     virtual void                    Show( bool bVisible ) SAL_OVERRIDE;
      83             :     virtual void                    GrabFocus() SAL_OVERRIDE;
      84             : 
      85             :     virtual const SystemEnvData*    GetSystemData() const SAL_OVERRIDE;
      86             : };
      87             : 
      88             : #endif // INCLUDED_VCL_INC_UNX_SALOBJ_H
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10