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