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