#include <mathml.hxx>
Collaboration diagram for SmXMLExport:
Public Member Functions | |
SmXMLExport (const::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory, sal_uInt16 nExportFlags=EXPORT_ALL) | |
SmXMLExport (const::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceFactory, const SmNode *pIn, const rtl::OUString &rFileName, com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > &rHandler) | |
virtual | ~SmXMLExport () |
::rtl::OUString SAL_CALL | getImplementationName () throw ( ::com::sun::star::uno::RuntimeException ) |
void | _ExportAutoStyles () |
void | _ExportMasterStyles () |
void | _ExportContent () |
sal_uInt32 | exportDoc (enum::xmloff::token::XMLTokenEnum eClass) |
virtual void | GetViewSettings (com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > &aProps) |
virtual void | GetConfigurationSettings (com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > &aProps) |
sal_Int64 SAL_CALL | getSomething (const::com::sun::star::uno::Sequence< sal_Int8 > &rId) throw (::com::sun::star::uno::RuntimeException) |
sal_Bool | GetSuccess () |
Static Public Member Functions | |
static const ::com::sun::star::uno::Sequence< sal_Int8 > & | getUnoTunnelId () throw () |
Protected Member Functions | |
void | ExportNodes (const SmNode *pIn, int nLevel) |
void | ExportTable (const SmNode *pIn, int nLevel) |
void | ExportLine (const SmNode *pNode, int nLevel) |
void | ExportExpression (const SmNode *pNode, int nLevel) |
void | ExportText (const SmNode *pNode, int nLevel) |
void | ExportMath (const SmNode *pNode, int nLevel) |
void | ExportPolygon (const SmNode *pNode, int nLevel) |
void | ExportBinaryHorizontal (const SmNode *pNode, int nLevel) |
void | ExportUnaryHorizontal (const SmNode *pNode, int nLevel) |
void | ExportBrace (const SmNode *pNode, int nLevel) |
void | ExportBinaryVertical (const SmNode *pNode, int nLevel) |
void | ExportSubSupScript (const SmNode *pNode, int nLevel) |
void | ExportRoot (const SmNode *pNode, int nLevel) |
void | ExportOperator (const SmNode *pNode, int nLevel) |
void | ExportAttributes (const SmNode *pNode, int nLevel) |
void | ExportFont (const SmNode *pNode, int nLevel) |
void | ExportVerticalBrace (const SmNode *pNode, int nLevel) |
void | ExportMatrix (const SmNode *pNode, int nLevel) |
void | ExportBlank (const SmNode *pNode, int nLevel) |
Private Attributes | |
const SmNode * | pTree |
String | aText |
sal_Bool | bSuccess |
Definition at line 388 of file mathml.hxx.
SmXMLExport::SmXMLExport | ( | const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > | xServiceFactory, | |
sal_uInt16 | nExportFlags = EXPORT_ALL | |||
) |
Definition at line 533 of file mathml.cxx.
SmXMLExport::SmXMLExport | ( | const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > | xServiceFactory, | |
const SmNode * | pIn, | |||
const rtl::OUString & | rFileName, | |||
com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & | rHandler | |||
) |
Definition at line 543 of file mathml.cxx.
virtual SmXMLExport::~SmXMLExport | ( | ) | [inline, virtual] |
Definition at line 403 of file mathml.hxx.
rtl::OUString SAL_CALL SmXMLExport::getImplementationName | ( | ) | throw ( ::com::sun::star::uno::RuntimeException ) |
Definition at line 796 of file mathml.cxx.
References SmXMLExport_getImplementationName(), SmXMLExportContent_getImplementationName(), SmXMLExportMeta_getImplementationName(), and SmXMLExportSettings_getImplementationName().
void SmXMLExport::_ExportAutoStyles | ( | ) | [inline] |
Definition at line 409 of file mathml.hxx.
void SmXMLExport::_ExportMasterStyles | ( | ) | [inline] |
Definition at line 410 of file mathml.hxx.
void SmXMLExport::_ExportContent | ( | ) |
Definition at line 3605 of file mathml.cxx.
References aText, ExportNodes(), SmParser::GetText(), SmModel::getUnoTunnelId(), SmParser::IsExportSymbolNames(), SmParser::Parse(), and SmParser::SetExportSymbolNames().
sal_uInt32 SmXMLExport::exportDoc | ( | enum::xmloff::token::XMLTokenEnum | eClass | ) |
virtual void SmXMLExport::GetViewSettings | ( | com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > & | aProps | ) | [virtual] |
virtual void SmXMLExport::GetConfigurationSettings | ( | com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > & | aProps | ) | [virtual] |
sal_Int64 SAL_CALL SmXMLExport::getSomething | ( | const ::com::sun::star::uno::Sequence< sal_Int8 > & | rId | ) | throw (::com::sun::star::uno::RuntimeException) |
const uno::Sequence< sal_Int8 > & SmXMLExport::getUnoTunnelId | ( | ) | throw () [static] |
Definition at line 554 of file mathml.cxx.
sal_Bool SmXMLExport::GetSuccess | ( | ) | [inline] |
void SmXMLExport::ExportNodes | ( | const SmNode * | pIn, | |
int | nLevel | |||
) | [protected] |
Definition at line 4363 of file mathml.cxx.
References ExportAttributes(), ExportBinaryHorizontal(), ExportBinaryVertical(), ExportBlank(), ExportBrace(), ExportExpression(), ExportFont(), ExportLine(), ExportMath(), ExportMatrix(), ExportOperator(), ExportRoot(), ExportSubSupScript(), ExportTable(), ExportText(), ExportUnaryHorizontal(), ExportVerticalBrace(), SmNode::GetType(), NALIGN, NATTRIBUT, NBINHOR, NBINVER, NBLANK, NBRACE, NBRACEBODY, NEXPRESSION, NFONT, NLINE, NMATH, NMATRIX, NOPER, NROOT, NSPECIAL, NSUBSUP, NTABLE, NTEXT, NUNHOR, and NVERTICAL_BRACE.
Referenced by _ExportContent(), ExportAttributes(), ExportBinaryVertical(), ExportBrace(), ExportExpression(), ExportFont(), ExportMatrix(), ExportOperator(), ExportRoot(), ExportSubSupScript(), ExportTable(), and ExportVerticalBrace().
void SmXMLExport::ExportTable | ( | const SmNode * | pIn, | |
int | nLevel | |||
) | [protected] |
Definition at line 3781 of file mathml.cxx.
References ExportNodes(), SmNode::GetNumSubNodes(), and SmNode::GetSubNode().
Referenced by ExportNodes().
void SmXMLExport::ExportLine | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3726 of file mathml.cxx.
References ExportExpression().
Referenced by ExportNodes().
void SmXMLExport::ExportExpression | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3741 of file mathml.cxx.
References ExportNodes(), SmNode::GetNumSubNodes(), and SmNode::GetSubNode().
Referenced by ExportBinaryHorizontal(), ExportFont(), ExportLine(), ExportNodes(), and ExportUnaryHorizontal().
void SmXMLExport::ExportText | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3828 of file mathml.cxx.
References SmToken::eType, SmNode::GetFont(), SmTextNode::GetText(), SmNode::GetToken(), IsItalic(), TIDENT, TNUMBER, and TTEXT.
Referenced by ExportNodes().
void SmXMLExport::ExportMath | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3812 of file mathml.cxx.
References ConvertMathToMathML(), and SmTextNode::GetText().
Referenced by ExportNodes().
void SmXMLExport::ExportPolygon | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
void SmXMLExport::ExportBinaryHorizontal | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3731 of file mathml.cxx.
References ExportExpression().
Referenced by ExportNodes().
void SmXMLExport::ExportUnaryHorizontal | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3736 of file mathml.cxx.
References ExportExpression().
Referenced by ExportNodes().
void SmXMLExport::ExportBrace | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4021 of file mathml.cxx.
References SmToken::eType, ExportNodes(), SmNode::GetScaleMode(), SmNode::GetSubNode(), SmNode::GetToken(), SCALE_HEIGHT, and TNONE.
Referenced by ExportNodes().
void SmXMLExport::ExportBinaryVertical | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3772 of file mathml.cxx.
References ExportNodes(), SmNode::GetNumSubNodes(), and SmNode::GetSubNode().
Referenced by ExportNodes().
void SmXMLExport::ExportSubSupScript | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 3879 of file mathml.cxx.
References CSUB, CSUP, ExportNodes(), SmNode::GetSubNode(), LSUB, LSUP, RSUB, and RSUP.
Referenced by ExportNodes().
void SmXMLExport::ExportRoot | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4073 of file mathml.cxx.
References ExportNodes(), and SmNode::GetSubNode().
Referenced by ExportNodes().
void SmXMLExport::ExportOperator | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4090 of file mathml.cxx.
References ExportNodes(), SmNode::GetSubNode(), and SmTextNode::GetText().
Referenced by ExportNodes().
void SmXMLExport::ExportAttributes | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4108 of file mathml.cxx.
References SmToken::eType, ExportNodes(), SmNode::GetSubNode(), SmNode::GetToken(), TOVERLINE, TOVERSTRIKE, and TUNDERLINE.
Referenced by ExportNodes().
void SmXMLExport::ExportFont | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4167 of file mathml.cxx.
References SmToken::aText, SmToken::eType, ExportExpression(), ExportNodes(), FNTSIZ_ABSOLUT, FNTSIZ_DIVIDE, FNTSIZ_MINUS, FNTSIZ_MULTIPLY, SmNode::GetFont(), SmNode::GetNumSubNodes(), SmFontNode::GetSizeParameter(), SmFontNode::GetSizeType(), SmNode::GetSubNode(), SmNode::GetToken(), Sm100th_mmToPts(), TBLACK, TBLUE, TBOLD, TCYAN, TFIXED, TGREEN, TITALIC, TMAGENTA, TNBOLD, TNITALIC, TPHANTOM, TRED, TSANS, TSERIF, TSIZE, TWHITE, and TYELLOW.
Referenced by ExportNodes().
void SmXMLExport::ExportVerticalBrace | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4311 of file mathml.cxx.
References SmToken::eType, ExportNodes(), SmNode::GetNumSubNodes(), SmNode::GetSubNode(), SmNode::GetToken(), TOVERBRACE, and TUNDERBRACE.
Referenced by ExportNodes().
void SmXMLExport::ExportMatrix | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
Definition at line 4343 of file mathml.cxx.
References ExportNodes(), SmMatrixNode::GetNumCols(), SmMatrixNode::GetNumRows(), and SmNode::GetSubNode().
Referenced by ExportNodes().
void SmXMLExport::ExportBlank | ( | const SmNode * | pNode, | |
int | nLevel | |||
) | [protected] |
const SmNode* SmXMLExport::pTree [private] |
Definition at line 445 of file mathml.hxx.
String SmXMLExport::aText [private] |
sal_Bool SmXMLExport::bSuccess [private] |