19#ifndef INCLUDED_FILTER_MSFILTER_MSVBAHELPER_HXX
20#define INCLUDED_FILTER_MSFILTER_MSVBAHELPER_HXX
26#include <com/sun/star/awt/KeyEvent.hpp>
27#include <com/sun/star/lang/XInitialization.hpp>
28#include <com/sun/star/lang/XServiceInfo.hpp>
29#include <com/sun/star/script/vba/XVBAMacroResolver.hpp>
30#include <com/sun/star/uno/Any.hxx>
31#include <com/sun/star/uno/Reference.hxx>
32#include <com/sun/star/uno/Sequence.hxx>
35#include <rtl/ustring.hxx>
39 namespace frame {
class XModel; }
40 namespace uno {
class XComponentContext; }
62 const OUString& rModuleName,
63 const OUString& rMacroName,
bool bOnlyPublic,
64 const OUString& sSkipModule);
73typedef ::cppu::WeakImplHelper<
74 css::lang::XServiceInfo,
75 css::lang::XInitialization,
86 virtual OUString SAL_CALL
92 virtual css::uno::Sequence< OUString > SAL_CALL
98 const css::uno::Sequence< css::uno::Any >& rArgs )
override;
102 virtual OUString SAL_CALL
105 virtual OUString SAL_CALL
109 css::uno::Reference< css::frame::XModel >
mxModel;
virtual OUString SAL_CALL resolveVBAMacroToScriptURL(const OUString &rVBAMacroName) override
SfxObjectShell * mpObjShell
virtual OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::frame::XModel > mxModel
virtual OUString SAL_CALL resolveScriptURLtoVBAMacro(const OUString &rScriptURL) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~VBAMacroResolver() override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &rArgs) override
virtual sal_Bool SAL_CALL supportsService(const OUString &rService) override
#define MSFILTER_DLLPUBLIC
Shape IDs per cluster in DGG atom.
awt::KeyEvent parseKeyEvent(std::u16string_view Key)
OUString makeMacroURL(std::u16string_view sMacroName)
bool executeMacro(SfxObjectShell *pShell, const OUString &sMacroName, uno::Sequence< uno::Any > &aArgs, uno::Any &aRet, const uno::Any &)
MSFILTER_DLLPUBLIC OUString getDefaultProjectName(SfxObjectShell const *pShell)
OUString extractMacroName(std::u16string_view rMacroUrl)
OUString resolveVBAMacro(SfxObjectShell const *pShell, const OUString &rLibName, const OUString &rModuleName, const OUString &rMacroName, bool bOnlyPublic, const OUString &sSkipModule)
::cppu::WeakImplHelper< css::lang::XServiceInfo, css::lang::XInitialization, css::script::vba::XVBAMacroResolver > VBAMacroResolverBase
void applyShortCutKeyBinding(const uno::Reference< frame::XModel > &rxModel, const awt::KeyEvent &rKeyEvent, const OUString &rMacroName)
MacroResolvedInfo(SfxObjectShell *pDocContext=nullptr)
SfxObjectShell * mpDocContext