diff options
Diffstat (limited to 'framework/inc/xml/toolboxconfigurationdefines.hxx')
-rw-r--r-- | framework/inc/xml/toolboxconfigurationdefines.hxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/framework/inc/xml/toolboxconfigurationdefines.hxx b/framework/inc/xml/toolboxconfigurationdefines.hxx index c84adff58e8b..39f77f3f4c1d 100644 --- a/framework/inc/xml/toolboxconfigurationdefines.hxx +++ b/framework/inc/xml/toolboxconfigurationdefines.hxx @@ -18,9 +18,11 @@ */ #pragma once +#include <rtl/ustring.hxx> + #define XMLNS_TOOLBAR "http://openoffice.org/2001/toolbar" #define XMLNS_XLINK "http://www.w3.org/1999/xlink" -#define XMLNS_TOOLBAR_PREFIX "toolbar:" +inline constexpr OUString XMLNS_TOOLBAR_PREFIX = u"toolbar:"_ustr; #define XMLNS_XLINK_PREFIX "xlink:" #define XMLNS_FILTER_SEPARATOR "^" @@ -38,28 +40,26 @@ #define ATTRIBUTE_VISIBLE "visible" #define ATTRIBUTE_ITEMSTYLE "style" -#define ELEMENT_NS_TOOLBAR "toolbar:toolbar" -#define ELEMENT_NS_TOOLBARITEM "toolbar:toolbaritem" -#define ELEMENT_NS_TOOLBARSPACE "toolbar:toolbarspace" -#define ELEMENT_NS_TOOLBARBREAK "toolbar:toolbarbreak" -#define ELEMENT_NS_TOOLBARSEPARATOR "toolbar:toolbarseparator" - -#define ATTRIBUTE_XMLNS_TOOLBAR "xmlns:toolbar" -#define ATTRIBUTE_XMLNS_XLINK "xmlns:xlink" +inline constexpr OUString ELEMENT_NS_TOOLBAR = u"toolbar:toolbar"_ustr; +inline constexpr OUString ELEMENT_NS_TOOLBARITEM = u"toolbar:toolbaritem"_ustr; +inline constexpr OUString ELEMENT_NS_TOOLBARSPACE = u"toolbar:toolbarspace"_ustr; +inline constexpr OUString ELEMENT_NS_TOOLBARBREAK = u"toolbar:toolbarbreak"_ustr; +inline constexpr OUString ELEMENT_NS_TOOLBARSEPARATOR = u"toolbar:toolbarseparator"_ustr; -#define ATTRIBUTE_TYPE_CDATA "CDATA" +inline constexpr OUString ATTRIBUTE_XMLNS_TOOLBAR = u"xmlns:toolbar"_ustr; +inline constexpr OUString ATTRIBUTE_XMLNS_XLINK = u"xmlns:xlink"_ustr; #define ATTRIBUTE_BOOLEAN_TRUE "true" -#define ATTRIBUTE_BOOLEAN_FALSE "false" +inline constexpr OUString ATTRIBUTE_BOOLEAN_FALSE = u"false"_ustr; -#define ATTRIBUTE_ITEMSTYLE_RADIO "radio" -#define ATTRIBUTE_ITEMSTYLE_AUTO "auto" -#define ATTRIBUTE_ITEMSTYLE_LEFT "left" -#define ATTRIBUTE_ITEMSTYLE_AUTOSIZE "autosize" -#define ATTRIBUTE_ITEMSTYLE_DROPDOWN "dropdown" -#define ATTRIBUTE_ITEMSTYLE_REPEAT "repeat" -#define ATTRIBUTE_ITEMSTYLE_TEXT "text" -#define ATTRIBUTE_ITEMSTYLE_DROPDOWNONLY "dropdownonly" -#define ATTRIBUTE_ITEMSTYLE_IMAGE "image" +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_RADIO = u"radio"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_AUTO = u"auto"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_LEFT = u"left"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_AUTOSIZE = u"autosize"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_DROPDOWN = u"dropdown"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_REPEAT = u"repeat"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_TEXT = u"text"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_DROPDOWNONLY = u"dropdownonly"_ustr; +inline constexpr OUString ATTRIBUTE_ITEMSTYLE_IMAGE = u"image"_ustr; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |