summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/appserv.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 17e677277e9f..d20d8c54200d 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -403,14 +403,25 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
SfxItemSetFixed<SID_CONFIG, SID_CONFIG, SID_MACROINFO, SID_MACROINFO> aSet( GetPool() );
+ // SID_CONFIG property will determine the default page shown
if ( pStringItem )
{
aSet.Put( SfxStringItem(
SID_CONFIG, pStringItem->GetValue() ) );
}
+ else if (rReq.GetSlot() == SID_CONFIGEVENT)
+ {
+ aSet.Put( SfxStringItem(
+ SID_CONFIG, "private:resource/event/" ) );
+ }
+ else if (rReq.GetSlot() == SID_TOOLBOXOPTIONS)
+ {
+ aSet.Put( SfxStringItem(
+ SID_CONFIG, "private:resource/toolbar/" ) );
+ }
#if HAVE_FEATURE_SCRIPTING
- // Preselect a macro:
+ // Preselect a macro in the 'keyboard' page
if (auto const item = rReq.GetArg<SfxMacroInfoItem>(SID_MACROINFO)) {
aSet.Put(*item);
}