xref: /AOO41X/main/vcl/inc/win/salobj.h (revision 79aad27f7f29270c03e208e3d687e8e3850af11d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SV_SALOBJ_H
25 #define _SV_SALOBJ_H
26 
27 #include <salobj.hxx>
28 
29 // -----------------
30 // - SalObjectData -
31 // -----------------
32 
33 class WinSalObject : public SalObject
34 {
35 public:
36     HWND                    mhWnd;                  // Window handle
37     HWND                    mhWndChild;             // Child Window handle
38     HWND                    mhLastFocusWnd;         // Child-Window, welches als letztes den Focus hatte
39     SystemChildData         maSysData;              // SystemEnvData
40     RGNDATA*                mpClipRgnData;          // ClipRegion-Data
41     RGNDATA*                mpStdClipRgnData;       // Cache Standard-ClipRegion-Data
42     RECT*                   mpNextClipRect;         // Naechstes ClipRegion-Rect
43     sal_Bool                mbFirstClipRect;        // Flag for first cliprect to insert
44     sal_Bool                mbInterceptChildWindowKeyDown; // Intercept the KeyDown event sent to system child window
45     WinSalObject*               mpNextObject;           // pointer to next object
46 
47 
48     WinSalObject();
49     virtual ~WinSalObject();
50 
51     virtual void                    ResetClipRegion();
52     virtual sal_uInt16                  GetClipRegionType();
53     virtual void                    BeginSetClipRegion( sal_uIntPtr nRects );
54     virtual void                    UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
55     virtual void                    EndSetClipRegion();
56     virtual void                    SetPosSize( long nX, long nY, long nWidth, long nHeight );
57     virtual void                    Show( sal_Bool bVisible );
58     virtual void                    Enable( sal_Bool nEnable );
59     virtual void                    GrabFocus();
60     virtual void                    SetBackground();
61     virtual void                    SetBackground( SalColor nSalColor );
62     virtual const SystemEnvData*    GetSystemData() const;
63     virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
64 };
65 
66 #endif // _SV_SALOBJ_H
67