xref: /trunk/main/vcl/inc/os2/salobj.h (revision 24f6443d)
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 Os2SalObject : 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 	HWND					mhLastClipWnd;			// LastClip-Window
41 	HWND					mhOldLastClipWnd;		// LastClip-Window befor BeginSetClipRegion
42 	long					mnHeight;				// Fenster-Hoehe fuer Positionsumrechnung
43 	Os2SalObject*				mpNextObject;			// pointer to next object
44 	void*					mpInst; 				// instance handle for callback
45 	SALOBJECTPROC			mpProc; 				// callback proc
46 
47     Os2SalObject();
48     virtual ~Os2SalObject();
49 
50 	virtual void					ResetClipRegion();
51 	virtual USHORT					GetClipRegionType();
52 	virtual void					BeginSetClipRegion( ULONG nRects );
53 	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
54 	virtual void					EndSetClipRegion();
55 	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
56 	virtual void					Show( sal_Bool bVisible );
57 	virtual void					Enable( sal_Bool nEnable );
58 	virtual void					GrabFocus();
59 	virtual void					SetBackground();
60 	virtual void					SetBackground( SalColor nSalColor );
61 	virtual const SystemEnvData*	GetSystemData() const;
62     virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
63 };
64 
65 #endif // _SV_SALOBJ_H
66