14#include <oox/token/namespaces.hxx>
24FormulaImExportBase::FormulaImExportBase()
28namespace formulaimport {
32class LazyMathBufferingContext :
public core::ContextHandler
39 LazyMathBufferingContext(core::ContextHandler
const& rParent,
40 drawingml::TextParagraph & rPara);
44 virtual void SAL_CALL startFastElement(::sal_Int32 Element,
const uno::Reference<xml::sax::XFastAttributeList>& xAttribs)
override;
45 virtual void SAL_CALL endFastElement(::sal_Int32 Element)
override;
46 virtual uno::Reference< xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(::sal_Int32 Element,
const uno::Reference<xml::sax::XFastAttributeList >& xAttribs)
override;
47 virtual void SAL_CALL characters(
const OUString& rChars)
override;
53LazyMathBufferingContext::LazyMathBufferingContext(
54 core::ContextHandler
const& rParent, drawingml::TextParagraph & rPara)
55 :
core::ContextHandler(rParent)
60void SAL_CALL LazyMathBufferingContext::startFastElement(
61 sal_Int32
const nElement,
62 uno::Reference<xml::sax::XFastAttributeList>
const& xAttrs)
66 if (1 !=
m_OpenElements.size() || OOX_TOKEN(officeMath, oMathPara) != nElement)
74void SAL_CALL LazyMathBufferingContext::endFastElement(sal_Int32
const nElement)
79 if (1 !=
m_OpenElements.size() || OOX_TOKEN(officeMath, oMathPara) != nElement)
86uno::Reference<xml::sax::XFastContextHandler> SAL_CALL
87LazyMathBufferingContext::createFastChildContext(sal_Int32
const,
88 uno::Reference<xml::sax::XFastAttributeList>
const&)
93void SAL_CALL LazyMathBufferingContext::characters(OUString
const& rChars)
109 return new formulaimport::LazyMathBufferingContext(rParent, rPara);
XmlStreamBuilder & m_rBuilder
std::vector< sal_Int32 > m_OpenElements
rtl::Reference< core::ContextHandler > CreateLazyMathBufferingContext(core::ContextHandler const &rParent, drawingml::TextParagraph &rPara)