summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/optpage.hxx
diff options
context:
space:
mode:
authorYiğit Akçay <yigit.akcay@icloud.com>2024-01-25 23:05:59 +0300
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2024-02-28 10:37:50 +0100
commita7dd2e5a4712083cc5934e1d677e7dff86ceb7e6 (patch)
tree06f78ac305dd36215bbf8108d26328c57aff43db /sw/source/uibase/inc/optpage.hxx
parent9d3366f5b392418dc83bc0adbe3d215cff4b3605 (diff)
tdf#151710 Enable enclosing of selected text with characters
This patch implements a new setting in Tools -> Options -> Writer -> Formatting Aids -> Autocomplete -> Enclose with characters. When this option is enabled (default), selected text is enclosed with parentheses, square brackets, curly braces or quotation marks, depending on which character is pressed. For example, if the selected text is "abcd", the option is enabled and the button for the character '(' is hit, the text is replaced with "(abcd)". Change-Id: Ibc5b7be3cc96f00217dd068971e7c07e68439700 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162583 Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/inc/optpage.hxx')
-rw-r--r--sw/source/uibase/inc/optpage.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/optpage.hxx b/sw/source/uibase/inc/optpage.hxx
index e2641fd7fc2b..68192a64f1d4 100644
--- a/sw/source/uibase/inc/optpage.hxx
+++ b/sw/source/uibase/inc/optpage.hxx
@@ -318,6 +318,10 @@ class SwShdwCursorOptionsTabPage final : public SfxTabPage
std::unique_ptr<weld::CheckButton> m_xMathBaselineAlignmentCB;
std::unique_ptr<weld::Widget> m_xMathBaselineAlignmentImg;
+ std::unique_ptr<weld::Frame> m_xFmtAidsAutoComplFrame;
+ std::unique_ptr<weld::CheckButton> m_xEncloseWithCharactersCB;
+ std::unique_ptr<weld::Widget> m_xEncloseWithCharactersImg;
+
public:
SwShdwCursorOptionsTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
virtual ~SwShdwCursorOptionsTabPage() override;