diff options
author | László Németh <nemeth@numbertext.org> | 2019-10-25 15:02:26 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-11-05 09:52:17 +0100 |
commit | 0c8b1efbad48fa9697c0b1afbe4753bbbc3c4c5c (patch) | |
tree | ad993d5bdff4265a18ab8a9c4106a1b1091646dd /sw/inc/fesh.hxx | |
parent | 966227d9d1e6301f3c39c135d966e433f0c83771 (diff) |
tdf#127759 Writer: add table row/column insert mode
using enhanced table selection.
When the table rows or columns are selected by
enhanced table selection, ie. clicking in front of them,
next Cut operation cuts the selected rows or
columns completely without leaving empty cells.
Pasting them results insertion before the actual
row/column instead of overwriting the actual and
the next rows/columns. This greatly speeds up
moving table rows and columns, like in MSO.
Change-Id: I6d82ca8aad4888ab37bdb9a89d37102763fcd6c6
Reviewed-on: https://gerrit.libreoffice.org/81503
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/inc/fesh.hxx')
-rw-r--r-- | sw/inc/fesh.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index 49d168233ebe..f60f92cff44e 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -639,6 +639,11 @@ public: void DeleteTable(); bool DeleteRow(bool bCompleteTable = false); + /// insert table rows or columns instead of overwriting the existing table cells + SwTable::SearchType m_eTableInsertMode; + SwTable::SearchType GetTableInsertMode() const { return m_eTableInsertMode; } + void SetTableInsertMode( SwTable::SearchType eFlag ) { m_eTableInsertMode = eFlag; } + bool DeleteTableSel(); ///< Current selection, may be whole table. TableMergeErr MergeTab(); /**< Merge selected parts of table */ |