LibreOffice Module unoxml (master) 1
Namespaces | Classes | Typedefs | Functions
DOM Namespace Reference

Namespaces

namespace  events
 

Classes

class  CAttr
 
class  CAttributesMap
 
class  CCDATASection
 
class  CCharacterData
 
class  CChildList
 
class  CComment
 
class  CDocument
 
class  CDocumentBuilder
 
class  CDocumentFragment
 
class  CDocumentType
 
class  CDOMImplementation
 
class  CElement
 
class  CElementList
 
class  CElementListImpl
 
class  CEntitiesMap
 
class  CEntity
 
class  CEntityReference
 
class  CNotation
 
class  CNotationsMap
 
struct  Context
 
class  CProcessingInstruction
 
class  CSAXDocumentBuilder
 
class  CText
 

Typedefs

typedef ::std::pair< OString, OString > stringpair_t
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XAttr > CAttr_Base
 
typedef ::cppu::ImplInheritanceHelper< CText, css::xml::dom::XCDATASection > CCDATASection_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XCharacterData > CCharacterData_Base
 
typedef ::cppu::ImplInheritanceHelper< CCharacterData, css::xml::dom::XComment > CComment_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocument, css::xml::dom::events::XDocumentEvent, css::io::XActiveDataControl, css::io::XActiveDataSource, css::xml::sax::XSAXSerializable, css::xml::sax::XFastSAXSerializable > CDocument_Base
 
typedef ::cppu::WeakImplHelper< css::xml::dom::XDocumentBuilder, css::lang::XServiceInfo > CDocumentBuilder_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocumentFragment > CDocumentFragment_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocumentType > CDocumentType_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XElement > CElement_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntity > CEntity_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntityReference > CEntityReference_Base
 
typedef cppu::ImplInheritanceHelper< CNode, css::xml::dom::XNotation > CNotation_Base
 
typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XProcessingInstruction > CProcessingInstruction_Base
 
typedef ::cppu::ImplInheritanceHelper< CCharacterData, css::xml::dom::XText > CText_Base
 

Functions

static xmlNodePtr lcl_getDocumentType (xmlDocPtr const i_pDocument)
 
static xmlNodePtr lcl_getDocumentRootPtr (xmlDocPtr const i_pDocument)
 get the pointer to the root element node of the document More...
 
static int writeCallback (void *context, const char *buffer, int len)
 
static int closeCallback (void *context)
 
static xmlNodePtr lcl_search_element_by_id (const xmlNodePtr cur, const xmlChar *id)
 
static void lcl_ImportSiblings (Reference< XDocument > const &xTargetDocument, Reference< XNode > const &xTargetParent, Reference< XNode > const &xChild)
 
static Reference< XNode > lcl_ImportNode (Reference< XDocument > const &xDocument, Reference< XNode > const &xImportedNode, bool deep)
 
static OUString make_error_message (xmlParserCtxtPtr ctxt)
 
static int xmlIO_read_func (void *context, char *buffer, int len)
 
static int xmlIO_close_func (void *context)
 
static xmlParserInputPtr resolve_func (void *ctx, const xmlChar *publicId, const xmlChar *systemId)
 
static void warning_func (void *ctx, const char *,...)
 
static void error_func (void *ctx, const char *,...)
 
static void throwEx (xmlParserCtxtPtr ctxt)
 
static xmlChar * lcl_initXmlString (std::u16string_view rString)
 
void pushContext (Context &io_rContext)
 
void popContext (Context &io_rContext)
 
void addNamespaces (Context &io_rContext, xmlNodePtr pNode)
 add namespaces on this node to context More...
 
sal_Int32 getToken (const Context &rContext, const char *pToken)
 
sal_Int32 getTokenWithPrefix (const Context &rContext, const char *pPrefix, const char *pName)
 
static void lcl_nsexchange (xmlNodePtr const aNode, xmlNsPtr const oldNs, xmlNsPtr const newNs)
 
void nscleanup (const xmlNodePtr aNode, const xmlNodePtr aParent)
 eliminate redundant namespace declarations More...
 

