diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2016-06-17 23:54:00 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-06-27 17:51:56 +0000 |
commit | 1df394503f1e62b091453c95c05a212892ae8d58 (patch) | |
tree | 4767346ce348cc498df09985b6fa431a45f255d3 /sd/source/ui/sidebar/SlideBackground.cxx | |
parent | 0c80b4dfd27109def7a5bdc34c3fcc5499db6c0d (diff) |
GSoC notebookbar: switching tabs depending on context
+ sfx2::sidebar::EnumContext moved to the vcl module
+ TabPage contains vector with context values
+ vcl builder reads control's contexts from the "class" mark
+ ContextTabControl shows tabs depending on context
Change-Id: I661b0d3f35d46ace2a2e8eb1d374148f0c60017d
Reviewed-on: https://gerrit.libreoffice.org/26447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source/ui/sidebar/SlideBackground.cxx')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 10a6c9129feb..26f1dfd44071 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -160,7 +160,7 @@ void SlideBackground::Initialize() } void SlideBackground::HandleContextChange( - const ::sfx2::sidebar::EnumContext& rContext) + const vcl::EnumContext& rContext) { if (maContext == rContext) return; @@ -371,10 +371,10 @@ IMPL_LINK_TYPED(SlideBackground, EventMultiplexerListener, { if(!mbTitle) { - sfx2::sidebar::EnumContext rDrawContext(sfx2::sidebar::EnumContext::Application_Draw, - sfx2::sidebar::EnumContext::Context_DrawPage); - sfx2::sidebar::EnumContext rImpressContext(sfx2::sidebar::EnumContext::Application_Impress, - sfx2::sidebar::EnumContext::Context_DrawPage); + vcl::EnumContext rDrawContext(vcl::EnumContext::Application_Draw, + vcl::EnumContext::Context_DrawPage); + vcl::EnumContext rImpressContext(vcl::EnumContext::Application_Impress, + vcl::EnumContext::Context_DrawPage); if(maContext == rDrawContext) { SetPanelTitle(SD_RESSTR(STR_PAGE_NAME)); |