diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-24 10:21:02 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-24 17:16:55 -0400 |
commit | 67e094ff7d21bd862bdf14d15f978bfba286a870 (patch) | |
tree | db6ab27f98f4566966377e4eec501da2d2a04541 /sc | |
parent | 97872f87b3b96dea7ca836c2fcee15bc17a8683b (diff) |
Provide a way to retrieve current cell instance during ods export.
Change-Id: Ib35ecf6eef1e9f6b29bd639ee6f4630ac61aa104
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/XMLExportIterator.cxx | 8 | ||||
-rw-r--r-- | sc/source/filter/xml/XMLExportIterator.hxx | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sc/source/filter/xml/XMLExportIterator.cxx b/sc/source/filter/xml/XMLExportIterator.cxx index ebd3b8fed9a9..697f2aa9dcc3 100644 --- a/sc/source/filter/xml/XMLExportIterator.cxx +++ b/sc/source/filter/xml/XMLExportIterator.cxx @@ -642,6 +642,7 @@ ScMyNotEmptyCellsIterator::ScMyNotEmptyCellsIterator(ScXMLExport& rTempXMLExport pDetectiveObj(NULL), pDetectiveOp(NULL), rExport(rTempXMLExport), + mpCell(NULL), nCurrentTable(SCTAB_MAX) { } @@ -688,7 +689,7 @@ void ScMyNotEmptyCellsIterator::SetCellData( ScMyCell& rMyCell, table::CellAddre rMyCell.bKnowWhetherIsEditCell = false; rMyCell.bIsEditCell = false; if( (nCellCol == rAddress.Column) && (nCellRow == rAddress.Row) ) - mpCellItr->GetNext(nCellCol, nCellRow); + mpCell = mpCellItr->GetNext(nCellCol, nCellRow); } void ScMyNotEmptyCellsIterator::SetMatrixCellData( ScMyCell& rMyCell ) @@ -892,4 +893,9 @@ bool ScMyNotEmptyCellsIterator::GetNext(ScMyCell& aCell, ScFormatRangeStyles* pC return bFoundCell; } +const ScRefCellValue* ScMyNotEmptyCellsIterator::GetCell() const +{ + return mpCell; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/filter/xml/XMLExportIterator.hxx b/sc/source/filter/xml/XMLExportIterator.hxx index c27216edab88..9938b44ab036 100644 --- a/sc/source/filter/xml/XMLExportIterator.hxx +++ b/sc/source/filter/xml/XMLExportIterator.hxx @@ -393,6 +393,7 @@ class ScMyNotEmptyCellsIterator : boost::noncopyable ScXMLExport& rExport; boost::scoped_ptr<ScHorizontalCellIterator> mpCellItr; + const ScRefCellValue* mpCell; SCCOL nCellCol; SCROW nCellRow; @@ -429,6 +430,8 @@ public: void SkipTable(SCTAB nSkip); bool GetNext(ScMyCell& aCell, ScFormatRangeStyles* pCellStyles); + + const ScRefCellValue* GetCell() const; }; #endif |