Bump for 3.6-28
[LibreOffice.git] / chart2 / source / controller / inc / dlg_CreationWizard_UNO.hxx
blob9f66c7c7d0bb02f4e29e2e3ffb5394582b9cf30c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _CHART2_CREATION_WIZARD_UNO_HXX
30 #define _CHART2_CREATION_WIZARD_UNO_HXX
32 #include "ServiceMacros.hxx"
33 #include "MutexContainer.hxx"
34 #include <cppuhelper/component.hxx>
35 #include <com/sun/star/awt/XWindow.hpp>
36 #include <com/sun/star/beans/XPropertySet.hpp>
37 #include <com/sun/star/frame/XModel.hpp>
38 #include <com/sun/star/frame/XTerminateListener.hpp>
39 #include <com/sun/star/lang/XInitialization.hpp>
40 #include <com/sun/star/lang/XServiceInfo.hpp>
41 #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp>
42 #include <com/sun/star/uno/XComponentContext.hpp>
44 // header for define DECL_LINK
45 #include <tools/link.hxx>
46 #include <vcl/vclevent.hxx>
48 //.............................................................................
49 namespace chart
51 //.............................................................................
53 class CreationWizard;
54 class CreationWizardUnoDlg : public MutexContainer
55 , public ::cppu::OComponentHelper
56 , public ::com::sun::star::ui::dialogs::XExecutableDialog
57 , public ::com::sun::star::lang::XServiceInfo
58 , public ::com::sun::star::lang::XInitialization
59 , public ::com::sun::star::frame::XTerminateListener
60 , public ::com::sun::star::beans::XPropertySet
62 public:
63 CreationWizardUnoDlg( const ::com::sun::star::uno::Reference<
64 ::com::sun::star::uno::XComponentContext >& xContext );
65 virtual ~CreationWizardUnoDlg();
67 // XInterface
68 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
69 virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( ::com::sun::star::uno::Type const & rType ) throw (::com::sun::star::uno::RuntimeException);
70 virtual void SAL_CALL acquire() throw ();
71 virtual void SAL_CALL release() throw ();
73 // XTypeProvider
74 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
75 virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) throw (::com::sun::star::uno::RuntimeException);
77 // XServiceInfo
78 APPHELPER_XSERVICEINFO_DECL()
79 APPHELPER_SERVICE_FACTORY_HELPER(CreationWizardUnoDlg)
81 // XExecutableDialog
82 virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) throw (::com::sun::star::uno::RuntimeException);
83 virtual sal_Int16 SAL_CALL execute( ) throw (::com::sun::star::uno::RuntimeException);
85 // XInitialization
86 virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
88 // XTerminateListener
89 virtual void SAL_CALL queryTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::frame::TerminationVetoException, ::com::sun::star::uno::RuntimeException);
90 virtual void SAL_CALL notifyTermination( const ::com::sun::star::lang::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException);
92 virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
94 //XPropertySet
95 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException);
96 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
97 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
98 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
99 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
100 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
101 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw (::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException);
103 DECL_LINK( DialogEventHdl, VclWindowEvent* );
105 protected:
106 // ____ OComponentHelper ____
107 /// Called in dispose method after the listeners were notified.
108 virtual void SAL_CALL disposing();
110 private:
111 //no default constructor
112 CreationWizardUnoDlg();
113 void createDialogOnDemand();
115 private:
116 ::com::sun::star::uno::Reference<
117 ::com::sun::star::frame::XModel > m_xChartModel;
118 ::com::sun::star::uno::Reference<
119 ::com::sun::star::uno::XComponentContext> m_xCC;
120 com::sun::star::uno::Reference<
121 com::sun::star::awt::XWindow > m_xParentWindow;
123 CreationWizard* m_pDialog;
124 sal_Bool m_bUnlockControllersOnExecute;
127 //.............................................................................
128 } //namespace chart
129 //.............................................................................
130 #endif
132 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */