diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 09:27:27 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-08 15:48:10 -0400 |
commit | 148ee8f8dfeaf5e84c36017f25e78f59b662bbe6 (patch) | |
tree | 79ee16329407e5fdc668c18dc989f67107ab4d1f /sc | |
parent | 10579fcdbfe7873affaecffb09b13fa97a4c6b23 (diff) |
Rename GetCellStringPool() to GetSharedStringPool().
Change-Id: I99d373f7887424bb103cff60d53f5cd8ce337ef7
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/document.hxx | 4 | ||||
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/column.cxx | 6 | ||||
-rw-r--r-- | sc/source/core/data/column2.cxx | 6 | ||||
-rw-r--r-- | sc/source/core/data/column3.cxx | 16 | ||||
-rw-r--r-- | sc/source/core/data/documen2.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/documentimport.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/validat.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/xcl97/XclImpChangeTrack.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLDDELinksContext.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLTrackedChangesContext.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/undo/undocell.cxx | 2 |
13 files changed, 30 insertions, 30 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 22d6eeda6822..c1fdacbe4ec8 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -853,8 +853,8 @@ public: */ double* GetValueCell( const ScAddress& rPos ); - SC_DLLPUBLIC svl::SharedStringPool& GetCellStringPool(); - const svl::SharedStringPool& GetCellStringPool() const; + SC_DLLPUBLIC svl::SharedStringPool& GetSharedStringPool(); + const svl::SharedStringPool& GetSharedStringPool() const; sal_uIntPtr GetCellStringID( const ScAddress& rPos ) const; sal_uIntPtr GetCellStringIDIgnoreCase( const ScAddress& rPos ) const; diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 8017845d6a61..3c7bf0740308 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -502,7 +502,7 @@ void Test::testCellStringPool() CPPUNIT_ASSERT_MESSAGE("They must be equal when cases are ignored.", nId1 == nId2); // Check the string counts after purging. Purging shouldn't remove any strings in this case. - svl::SharedStringPool& rPool = m_pDoc->GetCellStringPool(); + svl::SharedStringPool& rPool = m_pDoc->GetSharedStringPool(); rPool.purge(); CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(4), rPool.getCount()); CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), rPool.getCountIgnoreCase()); @@ -1475,7 +1475,7 @@ struct PartiallyFilledEmptyMatrix void Test::testMatrix() { - svl::SharedStringPool& rPool = m_pDoc->GetCellStringPool(); + svl::SharedStringPool& rPool = m_pDoc->GetSharedStringPool(); ScMatrixRef pMat, pMat2; // First, test the zero matrix type. diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index 4502fe0f4a84..bdfb9c56c390 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1477,7 +1477,7 @@ void ScColumn::CopyStaticToDocument(SCROW nRow1, SCROW nRow2, ScColumn& rDestCol for (; itData != itDataEnd; ++itData) { const EditTextObject& rObj = **itData; - svl::SharedString aSS = pDocument->GetCellStringPool().intern(ScEditUtil::GetString(rObj, pDocument)); + svl::SharedString aSS = pDocument->GetSharedStringPool().intern(ScEditUtil::GetString(rObj, pDocument)); aConverted.push_back(aSS); } aDestPos.miCellPos = rDestCol.maCells.set(aDestPos.miCellPos, nCurRow, aConverted.begin(), aConverted.end()); @@ -1507,7 +1507,7 @@ void ScColumn::CopyStaticToDocument(SCROW nRow1, SCROW nRow2, ScColumn& rDestCol aDestPos.miCellPos = rDestCol.maCells.set(aDestPos.miCellPos, nRow, rFC.GetValue()); else { - svl::SharedString aSS = pDocument->GetCellStringPool().intern(rFC.GetString()); + svl::SharedString aSS = pDocument->GetSharedStringPool().intern(rFC.GetString()); if (aSS.getData()) aDestPos.miCellPos = rDestCol.maCells.set(aDestPos.miCellPos, nRow, aSS); } @@ -1800,7 +1800,7 @@ class CopyByCloneHandler } else { - svl::SharedString aSS = mrDestCol.GetDoc().GetCellStringPool().intern(aStr); + svl::SharedString aSS = mrDestCol.GetDoc().GetSharedStringPool().intern(aStr); if (aSS.getData()) { maDestPos.miCellPos = diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 0f13a2635aa5..21ef99fc71e5 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1018,7 +1018,7 @@ protected: public: void commitStrings() { - svl::SharedStringPool& rPool = mpDoc->GetCellStringPool(); + svl::SharedStringPool& rPool = mpDoc->GetSharedStringPool(); sc::CellStoreType::iterator it = mrCells.begin(); std::vector<StrEntry>::iterator itStr = maStrEntries.begin(), itStrEnd = maStrEntries.end(); for (; itStr != itStrEnd; ++itStr) @@ -1957,7 +1957,7 @@ class FillMatrixHandler public: FillMatrixHandler(ScMatrix& rMat, size_t nMatCol, size_t nTopRow, SCCOL nCol, SCTAB nTab, ScDocument* pDoc) : - mrMat(rMat), mnMatCol(nMatCol), mnTopRow(nTopRow), mnCol(nCol), mnTab(nTab), mpDoc(pDoc), mrPool(pDoc->GetCellStringPool()) {} + mrMat(rMat), mnMatCol(nMatCol), mnTopRow(nTopRow), mnCol(nCol), mnTab(nTab), mpDoc(pDoc), mrPool(pDoc->GetSharedStringPool()) {} void operator() (const sc::CellStoreType::value_type& node, size_t nOffset, size_t nDataSize) { @@ -2171,7 +2171,7 @@ bool appendStrings( size_t nLen, sc::CellStoreType::iterator it, const sc::CellStoreType::iterator& itEnd) { size_t nLenRemain = nLen; - svl::SharedStringPool& rPool = pDoc->GetCellStringPool(); + svl::SharedStringPool& rPool = pDoc->GetSharedStringPool(); for (; it != itEnd; ++it) { diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 16ac30c40b95..f331d354b2e1 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -1454,7 +1454,7 @@ bool ScColumn::ParseString( else cFirstChar = 0; // Text - svl::SharedStringPool& rPool = pDocument->GetCellStringPool(); + svl::SharedStringPool& rPool = pDocument->GetSharedStringPool(); if ( cFirstChar == '=' ) { @@ -1606,7 +1606,7 @@ bool ScColumn::SetString( SCROW nRow, SCTAB nTabP, const OUString& rString, void ScColumn::SetEditText( SCROW nRow, EditTextObject* pEditText ) { - pEditText->NormalizeString(pDocument->GetCellStringPool()); + pEditText->NormalizeString(pDocument->GetSharedStringPool()); sc::CellStoreType::iterator it = GetPositionToInsert(nRow); maCells.set(it, nRow, pEditText); maCellTextAttrs.set(nRow, sc::CellTextAttr()); @@ -1617,7 +1617,7 @@ void ScColumn::SetEditText( SCROW nRow, EditTextObject* pEditText ) void ScColumn::SetEditText( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, EditTextObject* pEditText ) { - pEditText->NormalizeString(pDocument->GetCellStringPool()); + pEditText->NormalizeString(pDocument->GetSharedStringPool()); rBlockPos.miCellPos = GetPositionToInsert(rBlockPos.miCellPos, nRow); rBlockPos.miCellPos = maCells.set(rBlockPos.miCellPos, nRow, pEditText); rBlockPos.miCellTextAttrPos = maCellTextAttrs.set( @@ -1751,7 +1751,7 @@ sal_uIntPtr ScColumn::GetCellStringID( SCROW nRow ) const { std::vector<sal_uIntPtr> aIDs; const EditTextObject* pObj = sc::edittext_block::at(*aPos.first->data, aPos.second); - pObj->GetStringIDs(pDocument->GetCellStringPool(), aIDs); + pObj->GetStringIDs(pDocument->GetSharedStringPool(), aIDs); if (aIDs.size() != 1) // We don't handle multiline content for now. return 0; @@ -1780,7 +1780,7 @@ sal_uIntPtr ScColumn::GetCellStringIDIgnoreCase( SCROW nRow ) const { std::vector<sal_uIntPtr> aIDs; const EditTextObject* pObj = sc::edittext_block::at(*aPos.first->data, aPos.second); - pObj->GetStringIDsIgnoreCase(pDocument->GetCellStringPool(), aIDs); + pObj->GetStringIDsIgnoreCase(pDocument->GetSharedStringPool(), aIDs); if (aIDs.size() != 1) // We don't handle multiline content for now. return 0; @@ -2111,7 +2111,7 @@ class FormulaToValueHandler public: - FormulaToValueHandler(ScDocument& rDoc) : mrStrPool(rDoc.GetCellStringPool()) {} + FormulaToValueHandler(ScDocument& rDoc) : mrStrPool(rDoc.GetSharedStringPool()) {} void operator() (size_t nRow, const ScFormulaCell* p) { @@ -2195,7 +2195,7 @@ void ScColumn::SetRawString( SCROW nRow, const OUString& rStr, bool bBroadcast ) if (!ValidRow(nRow)) return; - svl::SharedString aSS = pDocument->GetCellStringPool().intern(rStr); + svl::SharedString aSS = pDocument->GetSharedStringPool().intern(rStr); if (!aSS.getData()) return; @@ -2219,7 +2219,7 @@ void ScColumn::SetRawString( SCROW nRow, const svl::SharedString& rStr, bool bBr void ScColumn::SetRawString( sc::ColumnBlockPosition& rBlockPos, SCROW nRow, const OUString& rStr, bool bBroadcast ) { - svl::SharedString aSS = pDocument->GetCellStringPool().intern(rStr); + svl::SharedString aSS = pDocument->GetSharedStringPool().intern(rStr); if (!aSS.getData()) return; diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx index 0fb675584cc9..9a7a0ec84986 100644 --- a/sc/source/core/data/documen2.cxx +++ b/sc/source/core/data/documen2.cxx @@ -600,12 +600,12 @@ ScRefCellValue ScDocument::GetRefCellValue( const ScAddress& rPos ) return maTabs[rPos.Tab()]->GetRefCellValue(rPos.Col(), rPos.Row()); } -svl::SharedStringPool& ScDocument::GetCellStringPool() +svl::SharedStringPool& ScDocument::GetSharedStringPool() { return *mpCellStringPool; } -const svl::SharedStringPool& ScDocument::GetCellStringPool() const +const svl::SharedStringPool& ScDocument::GetSharedStringPool() const { return *mpCellStringPool; } diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx index 334b2f5f0b99..03f5842ec9c1 100644 --- a/sc/source/core/data/documentimport.cxx +++ b/sc/source/core/data/documentimport.cxx @@ -150,7 +150,7 @@ void ScDocumentImport::setStringCell(const ScAddress& rPos, const OUString& rStr if (!pBlockPos) return; - svl::SharedString aSS = mpImpl->mrDoc.GetCellStringPool().intern(rStr); + svl::SharedString aSS = mpImpl->mrDoc.GetSharedStringPool().intern(rStr); if (!aSS.getData()) return; @@ -170,7 +170,7 @@ void ScDocumentImport::setEditCell(const ScAddress& rPos, EditTextObject* pEditT if (!pBlockPos) return; - pEditText->NormalizeString(mpImpl->mrDoc.GetCellStringPool()); + pEditText->NormalizeString(mpImpl->mrDoc.GetSharedStringPool()); sc::CellStoreType& rCells = pTab->aCol[rPos.Col()].maCells; pBlockPos->miCellPos = rCells.set(pBlockPos->miCellPos, rPos.Row(), pEditText); } diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx index 07a54f97ed4f..c27b25c8242a 100644 --- a/sc/source/core/data/validat.cxx +++ b/sc/source/core/data/validat.cxx @@ -462,7 +462,7 @@ bool ScValidationData::IsDataValid( } else { - svl::SharedString aSS = mpDoc->GetCellStringPool().intern(rTest); + svl::SharedString aSS = mpDoc->GetSharedStringPool().intern(rTest); ScRefCellValue aTmpCell(&aSS); bRet = IsDataValid(aTmpCell, rPos); } diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 13fa68b75c7b..87cdc7469882 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -6763,7 +6763,7 @@ bool ScInterpreter::FillEntry(ScQueryEntry& rEntry) const OUString& sStr = GetString(); rItem.meType = ScQueryEntry::ByString; rItem.maString = sStr; - rItem.mnStrId = pDok->GetCellStringPool().getIdentifierIgnoreCase(rItem.maString); + rItem.mnStrId = pDok->GetSharedStringPool().getIdentifierIgnoreCase(rItem.maString); } break; case svDoubleRef : @@ -6788,7 +6788,7 @@ bool ScInterpreter::FillEntry(ScQueryEntry& rEntry) GetCellString(aStr, aCell); rItem.meType = ScQueryEntry::ByString; rItem.maString = aStr; - rItem.mnStrId = pDok->GetCellStringPool().getIdentifierIgnoreCase(rItem.maString); + rItem.mnStrId = pDok->GetSharedStringPool().getIdentifierIgnoreCase(rItem.maString); } } break; @@ -6797,7 +6797,7 @@ bool ScInterpreter::FillEntry(ScQueryEntry& rEntry) OUString aStr; const ScMatValType nType = GetDoubleOrStringFromMatrix(rItem.mfVal, aStr); rItem.maString = aStr; - rItem.mnStrId = pDok->GetCellStringPool().getIdentifierIgnoreCase(rItem.maString); + rItem.mnStrId = pDok->GetSharedStringPool().getIdentifierIgnoreCase(rItem.maString); rItem.meType = ScMatrix::IsNonValueType(nType) ? ScQueryEntry::ByString : ScQueryEntry::ByValue; } diff --git a/sc/source/filter/xcl97/XclImpChangeTrack.cxx b/sc/source/filter/xcl97/XclImpChangeTrack.cxx index a60b302feab7..a2f1ddec57c4 100644 --- a/sc/source/filter/xcl97/XclImpChangeTrack.cxx +++ b/sc/source/filter/xcl97/XclImpChangeTrack.cxx @@ -250,7 +250,7 @@ void XclImpChangeTrack::ReadCell( if( pStrm->IsValid() ) { rCell.meType = CELLTYPE_STRING; - rCell.mpString = new svl::SharedString(GetDoc().GetCellStringPool().intern(sString)); + rCell.mpString = new svl::SharedString(GetDoc().GetSharedStringPool().intern(sString)); } } break; diff --git a/sc/source/filter/xml/XMLDDELinksContext.cxx b/sc/source/filter/xml/XMLDDELinksContext.cxx index ba904b652f93..dbfe45d27f9c 100644 --- a/sc/source/filter/xml/XMLDDELinksContext.cxx +++ b/sc/source/filter/xml/XMLDDELinksContext.cxx @@ -166,7 +166,7 @@ void ScXMLDDELinkContext::EndElement() ScDDELinkCells::iterator aItr(aDDELinkTable.begin()); ScDDELinkCells::iterator aEndItr(aDDELinkTable.end()); - svl::SharedStringPool& rPool = pDoc->GetCellStringPool(); + svl::SharedStringPool& rPool = pDoc->GetSharedStringPool(); while (aItr != aEndItr) { if (nIndex % nColumns == 0) diff --git a/sc/source/filter/xml/XMLTrackedChangesContext.cxx b/sc/source/filter/xml/XMLTrackedChangesContext.cxx index 590b0e373058..fd189ffd46bd 100644 --- a/sc/source/filter/xml/XMLTrackedChangesContext.cxx +++ b/sc/source/filter/xml/XMLTrackedChangesContext.cxx @@ -1294,7 +1294,7 @@ void ScXMLChangeCellContext::EndElement() if (!sText.isEmpty() && bString) { mrOldCell.meType = CELLTYPE_STRING; - mrOldCell.mpString = new svl::SharedString(pDoc->GetCellStringPool().intern(sText)); + mrOldCell.mpString = new svl::SharedString(pDoc->GetSharedStringPool().intern(sText)); } else { diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx index 807875944c19..24f27a9ef637 100644 --- a/sc/source/ui/undo/undocell.cxx +++ b/sc/source/ui/undo/undocell.cxx @@ -670,7 +670,7 @@ ScUndoThesaurus::ScUndoThesaurus( ScDocShell* pNewDocShell, else { aOldCell.meType = CELLTYPE_STRING; - aOldCell.mpString = new svl::SharedString(pDocShell->GetDocument()->GetCellStringPool().intern(aUndoStr)); + aOldCell.mpString = new svl::SharedString(pDocShell->GetDocument()->GetSharedStringPool().intern(aUndoStr)); } SetChangeTrack(aOldCell); } |