|
LibreOffice Module starmath (master) 1
|
#include <export.hxx>
Public Member Functions | |
| bool | getSuccess () const |
| Everything was allright. More... | |
| bool | getUseExportTag () const |
| Get's if xmlns field is added. More... | |
| void | setUseExportTag (bool bUseExportTag) |
| Set's if xmlns field is added. More... | |
| void | setElementTree (SmMlElement *pElementTree) |
| Set's the element tree to be exported. More... | |
| void | exportMlAttributeLength (xmloff::token::XMLTokenEnum pAttribute, const SmLengthValue &aLengthValue) |
| Exports an attribute of type "length". More... | |
| void | exportMlAttributes (const SmMlElement *pMlElement) |
| Exports attributes of an element. More... | |
| SvXMLElementExport * | exportMlElement (const SmMlElement *pMlElement) |
| Exports an element and all it's attributes. More... | |
| void | exportMlElementTree () |
| Exports an element tree. More... | |
| void | declareMlError () |
| Handles an error on the mathml structure. More... | |
| SmMLExport (const css::uno::Reference< css::uno::XComponentContext > &rContext, OUString const &implementationName, SvXMLExportFlags nExportFlags) | |
| Constructor. More... | |
| void | ExportAutoStyles_ () override |
| Exports auto styles However math doesn't have any. More... | |
| void | ExportMasterStyles_ () override |
| Exports master styles However math doesn't have any. More... | |
| void | ExportContent_ () override |
| Exports formula Handler used from exportDoc. More... | |
| ErrCode | exportDoc (enum ::xmloff::token::XMLTokenEnum eClass=::xmloff::token::XML_TOKEN_INVALID) override |
| Exports the document If m_pElementTree isn't null then exports m_pElementTree. More... | |
| virtual void | GetViewSettings (css::uno::Sequence< css::beans::PropertyValue > &aProps) override |
| Get's view settings and prepares them to export. More... | |
| virtual void | GetConfigurationSettings (css::uno::Sequence< css::beans::PropertyValue > &aProps) override |
| Get's configuration settings and prepares them to export. More... | |
Public Member Functions inherited from SvXMLExport | |
| SvXMLExport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString implementationName, sal_Int16 const eDefaultMeasureUnit, const enum ::xmloff::token::XMLTokenEnum eClass, SvXMLExportFlags nExportFlag) | |
| SvXMLExport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString implementationName, OUString fileName, sal_Int16 const eDefaultMeasureUnit, const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler) | |
| SvXMLExport (const css::uno::Reference< css::uno::XComponentContext > &xContext, OUString implementationName, OUString fileName, const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler, const css::uno::Reference< css::frame::XModel > &, FieldUnit const eDefaultFieldUnit, SvXMLExportFlags nExportFlag) | |
| virtual | ~SvXMLExport () override |
| virtual void | collectAutoStyles () |
| virtual void SAL_CALL | setSourceDocument (const css::uno::Reference< css::lang::XComponent > &xDoc) override |
| virtual sal_Bool SAL_CALL | filter (const css::uno::Sequence< css::beans::PropertyValue > &aDescriptor) override |
| virtual void SAL_CALL | cancel () override |
| virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
| virtual OUString SAL_CALL | getName () override |
| virtual void SAL_CALL | setName (const OUString &aName) override |
| virtual OUString SAL_CALL | getImplementationName () final override |
| virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) final override |
| virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () final override |
| OUString | EnsureNamespace (OUString const &i_rNamespace) |
| void | CheckAttrList () |
| void | ClearAttrList () |
| void | AddAttribute (sal_uInt16 nPrefix, const OUString &rName, const OUString &rValue) |
| void | AddAttribute (sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, const OUString &rValue) |
| void | AddAttribute (sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, enum ::xmloff::token::XMLTokenEnum eValue) |
| void | AddAttribute (const OUString &rQName, const OUString &rValue) |
| void | AddAttribute (const OUString &rQName, enum ::xmloff::token::XMLTokenEnum eValue) |
| void | AddLanguageTagAttributes (sal_uInt16 nPrefix, sal_uInt16 nPrefixRfc, const css::lang::Locale &rLocale, bool bWriteEmpty) |
| void | AddLanguageTagAttributes (sal_uInt16 nPrefix, sal_uInt16 nPrefixRfc, const LanguageTag &rLanguageTag, bool bWriteEmpty) |
| void | AddAttributeList (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) |
| comphelper::AttributeList & | GetAttrList () |
| css::uno::Reference< css::xml::sax::XAttributeList > | GetXAttrList () const |
| const css::uno::Reference< css::xml::sax::XDocumentHandler > & | GetDocHandler () const |
| const OUString & | GetOrigFileName () const |
| const SvXMLNamespaceMap & | GetNamespaceMap () const |
| size_t | GetInfoID (const OUString sPersonalInfo) const |
| const SvXMLUnitConverter & | GetMM100UnitConverter () const |
| SvXMLUnitConverter & | GetMM100UnitConverter () |
| void | addChaffWhenEncryptedStorage () |
| virtual ErrCode | exportDoc (enum ::xmloff::token::XMLTokenEnum eClass=::xmloff::token::XML_TOKEN_INVALID) |
| void | collectDataStyles (bool bFromUsedStyles) |
| virtual void | addDataStyle (const sal_Int32 nNumberFormat, bool bTimeFormat=false) |
| virtual void | exportDataStyles () |
| virtual void | exportAutoDataStyles () |
| virtual OUString | getDataStyleName (const sal_Int32 nNumberFormat, bool bTimeFormat=false) const |
| sal_Int32 | dataStyleForceSystemLanguage (sal_Int32 nFormat) const |
| virtual void | exportAnnotationMeta (const css::uno::Reference< css::drawing::XShape > &xShape) |
| const css::uno::Reference< css::frame::XModel > & | GetModel () const |
| css::uno::Reference< css::util::XNumberFormatsSupplier > & | GetNumberFormatsSupplier () |
| void | SetNumberFormatsSupplier (const css::uno::Reference< css::util::XNumberFormatsSupplier > &_xNumberFormatSupplier) |
| rtl::Reference< XMLTextParagraphExport > const & | GetTextParagraphExport () |
| rtl::Reference< XMLShapeExport > const & | GetShapeExport () |
| rtl::Reference< SvXMLAutoStylePoolP > const & | GetAutoStylePool () |
| rtl::Reference< XMLPageExport > const & | GetPageExport () |
| rtl::Reference< SchXMLExportHelper > const & | GetChartExport () |
| rtl::Reference< XMLFontAutoStylePool > const & | GetFontAutoStylePool () |
| ProgressBarHelper * | GetProgressBarHelper () |
| rtl::Reference< xmloff::OFormLayerXMLExport > const & | GetFormExport () |
| bool | HasFormExport () const |
| const css::uno::Reference< css::beans::XPropertySet > & | getExportInfo () const |
| const css::uno::Reference< css::task::XStatusIndicator > & | GetStatusIndicator () const |
| XMLEventExport & | GetEventExport () |
| XMLImageMapExport & | GetImageMapExport () |
| OUString | AddEmbeddedXGraphic (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, OUString &rOutMimeType, OUString const &rRequestedName=OUString()) |
| bool | AddEmbeddedXGraphicAsBase64 (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic) |
| bool | GetGraphicMimeTypeFromStream (css::uno::Reference< css::graphic::XGraphic > const &rxGraphic, OUString &rOutMimeType) |
| OUString | AddEmbeddedObject (const OUString &rEmbeddedObjectURL) |
| bool | AddEmbeddedObjectAsBase64 (const OUString &rEmbeddedObjectURL) |
| OUString | EncodeStyleName (const OUString &rName, bool *pEncoded=nullptr) const |
| bool | IsSaveLinkedSections () const |
| SvXMLExportFlags | getExportFlags () const |
| void | ExportEmbeddedOwnObject (css::uno::Reference< css::lang::XComponent > const &rComp) |
| OUString | GetRelativeReference (const OUString &rValue) |
| void | StartElement (sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, bool bIgnWSOutside) |
| void | StartElement (const OUString &rName, bool bIgnWSOutside) |
| void | Characters (const OUString &rChars) |
| void | EndElement (sal_uInt16 nPrefix, enum ::xmloff::token::XMLTokenEnum eName, bool bIgnWSInside) |
| void | EndElement (const OUString &rName, bool bIgnWSInside) |
| void | IgnorableWhitespace () |
| void | SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator) |
| void | SetError (sal_Int32 nId, const css::uno::Sequence< OUString > &rMsgParams) |
| virtual void | DisposingModel () |
| ::comphelper::UnoInterfaceToUniqueIdentifierMapper & | getInterfaceToIdentifierMapper () |
| const css::uno::Reference< css::uno::XComponentContext > & | getComponentContext () const |
| SvtModuleOptions::EFactory | GetModelType () const |
| bool | writeOutlineStyleAsNormalListStyle () const |
| css::uno::Reference< css::embed::XStorage > const & | GetTargetStorage () const |
| char const * | GetODFVersionAttributeValue () const |
| SvtSaveOptions::ODFSaneDefaultVersion | getSaneDefaultVersion () const |
| void SAL_DLLPRIVATE | AddAttributeIdLegacy (sal_uInt16 const nLegacyPrefix, OUString const &rValue) |
| void | AddAttributeXmlId (css::uno::Reference< css::uno::XInterface > const &i_xIfc) |
| void | AddAttributesRDFa (css::uno::Reference< css::text::XTextContent > const &i_xTextContent) |
| bool | exportTextNumberElement () const |
| bool | SetNullDateOnUnitConverter () |
| OUString const & | GetImageFilterName () const |
Private Member Functions | |
| SvXMLElementExport * | createElementExport (xmloff::token::XMLTokenEnum nElement) |
| Adds an element. More... | |
| void | addAttribute (xmloff::token::XMLTokenEnum pAttribute, xmloff::token::XMLTokenEnum pAttributeValue) |
| Adds an attribute. More... | |
| void | addAttribute (xmloff::token::XMLTokenEnum pAttribute, const OUString &pAttributeValue) |
| Adds an attribute. More... | |
| SmDocShell * | getSmDocShell () |
| Get's document shell. More... | |
Private Attributes | |
| SmMlElement * | m_pElementTree |
| bool | m_bSuccess |
| bool | m_bUseExportTag |
Additional Inherited Members | |
Protected Member Functions inherited from SvXMLExport | |
| void | setExportFlags (SvXMLExportFlags nExportFlags) |
| SvXMLNamespaceMap & | GetNamespaceMap_ () |
| void | ResetNamespaceMap () |
| virtual void | ExportMeta_ () |
| virtual void | ExportScripts_ () |
| virtual void | ExportFontDecls_ () |
| virtual void | ExportStyles_ (bool bUsed) |
| virtual void | ExportAutoStyles_ ()=0 |
| virtual void | ExportMasterStyles_ ()=0 |
| virtual void | ExportContent_ ()=0 |
| OUString const & | GetSourceShellID () const |
| OUString const & | GetDestinationShellID () const |
| virtual XMLTextParagraphExport * | CreateTextParagraphExport () |
| virtual XMLShapeExport * | CreateShapeExport () |
| virtual SvXMLAutoStylePoolP * | CreateAutoStylePool () |
| SchXMLExportHelper * | CreateChartExport () |
| virtual XMLPageExport * | CreatePageExport () |
| virtual XMLFontAutoStylePool * | CreateFontAutoStylePool () |
| xmloff::OFormLayerXMLExport * | CreateFormExport () |
| virtual void | GetViewSettings (css::uno::Sequence< css::beans::PropertyValue > &aProps) |
| virtual void | GetConfigurationSettings (css::uno::Sequence< css::beans::PropertyValue > &aProps) |
| virtual sal_Int32 | GetDocumentSpecificSettings (::std::vector< SettingsGroup > &_out_rSettings) |
| const css::uno::Reference< css::document::XEmbeddedObjectResolver > & | GetEmbeddedResolver () const |
| void | SetEmbeddedResolver (css::uno::Reference< css::document::XEmbeddedObjectResolver > const &_xEmbeddedResolver) |
| const css::uno::Reference< css::document::XGraphicStorageHandler > & | GetGraphicStorageHandler () const |
| void | SetGraphicStorageHandler (css::uno::Reference< css::document::XGraphicStorageHandler > const &rxGraphicStorageHandler) |
| void | SetDocHandler (const css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler) |
Protected Attributes inherited from SvXMLExport | |
| bool | mbSaveLinkedSections |
| bool | mbAutoStylesCollected |
Definition at line 125 of file export.hxx.
| SmMLExport::SmMLExport | ( | const css::uno::Reference< css::uno::XComponentContext > & | rContext, |
| OUString const & | implementationName, | ||
| SvXMLExportFlags | nExportFlags | ||
| ) |
Constructor.
Definition at line 588 of file export.cxx.
References implementationName, INCH, and XML_MATH.
|
inlineprivate |
Adds an attribute.
Definition at line 169 of file export.hxx.
References SvXMLExport::AddAttribute(), and XML_NAMESPACE_MATH.
|
inlineprivate |
Adds an attribute.
Definition at line 161 of file export.hxx.
References SvXMLExport::AddAttribute(), and XML_NAMESPACE_MATH.
Referenced by exportMlAttributeLength(), and exportMlAttributes().
|
inlineprivate |
Adds an element.
Definition at line 153 of file export.hxx.
References XML_NAMESPACE_MATH.
Referenced by exportMlElement().
| void SmMLExport::declareMlError | ( | ) |
Handles an error on the mathml structure.
Definition at line 600 of file export.cxx.
References m_bSuccess, and SAL_WARN.
Referenced by exportMlAttributeLength(), and exportMlAttributes().
|
inlineoverridevirtual |
Exports auto styles However math doesn't have any.
Implements SvXMLExport.
Definition at line 211 of file export.hxx.
|
inlineoverridevirtual |
Exports formula Handler used from exportDoc.
Implements SvXMLExport.
Definition at line 221 of file export.hxx.
References exportMlElementTree().
Referenced by exportDoc().
|
overridevirtual |
Exports the document If m_pElementTree isn't null then exports m_pElementTree.
Reimplemented from SvXMLExport.
Definition at line 474 of file export.cxx.
References SvXMLNamespaceMap::Add(), comphelper::AttributeList::AddAttribute(), SvXMLExport::addChaffWhenEncryptedStorage(), ERRCODE_NONE, ExportContent_(), SvXMLExport::exportDoc(), SvXMLExport::GetAttrList(), SvXMLExport::GetDocHandler(), SvXMLExport::getExportFlags(), SmDocShell::GetMlElementTree(), SvXMLExport::GetNamespaceMap(), SvXMLExport::GetNamespaceMap_(), getSmDocShell(), GetXMLToken(), m_bSuccess, m_bUseExportTag, m_pElementTree, SVSTREAM_INVALID_PARAMETER, u, XML_N_MATH, and XML_NAMESPACE_MATH.
|
inlineoverridevirtual |
Exports master styles However math doesn't have any.
Implements SvXMLExport.
Definition at line 216 of file export.hxx.
| void SmMLExport::exportMlAttributeLength | ( | xmloff::token::XMLTokenEnum | pAttribute, |
| const SmLengthValue & | aLengthValue | ||
| ) |
Exports an attribute of type "length".
Definition at line 606 of file export.cxx.
References addAttribute(), declareMlError(), SmLengthValue::m_aLengthUnit, SmLengthValue::m_aLengthValue, SmLengthValue::m_aOriginalText, MlCm, MlEm, MlEx, MlIn, MlM, MlMm, MlP, MlPc, MlPt, MlPx, and u.
Referenced by exportMlAttributes().
| void SmMLExport::exportMlAttributes | ( | const SmMlElement * | pMlElement | ) |
Exports attributes of an element.
Definition at line 656 of file export.cxx.
References addAttribute(), SmColorTokenTableEntry::aIdent, bold, bold_fraktur, bold_italic, bold_sans_serif, bold_script, declareMlError(), double_struck, exportMlAttributeLength(), fraktur, SmMlElement::getAttribute(), SmMlElement::getAttributeCount(), SmMlAttribute::getMlAccent(), SmMlAttribute::getMlAttributeValueType(), SmMlAttribute::getMlDir(), SmMlAttribute::getMlDisplaystyle(), SmMlAttribute::getMlFence(), SmMlAttribute::getMlHref(), SmMlAttribute::getMlLspace(), SmMlAttribute::getMlMathbackground(), SmMlAttribute::getMlMathcolor(), SmMlAttribute::getMlMathsize(), SmMlAttribute::getMlMathvariant(), SmMlAttribute::getMlMaxsize(), SmMlAttribute::getMlMinsize(), SmMlAttribute::getMlMovablelimits(), SmMlAttribute::getMlRspace(), SmMlAttribute::getMlSeparator(), SmMlAttribute::getMlStretchy(), SmMlAttribute::getMlSymmetric(), i, starmathdatabase::Identify_Color_MATHML(), initial, SmMlAttribute::isSet(), italic, looped, SmMlLspace::m_aLengthValue, SmMlMathsize::m_aLengthValue, SmMlMaxsize::m_aLengthValue, SmMlMinsize::m_aLengthValue, SmMlRspace::m_aLengthValue, MlAccent, MlDefault, MlDir, MlDisplaystyle, MlFalse, MlFence, MlFinite, MlHref, MlInfinity, MlLspace, MlLtr, MlMathbackground, MlMathcolor, MlMathsize, MlMathvariant, MlMaxsize, MlMinsize, MlMovablelimits, MlRgb, MlRspace, MlRtl, MlSeparator, MlStretchy, MlSymmetric, MlTransparent, MlTrue, monospace, NMlEmpty, NMlValid, normal, sans_serif, sans_serif_bold_italic, sans_serif_italic, script, stretched, tailed, XML_ACCENT, XML_DIR, XML_DISPLAYSTYLE, XML_FALSE, XML_FENCE, XML_HREF, XML_INFINITY, XML_LSPACE, XML_LTR, XML_MATHBACKGROUND, XML_MATHCOLOR, XML_MATHSIZE, XML_MATHVARIANT, XML_MAXSIZE, XML_MINSIZE, XML_MOVABLELIMITS, XML_RSPACE, XML_RTL, XML_SEPARATOR, XML_STRETCHY, XML_SYMMETRIC, and XML_TRUE.
Referenced by exportMlElement().
| SvXMLElementExport * SmMLExport::exportMlElement | ( | const SmMlElement * | pMlElement | ) |
Exports an element and all it's attributes.
Definition at line 981 of file export.cxx.
References createElementExport(), exportMlAttributes(), SvXMLExport::GetDocHandler(), SmMlElement::getMlElementType(), SmMlElement::getText(), MlMath, MlMerror, MlMi, MlMn, MlMo, MlMrow, MlMstyle, MlMtext, XML_MATH, XML_MERROR, XML_MI, XML_MN, XML_MO, XML_MROW, XML_MSTYLE, and XML_MTEXT.
| void SmMLExport::exportMlElementTree | ( | ) |
Exports an element tree.
Definition at line 1083 of file export.cxx.
References aData, exportMlElementTreeExec(), m_pElementTree, and mathml::SmMlIteratorTopToBottom().
Referenced by ExportContent_().
|
overridevirtual |
Get's configuration settings and prepares them to export.
Reimplemented from SvXMLExport.
Definition at line 550 of file export.cxx.
References SvXMLExport::GetModel(), i, Name, nCount, and SAL_WARN.
|
private |
Get's document shell.
Definition at line 466 of file export.cxx.
References SvXMLExport::GetModel(), and SfxBaseModel::GetObjectShell().
Referenced by exportDoc(), and GetViewSettings().
|
inline |
Everything was allright.
Definition at line 135 of file export.hxx.
References m_bSuccess.
Referenced by SmMLExportWrapper::WriteThroughComponentOS().
|
inline |
Get's if xmlns field is added.
Definition at line 139 of file export.hxx.
References m_bUseExportTag.
|
overridevirtual |
Get's view settings and prepares them to export.
Reimplemented from SvXMLExport.
Definition at line 520 of file export.cxx.
References tools::Rectangle::GetHeight(), getSmDocShell(), SfxObjectShell::GetVisArea(), tools::Rectangle::GetWidth(), tools::Rectangle::Left(), SAL_WARN, and tools::Rectangle::Top().
|
inline |
Set's the element tree to be exported.
If it isn't nullptr the this will be exported instead of the document
Definition at line 148 of file export.hxx.
References m_pElementTree.
Referenced by SmMLExportWrapper::WriteThroughComponentOS().
|
inline |
Set's if xmlns field is added.
Definition at line 143 of file export.hxx.
References m_bUseExportTag.
Referenced by SmMLExportWrapper::WriteThroughComponentOS().
|
private |
Definition at line 129 of file export.hxx.
Referenced by declareMlError(), exportDoc(), and getSuccess().
|
private |
Definition at line 130 of file export.hxx.
Referenced by exportDoc(), getUseExportTag(), and setUseExportTag().
|
private |
Definition at line 128 of file export.hxx.
Referenced by exportDoc(), exportMlElementTree(), and setElementTree().