diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-01-18 16:35:42 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2015-01-18 16:36:27 +0100 |
commit | dcd291330b95e6493e341ae40ef1afe1482fcd24 (patch) | |
tree | 5d8f69c618e8a93caf68ef8f924c2da7f686aa95 /sc/qa/unit | |
parent | 22aebd531dbd6230214b4dc7f5342694f9b448af (diff) |
rename AddRange to SetRange
Change-Id: I696fcbd2896aefda38314457b6838874262ad111
Diffstat (limited to 'sc/qa/unit')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index fe01944f3d85..eb4454f33f34 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -3660,7 +3660,7 @@ void Test::testCopyPasteSkipEmptyConditionalFormatting() m_pDoc->SetCondFormList(pCondFormatList, 0); ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); - pFormat->AddRange(aDestRange); + pFormat->SetRange(aDestRange); sal_uLong nCondFormatKey = m_pDoc->AddCondFormat(pFormat, 0); // Prepare a clipboard content interleaved with empty cells. @@ -3675,7 +3675,7 @@ void Test::testCopyPasteSkipEmptyConditionalFormatting() aClipDoc.SetValue(4,5,0,2); ScConditionalFormat* pClipFormat = new ScConditionalFormat(2, &aClipDoc); - pClipFormat->AddRange(aSrcRange); + pClipFormat->SetRange(aSrcRange); aClipDoc.AddCondFormat(pClipFormat, 0); // Create undo document. @@ -5466,7 +5466,7 @@ void Test::testCondFormatINSDEL() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRangeList aRangeList(ScRange(0,0,0,0,3,0)); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5490,7 +5490,7 @@ void Test::testCondFormatInsertCol() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRangeList aRangeList(ScRange(0,0,0,3,3,0)); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5512,7 +5512,7 @@ void Test::testCondFormatInsertRow() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRangeList aRangeList(ScRange(0,0,0,3,3,0)); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5533,7 +5533,7 @@ void Test::testCondFormatInsertDeleteSheets() // Add a conditional format to B2:B4. ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); - pFormat->AddRange(ScRange(1,1,0,1,3,0)); + pFormat->SetRange(ScRange(1,1,0,1,3,0)); sal_uLong nKey = m_pDoc->AddCondFormat(pFormat, 0); @@ -5640,7 +5640,7 @@ void Test::testCondCopyPaste() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRange aCondFormatRange(0,0,0,3,3,0); ScRangeList aRangeList(aCondFormatRange); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5674,7 +5674,7 @@ void Test::testCondCopyPasteSingleCell() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRange aCondFormatRange(0,0,0,3,3,0); ScRangeList aRangeList(aCondFormatRange); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5708,7 +5708,7 @@ void Test::testCondCopyPasteSingleCellToRange() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRange aCondFormatRange(0,0,0,3,3,0); ScRangeList aRangeList(aCondFormatRange); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5750,7 +5750,7 @@ void Test::testCondCopyPasteSheetBetweenDoc() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRange aCondFormatRange(0,0,0,3,3,0); ScRangeList aRangeList(aCondFormatRange); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5772,7 +5772,7 @@ void Test::testCondCopyPasteSheet() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRange aCondFormatRange(0,0,0,3,3,0); ScRangeList aRangeList(aCondFormatRange); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScCondFormatEntry* pEntry = new ScCondFormatEntry(SC_COND_DIRECT,"=B2","",m_pDoc,ScAddress(0,0,0),ScGlobal::GetRscString(STR_STYLENAME_RESULT)); pFormat->AddEntry(pEntry); @@ -5805,7 +5805,7 @@ void Test::testIconSet() ScConditionalFormat* pFormat = new ScConditionalFormat(1, m_pDoc); ScRangeList aRangeList(ScRange(0,0,0,0,0,0)); - pFormat->AddRange(aRangeList); + pFormat->SetRange(aRangeList); ScIconSetFormat* pEntry = new ScIconSetFormat(m_pDoc); ScIconSetFormatData* pData = new ScIconSetFormatData; |