xref: /aoo41x/main/vcl/inc/aqua/salobj.h (revision cdf0e10c)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SV_SALOBJ_H
29 #define _SV_SALOBJ_H
30 
31 #include "vcl/sysdata.hxx"
32 #include "salobj.hxx"
33 
34 class AquaSalFrame;
35 class AquaSalObject;
36 
37 
38 // -----------------
39 // - SalObjectData -
40 // -----------------
41 
42 struct SalObjectData
43 {
44 };
45 
46 class AquaSalObject : public SalObject
47 {
48 public:
49 	AquaSalFrame*				mpFrame;				// parent frame
50     NSClipView*                 mpClipView;
51     SystemEnvData               maSysData;
52 
53     long                        mnClipX;
54     long                        mnClipY;
55     long                        mnClipWidth;
56     long                        mnClipHeight;
57     bool                        mbClip;
58 
59     long                        mnX;
60     long                        mnY;
61     long                        mnWidth;
62     long                        mnHeight;
63 
64 
65     void setClippedPosSize();
66 
67 
68     AquaSalObject( AquaSalFrame* pFrame );
69     virtual ~AquaSalObject();
70 
71 	virtual void					ResetClipRegion();
72 	virtual sal_uInt16				GetClipRegionType();
73 	virtual void					BeginSetClipRegion( sal_uLong nRects );
74 	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
75 	virtual void					EndSetClipRegion();
76 	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
77 	virtual void					Show( sal_Bool bVisible );
78 	virtual void					Enable( sal_Bool nEnable );
79 	virtual void					GrabFocus();
80 	virtual void					SetBackground();
81 	virtual void					SetBackground( SalColor nSalColor );
82 	virtual const SystemEnvData*	GetSystemData() const;
83     virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
84 };
85 
86 #endif // _SV_SALOBJ_H
87