xref: /aoo42x/main/vcl/inc/aqua/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 "vcl/sysdata.hxx"
28 #include "salobj.hxx"
29 
30 class AquaSalFrame;
31 class AquaSalObject;
32 
33 
34 // -----------------
35 // - SalObjectData -
36 // -----------------
37 
38 struct SalObjectData
39 {
40 };
41 
42 class AquaSalObject : public SalObject
43 {
44 public:
45 	AquaSalFrame*				mpFrame;				// parent frame
46     NSClipView*                 mpClipView;
47     SystemEnvData               maSysData;
48 
49     long                        mnClipX;
50     long                        mnClipY;
51     long                        mnClipWidth;
52     long                        mnClipHeight;
53     bool                        mbClip;
54 
55     long                        mnX;
56     long                        mnY;
57     long                        mnWidth;
58     long                        mnHeight;
59 
60 
61     void setClippedPosSize();
62 
63 
64     AquaSalObject( AquaSalFrame* pFrame );
65     virtual ~AquaSalObject();
66 
67 	virtual void					ResetClipRegion();
68 	virtual sal_uInt16				GetClipRegionType();
69 	virtual void					BeginSetClipRegion( sal_uLong nRects );
70 	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
71 	virtual void					EndSetClipRegion();
72 	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
73 	virtual void					Show( sal_Bool bVisible );
74 	virtual void					Enable( sal_Bool nEnable );
75 	virtual void					GrabFocus();
76 	virtual void					SetBackground();
77 	virtual void					SetBackground( SalColor nSalColor );
78 	virtual const SystemEnvData*	GetSystemData() const;
79     virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
80 };
81 
82 #endif // _SV_SALOBJ_H
83