xref: /aoo41x/main/vcl/unx/headless/svpdummies.hxx (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 _SVP_SVPDUMMIES_HXX
29 
30 #include <vcl/sysdata.hxx>
31 
32 #include <salobj.hxx>
33 #include <salimestatus.hxx>
34 #include <salsys.hxx>
35 
36 class SalGraphics;
37 
38 class SvpSalObject : public SalObject
39 {
40 public:
41 	SystemChildData m_aSystemChildData;
42 
43     SvpSalObject();
44     virtual ~SvpSalObject();
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 class SvpImeStatus : public SalI18NImeStatus
67 {
68   public:
69         SvpImeStatus() {}
70         virtual ~SvpImeStatus();
71 
72         virtual bool canToggle();
73         virtual void toggle();
74 };
75 
76 class SvpSalSystem : public SalSystem
77 {
78     public:
79     SvpSalSystem() {}
80     virtual ~SvpSalSystem();
81     // get info about the display
82     virtual unsigned int GetDisplayScreenCount();
83     virtual bool IsMultiDisplay();
84     virtual unsigned int GetDefaultDisplayNumber();
85     virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen );
86     virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen );
87     virtual rtl::OUString GetScreenName( unsigned int nScreen );
88 
89 
90 	virtual int ShowNativeMessageBox( const String& rTitle,
91                                       const String& rMessage,
92                                       int nButtonCombination,
93                                       int nDefaultButton);
94 };
95 
96 
97 #endif // _SVP_SVPDUMMIES_H
98