diff options
author | Andre Fischer <af@apache.org> | 2013-04-29 07:44:43 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:24 +0100 |
commit | 603c089e4261a028d9ea70012cb5b1f4effcb545 (patch) | |
tree | 8978cd43cf0f801eddc2a8e5edaa405d685a652b /sfx2/source/sidebar/Theme.cxx | |
parent | 8035ea995506557c6711c637435374a056662b8b (diff) |
Resolves: #i122082# Hide sidebar panels for read only documents
(cherry picked from commit aae247a34cd6f3bf421e57bbec08837d73ddf258)
Conflicts:
sfx2/inc/sfx2/sidebar/SidebarChildWindow.hxx
sfx2/inc/sfx2/sidebar/Theme.hxx
sfx2/source/sidebar/SidebarChildWindow.cxx
sfx2/source/sidebar/SidebarController.cxx
sfx2/source/sidebar/SidebarDockingWindow.cxx
Change-Id: Ib59132d6d5e177d5a02ee24973b0fb07114db60a
Diffstat (limited to 'sfx2/source/sidebar/Theme.cxx')
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index b7ef8b5896c5..81d951731f74 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -362,6 +362,12 @@ void Theme::UpdateTheme (void) maPropertyIdToNameMap[Image_Closer], Any(A2S("private:graphicrepository/sfx2/res/closedoc.png"))); setPropertyValue( + maPropertyIdToNameMap[Image_CloseIndicator], + Any( + mbIsHighContrastMode + ? A2S("private:graphicrepository/res/commandimagelist/lch_decrementlevel.png") + : A2S("private:graphicrepository/res/commandimagelist/lc_decrementlevel.png"))); + setPropertyValue( maPropertyIdToNameMap[Image_ToolBoxItemSeparator], Any( A2S("private:graphicrepository/sfx2/res/separator.png"))); @@ -778,6 +784,7 @@ void Theme::SetupPropertyMaps (void) AddEntry(Image_PanelMenu); AddEntry(Image_ToolBoxItemSeparator); AddEntry(Image_Closer); + AddEntry(Image_CloseIndicator); AddEntry(Color_DeckTitleFont); AddEntry(Color_PanelTitleFont); @@ -847,6 +854,7 @@ Theme::PropertyType Theme::GetPropertyType (const ThemeItem eItem) case Image_PanelMenu: case Image_ToolBoxItemSeparator: case Image_Closer: + case Image_CloseIndicator: return PT_Image; case Color_DeckTitleFont: |