diff options
author | László Németh <nemeth@numbertext.org> | 2019-12-11 15:38:05 +0100 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-12-14 17:58:54 +0100 |
commit | 1e278d1d0cfb1d5375195aa764739f00633f21e8 (patch) | |
tree | 13e94f15370305dec09a0d209b71a863e60f8eba /sw/sdi | |
parent | 9f9a0557c16a6b274ba60f5efc983978d1a88762 (diff) |
tdf#37156 Writer menu: Paste as Nested table
Paste table data in Writer tables overwrites the
content of the existing cells, when the cursor is
there in an empty cell or at the beginning of the
first paragraph of a table cell.
Using the new Paste Special option "As Nested Table"
of table popup (local) menu and Edit->Paste Special,
(based on the new .uno:PasteNestedTable command),
clipboard content (including native tables or tables
copied from Calc or other spreadsheets) are inserted
as nested tables in empty cells and at cell starting
cursor positions.
Change-Id: I32807200883651e492ae280efce7bf9806f22283
Reviewed-on: https://gerrit.libreoffice.org/85094
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/sdi')
-rw-r--r-- | sw/sdi/_basesh.sdi | 7 | ||||
-rw-r--r-- | sw/sdi/swriter.sdi | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/sw/sdi/_basesh.sdi b/sw/sdi/_basesh.sdi index 472198cdc922..886ae2863a9f 100644 --- a/sw/sdi/_basesh.sdi +++ b/sw/sdi/_basesh.sdi @@ -115,6 +115,13 @@ interface BaseTextSelection DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; ] + FN_PASTE_NESTED_TABLE // status(final|play) + [ + ExecMethod = ExecClpbrd ; + StateMethod = StateClpbrd ; + DisableFlags="SfxDisableFlags::SwOnProtectedCursor"; + ] + FN_REPAGINATE // status(final|play) [ ExecMethod = Execute ; diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index 78dfda33e744..321804cda1bf 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -2681,6 +2681,24 @@ SfxVoidItem InsertColumnsAfter FN_TABLE_INSERT_COL_AFTER GroupId = SfxGroupId::Table; ] +SfxVoidItem PasteNestedTable FN_PASTE_NESTED_TABLE +() +[ + AutoUpdate = FALSE, + FastCall = TRUE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + AccelConfig = FALSE, + MenuConfig = TRUE, + ToolBoxConfig = TRUE, + GroupId = SfxGroupId::Edit; +] + SfxUInt16Item InsertSection FN_INSERT_REGION (SfxUInt16Item Columns SID_ATTR_COLUMNS,SfxStringItem RegionName FN_PARAM_REGION_NAME,SfxStringItem RegionCondition FN_PARAM_REGION_CONDITION,SfxBoolItem RegionHidden FN_PARAM_REGION_HIDDEN,SfxBoolItem RegionProtect FN_PARAM_REGION_PROTECT,SfxStringItem LinkName FN_PARAM_1,SfxStringItem FilterName FN_PARAM_2,SfxStringItem SubRegion FN_PARAM_3) [ |