LCOV - code coverage report
Current view: top level - sfx2/source/inc - fltoptint.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 5 0.0 %
Date: 2014-04-14 Functions: 0 7 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             : #ifndef INCLUDED_SFX2_SOURCE_INC_FLTOPTINT_HXX
      20             : #define INCLUDED_SFX2_SOURCE_INC_FLTOPTINT_HXX
      21             : 
      22             : #include <com/sun/star/document/FilterOptionsRequest.hpp>
      23             : #include <com/sun/star/document/XInteractionFilterOptions.hpp>
      24             : #include <com/sun/star/frame/XModel.hpp>
      25             : #include <comphelper/interaction.hxx>
      26             : 
      27             : //using namespace ::framework;
      28             : 
      29           0 : class FilterOptionsContinuation : public comphelper::OInteraction< ::com::sun::star::document::XInteractionFilterOptions >
      30             : {
      31             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties;
      32             : 
      33             : public:
      34             :     virtual void SAL_CALL setFilterOptions( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProp ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      35             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getFilterOptions(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      36             : };
      37             : 
      38           0 : class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::task::XInteractionRequest >
      39             : {
      40             :     ::com::sun::star::uno::Any m_aRequest;
      41             : 
      42             :     ::com::sun::star::uno::Sequence<
      43             :                     ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
      44             :                 > m_lContinuations;
      45             : 
      46             :     comphelper::OInteractionAbort*  m_pAbort;
      47             : 
      48             :     FilterOptionsContinuation*  m_pOptions;
      49             : 
      50             : public:
      51             :     RequestFilterOptions( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > rModel,
      52             :                               ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties );
      53             : 
      54           0 :     bool    isAbort() { return m_pAbort->wasSelected(); }
      55             : 
      56           0 :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > getFilterOptions()
      57             :     {
      58           0 :         return m_pOptions->getFilterOptions();
      59             :     }
      60             : 
      61             :     virtual ::com::sun::star::uno::Any SAL_CALL getRequest()
      62             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      63             : 
      64             :     virtual ::com::sun::star::uno::Sequence<
      65             :                 ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionContinuation >
      66             :             > SAL_CALL getContinuations()
      67             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      68             : };
      69             : 
      70             : #endif
      71             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10