diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-31 22:01:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-02 09:55:20 +0100 |
commit | a0eab90bd1f7fc31978da3f7be0ec86781baf8bc (patch) | |
tree | db82393a579042e4463f65dc47b5f30688d4df70 /svtools | |
parent | 22c88a039a557343ab11fbf7abc8f2a087e1a3c2 (diff) |
toolbox always has flat style
ever since
commit c1cd6af623e86b5b1b45f9d09dc17d6fbb907f02
Author: Jens-Heiner Rechtien <hr@openoffice.org>
Date: Mon May 10 14:51:02 2004 +0000
INTEGRATION: CWS nwf (1.64.66); FILE MERGED
2004/03/31 09:28:33 ssa 1.64.66.1: #i25130# force flat toolbox buttons
except for a completely and utterly undocumented hack of a registry key,
introduced in
commit 736dc0956a50315ec72ad126406556657a750d37
Author: Rüdiger Timm <rt@openoffice.org>
Date: Thu Apr 17 14:19:46 2003 +0000
INTEGRATION: CWS vcl08 (1.57.2.4.18); FILE MERGED
2003/04/14 17:46:27 ssa 1.57.2.4.18.1: #108699# disabled flat toolbox buttons not exported anymore
which only seems to apply to Windows.
So just remove this.
Change-Id: Idf315b8c89c3119883a5e6880d003d379fe6faec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105155
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/config/miscopt.cxx | 63 |
1 files changed, 4 insertions, 59 deletions
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx index 09cbfb832dcd..8eee18dd42ed 100644 --- a/svtools/source/config/miscopt.cxx +++ b/svtools/source/config/miscopt.cxx @@ -46,16 +46,14 @@ using namespace ::com::sun::star; // PROPERTYHANDLE defines must be sequential from zero for Commit/Load #define PROPERTYNAME_SYMBOLSET "SymbolSet" #define PROPERTYHANDLE_SYMBOLSET 0 -#define PROPERTYNAME_TOOLBOXSTYLE "ToolboxStyle" -#define PROPERTYHANDLE_TOOLBOXSTYLE 1 #define PROPERTYNAME_ICONTHEME "SymbolStyle" -#define PROPERTYHANDLE_SYMBOLSTYLE 2 +#define PROPERTYHANDLE_SYMBOLSTYLE 1 #define PROPERTYNAME_DISABLEUICUSTOMIZATION "DisableUICustomization" -#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 3 +#define PROPERTYHANDLE_DISABLEUICUSTOMIZATION 2 #define PROPERTYNAME_SIDEBARICONSIZE "SidebarIconSize" -#define PROPERTYHANDLE_SIDEBARICONSIZE 4 +#define PROPERTYHANDLE_SIDEBARICONSIZE 3 #define PROPERTYNAME_NOTEBOOKBARICONSIZE "NotebookbarIconSize" -#define PROPERTYHANDLE_NOTEBOOKBARICONSIZE 5 +#define PROPERTYHANDLE_NOTEBOOKBARICONSIZE 4 class SvtMiscOptions_Impl : public ConfigItem { @@ -68,8 +66,6 @@ private: ToolBoxButtonSize m_nNotebookbarIconSize; bool m_bIsNotebookbarIconSizeRO; bool m_bIsSymbolsStyleRO; - sal_Int16 m_nToolboxStyle; - bool m_bIsToolboxStyleRO; bool m_bDisableUICustomization; bool m_bIconThemeWasSetAutomatically; @@ -141,13 +137,6 @@ public: bool IconThemeWasSetAutomatically() {return m_bIconThemeWasSetAutomatically;} - // translate to VCL settings ( "0" = 3D, "1" = FLAT ) - sal_Int16 GetToolboxStyle() const - { return m_nToolboxStyle ? TOOLBOX_STYLE_FLAT : 0; } - - // translate from VCL settings - void SetToolboxStyle( sal_Int16 nStyle ); - void AddListenerLink( const Link<LinkParamNone*,void>& rLink ); void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink ); void CallListeners(); @@ -182,8 +171,6 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() , m_nNotebookbarIconSize( ToolBoxButtonSize::DontCare ) , m_bIsNotebookbarIconSizeRO( false ) , m_bIsSymbolsStyleRO( false ) - , m_nToolboxStyle( 1 ) - , m_bIsToolboxStyleRO( false ) , m_bIconThemeWasSetAutomatically( false ) { // Use our static list of configuration keys to get his values. @@ -239,16 +226,6 @@ SvtMiscOptions_Impl::SvtMiscOptions_Impl() break; } - case PROPERTYHANDLE_TOOLBOXSTYLE : - { - if( !(seqValues[nProperty] >>= m_nToolboxStyle) ) - { - OSL_FAIL("Wrong type of \"Misc\\ToolboxStyle\"!" ); - } - m_bIsToolboxStyleRO = seqRO[nProperty]; - break; - } - case PROPERTYHANDLE_SYMBOLSTYLE : { OUString aIconTheme; @@ -326,13 +303,6 @@ void SvtMiscOptions_Impl::Load( const Sequence< OUString >& rPropertyNames ) m_nNotebookbarIconSize = static_cast<ToolBoxButtonSize>(nTmp); } break; - case PROPERTYHANDLE_TOOLBOXSTYLE : { - if( !(seqValues[nProperty] >>= m_nToolboxStyle) ) - { - OSL_FAIL("Wrong type of \"Misc\\ToolboxStyle\"!" ); - } - } - break; case PROPERTYHANDLE_SYMBOLSTYLE : { OUString aIconTheme; if (seqValues[nProperty] >>= aIconTheme) @@ -366,13 +336,6 @@ void SvtMiscOptions_Impl::CallListeners() elem.Call( nullptr ); } -void SvtMiscOptions_Impl::SetToolboxStyle( sal_Int16 nStyle ) -{ - m_nToolboxStyle = nStyle ? 1 : 0; - SetModified(); - CallListeners(); -} - void SvtMiscOptions_Impl::SetSymbolsSize( sal_Int16 nSet ) { m_nSymbolsSize = nSet; @@ -468,13 +431,6 @@ void SvtMiscOptions_Impl::ImplCommit() break; } - case PROPERTYHANDLE_TOOLBOXSTYLE : - { - if ( !m_bIsToolboxStyleRO ) - seqValues[nProperty] <<= m_nToolboxStyle; - break; - } - case PROPERTYHANDLE_SYMBOLSTYLE : { if ( !m_bIsSymbolsStyleRO ) { @@ -509,7 +465,6 @@ Sequence< OUString > SvtMiscOptions_Impl::GetPropertyNames() return Sequence<OUString> { PROPERTYNAME_SYMBOLSET, - PROPERTYNAME_TOOLBOXSTYLE, PROPERTYNAME_ICONTHEME, PROPERTYNAME_DISABLEUICUSTOMIZATION, PROPERTYNAME_SIDEBARICONSIZE, @@ -616,16 +571,6 @@ bool SvtMiscOptions::DisableUICustomization() const return m_pImpl->DisableUICustomization(); } -sal_Int16 SvtMiscOptions::GetToolboxStyle() const -{ - return m_pImpl->GetToolboxStyle(); -} - -void SvtMiscOptions::SetToolboxStyle( sal_Int16 nStyle ) -{ - m_pImpl->SetToolboxStyle( nStyle ); -} - namespace { class theSvtMiscOptionsMutex : |