summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/element.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2011-02-10 16:45:02 +0100
committerMichael Stahl <mst@openoffice.org>2011-02-10 16:45:02 +0100
commitc5db3b93ee1058bd20ebcde2e757b52b9a67b74a (patch)
treed4c739c0e097f8bdd005e28dd1cecffaee593e33 /unoxml/source/dom/element.hxx
parentd76639d5d833a05a3181f7293e38a250dc6c1299 (diff)
xmlfix3: unoxml: prevent invalid child-parent relationships:
new method CNode::IsChildTypeAllowed(NodeType). use it in appendChild(), insertBefore(), replaceChild().
Diffstat (limited to 'unoxml/source/dom/element.hxx')
-rw-r--r--unoxml/source/dom/element.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/unoxml/source/dom/element.hxx b/unoxml/source/dom/element.hxx
index 119f30eca6ef..58891ed0d21c 100644
--- a/unoxml/source/dom/element.hxx
+++ b/unoxml/source/dom/element.hxx
@@ -66,6 +66,8 @@ namespace DOM
virtual void fastSaxify( Context& i_rContext );
+ virtual bool IsChildTypeAllowed(NodeType const nodeType);
+
/**
Retrieves an attribute value by name.
*/