LCOV - code coverage report
Current view: top level - sfx2/source/inc - macroloader.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 2 2 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             : 
      20             : #ifndef INCLUDED_SFX2_SOURCE_INC_MACROLOADER_HXX
      21             : #define INCLUDED_SFX2_SOURCE_INC_MACROLOADER_HXX
      22             : 
      23             : #include <sal/config.h>
      24             : 
      25             : #include <com/sun/star/beans/PropertyValue.hpp>
      26             : #include <com/sun/star/lang/XServiceInfo.hpp>
      27             : #include <com/sun/star/frame/DispatchDescriptor.hpp>
      28             : #include <com/sun/star/frame/XDispatch.hpp>
      29             : #include <com/sun/star/frame/XDispatchProvider.hpp>
      30             : #include <com/sun/star/frame/XFrame.hpp>
      31             : #include <com/sun/star/frame/XNotifyingDispatch.hpp>
      32             : #include <com/sun/star/frame/XDispatchResultListener.hpp>
      33             : #include <com/sun/star/frame/XSynchronousDispatch.hpp>
      34             : #include <com/sun/star/uno/Exception.hpp>
      35             : #include <com/sun/star/ucb/ContentCreationException.hpp>
      36             : #include <com/sun/star/util/URL.hpp>
      37             : 
      38             : #include <cppuhelper/implbase4.hxx>
      39             : #include <sfx2/sfxuno.hxx>
      40             : #include <tools/errcode.hxx>
      41             : 
      42             : class SfxObjectShell;
      43             : 
      44           4 : class SfxMacroLoader : public cppu::WeakImplHelper4<
      45             :                                        css::frame::XDispatchProvider,
      46             :                                        css::frame::XNotifyingDispatch,
      47             :                                        css::frame::XSynchronousDispatch,
      48             :                                        css::lang::XServiceInfo>
      49             : {
      50             :     css::uno::WeakReference < css::frame::XFrame > m_xFrame;
      51             :     SfxObjectShell* GetObjectShell_Impl();
      52             : 
      53             : public:
      54             :     SfxMacroLoader(const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments)
      55             :         throw (css::uno::Exception, css::uno::RuntimeException);
      56             : 
      57             :     virtual OUString SAL_CALL getImplementationName()
      58             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      59             : 
      60             :     virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
      61             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      62             : 
      63             :     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
      64             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :     static ErrCode loadMacro( const OUString& aURL, css::uno::Any& rRetval, SfxObjectShell* pDoc=NULL ) throw( css::uno::RuntimeException, css::ucb::ContentCreationException );
      67             : 
      68             :     virtual css::uno::Reference < css::frame::XDispatch > SAL_CALL queryDispatch(
      69             :             const css::util::URL& aURL, const OUString& sTargetFrameName,
      70             :             FrameSearchFlags eSearchFlags )
      71             :         throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      72             : 
      73             :     virtual css::uno::Sequence< css::uno::Reference < css::frame::XDispatch > > SAL_CALL queryDispatches(
      74             :             const css::uno::Sequence < css::frame::DispatchDescriptor >& seqDescriptor )
      75             :         throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      76             : 
      77             :     virtual void SAL_CALL dispatchWithNotification( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs, const css::uno::Reference< css::frame::XDispatchResultListener >& Listener )
      78             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             : 
      80             :     virtual void SAL_CALL dispatch( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
      81             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      82             : 
      83             :     virtual css::uno::Any SAL_CALL dispatchWithReturnValue( const css::util::URL& aURL, const css::uno::Sequence< css::beans::PropertyValue >& lArgs )
      84             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             : 
      86             :     virtual void SAL_CALL addStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL )
      87             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      88             : 
      89             :     virtual void SAL_CALL removeStatusListener( const css::uno::Reference< css::frame::XStatusListener >& xControl, const css::util::URL& aURL )
      90             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      91             : };
      92             : 
      93             : #endif
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10