Kaydet (Commit) 49cb939d authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Rename ClearSource() to ClearTableData().

üst b4af9a6a
......@@ -133,8 +133,7 @@ public:
void SetAllowMove(bool bSet);
void InvalidateData();
void ClearSource();
void ClearTableData();
void Output( const ScAddress& rPos );
ScRange GetNewOutputRange( bool& rOverflow );
......
......@@ -1358,7 +1358,7 @@ void Test::testPivotTable()
pDPs->InsertNewTable(pDPObj2);
aOutRange = pDPObj2->GetOutRange();
pDPObj2->ClearSource();
pDPObj2->ClearTableData();
pDPObj2->Output(aOutRange.aStart);
{
// Expected output table content. 0 = empty cell
......@@ -1394,7 +1394,7 @@ void Test::testPivotTable()
CPPUNIT_ASSERT_MESSAGE("Reloading a cache shouldn't remove any cache.",
pDPs->GetSheetCaches().size() == 1);
pDPObj2->ClearSource();
pDPObj2->ClearTableData();
pDPObj2->Output(aOutRange.aStart);
{
......
......@@ -242,7 +242,7 @@ struct ClearObjectSource : std::unary_function<ScDPObject*, void>
{
void operator() (ScDPObject* p) const
{
p->ClearSource();
p->ClearTableData();
}
};
......
......@@ -213,7 +213,7 @@ ScDPObject::~ScDPObject()
delete pSheetDesc;
delete pImpDesc;
delete pServDesc;
ClearSource();
ClearTableData();
}
void ScDPObject::EnableGetPivotData(bool b)
......@@ -282,7 +282,7 @@ void ScDPObject::SetSheetDesc(const ScSheetSourceDesc& rDesc)
aParam.bHasHeader = true;
pSheetDesc->SetQueryParam(aParam);
ClearSource(); // new source must be created
ClearTableData(); // new source must be created
}
void ScDPObject::SetImportDesc(const ScImportSourceDesc& rDesc)
......@@ -296,7 +296,7 @@ void ScDPObject::SetImportDesc(const ScImportSourceDesc& rDesc)
delete pImpDesc;
pImpDesc = new ScImportSourceDesc(rDesc);
ClearSource(); // new source must be created
ClearTableData(); // new source must be created
}
void ScDPObject::SetServiceData(const ScDPServiceDesc& rDesc)
......@@ -310,7 +310,7 @@ void ScDPObject::SetServiceData(const ScDPServiceDesc& rDesc)
delete pServDesc;
pServDesc = new ScDPServiceDesc(rDesc);
ClearSource(); // new source must be created
ClearTableData(); // new source must be created
}
void ScDPObject::WriteSourceDataTo( ScDPObject& rDest ) const
......@@ -485,7 +485,7 @@ void ScDPObject::CreateObjects()
{
// if groups are involved, create a new source with the ScDPGroupTableData
if ( bSettingsChanged && pSaveData && pSaveData->GetExistingDimensionData() )
ClearSource();
ClearTableData();
if (!xSource.is())
{
......@@ -542,7 +542,7 @@ void ScDPObject::InvalidateData()
bSettingsChanged = true;
}
void ScDPObject::ClearSource()
void ScDPObject::ClearTableData()
{
Reference< XComponent > xObjectComp( xSource, UNO_QUERY );
if ( xObjectComp.is() )
......
......@@ -1324,7 +1324,7 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
// (and re-read column entry collections)
// so all changes take effect
if ( pNewObj == pOldObj && pDestObj->IsImportData() )
pDestObj->ClearSource();
pDestObj->ClearTableData();
pDestObj->InvalidateData(); // before getting the new output area
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment