update dev300-m58
[ooovba.git] / sdext / source / minimizer / pppoptimizerdialog.hxx
blobfe61b952c0422febaa012e80dee6db69a2ec85e7
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: pppoptimizerdialog.hxx,v $
10 * $Revision: 1.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef PPPOPTIMIZERDIALOG_HXX
32 #define PPPOPTIMIZERDIALOGOG_HXX
34 #include <com/sun/star/uno/Sequence.h>
35 #include <com/sun/star/document/XExporter.hpp>
36 #include <com/sun/star/beans/XPropertyAccess.hpp>
37 #include <com/sun/star/beans/PropertyValue.hpp>
38 #include <com/sun/star/beans/XPropertySetInfo.hpp>
39 #include <com/sun/star/lang/XServiceInfo.hpp>
40 #include <com/sun/star/uno/XComponentContext.hpp>
41 #ifndef _COM_SUN_STAR_LANG_XMULTI_COMPONENT_FACTORY_HPP_
42 #include <com/sun/star/lang/XMultiComponentFactory.hpp>
43 #endif
44 #include <com/sun/star/lang/XInitialization.hpp>
45 #include <com/sun/star/frame/XController.hpp>
46 #include <com/sun/star/frame/XDispatch.hpp>
47 #include <com/sun/star/frame/XDispatchProvider.hpp>
48 #include <cppuhelper/implbase4.hxx>
50 // ----------------------
51 // - PPPOptimizerDialog -
52 // ----------------------
54 class OptimizerDialog;
55 class PPPOptimizerDialog : public ::cppu::WeakImplHelper4<
56 com::sun::star::lang::XInitialization,
57 com::sun::star::lang::XServiceInfo,
58 com::sun::star::frame::XDispatchProvider,
59 com::sun::star::frame::XDispatch >
61 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
62 com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
63 com::sun::star::uno::Reference< com::sun::star::frame::XController > mxController;
65 OptimizerDialog* mpOptimizerDialog;
67 public:
69 PPPOptimizerDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxMSF );
70 virtual ~PPPOptimizerDialog();
72 // XInitialization
73 void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
74 throw( com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException );
76 // XServiceInfo
77 virtual ::rtl::OUString SAL_CALL getImplementationName()
78 throw( com::sun::star::uno::RuntimeException );
80 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& sServiceName )
81 throw( com::sun::star::uno::RuntimeException );
83 virtual com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
84 throw( com::sun::star::uno::RuntimeException );
86 // XDispatchProvider
87 virtual com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > SAL_CALL queryDispatch(
88 const com::sun::star::util::URL& aURL, const rtl::OUString& aTargetFrameName, sal_Int32 nSearchFlags )
89 throw(com::sun::star::uno::RuntimeException);
91 virtual com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches(
92 const com::sun::star::uno::Sequence< com::sun::star::frame::DispatchDescriptor >& aDescripts ) throw( com::sun::star::uno::RuntimeException );
94 // XDispatch
95 virtual void SAL_CALL dispatch( const com::sun::star::util::URL& aURL,
96 const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& lArguments )
97 throw( com::sun::star::uno::RuntimeException );
99 virtual void SAL_CALL addStatusListener( const com::sun::star::uno::Reference< com::sun::star::frame::XStatusListener >& xListener,
100 const com::sun::star::util::URL& aURL )
101 throw( com::sun::star::uno::RuntimeException );
102 virtual void SAL_CALL removeStatusListener( const com::sun::star::uno::Reference< com::sun::star::frame::XStatusListener >& xListener,
103 const com::sun::star::util::URL& aURL )
104 throw( com::sun::star::uno::RuntimeException );
107 rtl::OUString PPPOptimizerDialog_getImplementationName();
108 com::sun::star::uno::Sequence< rtl::OUString > PPPOptimizerDialog_getSupportedServiceNames();
109 com::sun::star::uno::Reference< com::sun::star::uno::XInterface > PPPOptimizerDialog_createInstance( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & rSMgr )
110 throw( com::sun::star::uno::Exception );
112 // -----------------------------------------------------------------------------
114 #endif // PPPOPTIMIZERDIALOG_HXX