diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-11-22 17:57:15 -0900 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-11-24 08:09:42 +0100 |
commit | 8ba1c4e27376cbd73892768d1e741067918eb897 (patch) | |
tree | 76089bd4497aa862d6ed776040b0b59a3e9f6487 /include | |
parent | b1fad7043a7286d5d9bb33c9ed9235f044d92aed (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/weld.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
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); } }; |