fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sdext / source / minimizer / informationdialog.hxx
blobd674e08986c52f5895001a3246d66f1e4398cdeb
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_INFORMATIONDIALOG_HXX
21 #define INCLUDED_SDEXT_SOURCE_MINIMIZER_INFORMATIONDIALOG_HXX
23 #include "unodialog.hxx"
24 #include "configurationaccess.hxx"
25 #include "pppoptimizertoken.hxx"
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/awt/XItemListener.hpp>
28 #include <com/sun/star/beans/XPropertySet.hpp>
29 #include <com/sun/star/uno/Sequence.h>
30 #include <com/sun/star/text/XTextRange.hpp>
31 #include <com/sun/star/drawing/XShapes.hpp>
32 #include <com/sun/star/container/XIndexAccess.hpp>
33 #include <com/sun/star/frame/XController.hpp>
34 #include <com/sun/star/view/XSelectionSupplier.hpp>
35 #include <com/sun/star/uno/XComponentContext.hpp>
36 #include <com/sun/star/awt/XItemEventBroadcaster.hpp>
37 #include <com/sun/star/frame/XStorable.hpp>
38 #include <com/sun/star/frame/XDispatch.hpp>
39 #include <com/sun/star/awt/PushButtonType.hpp>
40 #include <com/sun/star/io/XStream.hpp>
43 // - InformationDialog -
45 class InformationDialog : public UnoDialog, public ConfigurationAccess
47 public :
49 InformationDialog( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
50 css::uno::Reference< css::frame::XFrame >& rxFrame, const OUString& rSaveAsURL,
51 bool& bOpenNewDocument, const sal_Int64& nSourceSize, const sal_Int64& nDestSize, const sal_Int64& nApproxDest );
52 ~InformationDialog();
54 bool execute();
56 private :
58 css::uno::Reference< css::frame::XFrame > mxFrame;
59 css::uno::Reference< css::io::XStream > mxTempFile;
61 css::uno::Reference< css::awt::XActionListener > mxActionListener;
63 void InitDialog();
65 sal_Int64 mnSourceSize;
66 sal_Int64 mnDestSize;
67 sal_Int64 mnApproxSize;
68 bool& mrbOpenNewDocument;
69 const OUString& maSaveAsURL;
71 public :
73 css::uno::Reference< css::frame::XFrame>& GetFrame() { return mxFrame; };
76 class OKActionListener : public ::cppu::WeakImplHelper1< css::awt::XActionListener >
78 public:
79 OKActionListener( InformationDialog& rInformationDialog ) : mrInformationDialog( rInformationDialog ){};
81 virtual void SAL_CALL actionPerformed( const css::awt::ActionEvent& Event ) throw ( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
82 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw ( css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
83 private:
85 InformationDialog& mrInformationDialog;
88 #endif
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */