summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2024-01-13 22:26:48 +0100
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2024-02-01 13:37:28 +0100
commit22b5007e2740e1f461968f3c8e919326eb4d4785 (patch)
treeb6960573ca0068e1ca3b4febe45714c83313c1a0 /include/vcl
parent7bcce4180d11f6f49a71f681eeefc556fc2302ba (diff)
tdf#140004 Toggle comment in the Basic IDE
This patch adds the "toggle comment" functionality to the Basic IDE. The shortcut Ctrl + Alt + C is used to execute it. It works similarly to other code editors such as Kate and VSCode. Change-Id: Ifdae42b3729cc909baf87c729fe8c3cdf6428184 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162005 Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/textview.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/textview.hxx b/include/vcl/textview.hxx
index 84a89e8c58d8..0de1f7c0d5a9 100644
--- a/include/vcl/textview.hxx
+++ b/include/vcl/textview.hxx
@@ -222,6 +222,9 @@ public:
bool IndentBlock();
bool UnindentBlock();
+
+ // Used in the Basic IDE to toggle comment on a block of code
+ void ToggleComment();
};
#endif