xref: /trunk/main/vcl/unx/headless/svpdummies.cxx (revision 9f62ea84)
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 #include "svpdummies.hxx"
25 #include "svpinst.hxx"
26 #include <rtl/ustrbuf.hxx>
27 
28 // SalObject
SvpSalObject()29 SvpSalObject::SvpSalObject()
30 {
31 	m_aSystemChildData.nSize		= sizeof( SystemChildData );
32 	m_aSystemChildData.pDisplay 	= NULL;
33 	m_aSystemChildData.aWindow		= 0;
34 	m_aSystemChildData.pSalFrame    = 0;
35 	m_aSystemChildData.pWidget		= 0;
36 	m_aSystemChildData.pVisual		= 0;
37 	m_aSystemChildData.nDepth		= 0;
38 	m_aSystemChildData.aColormap	= 0;
39 	m_aSystemChildData.pAppContext	= NULL;
40 	m_aSystemChildData.aShellWindow	= 0;
41 	m_aSystemChildData.pShellWidget	= NULL;
42 }
43 
~SvpSalObject()44 SvpSalObject::~SvpSalObject()
45 {
46 }
47 
ResetClipRegion()48 void SvpSalObject::ResetClipRegion() {}
GetClipRegionType()49 sal_uInt16 SvpSalObject::GetClipRegionType() { return 0; }
BeginSetClipRegion(sal_uLong)50 void SvpSalObject::BeginSetClipRegion( sal_uLong ) {}
UnionClipRegion(long,long,long,long)51 void SvpSalObject::UnionClipRegion( long, long, long, long ) {}
EndSetClipRegion()52 void SvpSalObject::EndSetClipRegion() {}
SetPosSize(long,long,long,long)53 void SvpSalObject::SetPosSize( long, long, long, long ) {}
Show(sal_Bool)54 void SvpSalObject::Show( sal_Bool ) {}
Enable(sal_Bool)55 void SvpSalObject::Enable( sal_Bool ) {}
GrabFocus()56 void SvpSalObject::GrabFocus() {}
SetBackground()57 void SvpSalObject::SetBackground() {}
SetBackground(SalColor)58 void SvpSalObject::SetBackground( SalColor ) {}
GetSystemData() const59 const SystemEnvData* SvpSalObject::GetSystemData() const { return &m_aSystemChildData; }
InterceptChildWindowKeyDown(sal_Bool)60 void SvpSalObject::InterceptChildWindowKeyDown( sal_Bool ) {}
61 
62 // SalI18NImeStatus
~SvpImeStatus()63 SvpImeStatus::~SvpImeStatus() {}
canToggle()64 bool SvpImeStatus::canToggle() { return false; }
toggle()65 void SvpImeStatus::toggle() {}
66 
67 // SalSystem
~SvpSalSystem()68 SvpSalSystem::~SvpSalSystem() {}
69 
GetDisplayScreenCount()70 unsigned int SvpSalSystem::GetDisplayScreenCount()
71 {
72 	return 1;
73 }
74 
GetDefaultDisplayNumber()75 unsigned int SvpSalSystem::GetDefaultDisplayNumber()
76 {
77 	return 0;
78 }
79 
IsMultiDisplay()80 bool SvpSalSystem::IsMultiDisplay()
81 {
82 	return false;
83 }
84 
GetDisplayScreenPosSizePixel(unsigned int nScreen)85 Rectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
86 {
87     Rectangle aRect;
88     if( nScreen == 0 )
89         aRect = Rectangle( Point(0,0), Size(VIRTUAL_DESKTOP_WIDTH,VIRTUAL_DESKTOP_HEIGHT) );
90     return aRect;
91 }
92 
GetDisplayWorkAreaPosSizePixel(unsigned int nScreen)93 Rectangle SvpSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
94 {
95 	return GetDisplayScreenPosSizePixel( nScreen );
96 }
97 
GetScreenName(unsigned int nScreen)98 rtl::OUString SvpSalSystem::GetScreenName( unsigned int nScreen )
99 {
100    rtl::OUStringBuffer aBuf( 32 );
101    aBuf.appendAscii( "VirtualScreen " );
102    aBuf.append( sal_Int32(nScreen) );
103    return aBuf.makeStringAndClear();
104 }
105 
ShowNativeMessageBox(const String &,const String &,int,int)106 int SvpSalSystem::ShowNativeMessageBox( const String&,
107                                         const String&,
108                                         int,
109                                         int )
110 {
111     return 0;
112 }
113 
114