summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-09 21:26:00 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-10 10:06:26 +0000
commit99860a1fbf7017cc5efdebdf5901ef57e7c021f0 (patch)
tree1481d8542b5fa324a13deea36c74b222d4624416 /cui
parentc86f1315ea3203e8557843d02c222969524a9ca7 (diff)
Related: tdf#152266 open 'event' page by default for SID_CONFIGEVENT
Change-Id: I7a3f6def8bda00588ef2846e5d3b5ed5d1da04de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143899 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx12
-rw-r--r--cui/source/inc/cfg.hxx1
2 files changed, 9 insertions, 4 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 0531a9ffa725..2099a1b861c6 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -222,13 +222,17 @@ SvxConfigDialog::SvxConfigDialog(weld::Window * pParent, const SfxItemSet* pInSe
OUString text = static_cast<const SfxStringItem*>(pItem)->GetValue();
if (text.startsWith( ITEM_TOOLBAR_URL ) )
SetCurPageId("toolbars");
+ else if (text.startsWith( ITEM_EVENT_URL) )
+ SetCurPageId("events");
}
#if HAVE_FEATURE_SCRIPTING
- // for the "assign" button in the Basic Macros chooser automatically switch
- // to the keyboard tab in which this macro will be pre-selected for assigning
- // to a keystroke
- if (pInSet->GetItemIfSet(SID_MACROINFO))
+ else if (pInSet->GetItemIfSet(SID_MACROINFO))
+ {
+ // for the "assign" button in the Basic Macros chooser automatically switch
+ // to the keyboard tab in which this macro will be pre-selected for assigning
+ // to a keystroke
SetCurPageId("keyboard");
+ }
#endif
}
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index 10ce7d89af7b..0ee8e1ba89fe 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -53,6 +53,7 @@ inline constexpr OUStringLiteral ITEM_DESCRIPTOR_UINAME = u"UIName";
inline constexpr OUStringLiteral ITEM_MENUBAR_URL = u"private:resource/menubar/menubar";
inline constexpr OUStringLiteral ITEM_TOOLBAR_URL = u"private:resource/toolbar/";
+inline constexpr OUStringLiteral ITEM_EVENT_URL = u"private:resource/event/";
inline constexpr OUStringLiteral CUSTOM_TOOLBAR_STR = u"custom_toolbar_";