diff --git a/icon-themes/breeze/links.txt b/icon-themes/breeze/links.txt
index a4b8e3bfdc5e..e91a80e82d23 100644
--- a/icon-themes/breeze/links.txt
+++ b/icon-themes/breeze/links.txt
@@ -1339,4 +1339,7 @@ vcl/res/index.png cmd/sc_insertmultiindex.png
xmlsecurity/res/key_12.png dbaccess/res/pkey.png
xmlsecurity/res/signet_11x16.png xmlsecurity/res/notcertificate_16.png
-
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/crystal/links.txt b/icon-themes/crystal/links.txt
index 6642c92201e9..2604ae436681 100644
--- a/icon-themes/crystal/links.txt
+++ b/icon-themes/crystal/links.txt
@@ -20,3 +20,8 @@ cmd/lc_mailmergenextentry.png cmd/lc_nextrecord.png
cmd/sc_mailmergenextentry.png cmd/sc_nextrecord.png
cmd/lc_mailmergepreventry.png cmd/lc_prevrecord.png
cmd/sc_mailmergepreventry.png cmd/sc_prevrecord.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/elementary/links.txt b/icon-themes/elementary/links.txt
index cc243550601f..b02e38646534 100644
--- a/icon-themes/elementary/links.txt
+++ b/icon-themes/elementary/links.txt
@@ -653,3 +653,8 @@ cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_previousslide.png cmd/sc_navigateback.png
cmd/sc_nextslide.png cmd/sc_navigateforward.png
cmd/sc_slidesetup.png cmd/sc_setdocumentproperties.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/galaxy/links.txt b/icon-themes/galaxy/links.txt
index b70b093bca1b..3cb75cc2bbbb 100644
--- a/icon-themes/galaxy/links.txt
+++ b/icon-themes/galaxy/links.txt
@@ -138,3 +138,8 @@ cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_previousslide.png cmd/sc_previouspage.png
cmd/sc_nextslide.png cmd/sc_nextpage.png
cmd/sc_slidesetup.png cmd/sc_setdocumentproperties.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/hicontrast/links.txt b/icon-themes/hicontrast/links.txt
index c26adeee0940..fc96ed65d055 100644
--- a/icon-themes/hicontrast/links.txt
+++ b/icon-themes/hicontrast/links.txt
@@ -43,3 +43,8 @@ cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_previousslide.png cmd/sc_previouspage.png
cmd/sc_nextslide.png cmd/sc_nextpage.png
cmd/sc_slidesetup.png cmd/sc_setdocumentproperties.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/human/links.txt b/icon-themes/human/links.txt
index 2b24056554e0..ee7bf1715465 100644
--- a/icon-themes/human/links.txt
+++ b/icon-themes/human/links.txt
@@ -42,3 +42,8 @@ cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_previousslide.png cmd/sc_previouspage.png
cmd/sc_nextslide.png cmd/sc_nextpage.png
cmd/sc_slidesetup.png cmd/sc_setdocumentproperties.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/oxygen/links.txt b/icon-themes/oxygen/links.txt
index 80cba48f895a..b30c383de71b 100644
--- a/icon-themes/oxygen/links.txt
+++ b/icon-themes/oxygen/links.txt
@@ -38,3 +38,8 @@ cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_previousslide.png cmd/sc_previouspage.png
cmd/sc_nextslide.png cmd/sc_nextpage.png
cmd/sc_slidesetup.png cmd/sc_setdocumentproperties.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/sifr/links.txt b/icon-themes/sifr/links.txt
index c17cb57ed36b..bdf0d87fa363 100644
--- a/icon-themes/sifr/links.txt
+++ b/icon-themes/sifr/links.txt
@@ -192,3 +192,8 @@ cmd/sc_deleteslide.png cmd/sc_deletepage.png
cmd/sc_firstslide.png cmd/sc_firstpage.png
cmd/sc_lastslide.png cmd/sc_lastpage.png
cmd/sc_slidesetup.png cmd/sc_pagesetup.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/icon-themes/tango/links.txt b/icon-themes/tango/links.txt
index ff991dc89cb8..3ecaa7198fc2 100644
--- a/icon-themes/tango/links.txt
+++ b/icon-themes/tango/links.txt
@@ -592,3 +592,8 @@ cmd/sc_displaymode.png cmd/sc_ok.png
cmd/sc_legend.png cmd/sc_ok.png
cmd/sc_dataranges.png cmd/sc_ok.png
cmd/sc_jumptospecificpage.png cmd/sc_ok.png
+
+cmd/lc_columnoperations.png cmd/lc_entirecolumn.png
+cmd/sc_columnoperations.png cmd/sc_entirecolumn.png
+cmd/lc_rowoperations.png cmd/lc_entirerow.png
+cmd/sc_rowoperations.png cmd/sc_entirerow.png
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
index fe2a061b9639..da6d836b6fe6 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/CalcCommands.xcu
@@ -2173,6 +2173,22 @@
~Number
+
+
+ Column Operations
+
+
+ 1
+
+
+
+
+ Row Operations
+
+
+ 1
+
+
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu b/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
index 14f6fc649293..3f7a319fd646 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
@@ -358,6 +358,34 @@
com.sun.star.comp.framework.NotebookbarMenuController
+
+
+ .uno:ColumnOperations
+
+
+ com.sun.star.sheet.SpreadsheetDocument
+
+
+ com.sun.star.comp.framework.ResourceMenuController
+
+
+ column_operations
+
+
+
+
+ .uno:RowOperations
+
+
+ com.sun.star.sheet.SpreadsheetDocument
+
+
+ com.sun.star.comp.framework.ResourceMenuController
+
+
+ row_operations
+
+
@@ -1231,6 +1259,28 @@
com.sun.star.comp.framework.GenericPopupToolbarController
+
+
+ .uno:ColumnOperations
+
+
+ com.sun.star.sheet.SpreadsheetDocument
+
+
+ com.sun.star.comp.framework.GenericPopupToolbarController
+
+
+
+
+ .uno:RowOperations
+
+
+ com.sun.star.sheet.SpreadsheetDocument
+
+
+ com.sun.star.comp.framework.GenericPopupToolbarController
+
+
diff --git a/sc/UIConfig_scalc.mk b/sc/UIConfig_scalc.mk
index 0a00bdadae48..76dc16986422 100644
--- a/sc/UIConfig_scalc.mk
+++ b/sc/UIConfig_scalc.mk
@@ -26,6 +26,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/scalc,\
sc/uiconfig/scalc/popupmenu/celledit \
sc/uiconfig/scalc/popupmenu/chart \
sc/uiconfig/scalc/popupmenu/colheader \
+ sc/uiconfig/scalc/popupmenu/column_operations \
sc/uiconfig/scalc/popupmenu/conditional \
sc/uiconfig/scalc/popupmenu/draw \
sc/uiconfig/scalc/popupmenu/drawtext \
@@ -39,6 +40,7 @@ $(eval $(call gb_UIConfig_add_popupmenufiles,modules/scalc,\
sc/uiconfig/scalc/popupmenu/pivot \
sc/uiconfig/scalc/popupmenu/preview \
sc/uiconfig/scalc/popupmenu/rowheader \
+ sc/uiconfig/scalc/popupmenu/row_operations \
sc/uiconfig/scalc/popupmenu/sheettab \
))
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index f413f7f91ad6..b2fedca171b1 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -277,6 +277,8 @@
#define SID_SEARCH_RESULTS_DIALOG (SC_MESSAGE_START + 83)
#define SID_WINDOW_FIX_ROW (SC_MESSAGE_START + 84)
#define SID_WINDOW_FIX_COL (SC_MESSAGE_START + 85)
+#define SID_COLUMN_OPERATIONS (SC_MESSAGE_START + 86)
+#define SID_ROW_OPERATIONS (SC_MESSAGE_START + 87)
// functions
diff --git a/sc/sdi/cellsh.sdi b/sc/sdi/cellsh.sdi
index 2cb1a679d7b8..0e8f0a823d3e 100644
--- a/sc/sdi/cellsh.sdi
+++ b/sc/sdi/cellsh.sdi
@@ -201,6 +201,8 @@ interface CellSelection
SID_CANCEL [ ExecMethod = Execute; ]
SID_TOGGLE_REL [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_POPUP_CONDFRMT []
+ SID_COLUMN_OPERATIONS [ ExecMethod = ExecuteEdit; StateMethod = GetBlockState; ]
+ SID_ROW_OPERATIONS [ ExecMethod = ExecuteEdit; StateMethod = GetBlockState; ]
SID_OPENDLG_CONDFRMT [ ExecMethod = ExecuteEdit; StateMethod = GetState; ]
SID_OPENDLG_COLORSCALE [ ExecMethod = ExecuteEdit; ]
SID_OPENDLG_DATABAR [ ExecMethod = ExecuteEdit; ]
diff --git a/sc/sdi/scalc.sdi b/sc/sdi/scalc.sdi
index 77a582bf76d5..77add5ae1996 100644
--- a/sc/sdi/scalc.sdi
+++ b/sc/sdi/scalc.sdi
@@ -971,6 +971,20 @@ SfxVoidItem CreateSWDrawView SID_CREATE_SW_DRAWVIEW
GroupId = GID_INSERT;
]
+SfxVoidItem ColumnOperations SID_COLUMN_OPERATIONS
+[
+ AutoUpdate = FALSE,
+ FastCall = FALSE,
+ ReadOnlyDoc = FALSE,
+ Toggle = FALSE,
+ Container = FALSE,
+ NoRecord;
+
+ AccelConfig = FALSE,
+ MenuConfig = TRUE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_OPTIONS;
+]
SfxObjectItem CurrentRegion SID_RANGE_REGION
@@ -2339,6 +2353,21 @@ SfxVoidItem RegressionDialog SID_REGRESSION_DIALOG
GroupId = GID_OPTIONS;
]
+SfxVoidItem RowOperations SID_ROW_OPERATIONS
+[
+ AutoUpdate = FALSE,
+ FastCall = FALSE,
+ ReadOnlyDoc = FALSE,
+ Toggle = FALSE,
+ Container = FALSE,
+ NoRecord;
+
+ AccelConfig = FALSE,
+ MenuConfig = TRUE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_OPTIONS;
+]
+
SfxVoidItem TTestDialog SID_TTEST_DIALOG
()
[
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 9f060ef7dde0..b804414c5a68 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -230,6 +230,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
case FID_INS_ROWS_BEFORE: // insert rows
case FID_INS_ROWS_AFTER:
case FID_INS_CELLSDOWN:
+ case SID_ROW_OPERATIONS:
bDisable = (!bSimpleArea) || GetViewData()->SimpleColMarked();
break;
@@ -237,6 +238,7 @@ void ScCellShell::GetBlockState( SfxItemSet& rSet )
case FID_INS_COLUMNS_BEFORE: // insert columns
case FID_INS_COLUMNS_AFTER:
case FID_INS_CELLSRIGHT:
+ case SID_COLUMN_OPERATIONS:
bDisable = (!bSimpleArea) || GetViewData()->SimpleRowMarked();
break;
diff --git a/sc/uiconfig/scalc/popupmenu/column_operations.xml b/sc/uiconfig/scalc/popupmenu/column_operations.xml
new file mode 100644
index 000000000000..3ed8eda5f892
--- /dev/null
+++ b/sc/uiconfig/scalc/popupmenu/column_operations.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sc/uiconfig/scalc/popupmenu/row_operations.xml b/sc/uiconfig/scalc/popupmenu/row_operations.xml
new file mode 100644
index 000000000000..f3ebed07e4e4
--- /dev/null
+++ b/sc/uiconfig/scalc/popupmenu/row_operations.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sc/uiconfig/scalc/toolbar/standardbar.xml b/sc/uiconfig/scalc/toolbar/standardbar.xml
index 9416e6da8a18..cdb3aa37fac8 100644
--- a/sc/uiconfig/scalc/toolbar/standardbar.xml
+++ b/sc/uiconfig/scalc/toolbar/standardbar.xml
@@ -47,12 +47,8 @@
-
-
-
-
-
-
+
+