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 IMPOPTIMIZER_HXX 25cdf0e10cSrcweir #define IMPOPTIMIZER_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "pppoptimizertoken.hxx" 28cdf0e10cSrcweir #include "optimizationstats.hxx" 29cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.h> 30cdf0e10cSrcweir #include <com/sun/star/frame/XDispatch.hpp> 31cdf0e10cSrcweir #include <com/sun/star/frame/XModel.hpp> 32cdf0e10cSrcweir #include <com/sun/star/task/XStatusIndicator.hpp> 33cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp> 34cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XMULTI_COMPONENT_FACTORY_HPP_ 35cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp> 36cdf0e10cSrcweir #endif 37cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp> 38*597a4c59SAriel Constenla-Haile #include <com/sun/star/awt/XWindowPeer.hpp> 39cdf0e10cSrcweir 40cdf0e10cSrcweir class Point; 41cdf0e10cSrcweir class Size; 42cdf0e10cSrcweir 43cdf0e10cSrcweir // ------------- 44cdf0e10cSrcweir // - PDFExport - 45cdf0e10cSrcweir // ------------- 46cdf0e10cSrcweir 47cdf0e10cSrcweir class ImpOptimizer : public OptimizationStats 48cdf0e10cSrcweir { 49cdf0e10cSrcweir private: 50cdf0e10cSrcweir 51*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxContext; 52cdf0e10cSrcweir com::sun::star::uno::Reference< com::sun::star::frame::XModel > mxModel; 53*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::frame::XStatusListener > mxStatusListener; 54cdf0e10cSrcweir 55cdf0e10cSrcweir sal_Bool mbJPEGCompression; 56cdf0e10cSrcweir sal_Int32 mnJPEGQuality; 57cdf0e10cSrcweir sal_Bool mbRemoveCropArea; 58cdf0e10cSrcweir sal_Int32 mnImageResolution; 59cdf0e10cSrcweir sal_Bool mbEmbedLinkedGraphics; 60cdf0e10cSrcweir sal_Bool mbOLEOptimization; 61cdf0e10cSrcweir sal_Int32 mnOLEOptimizationType; 62cdf0e10cSrcweir rtl::OUString maCustomShowName; 63cdf0e10cSrcweir sal_Bool mbDeleteUnusedMasterPages; 64cdf0e10cSrcweir sal_Bool mbDeleteHiddenSlides; 65cdf0e10cSrcweir sal_Bool mbDeleteNotesPages; 66cdf0e10cSrcweir rtl::OUString maSaveAsURL; 67cdf0e10cSrcweir rtl::OUString maFilterName; 68cdf0e10cSrcweir sal_Bool mbOpenNewDocument; 69cdf0e10cSrcweir 70*597a4c59SAriel Constenla-Haile com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxFrame; 71cdf0e10cSrcweir 72*597a4c59SAriel Constenla-Haile sal_Bool ImplOptimize(); 73cdf0e10cSrcweir 74cdf0e10cSrcweir public: 75cdf0e10cSrcweir 76cdf0e10cSrcweir ImpOptimizer( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rXFactory, 77cdf0e10cSrcweir const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rxModel ); 78cdf0e10cSrcweir ~ImpOptimizer(); 79cdf0e10cSrcweir 80cdf0e10cSrcweir sal_Bool Optimize( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rArguments ); 81cdf0e10cSrcweir void DispatchStatus(); 82cdf0e10cSrcweir }; 83cdf0e10cSrcweir 84cdf0e10cSrcweir #endif 85