diff options
author | heiko tietze <tietze.heiko@gmail.com> | 2018-08-31 14:24:54 +0200 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2018-09-03 09:05:11 +0200 |
commit | a3c8250c5b56a2cb40aa01b9a6a59e4daa1fd2f8 (patch) | |
tree | e561ee18e5417f40d9d4cc7991fd26f83e181222 /cui | |
parent | 3ff21b52de4047a03c4fcd82daff8aff588aebc3 (diff) |
tdf#119293 - UI Consistency for inserting rows in Writer table
Labels are set now depending on row/col as left/right and above/below
Change-Id: I73b81660db1e4e8c3d0146f59e193744a3883583
Reviewed-on: https://gerrit.libreoffice.org/59867
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/inc/strings.hrc | 7 | ||||
-rw-r--r-- | cui/source/dialogs/insrc.cxx | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/cui/inc/strings.hrc b/cui/inc/strings.hrc index 99e0b1b69030..9581676fed37 100644 --- a/cui/inc/strings.hrc +++ b/cui/inc/strings.hrc @@ -96,12 +96,19 @@ #define RID_SVXSTR_SELECTOR_ADD_COMMANDS NC_("RID_SVXSTR_SELECTOR_ADD_COMMANDS", "Add Commands") #define RID_SVXSTR_SELECTOR_RUN NC_("RID_SVXSTR_SELECTOR_RUN", "Run") #define RID_SVXSTR_ROW NC_("RID_SVXSTR_ROW", "Insert Rows") +// tdf#119293 Labels depending on row/col +#define RID_SVXSTR_INSERTROW_BEFORE NC_("RID_SVXSTR_INSERTROW_BEFORE", "Above the selection") +#define RID_SVXSTR_INSERTROW_AFTER NC_("RID_SVXSTR_INSERTROW_AFTER", "Below the selection") #define RID_SVXSTR_REMOVE_FAVORITES NC_("RID_SVXSTR_REMOVE_FAVORITES", "Remove from Favorites") #define RID_SVXSTR_MISSING_GLYPH NC_("RID_SVXSTR_MISSING_GLYPH", "Missing Glyph") #define RID_SVXSTR_ADD_FAVORITES NC_("RID_SVXSTR_ADD_FAVORITES", "Add to Favorites") // PPI is pixel per inch, %1 is a number #define RID_SVXSTR_PPI NC_("RID_SVXSTR_PPI", "(%1 PPI)") #define RID_SVXSTR_COL NC_("RID_SVXSTR_COL", "Insert Columns") +// tdf#119293 Labels depending on row/col +#define RID_SVXSTR_INSERTCOL_BEFORE NC_("RID_SVXSTR_INSERTCOL_BEFORE", "Left of the selection") +#define RID_SVXSTR_INSERTCOL_AFTER NC_("RID_SVXSTR_INSERTCOL_AFTER", "Right of the selection") + #define RID_SVXSTR_AUTO_ENTRY NC_("RID_SVXSTR_AUTO_ENTRY", "Automatic") #define RID_SVXSTR_EDIT_GRAPHIC NC_("RID_SVXSTR_EDIT_GRAPHIC", "Link") #define RID_SVXSTR_LOADACCELCONFIG NC_("RID_SVXSTR_LOADACCELCONFIG", "Load Keyboard Configuration") diff --git a/cui/source/dialogs/insrc.cxx b/cui/source/dialogs/insrc.cxx index 5cecafd62c82..eab54d16d6f7 100644 --- a/cui/source/dialogs/insrc.cxx +++ b/cui/source/dialogs/insrc.cxx @@ -40,6 +40,13 @@ SvxInsRowColDlg::SvxInsRowColDlg(weld::Window* pParent, bool bColumn, const OStr , m_xAfterBtn(m_xBuilder->weld_radio_button("insert_after")) { m_xDialog->set_title(bColumn ? CuiResId(RID_SVXSTR_COL) : CuiResId(RID_SVXSTR_ROW)); + if (bColumn) { + m_xBeforeBtn->set_label(CuiResId(RID_SVXSTR_INSERTCOL_BEFORE)); + m_xAfterBtn->set_label(CuiResId(RID_SVXSTR_INSERTCOL_AFTER)); + } else { + m_xBeforeBtn->set_label(CuiResId(RID_SVXSTR_INSERTROW_BEFORE)); + m_xAfterBtn->set_label(CuiResId(RID_SVXSTR_INSERTROW_AFTER)); + } m_xDialog->set_help_id(rHelpId); } |