summaryrefslogtreecommitdiff
path: root/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx')
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 30ace311deb3..fb7f85867133 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -61,6 +61,10 @@ using namespace com::sun::star::container;
using namespace com::sun::star::beans;
using namespace framework;
+#define RESOURCETYPE_MENUBAR "menubar"
+#define RESOURCETYPE_TOOLBAR "toolbar"
+#define RESOURCETYPE_STATUSBAR "statusbar"
+
namespace {
class ModuleUIConfigurationManager : public cppu::WeakImplHelper3<
@@ -882,11 +886,11 @@ ModuleUIConfigurationManager::ModuleUIConfigurationManager(
{
OUString aResourceType;
if ( i == ::com::sun::star::ui::UIElementType::MENUBAR )
- aResourceType = PresetHandler::RESOURCETYPE_MENUBAR();
+ aResourceType = RESOURCETYPE_MENUBAR;
else if ( i == ::com::sun::star::ui::UIElementType::TOOLBAR )
- aResourceType = PresetHandler::RESOURCETYPE_TOOLBAR();
+ aResourceType = RESOURCETYPE_TOOLBAR;
else if ( i == ::com::sun::star::ui::UIElementType::STATUSBAR )
- aResourceType = PresetHandler::RESOURCETYPE_STATUSBAR();
+ aResourceType = RESOURCETYPE_STATUSBAR;
if ( !aResourceType.isEmpty() )
{