LibreOffice Module framework (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::DispatchRecorder Class Referencefinal

#include <dispatchrecorder.hxx>

Inheritance diagram for framework::DispatchRecorder:
[legend]
Collaboration diagram for framework::DispatchRecorder:
[legend]

Public Member Functions

 DispatchRecorder (const css::uno::Reference< css::uno::XComponentContext > &xSMGR)
 
virtual ~DispatchRecorder () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL startRecording (const css::uno::Reference< css::frame::XFrame > &xFrame) override
 
virtual void SAL_CALL recordDispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
 
virtual void SAL_CALL recordDispatchAsComment (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments) override
 
virtual void SAL_CALL endRecording () override
 
virtual OUString SAL_CALL getRecordedMacro () override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual sal_Int32 SAL_CALL getCount () override
 
virtual css::uno::Any SAL_CALL getByIndex (sal_Int32) override
 
virtual void SAL_CALL replaceByIndex (sal_Int32, const css::uno::Any &) override
 

Private Member Functions

void implts_recordMacro (std::u16string_view aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments, bool bAsComment, OUStringBuffer &)
 
void AppendToBuffer (const css::uno::Any &aValue, OUStringBuffer &aArgumentBuffer)
 

Private Attributes

::std::vector< css::frame::DispatchStatement > m_aStatements
 
sal_Int32 m_nRecordingID
 
css::uno::Reference< css::script::XTypeConverter > m_xConverter
 

Detailed Description

Definition at line 40 of file dispatchrecorder.hxx.

Constructor & Destructor Documentation

◆ DispatchRecorder()

framework::DispatchRecorder::DispatchRecorder ( const css::uno::Reference< css::uno::XComponentContext > &  xSMGR)

Definition at line 99 of file dispatchrecorder.cxx.

References create(), m_xConverter, and script.

◆ ~DispatchRecorder()

framework::DispatchRecorder::~DispatchRecorder ( )
overridevirtual

Definition at line 105 of file dispatchrecorder.cxx.

Member Function Documentation

◆ AppendToBuffer()

void framework::DispatchRecorder::AppendToBuffer ( const css::uno::Any &  aValue,
OUStringBuffer &  aArgumentBuffer 
)
private

◆ endRecording()

void SAL_CALL framework::DispatchRecorder::endRecording ( )
overridevirtual

Definition at line 131 of file dispatchrecorder.cxx.

References m_aStatements.

◆ getByIndex()

css::uno::Any SAL_CALL framework::DispatchRecorder::getByIndex ( sal_Int32  idx)
overridevirtual

Definition at line 389 of file dispatchrecorder.cxx.

References Any, idx, and m_aStatements.

◆ getCount()

sal_Int32 SAL_CALL framework::DispatchRecorder::getCount ( )
overridevirtual

Definition at line 384 of file dispatchrecorder.cxx.

References m_aStatements.

◆ getElementType()

css::uno::Type SAL_CALL framework::DispatchRecorder::getElementType ( )
overridevirtual

Definition at line 374 of file dispatchrecorder.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

OUString SAL_CALL framework::DispatchRecorder::getImplementationName ( )
overridevirtual

Definition at line 41 of file dispatchrecorder.cxx.

◆ getRecordedMacro()

OUString SAL_CALL framework::DispatchRecorder::getRecordedMacro ( )
overridevirtual

Definition at line 137 of file dispatchrecorder.cxx.

References implts_recordMacro(), m_aStatements, m_nRecordingID, and sScript.

◆ getSupportedServiceNames()

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

Definition at line 51 of file dispatchrecorder.cxx.

◆ hasElements()

sal_Bool SAL_CALL framework::DispatchRecorder::hasElements ( )
overridevirtual

Definition at line 379 of file dispatchrecorder.cxx.

References m_aStatements.

◆ implts_recordMacro()

void framework::DispatchRecorder::implts_recordMacro ( std::u16string_view  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArguments,
bool  bAsComment,
OUStringBuffer &  aScriptBuffer 
)
private

Definition at line 291 of file dispatchrecorder.cxx.

References AppendToBuffer(), aURL, i, m_nRecordingID, Name, nLength, framework::REM_AS_COMMENT, and Value.

Referenced by getRecordedMacro().

◆ recordDispatch()

void SAL_CALL framework::DispatchRecorder::recordDispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArguments 
)
overridevirtual

Definition at line 116 of file dispatchrecorder.cxx.

References aURL, and m_aStatements.

◆ recordDispatchAsComment()

void SAL_CALL framework::DispatchRecorder::recordDispatchAsComment ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  lArguments 
)
overridevirtual

Definition at line 123 of file dispatchrecorder.cxx.

References aURL, and m_aStatements.

◆ replaceByIndex()

void SAL_CALL framework::DispatchRecorder::replaceByIndex ( sal_Int32  idx,
const css::uno::Any &  element 
)
overridevirtual

Definition at line 400 of file dispatchrecorder.cxx.

References idx, and m_aStatements.

◆ startRecording()

void SAL_CALL framework::DispatchRecorder::startRecording ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
overridevirtual

Definition at line 110 of file dispatchrecorder.cxx.

◆ supportsService()

sal_Bool SAL_CALL framework::DispatchRecorder::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 46 of file dispatchrecorder.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aStatements

::std::vector< css::frame::DispatchStatement > framework::DispatchRecorder::m_aStatements
private

◆ m_nRecordingID

sal_Int32 framework::DispatchRecorder::m_nRecordingID
private

Definition at line 49 of file dispatchrecorder.hxx.

Referenced by getRecordedMacro(), and implts_recordMacro().

◆ m_xConverter

css::uno::Reference< css::script::XTypeConverter > framework::DispatchRecorder::m_xConverter
private

Definition at line 50 of file dispatchrecorder.hxx.

Referenced by AppendToBuffer().


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