LibreOffice Module unoxml (master) 1
Public Member Functions | Protected Member Functions | List of all members
DOM::CCharacterData Class Reference

#include <characterdata.hxx>

Inheritance diagram for DOM::CCharacterData:
[legend]
Collaboration diagram for DOM::CCharacterData:
[legend]

Public Member Functions

virtual void SAL_CALL appendData (const OUString &arg) override
 Append the string to the end of the character data of the node. More...
 
virtual void SAL_CALL deleteData (sal_Int32 offset, sal_Int32 count) override
 Remove a range of 16-bit units from the node. More...
 
virtual OUString SAL_CALL getData () override
 Return the character data of the node that implements this interface. More...
 
virtual sal_Int32 SAL_CALL getLength () override
 The number of 16-bit units that are available through data and the substringData method below. More...
 
virtual void SAL_CALL insertData (sal_Int32 offset, const OUString &arg) override
 Insert a string at the specified 16-bit unit offset. More...
 
virtual void SAL_CALL replaceData (sal_Int32 offset, sal_Int32 count, const OUString &arg) override
 Replace the characters starting at the specified 16-bit unit offset with the specified string. More...
 
virtual void SAL_CALL setData (const OUString &data) override
 Set the character data of the node that implements this interface. More...
 
virtual OUString SAL_CALL subStringData (sal_Int32 offset, sal_Int32 count) override
 Extracts a range of data from the node. More...
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL appendChild (const css::uno::Reference< css::xml::dom::XNode > &newChild) override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL cloneNode (sal_Bool deep) override
 
virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL getAttributes () override
 
virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL getChildNodes () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getFirstChild () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getLastChild () override
 
virtual OUString SAL_CALL getLocalName () override
 
virtual OUString SAL_CALL getNamespaceURI () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getNextSibling () override
 
virtual OUString SAL_CALL getNodeName () override
 
virtual css::xml::dom::NodeType SAL_CALL getNodeType () override
 
virtual OUString SAL_CALL getNodeValue () override
 
virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL getOwnerDocument () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getParentNode () override
 
virtual OUString SAL_CALL getPrefix () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL getPreviousSibling () override
 
virtual sal_Bool SAL_CALL hasAttributes () override
 
virtual sal_Bool SAL_CALL hasChildNodes () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL insertBefore (const css::uno::Reference< css::xml::dom::XNode > &newChild, const css::uno::Reference< css::xml::dom::XNode > &refChild) override
 
virtual sal_Bool SAL_CALL isSupported (const OUString &feature, const OUString &ver) override
 
