LCOV - code coverage report
Current view: top level - chart2/source/controller/main - ChartFrameloader.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 1 1 100.0 %
Date: 2014-04-11 Functions: 1 1 100.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_CHART2_SOURCE_CONTROLLER_MAIN_CHARTFRAMELOADER_HXX
      20             : #define INCLUDED_CHART2_SOURCE_CONTROLLER_MAIN_CHARTFRAMELOADER_HXX
      21             : 
      22             : #include "ServiceMacros.hxx"
      23             : #include <osl/conditn.hxx>
      24             : #include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
      25             : #include <com/sun/star/lang/XServiceInfo.hpp>
      26             : #include <com/sun/star/uno/XComponentContext.hpp>
      27             : #include <cppuhelper/implbase2.hxx>
      28             : 
      29             : namespace chart
      30             : {
      31             : 
      32             : class ChartFrameLoader : public ::cppu::WeakImplHelper2<
      33             :          ::com::sun::star::frame::XSynchronousFrameLoader
      34             :          , ::com::sun::star::lang::XServiceInfo
      35             :             //comprehends XComponent (required interface)
      36             :     //  ,public ::com::sun::star::uno::XWeak            // implemented by WeakImplHelper(optional interface)
      37             :     //  ,public ::com::sun::star::uno::XInterface       // implemented by WeakImplHelper(optional interface)
      38             :     //  ,public ::com::sun::star::lang::XTypeProvider   // implemented by WeakImplHelper
      39             :         >
      40             : {
      41             : private:
      42             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext>        m_xCC;
      43             :     sal_Bool            m_bCancelRequired;
      44             :     ::osl::Condition    m_oCancelFinished;
      45             : 
      46             : private:
      47             :         sal_Bool impl_checkCancel();
      48             :     //no default constructor
      49             :     ChartFrameLoader(){}
      50             : public:
      51             :     ChartFrameLoader(::com::sun::star::uno::Reference<
      52             :                ::com::sun::star::uno::XComponentContext > const & xContext);
      53             :     virtual ~ChartFrameLoader();
      54             : 
      55             :     // ::com::sun::star::lang::XServiceInfo
      56             : 
      57             :     APPHELPER_XSERVICEINFO_DECL()
      58          18 :     APPHELPER_SERVICE_FACTORY_HELPER(ChartFrameLoader)
      59             : 
      60             :     // ::com::sun::star::frame::XFrameLoader
      61             : 
      62             :     virtual sal_Bool SAL_CALL
      63             :         load( const ::com::sun::star::uno::Sequence<
      64             :                 ::com::sun::star::beans::PropertyValue >& rMediaDescriptor
      65             :                 ,const ::com::sun::star::uno::Reference<
      66             :                 ::com::sun::star::frame::XFrame >& xFrame )
      67             :                             throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             : 
      69             :     virtual void SAL_CALL
      70             :         cancel()            throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             : };
      72             : 
      73             : } //namespace chart
      74             : 
      75             : #endif
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10