LCOV - code coverage report
Current view: top level - sdext/source/minimizer - informationdialog.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 2 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      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 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_SDEXT_SOURCE_MINIMIZER_INFORMATIONDIALOG_HXX
      21             : #define INCLUDED_SDEXT_SOURCE_MINIMIZER_INFORMATIONDIALOG_HXX
      22             : 
      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>
      41             : 
      42             : 
      43             : // - InformationDialog -
      44             : 
      45             : class InformationDialog : public UnoDialog, public ConfigurationAccess
      46             : {
      47             : public :
      48             : 
      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();
      53             : 
      54             :     bool                execute();
      55             : 
      56             : private :
      57             : 
      58             :     css::uno::Reference< css::frame::XFrame >         mxFrame;
      59             :     css::uno::Reference< css::io::XStream >           mxTempFile;
      60             : 
      61             :     css::uno::Reference< css::awt::XActionListener >  mxActionListener;
      62             : 
      63             :     void InitDialog();
      64             : 
      65             :     sal_Int64 mnSourceSize;
      66             :     sal_Int64 mnDestSize;
      67             :     sal_Int64 mnApproxSize;
      68             :     bool& mrbOpenNewDocument;
      69             :     const OUString& maSaveAsURL;
      70             : 
      71             : public :
      72             : 
      73             :     css::uno::Reference< css::frame::XFrame>& GetFrame() { return mxFrame; };
      74             : };
      75             : 
      76           0 : class OKActionListener : public ::cppu::WeakImplHelper1< css::awt::XActionListener >
      77             : {
      78             : public:
      79           0 :     OKActionListener( InformationDialog& rInformationDialog ) : mrInformationDialog( rInformationDialog ){};
      80             : 
      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:
      84             : 
      85             :     InformationDialog& mrInformationDialog;
      86             : };
      87             : 
      88             : #endif
      89             : 
      90             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11