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 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 44 SvpSalObject::~SvpSalObject() 45 { 46 } 47 48 void SvpSalObject::ResetClipRegion() {} 49 sal_uInt16 SvpSalObject::GetClipRegionType() { return 0; } 50 void SvpSalObject::BeginSetClipRegion( sal_uLong ) {} 51 void SvpSalObject::UnionClipRegion( long, long, long, long ) {} 52 void SvpSalObject::EndSetClipRegion() {} 53 void SvpSalObject::SetPosSize( long, long, long, long ) {} 54 void SvpSalObject::Show( sal_Bool ) {} 55 void SvpSalObject::Enable( sal_Bool ) {} 56 void SvpSalObject::GrabFocus() {} 57 void SvpSalObject::SetBackground() {} 58 void SvpSalObject::SetBackground( SalColor ) {} 59 const SystemEnvData* SvpSalObject::GetSystemData() const { return &m_aSystemChildData; } 60 void SvpSalObject::InterceptChildWindowKeyDown( sal_Bool ) {} 61 62 // SalI18NImeStatus 63 SvpImeStatus::~SvpImeStatus() {} 64 bool SvpImeStatus::canToggle() { return false; } 65 void SvpImeStatus::toggle() {} 66 67 // SalSystem 68 SvpSalSystem::~SvpSalSystem() {} 69 70 unsigned int SvpSalSystem::GetDisplayScreenCount() 71 { 72 return 1; 73 } 74 75 unsigned int SvpSalSystem::GetDefaultDisplayNumber() 76 { 77 return 0; 78 } 79 80 bool SvpSalSystem::IsMultiDisplay() 81 { 82 return false; 83 } 84 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 93 Rectangle SvpSalSystem::GetDisplayWorkAreaPosSizePixel( unsigned int nScreen ) 94 { 95 return GetDisplayScreenPosSizePixel( nScreen ); 96 } 97 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 106 int SvpSalSystem::ShowNativeMessageBox( const String&, 107 const String&, 108 int, 109 int ) 110 { 111 return 0; 112 } 113 114