diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-02-27 11:31:53 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-02-27 12:09:51 +0100 |
commit | fc6c2c752d711dd6113441659ec046032e2c6f80 (patch) | |
tree | fd67e32072aacaea5fa149c93762a939d01f47b1 /starmath | |
parent | 0112fd253483b7b8fcb90e845e0c58ef53ce88ee (diff) |
Typo: attributte->attribute
Change-Id: Ic90047599effeea7d4959f9d44360361d87b98c3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130619
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/mathml/export.hxx | 6 | ||||
-rw-r--r-- | starmath/source/mathml/export.cxx | 18 | ||||
-rw-r--r-- | starmath/source/mathml/import.cxx | 14 |
3 files changed, 19 insertions, 19 deletions
diff --git a/starmath/inc/mathml/export.hxx b/starmath/inc/mathml/export.hxx index 3209c5aadb46..125f2602c491 100644 --- a/starmath/inc/mathml/export.hxx +++ b/starmath/inc/mathml/export.hxx @@ -173,12 +173,12 @@ private: public: /** Exports an attribute of type "length" */ - void exportMlAttributteLength(xmloff::token::XMLTokenEnum pAttribute, - const SmLengthValue& aLengthValue); + void exportMlAttributeLength(xmloff::token::XMLTokenEnum pAttribute, + const SmLengthValue& aLengthValue); /** Exports attributes of an element */ - void exportMlAttributtes(const SmMlElement* pMlElement); + void exportMlAttributes(const SmMlElement* pMlElement); /** Exports an element and all it's attributes */ diff --git a/starmath/source/mathml/export.cxx b/starmath/source/mathml/export.cxx index f439d537e7b3..554bb1b0d5d1 100644 --- a/starmath/source/mathml/export.cxx +++ b/starmath/source/mathml/export.cxx @@ -627,8 +627,8 @@ void SmMLExport::declareMlError() m_bSuccess = false; } -void SmMLExport::exportMlAttributteLength(xmloff::token::XMLTokenEnum pAttribute, - const SmLengthValue& aLengthValue) +void SmMLExport::exportMlAttributeLength(xmloff::token::XMLTokenEnum pAttribute, + const SmLengthValue& aLengthValue) { if (!aLengthValue.m_aOriginalText->isEmpty()) { @@ -677,7 +677,7 @@ void SmMLExport::exportMlAttributteLength(xmloff::token::XMLTokenEnum pAttribute } } -void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) +void SmMLExport::exportMlAttributes(const SmMlElement* pMlElement) { size_t nAttributeCount = pMlElement->getAttributeCount(); for (size_t i = 0; i < nAttributeCount; ++i) @@ -776,7 +776,7 @@ void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) { auto aSizeData = aAttribute.getMlLspace(); auto aLengthData = aSizeData->m_aLengthValue; - exportMlAttributteLength(XML_LSPACE, aLengthData); + exportMlAttributeLength(XML_LSPACE, aLengthData); break; } case SmMlAttributeValueType::MlMathbackground: @@ -828,7 +828,7 @@ void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) { auto aSizeData = aAttribute.getMlMathsize(); auto aLengthData = aSizeData->m_aLengthValue; - exportMlAttributteLength(XML_MATHSIZE, aLengthData); + exportMlAttributeLength(XML_MATHSIZE, aLengthData); break; } case SmMlAttributeValueType::MlMathvariant: @@ -909,7 +909,7 @@ void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) } case SmMlAttributeValueMaxsize::MlFinite: { - exportMlAttributteLength(XML_MAXSIZE, aLengthData); + exportMlAttributeLength(XML_MAXSIZE, aLengthData); break; } } @@ -919,7 +919,7 @@ void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) { auto aSizeData = aAttribute.getMlMinsize(); auto aLengthData = aSizeData->m_aLengthValue; - exportMlAttributteLength(XML_MINSIZE, aLengthData); + exportMlAttributeLength(XML_MINSIZE, aLengthData); break; } case SmMlAttributeValueType::MlMovablelimits: @@ -943,7 +943,7 @@ void SmMLExport::exportMlAttributtes(const SmMlElement* pMlElement) { auto aSizeData = aAttribute.getMlRspace(); auto aLengthData = aSizeData->m_aLengthValue; - exportMlAttributteLength(XML_RSPACE, aLengthData); + exportMlAttributeLength(XML_RSPACE, aLengthData); break; } case SmMlAttributeValueType::MlSeparator: @@ -1037,7 +1037,7 @@ SvXMLElementExport* SmMLExport::exportMlElement(const SmMlElement* pMlElement) pElementExport = nullptr; } const OUString& aElementText = pMlElement->getText(); - exportMlAttributtes(pMlElement); + exportMlAttributes(pMlElement); if (aElementText.isEmpty()) GetDocHandler()->characters(aElementText); return pElementExport; diff --git a/starmath/source/mathml/import.cxx b/starmath/source/mathml/import.cxx index 6a3ea6104d1a..d09b29e21b9c 100644 --- a/starmath/source/mathml/import.cxx +++ b/starmath/source/mathml/import.cxx @@ -690,7 +690,7 @@ public: /** Handle mathml length attributes */ - SmLengthValue handleLengthAttributte(const OUString& aAttribute); + SmLengthValue handleLengthAttribute(const OUString& aAttribute); }; uno::Reference<XFastContextHandler> SAL_CALL @@ -809,7 +809,7 @@ void SmMLImportContext::inheritStyleEnd() } } -SmLengthValue SmMLImportContext::handleLengthAttributte(const OUString& aAttribute) +SmLengthValue SmMLImportContext::handleLengthAttribute(const OUString& aAttribute) { // Locate unit indication int32_t nUnitPos; @@ -953,7 +953,7 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA case XML_LSPACE: { SmMlLspace aLspace; - aLspace.m_aLengthValue = handleLengthAttributte(aIter.toString()); + aLspace.m_aLengthValue = handleLengthAttribute(aIter.toString()); aAttribute.setMlLspace(&aLspace); break; } @@ -995,7 +995,7 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA case XML_MATHSIZE: { SmMlMathsize aMathsize; - aMathsize.m_aLengthValue = handleLengthAttributte(aIter.toString()); + aMathsize.m_aLengthValue = handleLengthAttribute(aIter.toString()); aAttribute.setMlMathsize(&aMathsize); break; } @@ -1053,7 +1053,7 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA else { aMaxsize.m_aMaxsize = SmMlAttributeValueMaxsize::MlFinite; - aMaxsize.m_aLengthValue = handleLengthAttributte(aIter.toString()); + aMaxsize.m_aLengthValue = handleLengthAttribute(aIter.toString()); } aAttribute.setMlMaxsize(&aMaxsize); break; @@ -1061,7 +1061,7 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA case XML_MINSIZE: { SmMlMinsize aMinsize; - aMinsize.m_aLengthValue = handleLengthAttributte(aIter.toString()); + aMinsize.m_aLengthValue = handleLengthAttribute(aIter.toString()); aAttribute.setMlMinsize(&aMinsize); break; } @@ -1086,7 +1086,7 @@ void SmMLImportContext::handleAttributes(const Reference<XFastAttributeList>& aA case XML_RSPACE: { SmMlRspace aRspace; - aRspace.m_aLengthValue = handleLengthAttributte(aIter.toString()); + aRspace.m_aLengthValue = handleLengthAttribute(aIter.toString()); aAttribute.setMlRspace(&aRspace); break; } |