diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-21 09:21:42 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-12-21 17:00:00 +0100 |
commit | 9c4350441191ccfd6af3d73e13b4eb59af7ed6d1 (patch) | |
tree | 9f45dea73260ff3ad84e89203b98b6d0f2b1258a /sc/source/ui/docshell/docsh4.cxx | |
parent | e07937bb4eccda742b03bfa9e7f0eb9d4e899e4e (diff) |
unused SID commands in sc
Change-Id: Ifb732e0a52ac7222e0dfb7054981708fa5722b35
Reviewed-on: https://gerrit.libreoffice.org/46886
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 4647f2675f3a..0c65b5ed52ca 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -121,51 +121,6 @@ void ScDocShell::Execute( SfxRequest& rReq ) sal_uInt16 nSlot = rReq.GetSlot(); switch ( nSlot ) { - case SID_SC_SETTEXT: - { - const SfxPoolItem* pColItem; - const SfxPoolItem* pRowItem; - const SfxPoolItem* pTabItem; - const SfxPoolItem* pTextItem; - if( pReqArgs && pReqArgs->HasItem( FN_PARAM_1, &pColItem ) && - pReqArgs->HasItem( FN_PARAM_2, &pRowItem ) && - pReqArgs->HasItem( FN_PARAM_3, &pTabItem ) && - pReqArgs->HasItem( SID_SC_SETTEXT, &pTextItem ) ) - { - // parameters are 1-based !!! - SCCOL nCol = static_cast<const SfxInt16Item*>(pColItem)->GetValue() - 1; - SCROW nRow = static_cast<const SfxInt32Item*>(pRowItem)->GetValue() - 1; - SCTAB nTab = static_cast<const SfxInt16Item*>(pTabItem)->GetValue() - 1; - - SCTAB nTabCount = aDocument.GetTableCount(); - if ( ValidCol(nCol) && ValidRow(nRow) && ValidTab(nTab,nTabCount) ) - { - if ( aDocument.IsBlockEditable( nTab, nCol,nRow, nCol, nRow ) ) - { - OUString aVal = static_cast<const SfxStringItem*>(pTextItem)->GetValue(); - aDocument.SetString( nCol, nRow, nTab, aVal ); - - PostPaintCell( nCol, nRow, nTab ); - SetDocumentModified(); - - rReq.Done(); - break; - } - else // protected cell - { -#if HAVE_FEATURE_SCRIPTING - SbxBase::SetError( ERRCODE_BASIC_BAD_PARAMETER ); //! which error ? -#endif - break; - } - } - } -#if HAVE_FEATURE_SCRIPTING - SbxBase::SetError( ERRCODE_BASIC_NO_OBJECT ); -#endif - } - break; - case SID_SBA_IMPORT: { if (pReqArgs) @@ -556,10 +511,6 @@ void ScDocShell::Execute( SfxRequest& rReq ) } break; - case SID_AUTO_STYLE: - OSL_FAIL("use ScAutoStyleHint instead of SID_AUTO_STYLE"); - break; - case SID_GET_COLORLIST: { const SvxColorListItem* pColItem = static_cast<const SvxColorListItem*>(GetItem(SID_COLOR_TABLE)); |