diff options
author | heiko tietze <tietze.heiko@gmail.com> | 2019-01-18 10:20:31 +0100 |
---|---|---|
committer | Heiko Tietze <tietze.heiko@gmail.com> | 2019-01-18 12:22:34 +0100 |
commit | 0945136575835844ec70abc00a7487ed6b3ff481 (patch) | |
tree | f0917997423dd587339453d2b44114b5b977b2cd | |
parent | 41b8b8c5ede634774851b438a4c823962c14b611 (diff) |
Resolves tdf#122637 - Disabled controls in Outline & Numbering unclear
Tooltip added
Change-Id: I4e92dc1be5bb5e864f5a10f62fd65ba1494cab6c
Reviewed-on: https://gerrit.libreoffice.org/66575
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
-rw-r--r-- | sw/inc/strings.hrc | 1 | ||||
-rw-r--r-- | sw/source/ui/chrdlg/numpara.cxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 0a53ed3df64a..79ce8941bfb9 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -247,6 +247,7 @@ #define SW_STR_READONLY NC_("SW_STR_READONLY", "read-only") #define STR_READONLY_PATH NC_("STR_READONLY_PATH", "The 'AutoText' directories are read-only. Do you want to call the path settings dialog?") #define STR_DOC_STAT NC_("STR_DOC_STAT", "Statistics") +#define STR_OUTLINENUMBERING_DISABLED NC_("STR_OUTLINENUMBERING_DISABLED","This option is disabled when chapter numbering is assigned to a paragraph style") // Statusbar-titles #define STR_STATSTR_W4WREAD NC_("STR_STATSTR_W4WREAD", "Importing document...") #define STR_STATSTR_W4WWRITE NC_("STR_STATSTR_W4WWRITE", "Exporting document...") diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx index 5b15c5143c57..65209b1a1658 100644 --- a/sw/source/ui/chrdlg/numpara.cxx +++ b/sw/source/ui/chrdlg/numpara.cxx @@ -267,11 +267,13 @@ void SwParagraphNumTabPage::Reset(const SfxItemSet* rSet) void SwParagraphNumTabPage::DisableOutline() { m_xOutlineStartBX->set_sensitive(false); + m_xOutlineStartBX->set_tooltip_text( SwResId(STR_OUTLINENUMBERING_DISABLED) ); } void SwParagraphNumTabPage::DisableNumbering() { m_xNumberStyleBX->set_sensitive(false); + m_xNumberStyleBX->set_tooltip_text( SwResId(STR_OUTLINENUMBERING_DISABLED) ); } void SwParagraphNumTabPage::EnableNewStart() |