|
|
| version 1.203, 2024/09/13 04:01:22 | version 1.207, 2026/04/25 13:38:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b xdoc parser class. | Parser: @b xdoc parser class. |
| Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| Line 523 static void _file(Request& r, MethodPara | Line 523 static void _file(Request& r, MethodPara |
| static void _save(Request& r, MethodParams& params) { | static void _save(Request& r, MethodParams& params) { |
| VXdoc& vdoc=GET_SELF(r, VXdoc); | VXdoc& vdoc=GET_SELF(r, VXdoc); |
| const String& file_spec=r.full_disk_path(params.as_string(0, FILE_NAME_MUST_BE_STRING)); | const String& file_spec=r.full_disk_path(params.as_file_name(0)); |
| XDocOutputOptions oo(vdoc.output_options); | XDocOutputOptions oo(vdoc.output_options); |
| oo.append(r, get_options(params, 1)); | oo.append(r, get_options(params, 1)); |
| Line 726 MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME) | Line 726 MXdoc::MXdoc(): MXnode(XDOC_CLASS_NAME) |
| } | } |
| # else | |
| #include "classes.h" | |
| // global variable | |
| DECLARE_CLASS_VAR(xnode, 0); // fictive | |
| DECLARE_CLASS_VAR(xdoc, 0); // fictive | |
| #endif | #endif |