diff options
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/minfitem.hxx | 5 | ||||
-rw-r--r-- | include/sfx2/sfxdlg.hxx | 15 | ||||
-rw-r--r-- | include/sfx2/sfxsids.hrc | 1 |
3 files changed, 20 insertions, 1 deletions
diff --git a/include/sfx2/minfitem.hxx b/include/sfx2/minfitem.hxx index c89705726e20..bbf4744afd62 100644 --- a/include/sfx2/minfitem.hxx +++ b/include/sfx2/minfitem.hxx @@ -36,6 +36,7 @@ class SFX2_DLLPUBLIC SfxMacroInfoItem final : public SfxPoolItem OUString aModuleName; OUString aMethodName; OUString aCommentText; + OUString aLocationName; public: static SfxPoolItem* CreateDefault(); @@ -44,7 +45,8 @@ public: OUString aLibName, OUString aModuleName, OUString aMethodName, - OUString aComment); + OUString aComment, + OUString aLocation = OUString()); virtual SfxMacroInfoItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; @@ -63,6 +65,7 @@ public: const BasicManager* GetBasicManager() const { return pBasicManager; } OUString GetQualifiedName() const; + const OUString& GetLocation() const { return aLocationName; } }; #endif diff --git a/include/sfx2/sfxdlg.hxx b/include/sfx2/sfxdlg.hxx index 31bd0c3108ad..d5cf73b667bf 100644 --- a/include/sfx2/sfxdlg.hxx +++ b/include/sfx2/sfxdlg.hxx @@ -112,6 +112,16 @@ public: virtual void SetRunLabel() = 0; }; +class AbstractMacroManagerDialog : virtual public VclAbstractDialog +{ +protected: + virtual ~AbstractMacroManagerDialog() override = default; + +public: + virtual OUString GetScriptURL() const = 0; + virtual void LoadLastUsedMacro() const = 0; +}; + namespace com::sun::star::frame { class XFrame; } class SFX2_DLLPUBLIC SfxAbstractDialogFactory : virtual public VclAbstractDialogFactory @@ -140,6 +150,11 @@ public: virtual VclPtr<AbstractScriptSelectorDialog> CreateScriptSelectorDialog(weld::Window* pParent, const css::uno::Reference< css::frame::XFrame >& rxFrame) = 0; + virtual VclPtr<AbstractMacroManagerDialog> + CreateMacroManagerDialog(weld::Window* pParent, + const css::uno::Reference<css::frame::XFrame>& rxFrame) + = 0; + virtual void ShowAsyncScriptErrorDialog( weld::Window* pParent, const css::uno::Any& rException ) = 0; virtual VclPtr<VclAbstractDialog> CreateOptionsDialog( diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index 6dbd397f8922..c71ddca61559 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -300,6 +300,7 @@ class SvxZoomItem; #define SID_OPTIONS_PAGEID TypedWhichId<SfxUInt16Item>(SID_SFX_START + 1747) #define SID_GPGSIGN TypedWhichId<SfxBoolItem>(SID_SFX_START + 1748) #define FN_INVERT_BACKGROUND (SID_SFX_START + 1749) +#define SID_MACROMANAGER (SID_SFX_START + 1750) // SID_SFX_free_END (SID_SFX_START + 3999) #define SID_OPEN_NEW_VIEW TypedWhichId<SfxBoolItem>(SID_SFX_START + 520) |