diff options
author | Philippe Jung <phil.jung@free.fr> | 2015-05-17 17:42:54 +0200 |
---|---|---|
committer | Yousuf Philips <philipz85@hotmail.com> | 2015-05-20 10:31:33 +0000 |
commit | 447783a97777b2053acd74d265af3ed2a6c5c93a (patch) | |
tree | ad1915b5842e4db9e3d22cd20f0e1c3b7bbcd089 /sw/sdi | |
parent | f8b4c783c6269e108ade08cd9896b845e3b7ae3a (diff) |
tdf#90882 Writer: insert row/col before/after
From the contextual menu, it is now possible to insert rows or cols
before the current position.
Number of rows/cols inserted is based on current selection.
Change-Id: Ie1a718fbb1b8caf67716f9c8fad21f90d182ca79
Reviewed-on: https://gerrit.libreoffice.org/15773
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Diffstat (limited to 'sw/sdi')
-rw-r--r-- | sw/sdi/_tabsh.sdi | 18 | ||||
-rw-r--r-- | sw/sdi/swriter.sdi | 52 |
2 files changed, 66 insertions, 4 deletions
diff --git a/sw/sdi/_tabsh.sdi b/sw/sdi/_tabsh.sdi index c7405728b0f9..63792fe7b0e7 100644 --- a/sw/sdi/_tabsh.sdi +++ b/sw/sdi/_tabsh.sdi @@ -141,7 +141,14 @@ interface BaseTextTable StateMethod = NoState ; ] - FN_TABLE_INSERT_COL // status(final|play) + FN_TABLE_INSERT_COL_BEFORE // status(final|play) + [ + ExecMethod = Execute ; + StateMethod = NoState ; + DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; + ] + + FN_TABLE_INSERT_COL_AFTER // status(final|play) [ ExecMethod = Execute ; StateMethod = NoState ; @@ -155,7 +162,14 @@ interface BaseTextTable DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; ] - FN_TABLE_INSERT_ROW // status(final|play) + FN_TABLE_INSERT_ROW_BEFORE // status(final|play) + [ + ExecMethod = Execute ; + StateMethod = GetState ; + DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR"; + ] + + FN_TABLE_INSERT_ROW_AFTER // status(final|play) [ ExecMethod = Execute ; StateMethod = GetState ; diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi index deea1c010e7e..c7d9dfdda9e3 100644 --- a/sw/sdi/swriter.sdi +++ b/sw/sdi/swriter.sdi @@ -3610,7 +3610,31 @@ SfxVoidItem InsertColumnDialog FN_TABLE_INSERT_COL_DLG GroupId = GID_TABLE; ] -SfxVoidItem InsertColumns FN_TABLE_INSERT_COL +SfxVoidItem InsertColumnsBefore FN_TABLE_INSERT_COL_BEFORE +() +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = TRUE, + HasCoreId = FALSE, + HasDialog = TRUE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + /* config: */ + AccelConfig = FALSE, + MenuConfig = FALSE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_TABLE; +] + +SfxVoidItem InsertColumnsAfter FN_TABLE_INSERT_COL_AFTER () [ /* flags: */ @@ -4356,7 +4380,31 @@ SfxVoidItem InsertRowDialog FN_TABLE_INSERT_ROW_DLG GroupId = GID_TABLE; ] -SfxVoidItem InsertRows FN_TABLE_INSERT_ROW +SfxVoidItem InsertRowsBefore FN_TABLE_INSERT_ROW_BEFORE +() +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = TRUE, + HasCoreId = FALSE, + HasDialog = TRUE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Asynchron; + + /* config: */ + AccelConfig = FALSE, + MenuConfig = FALSE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_TABLE; +] + +SfxVoidItem InsertRowsAfter FN_TABLE_INSERT_ROW_AFTER () [ /* flags: */ |