summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/documentfragment.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/documentfragment.cxx')
-rw-r--r--unoxml/source/dom/documentfragment.cxx26
1 files changed, 22 insertions, 4 deletions
diff --git a/unoxml/source/dom/documentfragment.cxx b/unoxml/source/dom/documentfragment.cxx
index a3f5ac40b5aa..683938e7f1e4 100644
--- a/unoxml/source/dom/documentfragment.cxx
+++ b/unoxml/source/dom/documentfragment.cxx
@@ -25,15 +25,33 @@
*
************************************************************************/
-#include "documentfragment.hxx"
+#include <documentfragment.hxx>
namespace DOM
{
- CDocumentFragment::CDocumentFragment(const xmlNodePtr aNodePtr)
+ CDocumentFragment::CDocumentFragment(
+ CDocument const& rDocument, ::osl::Mutex const& rMutex,
+ xmlNodePtr const pNode)
+ : CDocumentFragment_Base(rDocument, rMutex,
+ NodeType_DOCUMENT_FRAGMENT_NODE, pNode)
{
- m_aNodeType = NodeType_DOCUMENT_FRAGMENT_NODE;
- init_node(aNodePtr);
}
+
+ bool CDocumentFragment::IsChildTypeAllowed(NodeType const nodeType)
+ {
+ switch (nodeType) {
+ case NodeType_ELEMENT_NODE:
+ case NodeType_PROCESSING_INSTRUCTION_NODE:
+ case NodeType_COMMENT_NODE:
+ case NodeType_TEXT_NODE:
+ case NodeType_CDATA_SECTION_NODE:
+ case NodeType_ENTITY_REFERENCE_NODE:
+ return true;
+ default:
+ return false;
+ }
+ }
+
OUString SAL_CALL CDocumentFragment::getNodeName()throw (RuntimeException)
{
return OUString::createFromAscii("#document-fragment");