1*9f62ea84SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*9f62ea84SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*9f62ea84SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*9f62ea84SAndrew Rist * distributed with this work for additional information
6*9f62ea84SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*9f62ea84SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*9f62ea84SAndrew Rist * "License"); you may not use this file except in compliance
9*9f62ea84SAndrew Rist * with the License. You may obtain a copy of the License at
10*9f62ea84SAndrew Rist *
11*9f62ea84SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*9f62ea84SAndrew Rist *
13*9f62ea84SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*9f62ea84SAndrew Rist * software distributed under the License is distributed on an
15*9f62ea84SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*9f62ea84SAndrew Rist * KIND, either express or implied. See the License for the
17*9f62ea84SAndrew Rist * specific language governing permissions and limitations
18*9f62ea84SAndrew Rist * under the License.
19*9f62ea84SAndrew Rist *
20*9f62ea84SAndrew Rist *************************************************************/
21*9f62ea84SAndrew Rist
22*9f62ea84SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir #include "svpdummies.hxx"
25cdf0e10cSrcweir #include "svpinst.hxx"
26cdf0e10cSrcweir #include <rtl/ustrbuf.hxx>
27cdf0e10cSrcweir
28cdf0e10cSrcweir // SalObject
SvpSalObject()29cdf0e10cSrcweir SvpSalObject::SvpSalObject()
30cdf0e10cSrcweir {
31cdf0e10cSrcweir m_aSystemChildData.nSize = sizeof( SystemChildData );
32cdf0e10cSrcweir m_aSystemChildData.pDisplay = NULL;
33cdf0e10cSrcweir m_aSystemChildData.aWindow = 0;
34cdf0e10cSrcweir m_aSystemChildData.pSalFrame = 0;
35cdf0e10cSrcweir m_aSystemChildData.pWidget = 0;
36cdf0e10cSrcweir m_aSystemChildData.pVisual = 0;
37cdf0e10cSrcweir m_aSystemChildData.nDepth = 0;
38cdf0e10cSrcweir m_aSystemChildData.aColormap = 0;
39cdf0e10cSrcweir m_aSystemChildData.pAppContext = NULL;
40cdf0e10cSrcweir m_aSystemChildData.aShellWindow = 0;
41cdf0e10cSrcweir m_aSystemChildData.pShellWidget = NULL;
42cdf0e10cSrcweir }
43cdf0e10cSrcweir
~SvpSalObject()44cdf0e10cSrcweir SvpSalObject::~SvpSalObject()
45cdf0e10cSrcweir {
46cdf0e10cSrcweir }
47cdf0e10cSrcweir
ResetClipRegion()48cdf0e10cSrcweir void SvpSalObject::ResetClipRegion() {}
GetClipRegionType()49cdf0e10cSrcweir sal_uInt16 SvpSalObject::GetClipRegionType() { return 0; }
BeginSetClipRegion(sal_uLong)50cdf0e10cSrcweir void SvpSalObject::BeginSetClipRegion( sal_uLong ) {}
UnionClipRegion(long,long,long,long)51cdf0e10cSrcweir void SvpSalObject::UnionClipRegion( long, long, long, long ) {}
EndSetClipRegion()52cdf0e10cSrcweir void SvpSalObject::EndSetClipRegion() {}
SetPosSize(long,long,long,long)53cdf0e10cSrcweir void SvpSalObject::SetPosSize( long, long, long, long ) {}
Show(sal_Bool)54cdf0e10cSrcweir void SvpSalObject::Show( sal_Bool ) {}
Enable(sal_Bool)55cdf0e10cSrcweir void SvpSalObject::Enable( sal_Bool ) {}
GrabFocus()56cdf0e10cSrcweir void SvpSalObject::GrabFocus() {}
SetBackground()57cdf0e10cSrcweir void SvpSalObject::SetBackground() {}
SetBackground(SalColor)58cdf0e10cSrcweir void SvpSalObject::SetBackground( SalColor ) {}
GetSystemData() const59cdf0e10cSrcweir const SystemEnvData* SvpSalObject::GetSystemData() const { return &m_aSystemChildData; }
InterceptChildWindowKeyDown(sal_Bool)60cdf0e10cSrcweir void SvpSalObject::InterceptChildWindowKeyDown( sal_Bool ) {}
61cdf0e10cSrcweir
62cdf0e10cSrcweir // SalI18NImeStatus
~SvpImeStatus()63cdf0e10cSrcweir SvpImeStatus::~SvpImeStatus() {}
canToggle()64cdf0e10cSrcweir bool SvpImeStatus::canToggle() { return false; }
toggle()65cdf0e10cSrcweir void SvpImeStatus::toggle() {}
66cdf0e10cSrcweir
67cdf0e10cSrcweir // SalSystem
~SvpSalSystem()68cdf0e10cSrcweir SvpSalSystem::~SvpSalSystem() {}
69cdf0e10cSrcweir
GetDisplayScreenCount()70cdf0e10cSrcweir unsigned int SvpSalSystem::GetDisplayScreenCount()
71cdf0e10cSrcweir {
72cdf0e10cSrcweir return 1;
73cdf0e10cSrcweir }
74cdf0e10cSrcweir
GetDefaultDisplayNumber()75cdf0e10cSrcweir unsigned int SvpSalSystem::GetDefaultDisplayNumber()
76cdf0e10cSrcweir {
77cdf0e10cSrcweir return 0;
78cdf0e10cSrcweir }
79cdf0e10cSrcweir
IsMultiDisplay()80cdf0e10cSrcweir bool SvpSalSystem::IsMultiDisplay()
81cdf0e10cSrcweir {
82cdf0e10cSrcweir return false;
83cdf0e10cSrcweir }
84cdf0e10cSrcweir
GetDisplayScreenPosSizePixel(unsigned int nScreen)85cdf0e10cSrcweir Rectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
86cdf0e10cSrcweir {
87cdf0e10cSrcweir Rectangle aRect;
88cdf0e10cSrcweir if( nScreen == 0 )
89cdf0e10cSrcweir aRect = Rectangle( Point(0,0), Size(VIRTUAL_DESKTOP_WIDTH,VIRTUAL_DESKTOP_HEIGHT) );
90cdf0e10cSrcweir return aRect;
91cdf0e10cSrcweir }
92cdf0e10cSrcweir
GetDisplayWorkAreaPosSizePixel(unsigned int nScreen)93cdf0e10cSrcweir Rectangle SvpSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
94cdf0e10cSrcweir {
95cdf0e10cSrcweir return GetDisplayScreenPosSizePixel( nScreen );
96cdf0e10cSrcweir }
97cdf0e10cSrcweir
GetScreenName(unsigned int nScreen)98cdf0e10cSrcweir rtl::OUString SvpSalSystem::GetScreenName( unsigned int nScreen )
99cdf0e10cSrcweir {
100cdf0e10cSrcweir rtl::OUStringBuffer aBuf( 32 );
101cdf0e10cSrcweir aBuf.appendAscii( "VirtualScreen " );
102cdf0e10cSrcweir aBuf.append( sal_Int32(nScreen) );
103cdf0e10cSrcweir return aBuf.makeStringAndClear();
104cdf0e10cSrcweir }
105cdf0e10cSrcweir
ShowNativeMessageBox(const String &,const String &,int,int)106cdf0e10cSrcweir int SvpSalSystem::ShowNativeMessageBox( const String&,
107cdf0e10cSrcweir const String&,
108cdf0e10cSrcweir int,
109cdf0e10cSrcweir int )
110cdf0e10cSrcweir {
111cdf0e10cSrcweir return 0;
112cdf0e10cSrcweir }
113cdf0e10cSrcweir
114