1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
28 class WinSalSystem
: public SalSystem
34 OUString m_aDeviceName
;
36 Rectangle m_aWorkArea
;
37 sal_Int32 m_nStateFlags
;
39 DisplayMonitor() : m_nStateFlags( 0 ) {}
40 DisplayMonitor( const OUString
& rName
,
41 const OUString
& rDevName
,
42 const Rectangle
& rArea
,
43 const Rectangle
& rWorkArea
,
46 m_aDeviceName( rDevName
),
48 m_aWorkArea( rWorkArea
),
49 m_nStateFlags( nStateFlags
)
55 std::vector
<DisplayMonitor
> m_aMonitors
;
56 std::map
<OUString
, unsigned int> m_aDeviceNameToMonitor
;
57 unsigned int m_nPrimary
;
59 WinSalSystem() : m_nPrimary( 0 ) {}
60 virtual ~WinSalSystem();
62 virtual unsigned int GetDisplayScreenCount();
63 virtual unsigned int GetDisplayBuiltInScreen();
64 virtual Rectangle
GetDisplayScreenPosSizePixel( unsigned int nScreen
);
65 virtual Rectangle
GetDisplayScreenWorkAreaPosSizePixel( unsigned int nScreen
);
66 virtual OUString
GetDisplayScreenName( unsigned int nScreen
);
67 virtual int ShowNativeMessageBox( const OUString
& rTitle
,
68 const OUString
& rMessage
,
69 int nButtonCombination
,
70 int nDefaultButton
, bool bUseResources
);
72 // discards monitorinfo; used by WM_DISPLAYCHANGED handler
74 const std::vector
<DisplayMonitor
>& getMonitors()
75 { initMonitors(); return m_aMonitors
;}
77 sal_Bool
handleMonitorCallback( sal_IntPtr
/*HMONITOR*/,
79 sal_IntPtr
/*LPRECT*/ );
82 #endif // _SV_SALSYS_H
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */