26#include <rtl/ustring.hxx>
27#include <rtl/ustrbuf.hxx>
28#include <com/sun/star/frame/XDispatchRecorder.hpp>
29#include <com/sun/star/frame/DispatchStatement.hpp>
30#include <com/sun/star/container/XIndexReplace.hpp>
31#include <com/sun/star/util/URL.hpp>
32#include <com/sun/star/beans/PropertyValue.hpp>
33#include <com/sun/star/script/XTypeConverter.hpp>
34#include <com/sun/star/lang/XServiceInfo.hpp>
35#include <com/sun/star/uno/XComponentContext.hpp>
41 :
public ::cppu::WeakImplHelper<
42 css::lang::XServiceInfo
43 , css::frame::XDispatchRecorder
44 , css::container::XIndexReplace >
54 DispatchRecorder(
const css::uno::Reference< css::uno::XComponentContext >& xSMGR );
63 virtual void SAL_CALL
startRecording (
const css::uno::Reference< css::frame::XFrame >& xFrame )
override;
64 virtual void SAL_CALL
recordDispatch (
const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
override;
65 virtual void SAL_CALL
recordDispatchAsComment(
const css::util::URL& aURL,
const css::uno::Sequence< css::beans::PropertyValue >& lArguments )
override;
73 virtual sal_Int32 SAL_CALL
getCount()
override;
75 virtual css::uno::Any SAL_CALL
getByIndex(sal_Int32)
override;
77 virtual void SAL_CALL
replaceByIndex(sal_Int32,
const css::uno::Any&)
override;
82 const css::uno::Sequence< css::beans::PropertyValue >& lArguments,
83 bool bAsComment, OUStringBuffer& );
84 void AppendToBuffer(
const css::uno::Any& aValue, OUStringBuffer& aArgumentBuffer );
virtual void SAL_CALL replaceByIndex(sal_Int32, const css::uno::Any &) override
virtual OUString SAL_CALL getRecordedMacro() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Type SAL_CALL getElementType() override
virtual OUString SAL_CALL getImplementationName() 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 sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32) override
DispatchRecorder(const css::uno::Reference< css::uno::XComponentContext > &xSMGR)
virtual sal_Int32 SAL_CALL getCount() override
::std::vector< css::frame::DispatchStatement > m_aStatements
css::uno::Reference< css::script::XTypeConverter > m_xConverter
virtual sal_Bool SAL_CALL hasElements() override
void implts_recordMacro(std::u16string_view aURL, const css::uno::Sequence< css::beans::PropertyValue > &lArguments, bool bAsComment, OUStringBuffer &)
virtual ~DispatchRecorder() 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
void AppendToBuffer(const css::uno::Any &aValue, OUStringBuffer &aArgumentBuffer)