diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-09-07 12:49:46 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-09-08 13:24:21 +0200 |
commit | c7a608a6691c790783c63f504010bc796c36af25 (patch) | |
tree | 2495546cbec51b568d52309a19fa9fc730a0b61c /sw | |
parent | 48129cabb9a5636207d3b8f4f9fa4e4abac61b8a (diff) |
tdf#155503 Add title to document title dialog
Otherwise the title was just "Name"
Change-Id: I883d2468c7bd97782b0aef4165a6afe4ff39ce31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156659
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/AccessibilityCheckStrings.hrc | 3 | ||||
-rw-r--r-- | sw/source/core/access/AccessibilityIssue.cxx | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sw/inc/AccessibilityCheckStrings.hrc b/sw/inc/AccessibilityCheckStrings.hrc index 66370cd9e4b0..200d63965665 100644 --- a/sw/inc/AccessibilityCheckStrings.hrc +++ b/sw/inc/AccessibilityCheckStrings.hrc @@ -42,7 +42,8 @@ #define STR_DOCUMENT_DEFAULT_LANGUAGE NC_("STR_DOCUMENT_DEFAULT_LANGUAGE", "Document default language is not set.") #define STR_STYLE_NO_LANGUAGE NC_("STR_STYLE_NO_LANGUAGE", "Style “%STYLE_NAME%” has no language set.") #define STR_DOCUMENT_TITLE NC_("STR_DOCUMENT_TITLE", "Document title is not set.") -#define STR_ENTER_DOCUMENT_TITLE NC_("STR_ENTER_DOCUMENT_TITLE", "Enter document title:") +#define STR_DOCUMENT_TITLE_DLG_TITLE NC_("STR_DOCUMENT_TITLE_DLG_TITLE", "Document title") +#define STR_DOCUMENT_TITLE_DLG_DESC NC_("STR_DOCUMENT_TITLE_DLG_DESC", "Enter document title:") #define STR_ENTER_ALT NC_("STR_ENTER_ALT", "Enter alternative text:") diff --git a/sw/source/core/access/AccessibilityIssue.cxx b/sw/source/core/access/AccessibilityIssue.cxx index a915289f26ea..731930a9500e 100644 --- a/sw/source/core/access/AccessibilityIssue.cxx +++ b/sw/source/core/access/AccessibilityIssue.cxx @@ -235,11 +235,11 @@ void AccessibilityIssue::quickFixIssue() const break; case IssueObject::DOCUMENT_TITLE: { - OUString aDesc = SwResId(STR_ENTER_DOCUMENT_TITLE); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); SwWrtShell* pWrtShell = m_pDoc->GetDocShell()->GetWrtShell(); - ScopedVclPtr<AbstractSvxNameDialog> aNameDialog( - pFact->CreateSvxNameDialog(pWrtShell->GetView().GetFrameWeld(), "", aDesc)); + ScopedVclPtr<AbstractSvxNameDialog> aNameDialog(pFact->CreateSvxNameDialog( + pWrtShell->GetView().GetFrameWeld(), OUString(), + SwResId(STR_DOCUMENT_TITLE_DLG_DESC), SwResId(STR_DOCUMENT_TITLE_DLG_TITLE))); if (aNameDialog->Execute() == RET_OK) { SwDocShell* pShell = m_pDoc->GetDocShell(); |