xref: /aoo42x/main/vcl/unx/headless/svpdummies.hxx (revision 0d63794c)
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 _SVP_SVPDUMMIES_HXX
25 
26 #include <vcl/sysdata.hxx>
27 
28 #include <salobj.hxx>
29 #include <salimestatus.hxx>
30 #include <salsys.hxx>
31 
32 class SalGraphics;
33 
34 class SvpSalObject : public SalObject
35 {
36 public:
37 	SystemChildData m_aSystemChildData;
38 
39     SvpSalObject();
40     virtual ~SvpSalObject();
41 
42     // overload all pure virtual methods
43  	virtual void					ResetClipRegion();
44 	virtual sal_uInt16				GetClipRegionType();
45 	virtual void					BeginSetClipRegion( sal_uLong nRects );
46 	virtual void					UnionClipRegion( long nX, long nY, long nWidth, long nHeight );
47 	virtual void					EndSetClipRegion();
48 
49 	virtual void					SetPosSize( long nX, long nY, long nWidth, long nHeight );
50 	virtual void					Show( sal_Bool bVisible );
51 	virtual void					Enable( sal_Bool nEnable );
52 	virtual void					GrabFocus();
53 
54 	virtual void					SetBackground();
55 	virtual void					SetBackground( SalColor nSalColor );
56 
57 	virtual const SystemEnvData*	GetSystemData() const;
58 
59 	virtual void InterceptChildWindowKeyDown( sal_Bool bIntercept );
60 };
61 
62 class SvpImeStatus : public SalI18NImeStatus
63 {
64   public:
SvpImeStatus()65         SvpImeStatus() {}
66         virtual ~SvpImeStatus();
67 
68         virtual bool canToggle();
69         virtual void toggle();
70 };
71 
72 class SvpSalSystem : public SalSystem
73 {
74     public:
SvpSalSystem()75     SvpSalSystem() {}
76     virtual ~SvpSalSystem();
77     // get info about the display
78     virtual unsigned int GetDisplayScreenCount();
79     virtual bool IsMultiDisplay();
80     virtual unsigned int GetDefaultDisplayNumber();
81     virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen );
82     virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen );
83     virtual rtl::OUString GetScreenName( unsigned int nScreen );
84 
85 
86 	virtual int ShowNativeMessageBox( const String& rTitle,
87                                       const String& rMessage,
88                                       int nButtonCombination,
89                                       int nDefaultButton);
90 };
91 
92 
93 #endif // _SVP_SVPDUMMIES_H
94