merge the formfield patch from ooo-build
[ooovba.git] / toolkit / source / awt / vclxdialog.hxx
blob9f6851ad169523a1e46fdf7bcc7c7137d61436af
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: vclxdialog.hxx,v $
11 * $Revision: 1.4 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #ifndef LAYOUT_AWT_VCLXDIALOG_HXX
33 #define LAYOUT_AWT_VCLXDIALOG_HXX
35 #include <com/sun/star/awt/XDialog2.hpp>
36 #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
37 #include <com/sun/star/awt/XTopWindow.hpp>
38 #include <comphelper/uno3.hxx>
39 #include <layout/core/bin.hxx>
40 #include <toolkit/awt/vclxtopwindow.hxx>
42 namespace layoutimpl
45 typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XDialog2 > VCLXDialog_Base;
47 class TOOLKIT_DLLPUBLIC VCLXDialog : public VCLXWindow
48 , public VCLXTopWindow_Base
49 , public VCLXDialog_Base
50 , public Bin
52 private:
53 bool bRealized, bResizeSafeguard;
54 css::uno::Reference< css::awt::XLayoutUnit > mxLayoutUnit;
56 VCLXDialog( const VCLXDialog& ); // never implemented
57 VCLXDialog& operator=( const VCLXDialog& ); // never implemented
59 protected:
60 vos::IMutex& GetMutexImpl();
61 Window* GetWindowImpl();
62 ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl();
64 ~VCLXDialog();
66 // XInterface
67 DECLARE_XINTERFACE()
69 // XTypeProvider
70 DECLARE_XTYPEPROVIDER()
72 // XComponent
73 void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException);
75 // VclWindowPeer
76 virtual void SAL_CALL setProperty( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Any& Value ) throw(::com::sun::star::uno::RuntimeException);
77 virtual ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException);
79 // VCLXWindow
80 void ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent );
82 // ::com::sun::star::awt::XDialog
83 void SAL_CALL setTitle( const ::rtl::OUString& Title ) throw(::com::sun::star::uno::RuntimeException);
84 ::rtl::OUString SAL_CALL getTitle() throw(::com::sun::star::uno::RuntimeException);
85 sal_Int16 SAL_CALL execute() throw(::com::sun::star::uno::RuntimeException);
86 void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException);
88 // ::com::sun::star::awt::XLayoutContainer
89 virtual void SAL_CALL allocateArea( const css::awt::Rectangle &rArea )
90 throw (css::uno::RuntimeException);
92 void resizedCb();
94 static void ImplGetPropertyIds( std::list< sal_uInt16 > &/*aIds*/ )
97 virtual void GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
100 public:
101 VCLXDialog();
103 // ::com::sun::star::awt::XDialog2
104 void SAL_CALL endDialog( sal_Int32 nResult ) throw(::com::sun::star::uno::RuntimeException);
105 void SAL_CALL setHelpId( sal_Int32 id ) throw(::com::sun::star::uno::RuntimeException);
109 } // namespace layoutimpl
111 #endif /* LAYOUT_AWT_VCLXDIALOG_HXX */