LibreOffice Module starmath (master) 1
|
Class implementing reading of formulas from OOXML. More...
#include <ooxmlimport.hxx>
Public Member Functions | |
SmOoxmlImport (oox::formulaimport::XmlStream &stream) | |
OUString | ConvertToStarMath () |
Private Types | |
enum | LimLowUpp_t { LimLow , LimUpp } |
Private Member Functions | |
OUString | handleStream () |
OUString | handleAcc () |
OUString | handleBar () |
OUString | handleBox () |
OUString | handleBorderBox () |
OUString | handleD () |
OUString | handleEqArr () |
OUString | handleF () |
OUString | handleFunc () |
OUString | handleLimLowUpp (LimLowUpp_t limlowupp) |
OUString | handleGroupChr () |
OUString | handleM () |
OUString | handleNary () |
OUString | handleR () |
OUString | handleRad () |
OUString | handleSpre () |
OUString | handleSsub () |
OUString | handleSsubsup () |
OUString | handleSsup () |
OUString | readOMathArg (int stoptoken) |
OUString | readOMathArgInElement (int token) |
Private Attributes | |
oox::formulaimport::XmlStream & | m_rStream |
Class implementing reading of formulas from OOXML.
The toplevel element is expected to be oMath (handle oMathPara outside of this code).
Definition at line 19 of file ooxmlimport.hxx.
|
private |
Enumerator | |
---|---|
LimLow | |
LimUpp |
Definition at line 34 of file ooxmlimport.hxx.
|
explicit |
Definition at line 36 of file ooxmlimport.cxx.
OUString SmOoxmlImport::ConvertToStarMath | ( | ) |
Definition at line 41 of file ooxmlimport.cxx.
References handleStream().
Referenced by SmDocShell::readFormulaOoxml().
|
private |
Definition at line 158 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, MS_ACUTE, MS_BAR, MS_BREVE, MS_CHECK, MS_CIRCLE, MS_COMBACUTE, MS_COMBBAR, MS_COMBBREVE, MS_COMBCHECK, MS_COMBCIRCLE, MS_COMBDDOT, MS_COMBDOT, MS_COMBGRAVE, MS_COMBHAT, MS_COMBOVERLINE, MS_COMBTILDE, MS_DDDOT, MS_DDOT, MS_DOT, MS_GRAVE, MS_HARPOON, MS_HAT, MS_RIGHTARROW, MS_TILDE, MS_VEC, readOMathArgInElement(), and SAL_WARN.
Referenced by readOMathArg().
|
private |
Definition at line 241 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, pos, readOMathArgInElement(), and top.
Referenced by readOMathArg().
|
private |
Definition at line 276 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 265 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 298 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), d, oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), oox::formulaimport::XmlStream::findTag(), first, m_rStream, MS_DLINE, MS_DVERTLINE, MS_LANGLE, MS_LMATHANGLE, MS_RANGLE, MS_RMATHANGLE, OPENING, readOMathArgInElement(), separator, and u.
Referenced by readOMathArg().
|
private |
Definition at line 372 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::atEnd(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), oox::formulaimport::XmlStream::findTag(), m_rStream, OPENING, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 388 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, readOMathArgInElement(), and type.
Referenced by readOMathArg().
|
private |
Definition at line 419 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 450 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, pos, readOMathArgInElement(), top, and u.
Referenced by readOMathArg().
|
private |
Definition at line 432 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), LimLow, LimUpp, m_rStream, readOMathArgInElement(), and u.
Referenced by readOMathArg().
|
private |
Definition at line 482 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::atEnd(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), oox::formulaimport::XmlStream::findTag(), m, m_rStream, OPENING, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 505 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, MS_COPROD, MS_IIINT, MS_IINT, MS_INT, MS_LINT, MS_LLINT, MS_LLLINT, MS_PROD, MS_SUM, readOMathArgInElement(), and SAL_WARN.
Referenced by readOMathArg().
|
private |
Definition at line 577 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::atEnd(), oox::formulaimport::XmlStream::Tag::attribute(), oox::formulaimport::XmlStream::checkOpeningTag(), CLOSING, oox::formulaimport::XmlStream::currentToken(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), oox::formulaimport::XmlStream::handleUnexpectedTag(), m_rStream, normal, OPENING, t, text(), oox::formulaimport::XmlStream::Tag::text, and o3tl::trim().
Referenced by readOMathArg().
|
private |
Definition at line 625 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::checkOpeningTag(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 647 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 657 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 666 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 676 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArgInElement().
Referenced by readOMathArg().
|
private |
Definition at line 50 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::atEnd(), CLOSING, oox::formulaimport::XmlStream::currentToken(), oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, readOMathArg(), and SAL_INFO.
Referenced by ConvertToStarMath().
|
private |
Definition at line 76 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::atEnd(), CLOSING, oox::formulaimport::XmlStream::currentToken(), d, handleAcc(), handleBar(), handleBorderBox(), handleBox(), handleD(), handleEqArr(), handleF(), handleFunc(), handleGroupChr(), handleLimLowUpp(), handleM(), handleNary(), handleR(), handleRad(), handleSpre(), handleSsub(), handleSsubsup(), handleSsup(), oox::formulaimport::XmlStream::handleUnexpectedTag(), LimLow, LimUpp, m, m_rStream, and OPENING.
Referenced by handleStream(), and readOMathArgInElement().
|
private |
Definition at line 150 of file ooxmlimport.cxx.
References oox::formulaimport::XmlStream::ensureClosingTag(), oox::formulaimport::XmlStream::ensureOpeningTag(), m_rStream, and readOMathArg().
Referenced by handleAcc(), handleBar(), handleBorderBox(), handleBox(), handleD(), handleEqArr(), handleF(), handleFunc(), handleGroupChr(), handleLimLowUpp(), handleM(), handleNary(), handleRad(), handleSpre(), handleSsub(), handleSsubsup(), and handleSsup().
|
private |
Definition at line 48 of file ooxmlimport.hxx.
Referenced by handleAcc(), handleBar(), handleBorderBox(), handleBox(), handleD(), handleEqArr(), handleF(), handleFunc(), handleGroupChr(), handleLimLowUpp(), handleM(), handleNary(), handleR(), handleRad(), handleSpre(), handleSsub(), handleSsubsup(), handleSsup(), handleStream(), readOMathArg(), and readOMathArgInElement().