LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SfxMacroLoader Class Referencefinal

#include <macroloader.hxx>

Inheritance diagram for SfxMacroLoader:
[legend]
Collaboration diagram for SfxMacroLoader:
[legend]

Public Member Functions

 SfxMacroLoader (const css::uno::Sequence< css::uno::Any > &aArguments)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch (const css::util::URL &aURL, const OUString &sTargetFrameName, sal_Int32 eSearchFlags) override
 
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &seqDescriptor) override
 
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) override
 
virtual void SAL_CALL dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArgs) override
 
virtual css::uno::Any SAL_CALL dispatchWithReturnValue (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArgs) override
 
virtual void SAL_CALL addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
 
virtual void SAL_CALL removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
 

Static Public Member Functions

static ErrCode loadMacro (const OUString &aURL, css::uno::Any &rRetval, SfxObjectShell *pDoc)
 
static SfxObjectShellGetObjectShell (const css::uno::Reference< css::frame::XFrame > &xFrame)
 

Private Member Functions

SfxObjectShellGetObjectShell_Impl ()
 

Private Attributes

css::uno::WeakReference< css::frame::XFrame > m_xFrame
 

Detailed Description

Definition at line 42 of file macroloader.hxx.

Constructor & Destructor Documentation

◆ SfxMacroLoader()

SfxMacroLoader::SfxMacroLoader ( const css::uno::Sequence< css::uno::Any > &  aArguments)
Exceptions
css::uno::Exception
css::uno::RuntimeException

Definition at line 46 of file macroloader.cxx.

References aArguments, m_xFrame, and xFrame.

Member Function Documentation

◆ addStatusListener()

void SAL_CALL SfxMacroLoader::addStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

Definition at line 178 of file macroloader.cxx.

◆ dispatch()

void SAL_CALL SfxMacroLoader::dispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArgs 
)
overridevirtual

Definition at line 169 of file macroloader.cxx.

References aURL, GetObjectShell_Impl(), and loadMacro().

◆ dispatchWithNotification()

void SAL_CALL SfxMacroLoader::dispatchWithNotification ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArgs,
const css::uno::Reference< css::frame::XDispatchResultListener > &  Listener 
)
overridevirtual

Definition at line 121 of file macroloader.cxx.

References aEvent, aURL, ERRCODE_NONE, GetObjectShell_Impl(), and loadMacro().

◆ dispatchWithReturnValue()

uno::Any SAL_CALL SfxMacroLoader::dispatchWithReturnValue ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArgs 
)
overridevirtual

Definition at line 145 of file macroloader.cxx.

References aURL, ERRCODE_NONE, GetObjectShell_Impl(), and loadMacro().

◆ getImplementationName()

OUString SAL_CALL SfxMacroLoader::getImplementationName ( )
overridevirtual

Definition at line 56 of file macroloader.cxx.

◆ GetObjectShell()

SfxObjectShell * SfxMacroLoader::GetObjectShell ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
static

◆ GetObjectShell_Impl()

SfxObjectShell * SfxMacroLoader::GetObjectShell_Impl ( )
private

Definition at line 91 of file macroloader.cxx.

References GetObjectShell(), m_xFrame, and xFrame.

Referenced by dispatch(), dispatchWithNotification(), and dispatchWithReturnValue().

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL SfxMacroLoader::getSupportedServiceNames ( )
overridevirtual

Definition at line 66 of file macroloader.cxx.

◆ loadMacro()

ErrCode SfxMacroLoader::loadMacro ( const OUString &  aURL,
css::uno::Any &  rRetval,
SfxObjectShell pDoc 
)
static

◆ queryDispatch()

uno::Reference< frame::XDispatch > SAL_CALL SfxMacroLoader::queryDispatch ( const css::util::URL &  aURL,
const OUString &  sTargetFrameName,
sal_Int32  eSearchFlags 
)
overridevirtual

Definition at line 97 of file macroloader.cxx.

References aURL.

◆ queryDispatches()

uno::Sequence< uno::Reference< frame::XDispatch > > SAL_CALL SfxMacroLoader::queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor > &  seqDescriptor)
overridevirtual

Definition at line 110 of file macroloader.cxx.

References nCount.

◆ removeStatusListener()

void SAL_CALL SfxMacroLoader::removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

Definition at line 189 of file macroloader.cxx.

◆ supportsService()

sal_Bool SAL_CALL SfxMacroLoader::supportsService ( OUString const &  ServiceName)
overridevirtual

Definition at line 61 of file macroloader.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_xFrame

css::uno::WeakReference< css::frame::XFrame > SfxMacroLoader::m_xFrame
private

Definition at line 48 of file macroloader.hxx.

Referenced by GetObjectShell_Impl(), and SfxMacroLoader().


The documentation for this class was generated from the following files: