1*50e6b072SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*50e6b072SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*50e6b072SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*50e6b072SAndrew Rist * distributed with this work for additional information 6*50e6b072SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*50e6b072SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*50e6b072SAndrew Rist * "License"); you may not use this file except in compliance 9*50e6b072SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*50e6b072SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*50e6b072SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*50e6b072SAndrew Rist * software distributed under the License is distributed on an 15*50e6b072SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*50e6b072SAndrew Rist * KIND, either express or implied. See the License for the 17*50e6b072SAndrew Rist * specific language governing permissions and limitations 18*50e6b072SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*50e6b072SAndrew Rist *************************************************************/ 21*50e6b072SAndrew Rist 22*50e6b072SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef LAYOUT_AWT_VCLXDIALOG_HXX 25cdf0e10cSrcweir #define LAYOUT_AWT_VCLXDIALOG_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <com/sun/star/awt/XDialog2.hpp> 28cdf0e10cSrcweir #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp> 29cdf0e10cSrcweir #include <com/sun/star/awt/XTopWindow.hpp> 30cdf0e10cSrcweir #include <comphelper/uno3.hxx> 31cdf0e10cSrcweir #include <layout/core/bin.hxx> 32cdf0e10cSrcweir #include <toolkit/awt/vclxtopwindow.hxx> 33cdf0e10cSrcweir 34cdf0e10cSrcweir namespace layoutimpl 35cdf0e10cSrcweir { 36cdf0e10cSrcweir 37cdf0e10cSrcweir typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XDialog2 > VCLXDialog_Base; 38cdf0e10cSrcweir 39cdf0e10cSrcweir class TOOLKIT_DLLPUBLIC VCLXDialog : public VCLXWindow 40cdf0e10cSrcweir , public VCLXTopWindow_Base 41cdf0e10cSrcweir , public VCLXDialog_Base 42cdf0e10cSrcweir , public Bin 43cdf0e10cSrcweir { 44cdf0e10cSrcweir private: 45cdf0e10cSrcweir bool bRealized, bResizeSafeguard; 46cdf0e10cSrcweir css::uno::Reference< css::awt::XLayoutUnit > mxLayoutUnit; 47cdf0e10cSrcweir 48cdf0e10cSrcweir VCLXDialog( const VCLXDialog& ); // never implemented 49cdf0e10cSrcweir VCLXDialog& operator=( const VCLXDialog& ); // never implemented 50cdf0e10cSrcweir 51cdf0e10cSrcweir protected: 52cdf0e10cSrcweir vos::IMutex& GetMutexImpl(); 53cdf0e10cSrcweir Window* GetWindowImpl(); 54cdf0e10cSrcweir ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl(); 55cdf0e10cSrcweir 56cdf0e10cSrcweir ~VCLXDialog(); 57cdf0e10cSrcweir 58cdf0e10cSrcweir // XInterface 59cdf0e10cSrcweir DECLARE_XINTERFACE() 60cdf0e10cSrcweir 61cdf0e10cSrcweir // XTypeProvider 62cdf0e10cSrcweir DECLARE_XTYPEPROVIDER() 63cdf0e10cSrcweir 64cdf0e10cSrcweir // XComponent 65cdf0e10cSrcweir void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException); 66cdf0e10cSrcweir 67cdf0e10cSrcweir // VclWindowPeer 68cdf0e10cSrcweir virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException); 69cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException); 70cdf0e10cSrcweir 71cdf0e10cSrcweir // VCLXWindow 72cdf0e10cSrcweir void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent ); 73cdf0e10cSrcweir 74cdf0e10cSrcweir // ::com::sun::star::awt::XDialog 75cdf0e10cSrcweir void SAL_CALL setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException); 76cdf0e10cSrcweir ::rtl::OUString SAL_CALL getTitle() throw(::com::sun::star::uno::RuntimeException); 77cdf0e10cSrcweir sal_Int16 SAL_CALL execute() throw(::com::sun::star::uno::RuntimeException); 78cdf0e10cSrcweir void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException); 79cdf0e10cSrcweir 80cdf0e10cSrcweir // ::com::sun::star::awt::XLayoutContainer 81cdf0e10cSrcweir virtual void SAL_CALL allocateArea( const css::awt::Rectangle &rArea ) 82cdf0e10cSrcweir throw (css::uno::RuntimeException); 83cdf0e10cSrcweir 84cdf0e10cSrcweir void resizedCb(); 85cdf0e10cSrcweir ImplGetPropertyIds(std::list<sal_uInt16> &)86cdf0e10cSrcweir static void ImplGetPropertyIds( std::list< sal_uInt16 > &/*aIds*/ ) 87cdf0e10cSrcweir { 88cdf0e10cSrcweir } GetPropertyIds(std::list<sal_uInt16> & aIds)89cdf0e10cSrcweir virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); } 90cdf0e10cSrcweir 91cdf0e10cSrcweir 92cdf0e10cSrcweir public: 93cdf0e10cSrcweir VCLXDialog(); 94cdf0e10cSrcweir 95cdf0e10cSrcweir // ::com::sun::star::awt::XDialog2 96cdf0e10cSrcweir void SAL_CALL endDialog( sal_Int32 nResult ) throw(::com::sun::star::uno::RuntimeException); 97cdf0e10cSrcweir void SAL_CALL setHelpId( const rtl::OUString& id ) throw(::com::sun::star::uno::RuntimeException); 98cdf0e10cSrcweir 99cdf0e10cSrcweir }; 100cdf0e10cSrcweir 101cdf0e10cSrcweir } // namespace layoutimpl 102cdf0e10cSrcweir 103cdf0e10cSrcweir #endif /* LAYOUT_AWT_VCLXDIALOG_HXX */ 104