Typedef Documentation

◆ CAttr_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XAttr > DOM::CAttr_Base

Definition at line 39 of file attr.hxx.

◆ CCDATASection_Base

typedef ::cppu::ImplInheritanceHelper< CText, css::xml::dom::XCDATASection > DOM::CCDATASection_Base

Definition at line 31 of file cdatasection.hxx.

◆ CCharacterData_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XCharacterData > DOM::CCharacterData_Base

Definition at line 37 of file characterdata.hxx.

◆ CComment_Base

typedef ::cppu::ImplInheritanceHelper< CCharacterData, css::xml::dom::XComment > DOM::CComment_Base

Definition at line 31 of file comment.hxx.

◆ CDocument_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocument, css::xml::dom::events::XDocumentEvent, css::io::XActiveDataControl, css::io::XActiveDataSource, css::xml::sax::XSAXSerializable, css::xml::sax::XFastSAXSerializable> DOM::CDocument_Base

Definition at line 64 of file document.hxx.

◆ CDocumentBuilder_Base

typedef ::cppu::WeakImplHelper< css::xml::dom::XDocumentBuilder , css::lang::XServiceInfo > DOM::CDocumentBuilder_Base

Definition at line 43 of file documentbuilder.hxx.

◆ CDocumentFragment_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocumentFragment > DOM::CDocumentFragment_Base

Definition at line 31 of file documentfragment.hxx.

◆ CDocumentType_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XDocumentType > DOM::CDocumentType_Base

Definition at line 37 of file documenttype.hxx.

◆ CElement_Base

typedef ::cppu::ImplInheritanceHelper<CNode, css::xml::dom::XElement > DOM::CElement_Base

Definition at line 35 of file element.hxx.

◆ CEntity_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntity > DOM::CEntity_Base

Definition at line 34 of file entity.hxx.

◆ CEntityReference_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XEntityReference > DOM::CEntityReference_Base

Definition at line 33 of file entityreference.hxx.

◆ CNotation_Base

typedef cppu::ImplInheritanceHelper< CNode, css::xml::dom::XNotation > DOM::CNotation_Base

Definition at line 32 of file notation.hxx.

◆ CProcessingInstruction_Base

typedef ::cppu::ImplInheritanceHelper< CNode, css::xml::dom::XProcessingInstruction > DOM::CProcessingInstruction_Base

Definition at line 33 of file processinginstruction.hxx.

◆ CText_Base

typedef ::cppu::ImplInheritanceHelper< CCharacterData, css::xml::dom::XText > DOM::CText_Base

Definition at line 36 of file text.hxx.

◆ stringpair_t

typedef ::std::pair< OString, OString > DOM::stringpair_t

Definition at line 37 of file attr.hxx.

Function Documentation

◆ addNamespaces()

void DOM::addNamespaces ( Context io_rContext,
xmlNodePtr  pNode 
)

◆ closeCallback()

static int DOM::closeCallback ( void *  context)
static

Definition at line 351 of file document.cxx.

Referenced by DOM::CDocument::start().

◆ error_func()

static void DOM::error_func ( void *  ctx,
const char *  ,
  ... 
)
static

◆ getToken()

sal_Int32 DOM::getToken ( const Context rContext,
const char *  pToken 
)

Definition at line 94 of file node.cxx.

References aSeq, and DOM::Context::mxTokenHandler.

Referenced by DOM::CElement::fastSaxify(), and getTokenWithPrefix().

◆ getTokenWithPrefix()

sal_Int32 DOM::getTokenWithPrefix ( const Context rContext,
const char *  pPrefix,
const char *  pName 
)

Definition at line 100 of file node.cxx.

References getToken(), DOM::Context::maNamespaces, pName, prefix, and SAL_INFO.

Referenced by DOM::CElement::fastSaxify().

◆ lcl_getDocumentRootPtr()

static xmlNodePtr DOM::lcl_getDocumentRootPtr ( xmlDocPtr const  i_pDocument)
static

◆ lcl_getDocumentType()

