summaryrefslogtreecommitdiff
path: root/include/sfx2/minfitem.hxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2024-10-07 10:56:34 -0800
committerJim Raykowski <raykowj@gmail.com>2024-12-02 07:13:00 +0100
commit55e86edcb37a37123a69ce3e1eb9e20758415fb6 (patch)
treeb274ce555d1c153e304604ae6497f05ffba9252b /include/sfx2/minfitem.hxx
parent0f3f3710280d2476425bb86bc2e065e3e7a82952 (diff)
tdf#120658 - Reworking of dialogues Organize macros
(make from 5 existing only one) Much of what makes up this patch is adapted from existing code that is used to organize and select macros and to assign macros to shortcut keys. Comments in the patch say where code is borrowed from. Known issues: + Scripting framework library rename for BeanShell, Java, and JavaScript always returns fail when there are no macro entries in the library even though it actually succeeds. The same thing happens using SvxScriptOrgDialog::renameEntry. + Deleting Basic macros from the Macro Manager dialog is not implemented yet. Change-Id: If4da04549f8b39675910cbbd1f94dd9a6b73c31a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176254 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/sfx2/minfitem.hxx')
-rw-r--r--include/sfx2/minfitem.hxx5
1 files changed, 4 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