summaryrefslogtreecommitdiff
path: root/cui/source/inc/macropg.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-09 10:47:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-09 12:37:37 +0000
commit83eb2796d1f4a6778d40a5e2e94c4b536163fecb (patch)
tree87f115954123ec7237b9db28f0d656fc4651f8d6 /cui/source/inc/macropg.hxx
parent4702910165dff6d5cef0d1bc707ff66b0b0d95bd (diff)
Related: tdf#152266 give feedback which events are assigned
where assigned is means an event is assigned to a non-empty url, now the delete button is only enabled when there is something to delete, bringing the customizie event page into line with the sheet event page and the writer frame event assignment page Change-Id: I7e016bf578dff24b7d47312fd5f7cc63883d1e4d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143848 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/inc/macropg.hxx')
-rw-r--r--cui/source/inc/macropg.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx
index ef9e16c51bba..7c934e33799d 100644
--- a/cui/source/inc/macropg.hxx
+++ b/cui/source/inc/macropg.hxx
@@ -30,7 +30,8 @@
#include <unordered_map>
#include <vector>
-typedef std::unordered_map< OUString, std::pair< OUString, OUString > > EventsHash;
+typedef std::pair<OUString, OUString> EventPair;
+typedef std::unordered_map<OUString, EventPair> EventsHash;
struct EventDisplayName
{
@@ -56,6 +57,7 @@ class SvxMacroTabPage_ : public SfxTabPage
DECL_LINK( DoubleClickHdl_Impl, weld::TreeView&, bool );
void GenericHandler_Impl(const weld::Button* pBtn);
+ const EventPair* LookupEvent(const OUString& rEventName);
css::uno::Reference< css::container::XNameReplace > m_xAppEvents;
protected:
@@ -71,7 +73,7 @@ protected:
void EnableButtons();
static css::uno::Any GetPropsByName( const OUString& eventName, EventsHash& eventsHash );
- static std::pair< OUString, OUString > GetPairFromAny( const css::uno::Any& aAny );
+ static EventPair GetPairFromAny(const css::uno::Any& aAny);
public: