LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OOo2OasisTransformer Class Reference

#include <OOo2Oasis.hxx>

Inheritance diagram for OOo2OasisTransformer:
[legend]
Collaboration diagram for OOo2OasisTransformer:
[legend]

Public Member Functions

 OOo2OasisTransformer (OUString aImplName, OUString aSubServiceName) noexcept
 
virtual ~OOo2OasisTransformer () noexcept override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &aType) override
 
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void SAL_CALL setTargetDocument (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
 
void Initialize (const css::uno::Sequence< css::uno::Any > &aArguments)
 
virtual void SAL_CALL startDocument () override
 
virtual OUString GetEventName (const OUString &rName, bool bForm=false) override
 
- Public Member Functions inherited from XMLTransformerBase
 XMLTransformerBase (XMLTransformerActionInit const *pInit, ::xmloff::token::XMLTokenEnum const *pTKMapInit) noexcept
 
virtual ~XMLTransformerBase () noexcept override
 
virtual void SAL_CALL startDocument () override
 
virtual void SAL_CALL endDocument () override
 
virtual void SAL_CALL startElement (const OUString &aName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
 
virtual void SAL_CALL endElement (const OUString &aName) override
 
virtual void SAL_CALL characters (const OUString &aChars) override
 
virtual void SAL_CALL ignorableWhitespace (const OUString &aWhitespaces) override
 
virtual void SAL_CALL processingInstruction (const OUString &aTarget, const OUString &aData) override
 
virtual void SAL_CALL setDocumentLocator (const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
 
virtual void SAL_CALL startCDATA () override
 
virtual void SAL_CALL endCDATA () override
 
virtual void SAL_CALL comment (const OUString &sComment) override
 
virtual void SAL_CALL allowLineBreak () override
 
virtual void SAL_CALL unknown (const OUString &sString) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
const css::uno::Reference< css::xml::sax::XDocumentHandler > & GetDocHandler () const
 
const css::uno::Reference< css::beans::XPropertySet > & GetPropertySet () const
 
SvXMLNamespaceMapGetNamespaceMap ()
 
const SvXMLNamespaceMapGetNamespaceMap () const
 
SvXMLNamespaceMapGetReplaceNamespaceMap ()
 
XMLTransformerActionsGetElemActions ()
 
virtual XMLTransformerActionsGetUserDefinedActions (sal_uInt16 n)
 
virtual XMLTransformerContextCreateUserDefinedContext (const TransformerAction_Impl &rAction, const OUString &rQName, bool bPersistent=false)=0
 
virtual OUString GetEventName (const OUString &rName, bool bForm=false)=0
 
XMLMutableAttributeListProcessAttrList (css::uno::Reference< css::xml::sax::XAttributeList > &rAttrList, sal_uInt16 nActionMap, bool bClone)
 
bool EncodeStyleName (OUString &rName) const
 
void AddNamespacePrefix (OUString &rName, sal_uInt16 nPrefix) const
 
bool RemoveNamespacePrefix (OUString &rName, sal_uInt16 nPrefixOnly=0xffffU) const
 
bool ConvertURIToOASIS (OUString &rURI, bool bSupportPackage) const
 
bool ConvertURIToOOo (OUString &rURI, bool bSupportPackage) const
 
::xmloff::token::XMLTokenEnum GetToken (const OUString &rStr) const
 
const XMLTransformerContextGetCurrentContext () const
 
const XMLTransformerContextGetAncestorContext (sal_uInt32 i) const
 
void SetClass (const OUString &r)
 
const OUString & GetClass () const
 
bool isWriter () const
 

Protected Member Functions

virtual XMLTransformerContextCreateUserDefinedContext (const TransformerAction_Impl &rAction, const OUString &rQName, bool bPersistent=false) override
 
virtual XMLTransformerActionsGetUserDefinedActions (sal_uInt16 n) override
 
- Protected Member Functions inherited from XMLTransformerBase
XMLTransformerContextCreateContext (sal_uInt16 nPrefix, const OUString &rLocalName, const OUString &rQName)
 

Private Attributes

OUString const m_aImplName
 
OUString const m_aSubServiceName
 
std::unique_ptr< XMLTransformerActionsm_aActions [MAX_OOO_ACTIONS]
 
XMLTransformerOOoEventMap_Implm_pEventMap
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLTransformerBase
static bool ReplaceSingleInchWithIn (OUString &rValue)
 
static bool ReplaceSingleInWithInch (OUString &rValue)
 
static bool ReplaceInchWithIn (OUString &rValue)
 
static bool ReplaceInWithInch (OUString &rValue)
 
static bool DecodeStyleName (OUString &rName)
 
static bool NegPercent (OUString &rValue)
 
static bool RenameAttributeValue (OUString &rOutAttributeValue, sal_Int32 nParam1, sal_Int32 nParam2, sal_Int32 nParam3)
 renames the given rOutAttributeValue if one of the parameters contains a matching token in its lower 16 bits. More...
 
static bool ConvertRNGDateTimeToISO (OUString &rDateTime)
 converts the '. More...
 
- Protected Attributes inherited from XMLTransformerBase
css::uno::Reference< css::frame::XModel > mxModel
 

Detailed Description

Definition at line 29 of file OOo2Oasis.hxx.

Constructor & Destructor Documentation

◆ OOo2OasisTransformer()

OOo2OasisTransformer::OOo2OasisTransformer ( OUString  aImplName,
OUString  aSubServiceName 
)
noexcept

Definition at line 1556 of file OOo2Oasis.cxx.

References xmloff::token::GetXMLToken(), xmloff::token::XML_N_CHART, xmloff::token::XML_N_CHART_OOO, xmloff::token::XML_N_CONFIG, xmloff::token::XML_N_CONFIG_OOO, xmloff::token::XML_N_DR3D, xmloff::token::XML_N_DR3D_OOO, xmloff::token::XML_N_DRAW, xmloff::token::XML_N_DRAW_OOO, xmloff::token::XML_N_FORM, xmloff::token::XML_N_FORM_OOO, xmloff::token::XML_N_META, xmloff::token::XML_N_META_OOO, xmloff::token::XML_N_NUMBER, xmloff::token::XML_N_NUMBER_OOO, xmloff::token::XML_N_OFFICE, xmloff::token::XML_N_OFFICE_OOO, xmloff::token::XML_N_PRESENTATION, xmloff::token::XML_N_PRESENTATION_OOO, xmloff::token::XML_N_SCRIPT, xmloff::token::XML_N_SCRIPT_OOO, xmloff::token::XML_N_STYLE, xmloff::token::XML_N_STYLE_OOO, xmloff::token::XML_N_TABLE, xmloff::token::XML_N_TABLE_OOO, xmloff::token::XML_N_TEXT, xmloff::token::XML_N_TEXT_OOO, XML_NAMESPACE_CHART, XML_NAMESPACE_CONFIG, XML_NAMESPACE_DR3D, XML_NAMESPACE_DRAW, XML_NAMESPACE_FO, XML_NAMESPACE_FORM, XML_NAMESPACE_META, XML_NAMESPACE_NUMBER, XML_NAMESPACE_OFFICE, XML_NAMESPACE_PRESENTATION, XML_NAMESPACE_SCRIPT, XML_NAMESPACE_STYLE, XML_NAMESPACE_SVG, XML_NAMESPACE_TABLE, XML_NAMESPACE_TEXT, xmloff::token::XML_NP_CHART, xmloff::token::XML_NP_CONFIG, xmloff::token::XML_NP_DR3D, xmloff::token::XML_NP_DRAW, xmloff::token::XML_NP_FO, xmloff::token::XML_NP_FORM, xmloff::token::XML_NP_META, xmloff::token::XML_NP_NUMBER, xmloff::token::XML_NP_OFFICE, xmloff::token::XML_NP_PRESENTATION, xmloff::token::XML_NP_SCRIPT, xmloff::token::XML_NP_STYLE, xmloff::token::XML_NP_SVG, xmloff::token::XML_NP_TABLE, and xmloff::token::XML_NP_TEXT.

◆ ~OOo2OasisTransformer()

OOo2OasisTransformer::~OOo2OasisTransformer ( )
overridevirtualnoexcept

Member Function Documentation

◆ acquire()

virtual void SAL_CALL OOo2OasisTransformer::acquire ( )
inlineoverridevirtualnoexcept

Definition at line 62 of file OOo2Oasis.hxx.

◆ cancel()

void SAL_CALL OOo2OasisTransformer::cancel ( )
overridevirtual

Definition at line 1673 of file OOo2Oasis.cxx.

References XMLTransformerBase::GetDocHandler().

◆ CreateUserDefinedContext()

XMLTransformerContext * OOo2OasisTransformer::CreateUserDefinedContext ( const TransformerAction_Impl rAction,
const OUString &  rQName,
bool  bPersistent = false 
)
overrideprotectedvirtual

◆ filter()

sal_Bool SAL_CALL OOo2OasisTransformer::filter ( const css::uno::Sequence< css::beans::PropertyValue > &  aDescriptor)
overridevirtual

Definition at line 1662 of file OOo2Oasis.cxx.

References XMLTransformerBase::GetDocHandler().

◆ GetEventName()

OUString OOo2OasisTransformer::GetEventName ( const OUString &  rName,
bool  bForm = false 
)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL OOo2OasisTransformer::getImplementationName ( )
overridevirtual

Definition at line 1736 of file OOo2Oasis.cxx.

References m_aImplName.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL OOo2OasisTransformer::getSupportedServiceNames ( )
overridevirtual

Definition at line 1746 of file OOo2Oasis.cxx.

◆ getTypes()

Sequence< css::uno::Type > SAL_CALL OOo2OasisTransformer::getTypes ( )
overridevirtual

Definition at line 1752 of file OOo2Oasis.cxx.

References cppu::OTypeCollection::getTypes().

◆ GetUserDefinedActions()

XMLTransformerActions * OOo2OasisTransformer::GetUserDefinedActions ( sal_uInt16  n)
overrideprotectedvirtual

Reimplemented from XMLTransformerBase.

Definition at line 1360 of file OOo2Oasis.cxx.

References aAlphabeticalIndexMarkActionTable, aAnimationsActionTable, aAnnotationActionTable, aBackgroundImageActionTable, aChangeInfoActionTable, aChartActionTable, aColumnsActionTable, aConfigItemSetActionTable, aConnectorActionTable, aDataPilotLevelActionTable, aDataPilotMemberActionTable, aDDEConnectionDeclActionTable, aDDEConvModeActionTable, aDrawAreaPolygonActionTable, aDropCapActionTable, aErrorMacroActionTable, aEventActionTable, aFontDeclActionTable, aFootnoteSepActionTable, aFormColumnActionTable, aFormControlActionTable, aFormPropActionTable, aFormulaActionTable, aFrameAttrActionTable, aFrameElemActionTable, aIndexEntryTabStopActionTable, aLineNumberingActionTable, aMasterPageActionTable, aParaActionTable, aScriptActionTable, aShapeActionTable, aSourceServiceActionTable, aStyleActionTable, aStyleRefActionTable, aTableValueTypeActionTable, aTabStopActionTable, aTextValueTypeActionTable, aWriterBackgroundImageActionTable, aXLinkActionTable, XMLStyleOOoTContext::CreateTransformerActions(), XMLTransformerBase::isWriter(), m_aActions, MAX_OOO_ACTIONS, MAX_OOO_PROP_ACTIONS, n, OOO_ALPHABETICAL_INDEX_MARK_ACTIONS, OOO_ANIMATION_ACTIONS, OOO_ANNOTATION_ACTIONS, OOO_BACKGROUND_IMAGE_ACTIONS, OOO_CHANGE_INFO_ACTIONS, OOO_CHART_ACTIONS, OOO_COLUMNS_ACTIONS, OOO_CONFIG_ITEM_SET_ACTIONS, OOO_CONNECTOR_ACTIONS, OOO_DATAPILOT_LEVEL_ACTIONS, OOO_DATAPILOT_MEMBER_ACTIONS, OOO_DDE_CONNECTION_DECL_ACTIONS, OOO_DDE_CONV_MODE_ACTIONS, OOO_DRAW_AREA_POLYGON_ACTIONS, OOO_DROP_CAP_ACTIONS, OOO_ERROR_MACRO_ACTIONS, OOO_EVENT_ACTIONS, OOO_FONT_DECL_ACTIONS, OOO_FOOTNOTE_SEP_ACTIONS, OOO_FORM_COLUMN_ACTIONS, OOO_FORM_CONTROL_ACTIONS, OOO_FORM_PROP_ACTIONS, OOO_FORMULA_ACTIONS, OOO_FRAME_ATTR_ACTIONS, OOO_FRAME_ELEM_ACTIONS, OOO_INDEX_ENTRY_TAB_STOP_ACTIONS, OOO_LINENUMBERING_ACTIONS, OOO_MASTER_PAGE_ACTIONS, OOO_PARA_ACTIONS, OOO_SCRIPT_ACTIONS, OOO_SHAPE_ACTIONS, OOO_SOURCE_SERVICE_ACTIONS, OOO_STYLE_ACTIONS, OOO_STYLE_REF_ACTIONS, OOO_TAB_STOP_ACTIONS, OOO_TABLE_VALUE_TYPE_ACTIONS, OOO_TEXT_VALUE_TYPE_ACTIONS, and OOO_XLINK_ACTIONS.

◆ Initialize()

void OOo2OasisTransformer::Initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
Exceptions
css::uno::Exception
css::uno::RuntimeException

Definition at line 1701 of file OOo2Oasis.cxx.

References XMLTransformerBase::GetDocHandler(), comphelper::getProcessComponentContext(), XMLTransformerBase::initialize(), m_aSubServiceName, SAL_WARN, and SAL_WARN_IF.

Referenced by initialize(), setTargetDocument(), and startDocument().

◆ initialize()

void SAL_CALL OOo2OasisTransformer::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Reimplemented from XMLTransformerBase.

Definition at line 1682 of file OOo2Oasis.cxx.

References Initialize().

◆ queryInterface()

Any OOo2OasisTransformer::queryInterface ( const css::uno::Type &  aType)
overridevirtual

Definition at line 1620 of file OOo2Oasis.cxx.

References Any.

◆ release()

virtual void SAL_CALL OOo2OasisTransformer::release ( )
inlineoverridevirtualnoexcept

Definition at line 65 of file OOo2Oasis.hxx.

◆ setTargetDocument()

void SAL_CALL OOo2OasisTransformer::setTargetDocument ( const css::uno::Reference< css::lang::XComponent > &  xDoc)
overridevirtual

◆ startDocument()

void SAL_CALL OOo2OasisTransformer::startDocument ( )
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL OOo2OasisTransformer::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 1741 of file OOo2Oasis.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aActions

std::unique_ptr<XMLTransformerActions> OOo2OasisTransformer::m_aActions[MAX_OOO_ACTIONS]
private

Definition at line 37 of file OOo2Oasis.hxx.

Referenced by GetUserDefinedActions(), and ~OOo2OasisTransformer().

◆ m_aImplName

OUString const OOo2OasisTransformer::m_aImplName
private

Definition at line 34 of file OOo2Oasis.hxx.

Referenced by getImplementationName().

◆ m_aSubServiceName

OUString const OOo2OasisTransformer::m_aSubServiceName
private

Definition at line 35 of file OOo2Oasis.hxx.

Referenced by Initialize().

◆ m_pEventMap

XMLTransformerOOoEventMap_Impl* OOo2OasisTransformer::m_pEventMap
private

Definition at line 38 of file OOo2Oasis.hxx.

Referenced by GetEventName(), and ~OOo2OasisTransformer().


The documentation for this class was generated from the following files: