xref: /trunk/main/vcl/inc/unx/gtk/gtkobject.hxx (revision 161f4cd1)
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 _VCL_GTKOBJECT_HXX
25 #define _VCL_GTKOBJECT_HXX
26 
27 #include <vcl/sv.h>
28 #include <vcl/sysdata.hxx>
29 #include <salobj.hxx>
30 #include <unx/gtk/gtkframe.hxx>
31 
32 class GtkSalObject : public SalObject
33 {
34 	SystemChildData		m_aSystemData;
35     GtkWidget*			m_pSocket;
36     GdkRegion*			m_pRegion;
37 
38     // signals
39     static gboolean		signalButton( GtkWidget*, GdkEventButton*, gpointer );
40     static gboolean		signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
41     static void			signalDestroy( GtkObject*, gpointer );
42 public:
43     GtkSalObject( GtkSalFrame* pParent, sal_Bool bShow = sal_True );
44     virtual ~GtkSalObject();
45 
46     // overload all pure virtual methods
47  	virtual void					ResetClipRegion();
48 	virtual sal_uInt16				GetClipRegionType();
49 	virtual void					BeginSetClipRegion( sal_uLong nRects );
50 	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
51 	virtual void					EndSetClipRegion();
52 
53 	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
54 	virtual void					Show( sal_Bool bVisible );
55 	virtual void					Enable( sal_Bool nEnable );
56 	virtual void					GrabFocus();
57 
58 	virtual void					SetBackground();
59 	virtual void					SetBackground( SalColor nSalColor );
60 
61 	virtual const SystemEnvData*	GetSystemData() const;
62 
63     virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
64 };
65 
66 #endif // _SV_SALOBJ_H
67