diff options
author | Philippe Jung <phil.jung@free.fr> | 2015-05-20 16:54:27 +0200 |
---|---|---|
committer | Yousuf Philips <philipz85@hotmail.com> | 2015-05-31 17:58:21 +0000 |
commit | f97beeef352fdd9fd4f157a7a4c4f6af8341cbe6 (patch) | |
tree | 076844dfeccb7836fab99fc876cfd1488b75cc07 /sc/qa/unit/ucalc.cxx | |
parent | 08e278b411a3b824e9af611ebb1763c1f4f80ef2 (diff) |
Calc: Insert row/col before/after [1/2]
This part renames all INSROW / INSCOL to
INSROWS_BEFORE / INSCOLS_BEFORE which is
the current (default) behaviour.
Change-Id: Ia084f17a3be8bf09908e5d227ef4e6d09b8420a4
Reviewed-on: https://gerrit.libreoffice.org/15830
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index dcc8cc17c493..c16dfb89b762 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -4098,7 +4098,7 @@ void Test::testCopyPasteRepeatOneFormula() ScRange aRowOne(0,0,0,MAXCOL,0,0); aMark.SetMarkArea(aRowOne); ScDocFunc& rFunc = getDocShell().GetDocFunc(); - rFunc.InsertCells(aRowOne, &aMark, INS_INSROWS, true, true, false); + rFunc.InsertCells(aRowOne, &aMark, INS_INSROWS_BEFORE, true, true, false); CPPUNIT_ASSERT_MESSAGE("C1 should be empty.", m_pDoc->GetCellType(ScAddress(2,0,0)) == CELLTYPE_NONE); @@ -4155,7 +4155,7 @@ void Test::testMergedCells() ScRange aRange(0,2,0,MAXCOL,2,0); ScMarkData aMark; aMark.SetMarkArea(aRange); - getDocShell().GetDocFunc().InsertCells(aRange, &aMark, INS_INSROWS, true, true); + getDocShell().GetDocFunc().InsertCells(aRange, &aMark, INS_INSROWS_BEFORE, true, true); m_pDoc->ExtendMerge(1, 1, nEndCol, nEndRow, 0, false); CPPUNIT_ASSERT_MESSAGE("did not increase merge area", nEndCol == 3 && nEndRow == 4); m_pDoc->DeleteTab(0); @@ -6590,7 +6590,7 @@ void Test::testUndoDataAnchor() ScDocFunc& rFunc = getDocShell().GetDocFunc(); ScMarkData aMark; aMark.SelectOneTable(0); - rFunc.InsertCells(ScRange( 0, aOldStart.Row() - 1, 0, MAXCOL, aOldStart.Row(), 0 ), &aMark, INS_INSROWS, true, true, false); + rFunc.InsertCells(ScRange( 0, aOldStart.Row() - 1, 0, MAXCOL, aOldStart.Row(), 0 ), &aMark, INS_INSROWS_BEFORE, true, true, false); pData = ScDrawLayer::GetObjData(pObj, false); CPPUNIT_ASSERT_MESSAGE("Failed to retrieve user data for this object.", pData); |