00001 /* 00002 ** ClanLib SDK 00003 ** Copyright (c) 1997-2005 The ClanLib Team 00004 ** 00005 ** This software is provided 'as-is', without any express or implied 00006 ** warranty. In no event will the authors be held liable for any damages 00007 ** arising from the use of this software. 00008 ** 00009 ** Permission is granted to anyone to use this software for any purpose, 00010 ** including commercial applications, and to alter it and redistribute it 00011 ** freely, subject to the following restrictions: 00012 ** 00013 ** 1. The origin of this software must not be misrepresented; you must not 00014 ** claim that you wrote the original software. If you use this software 00015 ** in a product, an acknowledgment in the product documentation would be 00016 ** appreciated but is not required. 00017 ** 2. Altered source versions must be plainly marked as such, and must not be 00018 ** misrepresented as being the original software. 00019 ** 3. This notice may not be removed or altered from any source distribution. 00020 ** 00021 ** Note: Some of the libraries ClanLib link to may have additional 00022 ** requirements or restrictions. 00023 ** 00024 ** File Author(s): 00025 ** 00026 ** Magnus Norddahl 00027 */ 00028 00031 00032 #ifndef header_dom_document_type 00033 #define header_dom_document_type 00034 00035 #if _MSC_VER > 1000 00036 #pragma once 00037 #endif 00038 00039 #include "dom_node.h" 00040 00041 class CL_DomNamedNodeMap; 00042 00043 //: DOM Document Type class. 00044 //- !group=Core/XML! 00045 //- !header=core.h! 00046 //- <p>Each Document has a doctype attribute whose value is either null 00047 //- or a DocumentType object. The DocumentType interface in the DOM Level 1 00048 //- Core provides an interface to the list of entities that are defined for 00049 //- the document, and little else because the effect of namespaces and the 00050 //- various XML scheme efforts on DTD representation are not clearly understood 00051 //- as of this writing.</p> 00052 //- <p>The DOM Level 1 doesn't support editing DocumentType nodes.</p> 00053 class CL_DomDocumentType : public CL_DomNode 00054 { 00056 public: 00057 //: Constructs a DOM Document Type handle. 00058 CL_DomDocumentType(); 00059 00060 CL_DomDocumentType(CL_DomDocument &doc); 00061 00062 CL_DomDocumentType(const CL_SharedPtr<CL_DomNode_Generic> &impl); 00063 00064 ~CL_DomDocumentType(); 00065 00067 public: 00068 //: The name of DTD; i.e., the name immediately following the DOCTYPE keyword. 00069 std::string get_name() const; 00070 00071 //: A NamedNodeMap containing the general entities, both external and internal, declared in the DTD. 00072 CL_DomNamedNodeMap get_entities() const; 00073 00074 //: A NamedNodeMap containing the notations declared in the DTD. 00075 CL_DomNamedNodeMap get_notations() const; 00076 00078 public: 00079 }; 00080 00081 #endif
1.4.1