Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <string.h>
30 : : #include <rtl/ustrbuf.hxx>
31 : : #include "headless/svpdummies.hxx"
32 : : #include "headless/svpinst.hxx"
33 : :
34 : : // SalObject
35 : 0 : SvpSalObject::SvpSalObject()
36 : : {
37 : : // fast and easy cross-platform wiping of the data
38 : 0 : memset( (void *)&m_aSystemChildData, 0, sizeof( SystemChildData ) );
39 : 0 : m_aSystemChildData.nSize = sizeof( SystemChildData );
40 : 0 : }
41 : :
42 : 0 : SvpSalObject::~SvpSalObject()
43 : : {
44 [ # # ]: 0 : }
45 : :
46 : 0 : void SvpSalObject::ResetClipRegion() {}
47 : 0 : sal_uInt16 SvpSalObject::GetClipRegionType() { return 0; }
48 : 0 : void SvpSalObject::BeginSetClipRegion( sal_uLong ) {}
49 : 0 : void SvpSalObject::UnionClipRegion( long, long, long, long ) {}
50 : 0 : void SvpSalObject::EndSetClipRegion() {}
51 : 0 : void SvpSalObject::SetPosSize( long, long, long, long ) {}
52 : 0 : void SvpSalObject::Show( sal_Bool ) {}
53 : 0 : const SystemEnvData* SvpSalObject::GetSystemData() const { return &m_aSystemChildData; }
54 : :
55 : : // SalI18NImeStatus
56 [ - + ]: 316 : SvpImeStatus::~SvpImeStatus() {}
57 : 241 : bool SvpImeStatus::canToggle() { return false; }
58 : 0 : void SvpImeStatus::toggle() {}
59 : :
60 : : // SalSystem
61 [ - + ]: 116 : SvpSalSystem::~SvpSalSystem() {}
62 : :
63 : 3782 : unsigned int SvpSalSystem::GetDisplayScreenCount()
64 : : {
65 : 3782 : return 1;
66 : : }
67 : :
68 : 3758 : Rectangle SvpSalSystem::GetDisplayScreenPosSizePixel( unsigned int nScreen )
69 : : {
70 : 3758 : Rectangle aRect;
71 [ + - ]: 3758 : if( nScreen == 0 )
72 [ + - ]: 3758 : aRect = Rectangle( Point(0,0), Size(VIRTUAL_DESKTOP_WIDTH,VIRTUAL_DESKTOP_HEIGHT) );
73 : 3758 : return aRect;
74 : : }
75 : :
76 : 0 : Rectangle SvpSalSystem::GetDisplayScreenWorkAreaPosSizePixel( unsigned int nScreen )
77 : : {
78 : 0 : return GetDisplayScreenPosSizePixel( nScreen );
79 : : }
80 : :
81 : 0 : rtl::OUString SvpSalSystem::GetDisplayScreenName( unsigned int nScreen )
82 : : {
83 : 0 : rtl::OUStringBuffer aBuf( 32 );
84 [ # # ]: 0 : aBuf.appendAscii( "VirtualScreen " );
85 [ # # ]: 0 : aBuf.append( sal_Int32(nScreen) );
86 [ # # ]: 0 : return aBuf.makeStringAndClear();
87 : : }
88 : :
89 : 0 : int SvpSalSystem::ShowNativeDialog( const rtl::OUString&, const rtl::OUString&,
90 : : const std::list< rtl::OUString >&, int )
91 : : {
92 : 0 : return 0;
93 : : }
94 : :
95 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|