From d5c3e8004b2a3df1c0f624639e7dd3a650b868ac Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Feb 2017 10:29:10 +0200 Subject: drop enum framework::GlobalSettings::UIElementType since we only ever use the one enumerator. Consequently renaming some methods Change-Id: Ia8c022135df6661b8f300e037ea3e7cf610b63ac --- framework/inc/uiconfiguration/globalsettings.hxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'framework/inc') diff --git a/framework/inc/uiconfiguration/globalsettings.hxx b/framework/inc/uiconfiguration/globalsettings.hxx index 2609647989db..7123836958ec 100644 --- a/framework/inc/uiconfiguration/globalsettings.hxx +++ b/framework/inc/uiconfiguration/globalsettings.hxx @@ -44,13 +44,6 @@ class GlobalSettings GlobalSettings( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); ~GlobalSettings(); - enum UIElementType - { - UIELEMENT_TYPE_TOOLBAR, - UIELEMENT_TYPE_DOCKWINDOW, - UIELEMENT_TYPE_STATUSBAR - }; - enum StateInfo { STATEINFO_LOCKED, @@ -58,8 +51,8 @@ class GlobalSettings }; // settings access - bool HasStatesInfo( UIElementType eElementType ); - bool GetStateInfo( UIElementType eElementType, StateInfo eStateInfo, css::uno::Any& aValue ); + bool HasToolbarStatesInfo(); + bool GetToolbarStateInfo( StateInfo eStateInfo, css::uno::Any& aValue ); private: GlobalSettings(const GlobalSettings&) = delete; -- cgit v1.2.3