diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-06-16 14:09:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-16 15:26:14 +0200 |
commit | 3d2e26d8b7a99d0a622741ef4327e8cbc93bbe02 (patch) | |
tree | c352c49a99884d38296ce05312e4152295e38b99 /sc/source/filter/xml/xmlexprt.cxx | |
parent | 1ac3b4ae83856eebe6bc329b7a92575b6b1d84be (diff) |
make meType in ScCellValue private
as a first step to wrapping up the internals of this class and adding
some asserts
Change-Id: Ic13ddd917948dbf3fd6d73f44b8efcc727726baf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135994
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/xml/xmlexprt.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 023165f56c95..529b34388f18 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -214,7 +214,7 @@ OUString lcl_GetFormattedString(ScDocument* pDoc, const ScRefCellValue& rCell, c if (!pDoc) return OUString(); - switch (rCell.meType) + switch (rCell.getType()) { case CELLTYPE_STRING: { @@ -3166,7 +3166,7 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) break; case table::CellContentType_FORMULA : { - if (aCell.maBaseCell.meType == CELLTYPE_FORMULA) + if (aCell.maBaseCell.getType() == CELLTYPE_FORMULA) { const bool bIsMatrix(bIsFirstMatrixCell || aCell.bIsMatrixCovered); ScFormulaCell* pFormulaCell = aCell.maBaseCell.mpFormula; @@ -3258,11 +3258,11 @@ void ScXMLExport::WriteCell(ScMyCell& aCell, sal_Int32 nEqualCellCount) if (!bIsEmpty) { - if (aCell.maBaseCell.meType == CELLTYPE_EDIT) + if (aCell.maBaseCell.getType() == CELLTYPE_EDIT) { WriteEditCell(aCell.maBaseCell.mpEditText); } - else if (aCell.maBaseCell.meType == CELLTYPE_FORMULA && aCell.maBaseCell.mpFormula->IsMultilineResult()) + else if (aCell.maBaseCell.getType() == CELLTYPE_FORMULA && aCell.maBaseCell.mpFormula->IsMultilineResult()) { WriteMultiLineFormulaResult(aCell.maBaseCell.mpFormula); } @@ -3796,7 +3796,7 @@ void ScXMLExport::SetRepeatAttribute(sal_Int32 nEqualCellCount, bool bIncProgres bool ScXMLExport::IsEditCell(const ScMyCell& rCell) { - return rCell.maBaseCell.meType == CELLTYPE_EDIT; + return rCell.maBaseCell.getType() == CELLTYPE_EDIT; } bool ScXMLExport::IsCellEqual (const ScMyCell& aCell1, const ScMyCell& aCell2) |