xref: /AOO41X/main/sdext/source/minimizer/pppoptimizerdialog.hxx (revision 06bcd5d2ad5bea957b02aca5287e5203820c7f8c)
1*06bcd5d2SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*06bcd5d2SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*06bcd5d2SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*06bcd5d2SAndrew Rist  * distributed with this work for additional information
6*06bcd5d2SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*06bcd5d2SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*06bcd5d2SAndrew Rist  * "License"); you may not use this file except in compliance
9*06bcd5d2SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*06bcd5d2SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*06bcd5d2SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*06bcd5d2SAndrew Rist  * software distributed under the License is distributed on an
15*06bcd5d2SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*06bcd5d2SAndrew Rist  * KIND, either express or implied.  See the License for the
17*06bcd5d2SAndrew Rist  * specific language governing permissions and limitations
18*06bcd5d2SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*06bcd5d2SAndrew Rist  *************************************************************/
21*06bcd5d2SAndrew Rist 
22*06bcd5d2SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef PPPOPTIMIZERDIALOG_HXX
25cdf0e10cSrcweir #define PPPOPTIMIZERDIALOGOG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h>
28cdf0e10cSrcweir #include <com/sun/star/document/XExporter.hpp>
29cdf0e10cSrcweir #include <com/sun/star/beans/XPropertyAccess.hpp>
30cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
31cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySetInfo.hpp>
32cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
33cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
34cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XMULTI_COMPONENT_FACTORY_HPP_
35cdf0e10cSrcweir #include <com/sun/star/lang/XMultiComponentFactory.hpp>
36cdf0e10cSrcweir #endif
37cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp>
38cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp>
39cdf0e10cSrcweir #include <com/sun/star/frame/XDispatch.hpp>
40cdf0e10cSrcweir #include <com/sun/star/frame/XDispatchProvider.hpp>
41cdf0e10cSrcweir #include <cppuhelper/implbase4.hxx>
42cdf0e10cSrcweir 
43cdf0e10cSrcweir // ----------------------
44cdf0e10cSrcweir // - PPPOptimizerDialog -
45cdf0e10cSrcweir // ----------------------
46cdf0e10cSrcweir 
47cdf0e10cSrcweir class OptimizerDialog;
48cdf0e10cSrcweir class PPPOptimizerDialog : public	::cppu::WeakImplHelper4<
49cdf0e10cSrcweir 									com::sun::star::lang::XInitialization,
50cdf0e10cSrcweir 									com::sun::star::lang::XServiceInfo,
51cdf0e10cSrcweir 									com::sun::star::frame::XDispatchProvider,
52cdf0e10cSrcweir 									com::sun::star::frame::XDispatch >
53cdf0e10cSrcweir {
54cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
55cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame;
56cdf0e10cSrcweir 	com::sun::star::uno::Reference< com::sun::star::frame::XController > mxController;
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	OptimizerDialog*	mpOptimizerDialog;
59cdf0e10cSrcweir 
60cdf0e10cSrcweir public:
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	PPPOptimizerDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxMSF );
63cdf0e10cSrcweir 	virtual	~PPPOptimizerDialog();
64cdf0e10cSrcweir 
65cdf0e10cSrcweir 	// XInitialization
66cdf0e10cSrcweir 	void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments )
67cdf0e10cSrcweir 		throw( com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	// XServiceInfo
70cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName()
71cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& sServiceName )
74cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
75cdf0e10cSrcweir 
76cdf0e10cSrcweir 	virtual com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
77cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
78cdf0e10cSrcweir 
79cdf0e10cSrcweir 	// XDispatchProvider
80cdf0e10cSrcweir 	virtual com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > SAL_CALL queryDispatch(
81cdf0e10cSrcweir 		const com::sun::star::util::URL& aURL, const rtl::OUString& aTargetFrameName, sal_Int32 nSearchFlags )
82cdf0e10cSrcweir 			throw(com::sun::star::uno::RuntimeException);
83cdf0e10cSrcweir 
84cdf0e10cSrcweir 	virtual com::sun::star::uno::Sequence< com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > > SAL_CALL queryDispatches(
85cdf0e10cSrcweir 		const com::sun::star::uno::Sequence< com::sun::star::frame::DispatchDescriptor >& aDescripts ) throw( com::sun::star::uno::RuntimeException );
86cdf0e10cSrcweir 
87cdf0e10cSrcweir     // XDispatch
88cdf0e10cSrcweir     virtual void SAL_CALL dispatch( const com::sun::star::util::URL& aURL,
89cdf0e10cSrcweir 										const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& lArguments )
90cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
91cdf0e10cSrcweir 
92cdf0e10cSrcweir     virtual void SAL_CALL addStatusListener( const com::sun::star::uno::Reference< com::sun::star::frame::XStatusListener >& xListener,
93cdf0e10cSrcweir 												const com::sun::star::util::URL& aURL )
94cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
95cdf0e10cSrcweir     virtual void SAL_CALL removeStatusListener( const com::sun::star::uno::Reference< com::sun::star::frame::XStatusListener >& xListener,
96cdf0e10cSrcweir 												const com::sun::star::util::URL& aURL )
97cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
98cdf0e10cSrcweir };
99cdf0e10cSrcweir 
100cdf0e10cSrcweir rtl::OUString PPPOptimizerDialog_getImplementationName();
101cdf0e10cSrcweir com::sun::star::uno::Sequence< rtl::OUString > PPPOptimizerDialog_getSupportedServiceNames();
102cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > PPPOptimizerDialog_createInstance( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & rSMgr )
103cdf0e10cSrcweir 	throw( com::sun::star::uno::Exception );
104cdf0e10cSrcweir 
105cdf0e10cSrcweir // -----------------------------------------------------------------------------
106cdf0e10cSrcweir 
107cdf0e10cSrcweir #endif // PPPOPTIMIZERDIALOG_HXX
108