fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / vcl / inc / win / salsys.h
blob9c80b0641bc2847fb2153af62e86bcade1fd4e6e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #ifndef _SV_SALSYS_H
21 #define _SV_SALSYS_H
23 #include <salsys.hxx>
25 #include <vector>
26 #include <map>
28 class WinSalSystem : public SalSystem
30 public:
31 struct DisplayMonitor
33 OUString m_aName;
34 OUString m_aDeviceName;
35 Rectangle m_aArea;
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,
44 DWORD nStateFlags )
45 : m_aName( rName ),
46 m_aDeviceName( rDevName ),
47 m_aArea( rArea ),
48 m_aWorkArea( rWorkArea ),
49 m_nStateFlags( nStateFlags )
52 ~DisplayMonitor() {}
54 private:
55 std::vector<DisplayMonitor> m_aMonitors;
56 std::map<OUString, unsigned int> m_aDeviceNameToMonitor;
57 unsigned int m_nPrimary;
58 public:
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);
71 bool initMonitors();
72 // discards monitorinfo; used by WM_DISPLAYCHANGED handler
73 void clearMonitors();
74 const std::vector<DisplayMonitor>& getMonitors()
75 { initMonitors(); return m_aMonitors;}
77 sal_Bool handleMonitorCallback( sal_IntPtr /*HMONITOR*/,
78 sal_IntPtr /*HDC*/,
79 sal_IntPtr /*LPRECT*/ );
82 #endif // _SV_SALSYS_H
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */