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>
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 0a53ed3..79ce894 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 5b15c51..65209b1 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()