summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-03-02 11:43:54 +0100
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2021-03-02 15:37:16 +0100
commit7838c4a955eaccd625116fa1508d66f7fd2a95da (patch)
tree7c03c8f76eb72749c45fc385afa5f49052ffde3e
parenta2d5b5224aff4358865e73c3c0f67d47ce4b9b99 (diff)
Related tdf#128469 - Change label of Standard button
Change-Id: I1bfc7cbfa71cf76d1cd76db83d8a7f951535e47e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111821 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Jenkins
-rw-r--r--include/sfx2/tabdlg.hxx1
-rw-r--r--sw/inc/strings.hrc2
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx5
3 files changed, 8 insertions, 0 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx
index 2c3352785f31..9afebad1ba58 100644
--- a/include/sfx2/tabdlg.hxx
+++ b/include/sfx2/tabdlg.hxx
@@ -138,6 +138,7 @@ public:
virtual weld::Button& GetOKButton() const override { return *m_xOKBtn; }
weld::Button& GetCancelButton() const { return *m_xCancelBtn; }
+ weld::Button& GetStandardButton() const { return *m_xBaseFmtBtn; }
weld::Button* GetUserButton() const { return m_xUserBtn.get(); }
void RemoveResetButton();
void RemoveStandardButton();
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index 3b5da067e5d6..45fe987ddf3e 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -23,6 +23,8 @@
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
#define NNC_(Context, StringSingular, StringPlural) reinterpret_cast<char const *>(Context "\004" u8##StringSingular "\004" u8##StringPlural)
+
+#define STR_STANDARD_ACTION NC_("STR_STANDARD_ACTION", "Set to ~Parent")
// Format names
#define STR_POOLCHR_STANDARD NC_("STR_POOLCHR_STANDARD", "Default Character Style")
#define STR_POOLCHR_FOOTNOTE NC_("STR_POOLCHR_FOOTNOTE", "Footnote Characters")
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx
index b87107fd8299..ae69c35093d3 100644
--- a/sw/source/ui/fmtui/tmpdlg.cxx
+++ b/sw/source/ui/fmtui/tmpdlg.cxx
@@ -47,6 +47,7 @@
#include <poolfmt.hxx>
#include <uitool.hxx>
#include <shellres.hxx>
+#include <strings.hrc>
#include <cmdid.h>
#include <SwStyleNameMapper.hxx>
@@ -75,6 +76,10 @@ SwTemplateDlgController::SwTemplateDlgController(weld::Window* pParent,
{
nHtmlMode = ::GetHtmlMode(pWrtShell->GetView().GetDocShell());
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
+
+ weld::Button& pStandardButton(GetStandardButton());
+ pStandardButton.set_label(SwResId(STR_STANDARD_ACTION));
+
// stitch TabPages together
switch( nRegion )
{