summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-06 11:27:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-06 17:56:43 +0200
commit57ac9d6176305ad1d405b83a9423cd103bdaa20b (patch)
treea6af27de34e9f55a41f05aef5a1bccf680fa8354 /vcl/source
parent06eae82ca662c9e34df18417f0ab602c212ed64a (diff)
add get_editable and clipboard interaction to TextView
Change-Id: I5d0e1823685ef2334571d5279a300d177ac4a9db Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98206 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/salvtables.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 6343dfe21ffe..dcc4b53b9887 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -5463,6 +5463,7 @@ public:
}
virtual void set_editable(bool bEditable) override { m_xTextView->SetReadOnly(!bEditable); }
+ virtual bool get_editable() const override { return !m_xTextView->IsReadOnly(); }
virtual void set_monospace(bool bMonospace) override
{
@@ -5485,6 +5486,21 @@ public:
weld::TextView::connect_cursor_position(rLink);
}
+ virtual void cut_clipboard() override
+ {
+ m_xTextView->Cut();
+ }
+
+ virtual void copy_clipboard() override
+ {
+ m_xTextView->Copy();
+ }
+
+ virtual void paste_clipboard() override
+ {
+ m_xTextView->Paste();
+ }
+
virtual int vadjustment_get_value() const override
{
ScrollBar& rVertScrollBar = m_xTextView->GetVScrollBar();