diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-04-01 19:35:19 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-04-02 08:43:10 +0000 |
commit | 11a52df2216bf96a3869ac894513959098dc14da (patch) | |
tree | aa3440ea45227f7649f92037dda791e0fc9649f0 /starmath/source/mathmlexport.cxx | |
parent | 00bf3a4259c1f960eff05b17649cc734c275950f (diff) |
Replace FNTSIZ_* with a scoped enumeration FontSizeType
Change-Id: Ia6bcaaac60c18abda803f6a40db8a5c5076b9427
Reviewed-on: https://gerrit.libreoffice.org/15101
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath/source/mathmlexport.cxx')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 8cc9dc0522aa..3466e51149f2 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -1368,17 +1368,17 @@ void SmXMLExport::ExportFont(const SmNode *pNode, int nLevel) OUStringBuffer sStrBuf; switch(pFontNode->GetSizeType()) { - case FNTSIZ_MULTIPLY: + case FontSizeType::MULTIPLY: ::sax::Converter::convertDouble(sStrBuf, static_cast<double>(aFrac*Fraction(100.00))); sStrBuf.append('%'); break; - case FNTSIZ_DIVIDE: + case FontSizeType::DIVIDE: ::sax::Converter::convertDouble(sStrBuf, static_cast<double>(Fraction(100.00)/aFrac)); sStrBuf.append('%'); break; - case FNTSIZ_ABSOLUT: + case FontSizeType::ABSOLUT: ::sax::Converter::convertDouble(sStrBuf, static_cast<double>(aFrac)); sStrBuf.append( @@ -1395,7 +1395,7 @@ void SmXMLExport::ExportFont(const SmNode *pNode, int nLevel) Fraction aTemp = Sm100th_mmToPts(pFontNode->GetFont(). GetSize().Height()); - if (pFontNode->GetSizeType() == FNTSIZ_MINUS) + if (pFontNode->GetSizeType() == FontSizeType::MINUS) aTemp-=aFrac; else aTemp+=aFrac; |