static xmlNodePtr DOM::lcl_getDocumentType ( xmlDocPtr const  i_pDocument)
static

Definition at line 58 of file document.cxx.

Referenced by DOM::CDocument::getDoctype(), and DOM::CDocument::IsChildTypeAllowed().

◆ lcl_ImportNode()

static Reference< XNode > DOM::lcl_ImportNode ( Reference< XDocument > const &  xDocument,
Reference< XNode > const &  xImportedNode,
bool  deep 
)
static

Definition at line 721 of file document.cxx.

References i, and lcl_ImportSiblings().

Referenced by DOM::CDocument::importNode().

◆ lcl_ImportSiblings()

static void DOM::lcl_ImportSiblings ( Reference< XDocument > const &  xTargetDocument,
Reference< XNode > const &  xTargetParent,
Reference< XNode > const &  xChild 
)
static

Definition at line 705 of file document.cxx.

Referenced by lcl_ImportNode().

◆ lcl_initXmlString()

static xmlChar * DOM::lcl_initXmlString ( std::u16string_view  rString)
static

Definition at line 63 of file elementlist.cxx.

References OUStringToOString().

◆ lcl_nsexchange()

static void DOM::lcl_nsexchange ( xmlNodePtr const  aNode,
xmlNsPtr const  oldNs,
xmlNsPtr const  newNs 
)
static

Definition at line 171 of file node.cxx.

References lcl_nsexchange().

Referenced by lcl_nsexchange(), and nscleanup().

◆ lcl_search_element_by_id()

static xmlNodePtr DOM::lcl_search_element_by_id ( const xmlNodePtr  cur,
const xmlChar *  id 
)
static

Definition at line 633 of file document.cxx.

References a, lcl_search_element_by_id(), and result.

Referenced by DOM::CDocument::getElementById(), and lcl_search_element_by_id().

◆ make_error_message()

static OUString DOM::make_error_message ( xmlParserCtxtPtr  ctxt)
static

Definition at line 137 of file documentbuilder.cxx.

Referenced by error_func(), throwEx(), and warning_func().

◆ nscleanup()

void DOM::nscleanup ( const xmlNodePtr  aNode,
const xmlNodePtr  aParent 
)

eliminate redundant namespace declarations

Definition at line 195 of file node.cxx.

References lcl_nsexchange(), ns, and nscleanup().

Referenced by DOM::CDocument::fastSerialize(), nscleanup(), and DOM::CDocument::serialize().

◆ popContext()

void DOM::popContext ( Context io_rContext)

Definition at line 61 of file node.cxx.

References DOM::Context::maNamespaces.

Referenced by DOM::CElement::fastSaxify().

◆ pushContext()

void DOM::pushContext ( Context io_rContext)

Definition at line 52 of file node.cxx.

References DOM::Context::maNamespaces.

Referenced by DOM::CElement::fastSaxify().

◆ resolve_func()

static xmlParserInputPtr DOM::resolve_func ( void *  ctx,
const xmlChar *  publicId,
const xmlChar *  systemId 
)
static

◆ throwEx()

static void DOM::throwEx ( xmlParserCtxtPtr  ctxt)
static

◆ warning_func()

static void DOM::warning_func ( void *  ctx,
const char *  ,
  ... 
)
static

◆ writeCallback()

static int DOM::writeCallback ( void *  context,
const char *  buffer,
int  len 
)
static

Definition at line 341 of file document.cxx.

Referenced by DOM::CDocument::start().

◆ xmlIO_close_func()

static int DOM::xmlIO_close_func ( void *  context)
static

Definition at line 181 of file documentbuilder.cxx.

References TOOLS_WARN_EXCEPTION.

Referenced by DOM::CDocumentBuilder::parse(), and resolve_func().

◆ xmlIO_read_func()

static int DOM::xmlIO_read_func ( void *  context,
char *  buffer,
int  len 
)
static

Definition at line 161 of file documentbuilder.cxx.

References TOOLS_WARN_EXCEPTION.

Referenced by DOM::CDocumentBuilder::parse(), and resolve_func().