cid#1640468 Dereference after null check
[LibreOffice.git] / sdext / source / minimizer / impoptimizer.hxx
blob98d22e71d137e21f9a4000e0cf0bb5f884840ee8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_IMPOPTIMIZER_HXX
21 #define INCLUDED_SDEXT_SOURCE_MINIMIZER_IMPOPTIMIZER_HXX
23 #include "optimizationstats.hxx"
24 #include <com/sun/star/uno/Sequence.h>
25 #include <com/sun/star/frame/XDispatch.hpp>
26 #include <com/sun/star/frame/XModel.hpp>
27 #include <com/sun/star/beans/PropertyValue.hpp>
28 #include <com/sun/star/uno/XComponentContext.hpp>
31 class ImpOptimizer : public OptimizationStats
33 private:
35 css::uno::Reference< css::uno::XComponentContext > mxContext;
36 css::uno::Reference< css::frame::XModel > mxModel;
37 css::uno::Reference< css::frame::XDispatch > mxStatusDispatcher;
38 css::uno::Reference<css::frame::XFrame> mxDocumentFrame;
39 css::uno::Reference<css::awt::XWindow> mxDialogParentWindow;
41 bool mbJPEGCompression;
42 sal_Int32 mnJPEGQuality;
43 bool mbRemoveCropArea;
44 sal_Int32 mnImageResolution;
45 bool mbEmbedLinkedGraphics;
46 bool mbOLEOptimization;
47 sal_Int32 mnOLEOptimizationType;
48 OUString maCustomShowName;
49 bool mbDeleteUnusedMasterPages;
50 bool mbDeleteHiddenSlides;
51 bool mbDeleteNotesPages;
52 OUString maSaveAsURL;
53 OUString maFilterName;
54 bool mbOpenNewDocument;
56 void Optimize();
58 public:
60 ImpOptimizer( const css::uno::Reference< css::uno::XComponentContext >& rXFactory,
61 const css::uno::Reference< css::frame::XModel >& rxModel );
62 ~ImpOptimizer();
64 void Optimize( const css::uno::Sequence< css::beans::PropertyValue >& rArguments );
65 void DispatchStatus();
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */