Update ooo320-m1
[ooovba.git] / vcl / unx / headless / svpdummies.cxx
blob5b44a5ef96fc3779745eea5162cc5698a378df8e
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: svpdummies.cxx,v $
10 * $Revision: 1.4.154.1 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "svpdummies.hxx"
32 #include "svpinst.hxx"
33 #include <rtl/ustrbuf.hxx>
35 // SalObject
36 SvpSalObject::SvpSalObject()
38 m_aSystemChildData.nSize = sizeof( SystemChildData );
39 m_aSystemChildData.pDisplay = NULL;
40 m_aSystemChildData.aWindow = 0;
41 m_aSystemChildData.pSalFrame = 0;
42 m_aSystemChildData.pWidget = 0;
43 m_aSystemChildData.pVisual = 0;
44 m_aSystemChildData.nDepth = 0;
45 m_aSystemChildData.aColormap = 0;
46 m_aSystemChildData.pAppContext = NULL;
47 m_aSystemChildData.aShellWindow = 0;
48 m_aSystemChildData.pShellWidget = NULL;
51 SvpSalObject::~SvpSalObject()
55 void SvpSalObject::ResetClipRegion() {}
56 USHORT SvpSalObject::GetClipRegionType() { return 0; }
57 void SvpSalObject::BeginSetClipRegion( ULONG ) {}
58 void SvpSalObject::UnionClipRegion( long, long, long, long ) {}
59 void SvpSalObject::EndSetClipRegion() {}
60 void SvpSalObject::SetPosSize( long, long, long, long ) {}
61 void SvpSalObject::Show( BOOL ) {}
62 void SvpSalObject::Enable( BOOL ) {}
63 void SvpSalObject::GrabFocus() {}
64 void SvpSalObject::SetBackground() {}
65 void SvpSalObject::SetBackground( SalColor ) {}
66 const SystemEnvData* SvpSalObject::GetSystemData() const { return &m_aSystemChildData; }
68 // SalI18NImeStatus
69 SvpImeStatus::~SvpImeStatus() {}
70 bool SvpImeStatus::canToggle() { return false; }
71 void SvpImeStatus::toggle() {}
73 // SalSystem
74 SvpSalSystem::~SvpSalSystem() {}
76 unsigned int SvpSalSystem::GetDisplayScreenCount()
78 return 1;
81 unsigned int SvpSalSystem::GetDefaultDisplayNumber()
83 return 0;
86 bool SvpSalSystem::IsMultiDisplay()
88 return false;
91 Rectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
93 Rectangle aRect;
94 if( nScreen == 0 )
95 aRect = Rectangle( Point(0,0), Size(VIRTUAL_DESKTOP_WIDTH,VIRTUAL_DESKTOP_HEIGHT) );
96 return aRect;
99 Rectangle SvpSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen )
101 return GetDisplayScreenPosSizePixel( nScreen );
104 rtl::OUString SvpSalSystem::GetScreenName( unsigned int nScreen )
106 rtl::OUStringBuffer aBuf( 32 );
107 aBuf.appendAscii( "VirtualScreen " );
108 aBuf.append( sal_Int32(nScreen) );
109 return aBuf.makeStringAndClear();
112 int SvpSalSystem::ShowNativeMessageBox( const String&,
113 const String&,
114 int,
115 int )
117 return 0;