virtual void SAL_CALL normalize () override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL removeChild (const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
 
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL replaceChild (const css::uno::Reference< css::xml::dom::XNode > &newChild, const css::uno::Reference< css::xml::dom::XNode > &oldChild) override
 
virtual void SAL_CALL setNodeValue (const OUString &nodeValue) override
 
virtual void SAL_CALL setPrefix (const OUString &prefix) override
 

Protected Member Functions

 CCharacterData (CDocument const &rDocument, ::osl::Mutex const &rMutex, css::xml::dom::NodeType const &reNodeType, xmlNodePtr const &rpNode)
 
void dispatchEvent_Impl (OUString const &prevValue, OUString const &newValue)
 

Detailed Description

Definition at line 39 of file characterdata.hxx.

Constructor & Destructor Documentation

◆ CCharacterData()

DOM::CCharacterData::CCharacterData ( CDocument const &  rDocument,
::osl::Mutex const &  rMutex,
css::xml::dom::NodeType const &  reNodeType,
xmlNodePtr const &  rpNode 
)
protected

Definition at line 39 of file characterdata.cxx.

Member Function Documentation

◆ appendChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::appendChild ( const css::uno::Reference< css::xml::dom::XNode > &  newChild)
inlineoverridevirtual

Definition at line 94 of file characterdata.hxx.

Referenced by DOM::CComment::appendChild(), and DOM::CText::appendChild().

◆ appendData()

void SAL_CALL DOM::CCharacterData::appendData ( const OUString &  arg)
overridevirtual

Append the string to the end of the character data of the node.

Definition at line 63 of file characterdata.cxx.

References dispatchEvent_Impl(), m_rMutex, and OUStringToOString().

Referenced by DOM::CCDATASection::appendData(), DOM::CComment::appendData(), and DOM::CText::appendData().

◆ cloneNode()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::cloneNode ( sal_Bool  deep)
inlineoverridevirtual

Definition at line 98 of file characterdata.hxx.

Referenced by DOM::CComment::cloneNode(), and DOM::CText::cloneNode().

◆ deleteData()

void SAL_CALL DOM::CCharacterData::deleteData ( sal_Int32  offset,
sal_Int32  count 
)
overridevirtual

Remove a range of 16-bit units from the node.

Definition at line 81 of file characterdata.cxx.

References aData, count, dispatchEvent_Impl(), m_rMutex, and OUStringToOString().

Referenced by DOM::CCDATASection::deleteData(), DOM::CComment::deleteData(), and DOM::CText::deleteData().

◆ dispatchEvent_Impl()

void DOM::CCharacterData::dispatchEvent_Impl ( OUString const &  prevValue,
OUString const &  newValue 
)
protected

Definition at line 46 of file characterdata.cxx.

References getOwnerDocument().

Referenced by appendData(), deleteData(), insertData(), replaceData(), and setData().

◆ getAttributes()

virtual css::uno::Reference< css::xml::dom::XNamedNodeMap > SAL_CALL DOM::CCharacterData::getAttributes ( )
inlineoverridevirtual

Definition at line 102 of file characterdata.hxx.

Referenced by DOM::CComment::getAttributes(), and DOM::CText::getAttributes().

◆ getChildNodes()

virtual css::uno::Reference< css::xml::dom::XNodeList > SAL_CALL DOM::CCharacterData::getChildNodes ( )
inlineoverridevirtual

Definition at line 106 of file characterdata.hxx.

Referenced by DOM::CComment::getChildNodes(), and DOM::CText::getChildNodes().

◆ getData()

OUString SAL_CALL DOM::CCharacterData::getData ( )
overridevirtual

Return the character data of the node that implements this interface.

Definition at line 115 of file characterdata.cxx.

References aData, and m_rMutex.

Referenced by DOM::CCDATASection::getData(), DOM::CComment::getData(), DOM::CText::getData(), DOM::CCDATASection::getNodeValue(), getNodeValue(), and DOM::CComment::getNodeValue().

◆ getFirstChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::getFirstChild ( )
inlineoverridevirtual

Definition at line 110 of file characterdata.hxx.

Referenced by DOM::CComment::getFirstChild(), and DOM::CText::getFirstChild().

◆ getLastChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::getLastChild ( )
inlineoverridevirtual

Definition at line 114 of file characterdata.hxx.

Referenced by DOM::CComment::getLastChild(), and DOM::CText::getLastChild().

◆ getLength()

sal_Int32 SAL_CALL DOM::CCharacterData::getLength ( )
overridevirtual

The number of 16-bit units that are available through data and the substringData method below.

Definition at line 135 of file characterdata.cxx.

References aData, length, and m_rMutex.

Referenced by DOM::CCDATASection::getLength(), DOM::CComment::getLength(), and DOM::CText::getLength().

◆ getLocalName()

virtual OUString SAL_CALL DOM::CCharacterData::getLocalName ( )
inlineoverridevirtual

Definition at line 118 of file characterdata.hxx.

Referenced by DOM::CComment::getLocalName(), and DOM::CText::getLocalName().

◆ getNamespaceURI()

virtual OUString SAL_CALL DOM::CCharacterData::getNamespaceURI ( )
inlineoverridevirtual

◆ getNextSibling()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::getNextSibling ( )
inlineoverridevirtual

Definition at line 126 of file characterdata.hxx.

Referenced by DOM::CComment::getNextSibling(), and DOM::CText::getNextSibling().

◆ getNodeName()

virtual OUString SAL_CALL DOM::CCharacterData::getNodeName ( )
inlineoverridevirtual

Definition at line 130 of file characterdata.hxx.

◆ getNodeType()

virtual css::xml::dom::NodeType SAL_CALL DOM::CCharacterData::getNodeType ( )
inlineoverridevirtual

Definition at line 134 of file characterdata.hxx.

Referenced by DOM::CComment::getNodeType(), and DOM::CText::getNodeType().

◆ getNodeValue()

virtual OUString SAL_CALL DOM::CCharacterData::getNodeValue ( )
inlineoverridevirtual

Definition at line 138 of file characterdata.hxx.

References getData().

Referenced by DOM::CText::getNodeValue().

◆ getOwnerDocument()

virtual css::uno::Reference< css::xml::dom::XDocument > SAL_CALL DOM::CCharacterData::getOwnerDocument ( )
inlineoverridevirtual

◆ getParentNode()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::getParentNode ( )
inlineoverridevirtual

Definition at line 146 of file characterdata.hxx.

Referenced by DOM::CComment::getParentNode(), and DOM::CText::getParentNode().

◆ getPrefix()

virtual OUString SAL_CALL DOM::CCharacterData::getPrefix ( )
inlineoverridevirtual

Definition at line 150 of file characterdata.hxx.

Referenced by DOM::CComment::getPrefix(), and DOM::CText::getPrefix().

◆ getPreviousSibling()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::getPreviousSibling ( )
inlineoverridevirtual

◆ hasAttributes()

virtual sal_Bool SAL_CALL DOM::CCharacterData::hasAttributes ( )
inlineoverridevirtual

Definition at line 158 of file characterdata.hxx.

Referenced by DOM::CComment::hasAttributes(), and DOM::CText::hasAttributes().

◆ hasChildNodes()

virtual sal_Bool SAL_CALL DOM::CCharacterData::hasChildNodes ( )
inlineoverridevirtual

Definition at line 162 of file characterdata.hxx.

Referenced by DOM::CComment::hasChildNodes(), and DOM::CText::hasChildNodes().

◆ insertBefore()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::insertBefore ( const css::uno::Reference< css::xml::dom::XNode > &  newChild,
const css::uno::Reference< css::xml::dom::XNode > &  refChild 
)
inlineoverridevirtual

Definition at line 166 of file characterdata.hxx.

Referenced by DOM::CComment::insertBefore(), and DOM::CText::insertBefore().

◆ insertData()

void SAL_CALL DOM::CCharacterData::insertData ( sal_Int32  offset,
const OUString &  arg 
)
overridevirtual

Insert a string at the specified 16-bit unit offset.

Definition at line 151 of file characterdata.cxx.

References aData, dispatchEvent_Impl(), m_rMutex, and OUStringToOString().

Referenced by DOM::CCDATASection::insertData(), DOM::CComment::insertData(), and DOM::CText::insertData().

◆ isSupported()

virtual sal_Bool SAL_CALL DOM::CCharacterData::isSupported ( const OUString &  feature,
const OUString &  ver 
)
inlineoverridevirtual

Definition at line 171 of file characterdata.hxx.

Referenced by DOM::CComment::isSupported(), and DOM::CText::isSupported().

◆ normalize()

virtual void SAL_CALL DOM::CCharacterData::normalize ( )
inlineoverridevirtual

Definition at line 175 of file characterdata.hxx.

Referenced by DOM::CComment::normalize(), and DOM::CText::normalize().

◆ removeChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::removeChild ( const css::uno::Reference< css::xml::dom::XNode > &  oldChild)
inlineoverridevirtual

Definition at line 179 of file characterdata.hxx.

Referenced by DOM::CComment::removeChild(), and DOM::CText::removeChild().

◆ replaceChild()

virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL DOM::CCharacterData::replaceChild ( const css::uno::Reference< css::xml::dom::XNode > &  newChild,
const css::uno::Reference< css::xml::dom::XNode > &  oldChild 
)
inlineoverridevirtual

Definition at line 183 of file characterdata.hxx.

Referenced by DOM::CComment::replaceChild(), and DOM::CText::replaceChild().

◆ replaceData()

void SAL_CALL DOM::CCharacterData::replaceData ( sal_Int32  offset,
sal_Int32  count,
const OUString &  arg 
)
overridevirtual

Replace the characters starting at the specified 16-bit unit offset with the specified string.

Definition at line 186 of file characterdata.cxx.

References aData, count, dispatchEvent_Impl(), m_rMutex, and OUStringToOString().

Referenced by DOM::CCDATASection::replaceData(), DOM::CComment::replaceData(), and DOM::CText::replaceData().

◆ setData()

void SAL_CALL DOM::CCharacterData::setData ( const OUString &  data)
overridevirtual

Set the character data of the node that implements this interface.

Definition at line 221 of file characterdata.cxx.

References dispatchEvent_Impl(), m_rMutex, and OUStringToOString().

Referenced by DOM::CCDATASection::setData(), DOM::CComment::setData(), DOM::CText::setData(), and setNodeValue().

◆ setNodeValue()

virtual void SAL_CALL DOM::CCharacterData::setNodeValue ( const OUString &  nodeValue)
inlineoverridevirtual

Definition at line 188 of file characterdata.hxx.

References setData().

Referenced by DOM::CComment::setNodeValue(), and DOM::CText::setNodeValue().

◆ setPrefix()

virtual void SAL_CALL DOM::CCharacterData::setPrefix ( const OUString &  prefix)
inlineoverridevirtual

Definition at line 192 of file characterdata.hxx.

References prefix.

Referenced by DOM::CComment::setPrefix(), and DOM::CText::setPrefix().

◆ subStringData()

OUString SAL_CALL DOM::CCharacterData::subStringData ( sal_Int32  offset,
sal_Int32  count 
)
overridevirtual

Extracts a range of data from the node.

Definition at line 239 of file characterdata.cxx.

References aData, aStr, count, and m_rMutex.

Referenced by DOM::CCDATASection::subStringData(), DOM::CComment::subStringData(), and DOM::CText::subStringData().


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