|
|
| version 1.181, 2015/04/06 22:27:25 | version 1.185, 2016/04/06 16:08:19 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b xdoc parser class. | Parser: @b xdoc parser class. |
| Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| */ | */ |
| Line 47 public: | Line 47 public: |
| // global variable | // global variable |
| DECLARE_CLASS_VAR(xdoc, new MXdoc, 0); | DECLARE_CLASS_VAR(xdoc, new MXdoc); |
| // helper classes | // helper classes |
| Line 564 static void _file(Request& r, MethodPara | Line 564 static void _file(Request& r, MethodPara |
| VFile& vfile=*new VFile; | VFile& vfile=*new VFile; |
| VHash& vhcontent_type=*new VHash; | VHash& vhcontent_type=*new VHash; |
| vhcontent_type.hash().put( | vhcontent_type.hash().put(value_name, new VString(*oo.mediaType)); |
| value_name, | vhcontent_type.hash().put("charset", new VString(*oo.encoding)); |
| new VString(*oo.mediaType)); | |
| vhcontent_type.hash().put( | |
| String::Body("charset"), | |
| new VString(*oo.encoding)); | |
| vfile.set_binary(false/*not tainted*/, buf.str?buf.str:""/*to distinguish from stat-ed file*/, buf.length, oo.filename, &vhcontent_type); | vfile.set_binary(false/*not tainted*/, buf.str?buf.str:""/*to distinguish from stat-ed file*/, buf.length, oo.filename, &vhcontent_type); |
| Line 726 static void _transform(Request& r, Metho | Line 722 static void _transform(Request& r, Metho |
| // constructor | // constructor |
| /// @test how to create empty type html? | /// @test how to create empty type html? |
| MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME, xnode_class) { | MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME) { |
| set_base(xnode_class); | |
| /// DOM1 | /// DOM1 |
| // Element createElement(in DOMString tagName) raises(DOMException); | // Element createElement(in DOMString tagName) raises(DOMException); |
| Line 796 MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME, | Line 794 MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME, |
| // global variable | // global variable |
| DECLARE_CLASS_VAR(xdoc, 0, 0); // fictive | DECLARE_CLASS_VAR(xdoc, 0); // fictive |
| #endif | #endif |