1*24f6443dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*24f6443dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*24f6443dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*24f6443dSAndrew Rist * distributed with this work for additional information 6*24f6443dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*24f6443dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*24f6443dSAndrew Rist * "License"); you may not use this file except in compliance 9*24f6443dSAndrew Rist * with the License. You may obtain a copy of the License at 10*24f6443dSAndrew Rist * 11*24f6443dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*24f6443dSAndrew Rist * 13*24f6443dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*24f6443dSAndrew Rist * software distributed under the License is distributed on an 15*24f6443dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*24f6443dSAndrew Rist * KIND, either express or implied. See the License for the 17*24f6443dSAndrew Rist * specific language governing permissions and limitations 18*24f6443dSAndrew Rist * under the License. 19*24f6443dSAndrew Rist * 20*24f6443dSAndrew Rist *************************************************************/ 21*24f6443dSAndrew Rist 22*24f6443dSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // -=-= includes -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 25cdf0e10cSrcweir #ifndef _SV_SALSYS_H 26cdf0e10cSrcweir #define _SV_SALSYS_H 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <vcl/sv.h> 29cdf0e10cSrcweir #ifndef _VOS_MUTEX_HXX 30cdf0e10cSrcweir #include <vos/mutex.hxx> 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #ifndef _VOS_THREAD_HXX 33cdf0e10cSrcweir #include <vos/thread.hxx> 34cdf0e10cSrcweir #endif 35cdf0e10cSrcweir #include <salsys.hxx> 36cdf0e10cSrcweir #include <vclpluginapi.h> 37cdf0e10cSrcweir 38cdf0e10cSrcweir #include <list> 39cdf0e10cSrcweir 40cdf0e10cSrcweir class VCLPLUG_GEN_PUBLIC X11SalSystem : public SalSystem 41cdf0e10cSrcweir { 42cdf0e10cSrcweir public: X11SalSystem()43cdf0e10cSrcweir X11SalSystem() {} 44cdf0e10cSrcweir virtual ~X11SalSystem(); 45cdf0e10cSrcweir 46cdf0e10cSrcweir // overload pure virtual methods 47cdf0e10cSrcweir virtual unsigned int GetDisplayScreenCount(); 48cdf0e10cSrcweir virtual bool IsMultiDisplay(); 49cdf0e10cSrcweir virtual unsigned int GetDefaultDisplayNumber(); 50cdf0e10cSrcweir virtual Rectangle GetDisplayScreenPosSizePixel( unsigned int nScreen ); 51cdf0e10cSrcweir virtual Rectangle GetDisplayWorkAreaPosSizePixel( unsigned int nScreen ); 52cdf0e10cSrcweir virtual rtl::OUString GetScreenName( unsigned int nScreen ); 53cdf0e10cSrcweir virtual int ShowNativeDialog( const String& rTitle, 54cdf0e10cSrcweir const String& rMessage, 55cdf0e10cSrcweir const std::list< String >& rButtons, 56cdf0e10cSrcweir int nDefButton ); 57cdf0e10cSrcweir virtual int ShowNativeMessageBox( const String& rTitle, 58cdf0e10cSrcweir const String& rMessage, 59cdf0e10cSrcweir int nButtonCombination, 60cdf0e10cSrcweir int nDefaultButton); 61cdf0e10cSrcweir }; 62cdf0e10cSrcweir 63cdf0e10cSrcweir #endif // _SV_SALSYS_H 64