106bcd5d2SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 306bcd5d2SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 406bcd5d2SAndrew Rist * or more contributor license agreements. See the NOTICE file 506bcd5d2SAndrew Rist * distributed with this work for additional information 606bcd5d2SAndrew Rist * regarding copyright ownership. The ASF licenses this file 706bcd5d2SAndrew Rist * to you under the Apache License, Version 2.0 (the 806bcd5d2SAndrew Rist * "License"); you may not use this file except in compliance 906bcd5d2SAndrew Rist * with the License. You may obtain a copy of the License at 1006bcd5d2SAndrew Rist * 1106bcd5d2SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 1206bcd5d2SAndrew Rist * 1306bcd5d2SAndrew Rist * Unless required by applicable law or agreed to in writing, 1406bcd5d2SAndrew Rist * software distributed under the License is distributed on an 1506bcd5d2SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1606bcd5d2SAndrew Rist * KIND, either express or implied. See the License for the 1706bcd5d2SAndrew Rist * specific language governing permissions and limitations 1806bcd5d2SAndrew Rist * under the License. 1906bcd5d2SAndrew Rist * 2006bcd5d2SAndrew Rist *************************************************************/ 2106bcd5d2SAndrew Rist 2206bcd5d2SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef PPPOPTIMIZERDIALOG_HXX 25*be7fbbeaSPedro Giffuni #define PPPOPTIMIZERDIALOG_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 #include <com/sun/star/lang/XMultiComponentFactory.hpp> 35cdf0e10cSrcweir #include <com/sun/star/lang/XInitialization.hpp> 36cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp> 37cdf0e10cSrcweir #include <com/sun/star/frame/XDispatch.hpp> 38cdf0e10cSrcweir #include <com/sun/star/frame/XDispatchProvider.hpp> 39597a4c59SAriel Constenla-Haile #include <com/sun/star/ui/dialogs/XExecutableDialog.hpp> 40597a4c59SAriel Constenla-Haile #include <com/sun/star/awt/XWindowPeer.hpp> 41597a4c59SAriel Constenla-Haile 42597a4c59SAriel Constenla-Haile #include <cppuhelper/implbase3.hxx> 43597a4c59SAriel Constenla-Haile #include <cppuhelper/basemutex.hxx> 44cdf0e10cSrcweir 45cdf0e10cSrcweir // ---------------------- 46cdf0e10cSrcweir // - PPPOptimizerDialog - 47cdf0e10cSrcweir // ---------------------- 48cdf0e10cSrcweir 49597a4c59SAriel Constenla-Haile class PPPOptimizerDialog : protected ::cppu::BaseMutex, 50597a4c59SAriel Constenla-Haile public ::cppu::WeakImplHelper3< 51cdf0e10cSrcweir com::sun::star::lang::XInitialization, 52cdf0e10cSrcweir com::sun::star::lang::XServiceInfo, 53597a4c59SAriel Constenla-Haile com::sun::star::ui::dialogs::XExecutableDialog > 54cdf0e10cSrcweir { 55597a4c59SAriel Constenla-Haile private: 56597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > m_xContext; 57597a4c59SAriel Constenla-Haile bool mbInitialized; 58597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame; 59597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::awt::XWindowPeer > mxParentWindow; 60597a4c59SAriel Constenla-Haile rtl::OUString msTitle; 61cdf0e10cSrcweir 62cdf0e10cSrcweir public: 63cdf0e10cSrcweir 64597a4c59SAriel Constenla-Haile PPPOptimizerDialog( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); 65cdf0e10cSrcweir virtual ~PPPOptimizerDialog(); 66cdf0e10cSrcweir 67cdf0e10cSrcweir // XInitialization 68cdf0e10cSrcweir void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) 69cdf0e10cSrcweir throw( com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException ); 70cdf0e10cSrcweir 71597a4c59SAriel Constenla-Haile virtual void SAL_CALL setTitle( const ::rtl::OUString& aTitle ) throw (::com::sun::star::uno::RuntimeException); 72597a4c59SAriel Constenla-Haile virtual ::sal_Int16 SAL_CALL execute( ) throw (::com::sun::star::uno::RuntimeException); 73597a4c59SAriel Constenla-Haile 74cdf0e10cSrcweir // XServiceInfo 75cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() 76cdf0e10cSrcweir throw( com::sun::star::uno::RuntimeException ); 77cdf0e10cSrcweir 78cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& sServiceName ) 79cdf0e10cSrcweir throw( com::sun::star::uno::RuntimeException ); 80cdf0e10cSrcweir 81cdf0e10cSrcweir virtual com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() 82cdf0e10cSrcweir throw( com::sun::star::uno::RuntimeException ); 83cdf0e10cSrcweir }; 84cdf0e10cSrcweir 85cdf0e10cSrcweir rtl::OUString PPPOptimizerDialog_getImplementationName(); 86cdf0e10cSrcweir com::sun::star::uno::Sequence< rtl::OUString > PPPOptimizerDialog_getSupportedServiceNames(); 87cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::uno::XInterface > PPPOptimizerDialog_createInstance( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & rSMgr ) 88cdf0e10cSrcweir throw( com::sun::star::uno::Exception ); 89cdf0e10cSrcweir 90cdf0e10cSrcweir // ----------------------------------------------------------------------------- 91cdf0e10cSrcweir 92cdf0e10cSrcweir #endif // PPPOPTIMIZERDIALOG_HXX 93