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