summaryrefslogtreecommitdiffstats
path: root/unoxml/source/dom/text.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-01-19 20:27:26 +0100
committerMichael Stahl <mst@openoffice.org>2011-01-19 20:27:26 +0100
commit12de6d548b19e4d016e7a7be0980c2d78fe20d17 (patch)
tree7bcb92fea0b218f7589d7008dbc9aebe3518a4a6 /unoxml/source/dom/text.cxx
parentxmlfix3: #i113682#: unoxml: no more globals in CNode: (diff)
downloadcore-12de6d548b19e4d016e7a7be0980c2d78fe20d17.tar.gz
core-12de6d548b19e4d016e7a7be0980c2d78fe20d17.zip
xmlfix3: #i113682#: unoxml: CDocument gets a member mutex:
use it to lock all CNode and derived classes' UNO methods.
Diffstat (limited to 'unoxml/source/dom/text.cxx')
-rw-r--r--unoxml/source/dom/text.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/unoxml/source/dom/text.cxx b/unoxml/source/dom/text.cxx
index a5fff96d30dc..f69219550fe5 100644
--- a/unoxml/source/dom/text.cxx
+++ b/unoxml/source/dom/text.cxx
@@ -30,35 +30,25 @@
namespace DOM
{
- CText::CText(CDocument const& rDocument,
+ CText::CText(CDocument const& rDocument, ::osl::Mutex const& rMutex,
NodeType const& reNodeType, xmlNodePtr const& rpNode)
- : CText_Base(rDocument, reNodeType, rpNode)
+ : CText_Base(rDocument, rMutex, reNodeType, rpNode)
{
}
- CText::CText(CDocument const& rDocument, xmlNodePtr const pNode)
- : CText_Base(rDocument, NodeType_TEXT_NODE, pNode)
+ CText::CText(CDocument const& rDocument, ::osl::Mutex const& rMutex,
+ xmlNodePtr const pNode)
+ : CText_Base(rDocument, rMutex, NodeType_TEXT_NODE, pNode)
{
}
- void SAL_CALL CText::saxify(
+ void CText::saxify(
const Reference< XDocumentHandler >& i_xHandler) {
if (!i_xHandler.is()) throw RuntimeException();
i_xHandler->characters(getData());
}
- Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)
- throw (RuntimeException)
- {
- return Reference< XText >(this);
- }
-
- OUString SAL_CALL CText::getNodeName()throw (RuntimeException)
- {
- return OUString::createFromAscii("#text");
- }
-
- void SAL_CALL CText::fastSaxify( Context& io_rContext )
+ void CText::fastSaxify( Context& io_rContext )
{
if (io_rContext.mxCurrentHandler.is())
{
@@ -71,4 +61,14 @@ namespace DOM
}
}
+ OUString SAL_CALL CText::getNodeName() throw (RuntimeException)
+ {
+ return OUString::createFromAscii("#text");
+ }
+
+ Reference< XText > SAL_CALL CText::splitText(sal_Int32 /*offset*/)
+ throw (RuntimeException)
+ {
+ return Reference< XText >(this);
+ }
}