23#include <com/sun/star/script/ModuleType.hpp>
24#include <com/sun/star/script/vba/VBAEventId.hpp>
28using namespace ::com::sun::star::script::vba::VBAEventId;
33 using namespace ::com::sun::star::script::ModuleType;
47 const EventHandlerInfo& ,
const uno::Sequence<uno::Any>& )
53 const uno::Sequence< uno::Any >& )
56 return uno::Sequence< uno::Any >();
60 const EventHandlerInfo& ,
bool )
66 const uno::Sequence< uno::Any >& )
const
69 return "ThisDocument";
75 return "SwVbaEventsHelper";
83 return {
"com.sun.star.script.vba.VBATextEventProcessor" };
87extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
89 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const& args)
virtual ~SwVbaEventsHelper() override
virtual css::uno::Sequence< css::uno::Any > implBuildArgumentList(const EventHandlerInfo &rInfo, const css::uno::Sequence< css::uno::Any > &rArgs) override
virtual OUString SAL_CALL getImplementationName() override
virtual OUString implGetDocumentModuleName(const EventHandlerInfo &rInfo, const css::uno::Sequence< css::uno::Any > &rArgs) const override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual bool implPrepareEvent(EventQueue &rEventQueue, const EventHandlerInfo &rInfo, const css::uno::Sequence< css::uno::Any > &rArgs) override
SwVbaEventsHelper(const css::uno::Sequence< css::uno::Any > &rArgs, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual void implPostProcessEvent(EventQueue &rEventQueue, const EventHandlerInfo &rInfo, bool bCancel) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
::std::deque< EventQueueEntry > EventQueue
void registerEventHandler(sal_Int32 nEventId, sal_Int32 nModuleType, const char *pcMacroName, sal_Int32 nCancelIndex=-1, const css::uno::Any &rUserData=css::uno::Any())
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * Writer_SwVbaEventsHelper_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &args)