diff options
-rw-r--r-- | cui/inc/strings.hrc | 2 | ||||
-rw-r--r-- | cui/source/customize/CommandCategoryListBox.cxx | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cui/inc/strings.hrc b/cui/inc/strings.hrc index 16db3c213f71..af4fbb388b57 100644 --- a/cui/inc/strings.hrc +++ b/cui/inc/strings.hrc @@ -88,7 +88,7 @@ #define RID_SVXSTR_ERR_TEXTNOTFOUND NC_("RID_SVXSTR_ERR_TEXTNOTFOUND", "No alternatives found.") #define RID_SVXSTR_SELECT_FILE_IFRAME NC_("RID_SVXSTR_SELECT_FILE_IFRAME", "Select File for Floating Frame") -#define RID_SVXSTR_ALLFUNCTIONS NC_("RID_SVXSTR_ALLFUNCTIONS", "All categories") +#define RID_SVXSTR_ALLFUNCTIONS NC_("RID_SVXSTR_ALLFUNCTIONS", "All commands") #define RID_SVXSTR_MACROS NC_("RID_SVXSTR_MACROS", "Macros") #define RID_SVXSTR_MYMACROS NC_("RID_SVXSTR_MYMACROS", "My Macros") #define RID_SVXSTR_PRODMACROS NC_("RID_SVXSTR_PRODMACROS", "%PRODUCTNAME Macros") diff --git a/cui/source/customize/CommandCategoryListBox.cxx b/cui/source/customize/CommandCategoryListBox.cxx index ae100bf0bc03..1c93de9bd7cf 100644 --- a/cui/source/customize/CommandCategoryListBox.cxx +++ b/cui/source/customize/CommandCategoryListBox.cxx @@ -132,7 +132,7 @@ void CommandCategoryListBox::Init( css::uno::Sequence< sal_Int16 > lGroups = xProvider->getSupportedCommandGroups(); sal_Int32 nGroupsLength = lGroups.getLength(); - sal_Int32 nEntryPos; + sal_Int32 nEntryPos = 0; if ( nGroupsLength > 0 ) { @@ -166,6 +166,10 @@ void CommandCategoryListBox::Init( SetEntryData( nEntryPos, m_aGroupInfo.back().get() ); } + // Separate regular commands from styles and macros + if (nEntryPos) + SetSeparatorPos(nEntryPos); + // Add macros category OUString sMacros( CuiResId(RID_SVXSTR_MACROS) ); nEntryPos = InsertEntry( sMacros ); |