summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-09-07 18:10:30 +0300
committerخالد حسني <khaled@libreoffice.org>2023-09-08 04:24:48 +0200
commit3c24177104dfa5b8d68d74bf1735839964e93ba6 (patch)
tree9683f6be41aff22aacc609a7489fdf5b0fea1520 /starmath/inc
parentbeaea2e992912b4747d790070b26371f557b1f57 (diff)
tdf#88744: Use real clipboard when inline editing is enabled
Instead of using a fake clipboard that works only inside the same formula. Change-Id: Ia1e97028e1aafa15912bc9b4397d66afb0d23ec7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156671 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/cursor.hxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx
index 0a8a35071f10..a44c9ed61340 100644
--- a/starmath/inc/cursor.hxx
+++ b/starmath/inc/cursor.hxx
@@ -158,15 +158,15 @@ public:
void InsertBrackets(SmBracketType eBracketType);
/** Copy the current selection */
- void Copy();
+ void Copy(vcl::Window* pWindow = nullptr);
/** Cut the current selection */
- void Cut()
+ void Cut(vcl::Window* pWindow = nullptr)
{
- Copy();
+ Copy(pWindow);
Delete();
}
/** Paste the clipboard */
- void Paste();
+ void Paste(vcl::Window* pWindow = nullptr);
/** Returns true if more than one node is selected
*
@@ -201,8 +201,6 @@ private:
SmDocShell* mpDocShell;
/** Graph over caret position in the current tree */
std::unique_ptr<SmCaretPosGraph> mpGraph;
- /** Clipboard holder */
- SmClipboard maClipboard;
/** Returns a node that is selected, if any could be found */
SmNode* FindSelectedNode(SmNode* pNode);