impoptimizer.hxx (e4a7f284) impoptimizer.hxx (880c69c6)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 21 unchanged lines hidden (view full) ---

30#include <com/sun/star/frame/XDispatch.hpp>
31#include <com/sun/star/frame/XModel.hpp>
32#include <com/sun/star/task/XStatusIndicator.hpp>
33#include <com/sun/star/beans/PropertyValue.hpp>
34#ifndef _COM_SUN_STAR_LANG_XMULTI_COMPONENT_FACTORY_HPP_
35#include <com/sun/star/lang/XMultiServiceFactory.hpp>
36#endif
37#include <com/sun/star/uno/XComponentContext.hpp>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 21 unchanged lines hidden (view full) ---

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