update dev300-m58
[ooovba.git] / sdext / source / minimizer / impoptimizer.hxx
blob67421bbb29ead158f7b2cfaa76e6cdafd3f2a9a8
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: impoptimizer.hxx,v $
10 * $Revision: 1.3 $
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 IMPOPTIMIZER_HXX
32 #define IMPOPTIMIZER_HXX
34 #include "pppoptimizertoken.hxx"
35 #include "optimizationstats.hxx"
36 #include <com/sun/star/uno/Sequence.h>
37 #include <com/sun/star/frame/XDispatch.hpp>
38 #include <com/sun/star/frame/XModel.hpp>
39 #include <com/sun/star/task/XStatusIndicator.hpp>
40 #include <com/sun/star/beans/PropertyValue.hpp>
41 #ifndef _COM_SUN_STAR_LANG_XMULTI_COMPONENT_FACTORY_HPP_
42 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
43 #endif
44 #include <com/sun/star/uno/XComponentContext.hpp>
46 class Point;
47 class Size;
49 // -------------
50 // - PDFExport -
51 // -------------
53 class ImpOptimizer : public OptimizationStats
55 private:
57 com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > mxMSF;
58 com::sun::star::uno::Reference< com::sun::star::frame::XModel > mxModel;
59 com::sun::star::uno::Reference< com::sun::star::frame::XDispatch > mxStatusDispatcher;
61 sal_Bool mbJPEGCompression;
62 sal_Int32 mnJPEGQuality;
63 sal_Bool mbRemoveCropArea;
64 sal_Int32 mnImageResolution;
65 sal_Bool mbEmbedLinkedGraphics;
66 sal_Bool mbOLEOptimization;
67 sal_Int32 mnOLEOptimizationType;
68 rtl::OUString maCustomShowName;
69 sal_Bool mbDeleteUnusedMasterPages;
70 sal_Bool mbDeleteHiddenSlides;
71 sal_Bool mbDeleteNotesPages;
72 rtl::OUString maSaveAsURL;
73 rtl::OUString maFilterName;
74 sal_Bool mbOpenNewDocument;
76 com::sun::star::uno::Reference< com::sun::star::frame::XFrame > mxInformationDialog;
78 sal_Bool Optimize();
80 public:
82 ImpOptimizer( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rXFactory,
83 const com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rxModel );
84 ~ImpOptimizer();
86 sal_Bool Optimize( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& rArguments );
87 void DispatchStatus();
90 #endif