diff options
author | Eike Rathke <erack@redhat.com> | 2018-01-18 13:24:16 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-01-18 13:54:38 +0100 |
commit | 6bc48275558c3f76c4da25eb8af3c48583ac5599 (patch) | |
tree | 535d0df2468f9f36e81725c5863d0814641fa3ec /sc | |
parent | 09449750fe9c698688ae5fb92c9ac4556b2a371f (diff) |
CheckLinkFormulaNeedingCheck() for .xls cell formulas
Change-Id: I2587fbc4fec39b6f2c8e733331815a2953dee308
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excform.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/excel/excform8.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/excel/impop.cxx | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/excel/excform.cxx b/sc/source/filter/excel/excform.cxx index aa0c351771a6..29c94d2c5f3a 100644 --- a/sc/source/filter/excel/excform.cxx +++ b/sc/source/filter/excel/excform.cxx @@ -157,6 +157,7 @@ void ImportExcel::Formula( { pCell = new ScFormulaCell(&rDoc.getDoc(), aScPos, *pResult); pCell->GetCode()->WrapReference(aScPos, EXC_MAXCOL8, EXC_MAXROW8); + rDoc.getDoc().CheckLinkFormulaNeedingCheck( *pCell->GetCode()); rDoc.getDoc().EnsureTable(aScPos.Tab()); rDoc.setFormulaCell(aScPos, pCell); SetLastFormula(aScPos.Col(), aScPos.Row(), fCurVal, nXF, pCell); diff --git a/sc/source/filter/excel/excform8.cxx b/sc/source/filter/excel/excform8.cxx index 824523574c10..db501e8c87a4 100644 --- a/sc/source/filter/excel/excform8.cxx +++ b/sc/source/filter/excel/excform8.cxx @@ -730,6 +730,7 @@ ConvErr ExcelToSc8::Convert( const ScTokenArray*& rpTokArray, XclImpStream& aIn, << nMerk0 << ocClose; aPool >> aStack; pExtName->CreateDdeData( GetDoc(), aApplic, aTopic ); + GetDoc().SetLinkFormulaNeedingCheck(true); } } break; diff --git a/sc/source/filter/excel/impop.cxx b/sc/source/filter/excel/impop.cxx index f1d8e21adb22..7ec10e9f272f 100644 --- a/sc/source/filter/excel/impop.cxx +++ b/sc/source/filter/excel/impop.cxx @@ -865,6 +865,7 @@ void ImportExcel::Shrfmla() ScFormulaCell* pCell = new ScFormulaCell(pD, aPos, *pResult); pCell->GetCode()->WrapReference(aPos, EXC_MAXCOL8, EXC_MAXROW8); + rDoc.getDoc().CheckLinkFormulaNeedingCheck( *pCell->GetCode()); rDoc.getDoc().EnsureTable(aPos.Tab()); rDoc.setFormulaCell(aPos, pCell); pCell->SetNeedNumberFormat(false); |