Annotation of parser3/src/types/pa_vxdoc.C, revision 1.16
1.1 parser 1: /** @dom
2: Parser: @b dom parser type.
3:
1.12 paf 4: Copyright(c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
1.11 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 parser 6: */
7: #include "pa_config_includes.h"
8: #ifdef XML
1.14 paf 9:
1.16 ! paf 10: static const char* IDENT_VXDOC="$Date: 2002/08/01 11:41:25 $";
1.1 parser 11:
12: #include "pa_vxdoc.h"
13:
1.7 paf 14: void VXdoc_destructor(void *vxdoc) {
1.1 parser 15: //_asm int 3;
1.7 paf 16: static_cast<VXdoc *>(vxdoc)->~VXdoc();
1.1 parser 17: }
1.2 parser 18:
19: /// VXdoc: $CLASS,$method
1.16 ! paf 20: Value *VXdoc::get_element(const String& aname, Value *aself) {
1.13 paf 21: // up
1.16 ! paf 22: if(Value *result=VXnode::get_element(aname, aself))
1.8 paf 23: return result;
24:
25: // fields
1.16 ! paf 26: GdomeDocument *document=get_document(&aname);
1.8 paf 27: GdomeException exc;
28:
1.16 ! paf 29: if(aname=="doctype") {
1.8 paf 30: // readonly attribute DocumentType doctype;
1.9 paf 31: return NEW VXnode(pool(), (GdomeNode *)gdome_doc_doctype(document, &exc));
1.16 ! paf 32: } else if(aname=="implementation") {
1.8 paf 33: // readonly attribute DOMImplementation implementation;
34: return 0;
1.16 ! paf 35: } else if(aname=="documentElement") {
1.8 paf 36: // readonly attribute Element documentElement;
1.9 paf 37: return NEW VXnode(pool(), (GdomeNode *)gdome_doc_documentElement(document, &exc));
1.8 paf 38: }
1.2 parser 39:
40: return 0;
41: }
42:
1.1 parser 43: #endif
E-mail: