diff options
author | Jim Raykowski <raykowj@gmail.com> | 2020-10-01 22:29:35 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-05-11 06:53:36 +0200 |
commit | a80eefb7413245f81692c443b06f7d3a6a92f28c (patch) | |
tree | fd77d628574c3752117cd4995f4243118976a46c /sfx2 | |
parent | b137ff671f25a605334083c0f87ada84eaa0fcf2 (diff) |
tdf#84502 CuiConfigGroupListBox Macros,Styles like category for Sidebar
Decks
Change-Id: I4d41952547c98ba66c40c1aa1e9776cdf31304c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100455
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/sdi/frmslots.sdi | 4 | ||||
-rw-r--r-- | sfx2/sdi/sfx.sdi | 18 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 13 |
3 files changed, 33 insertions, 2 deletions
diff --git a/sfx2/sdi/frmslots.sdi b/sfx2/sdi/frmslots.sdi index 09aafef95b7d..1e60d092d373 100644 --- a/sfx2/sdi/frmslots.sdi +++ b/sfx2/sdi/frmslots.sdi @@ -43,6 +43,10 @@ interface Window ExecMethod = ChildWindowExecute ; StateMethod = ChildWindowState ; ] + SID_SIDEBAR_DECK + [ + ExecMethod = ChildWindowExecute ; + ] SID_BROWSER // ole(no) api() [ ExecMethod = ChildWindowExecute ; diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi index 43dc58e317bf..eb588217d940 100644 --- a/sfx2/sdi/sfx.sdi +++ b/sfx2/sdi/sfx.sdi @@ -1011,8 +1011,6 @@ SfxVoidItem DesignerDialog SID_STYLE_DESIGNER GroupId = SfxGroupId::Format; ] - - SfxVoidItem DragHierarchy SID_STYLE_DRAGHIERARCHIE () [ @@ -4282,6 +4280,22 @@ SfxVoidItem StylePreview SID_STYLE_PREVIEW GroupId = ; ] +SfxVoidItem SidebarDeck SID_SIDEBAR_DECK +(SfxStringItem SidebarDeck SID_SIDEBAR_DECK) +[ + AutoUpdate = FALSE, + FastCall = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + + AccelConfig = TRUE, + MenuConfig = FALSE, + ToolBoxConfig = FALSE, + GroupId = ; +] SfxTemplateItem StyleApply SID_STYLE_APPLY (SfxStringItem Template SID_STYLE_APPLY,SfxUInt16Item Family SID_STYLE_FAMILY,SfxStringItem FamilyName SID_STYLE_FAMILYNAME,SfxStringItem Style SID_APPLY_STYLE) diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 09c54757986d..7ffca943cb9b 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -133,6 +133,7 @@ using ::com::sun::star::container::XIndexContainer; #define ShellClass_SfxViewFrame #include <sfxslots.hxx> +#include <sfx2/sidebar/SidebarController.hxx> #define CHANGES_STR "private:resource/toolbar/changes" SFX_IMPL_SUPERCLASS_INTERFACE(SfxViewFrame,SfxShell) @@ -3145,6 +3146,18 @@ void SfxViewFrame::ChildWindowExecute( SfxRequest &rReq ) // Evaluate Parameter sal_uInt16 nSID = rReq.GetSlot(); + if (nSID == SID_SIDEBAR_DECK) + { + const SfxStringItem* pDeckIdItem = rReq.GetArg<SfxStringItem>(SID_SIDEBAR_DECK); + if (pDeckIdItem) + { + const OUString aDeckId(pDeckIdItem->GetValue()); + ::sfx2::sidebar::Sidebar::ToggleDeck(aDeckId, this); + } + rReq.Done(); + return; + } + const SfxBoolItem* pShowItem = rReq.GetArg<SfxBoolItem>(nSID); if ( nSID == SID_VIEW_DATA_SOURCE_BROWSER ) { |