From 8ba1c4e27376cbd73892768d1e741067918eb897 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Tue, 22 Nov 2022 17:57:15 -0900 Subject: tdf#152165 Improve the 'Read-only Content' dialog message This patch implements user j.a.swami's suggested improvement of the messages shown in the 'Read-only Content' dialog when trying to delete a selection in the document that has folded content. In doing so, repeated code to create and run the dialog at each place it is used is replaced by a single function call. Change-Id: If79298e0ee920e60620934f1eacc98c776e5d33e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143132 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/weld.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 9bb5bfb6ed74..9047fe3aa753 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -2660,6 +2660,8 @@ public: virtual ~MessageDialogController() override; void set_primary_text(const OUString& rText) { m_xDialog->set_primary_text(rText); } OUString get_primary_text() const { return m_xDialog->get_primary_text(); } + void set_secondary_text(const OUString& rText) { m_xDialog->set_secondary_text(rText); } + OUString get_secondary_text() const { return m_xDialog->get_secondary_text(); } void set_default_response(int nResponse) { m_xDialog->set_default_response(nResponse); } }; -- cgit