Kaydet (Commit) cdb9e338 authored tarafından Muhammet Kara's avatar Muhammet Kara

tdf#114091: Customize dialog: Rename 'All categories' to 'All commands'

And put a separator before the 'Macros' category.

Change-Id: Ibcff6b6c6d3a4f72d5e06b519fe8245d9602ad3c
Reviewed-on: https://gerrit.libreoffice.org/45843Reviewed-by: 's avatarHeiko Tietze <tietze.heiko@googlemail.com>
Tested-by: 's avatarHeiko Tietze <tietze.heiko@googlemail.com>
üst 2b26d152
......@@ -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")
......
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment