xref: /aoo41x/main/vcl/inc/unx/salsys.h (revision cdf0e10c)
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 // -=-= includes -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
29 #ifndef _SV_SALSYS_H
30 #define _SV_SALSYS_H
31 
32 #include <vcl/sv.h>
33 #ifndef _VOS_MUTEX_HXX
34 #include <vos/mutex.hxx>
35 #endif
36 #ifndef _VOS_THREAD_HXX
37 #include <vos/thread.hxx>
38 #endif
39 #include <salsys.hxx>
40 #include <vclpluginapi.h>
41 
42 #include <list>
43 
44 class VCLPLUG_GEN_PUBLIC X11SalSystem : public SalSystem
45 {
46 public:
47     X11SalSystem() {}
48     virtual ~X11SalSystem();
49 
50     // overload pure virtual methods
51     virtual unsigned int GetDisplayScreenCount();
52     virtual bool IsMultiDisplay();
53     virtual unsigned int GetDefaultDisplayNumber();
54     virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen );
55     virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen );
56     virtual rtl::OUString GetScreenName( unsigned int nScreen );
57     virtual int ShowNativeDialog( const String& rTitle,
58                                   const String& rMessage,
59                                   const std::list< String >& rButtons,
60                                   int nDefButton );
61     virtual int ShowNativeMessageBox( const String& rTitle,
62                                       const String& rMessage,
63                                       int nButtonCombination,
64                                       int nDefaultButton);
65 };
66 
67 #endif // _SV_SALSYS_H
68