summaryrefslogtreecommitdiff
path: root/src/html.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/html.hpp')
-rw-r--r--src/html.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/html.hpp b/src/html.hpp
index dc291f6..fcf64e6 100644
--- a/src/html.hpp
+++ b/src/html.hpp
@@ -35,6 +35,29 @@ public:
TexoImporterHTML(TexoProducer &producer);
void Put(char c);
+ void Put(const ScriptVariable &str);
+ void Put(FILE *file);
+
+private:
+ enum State {
+ text, // TODO: decoding (">" -> ">")
+ open,
+ tag_name,
+ tag_skip,
+ attr_pre,
+ attr_name,
+ attr_name_post,
+ attr_value_pre,
+ attr_value
+ } state;
+ bool closing;
+ ScriptVariable tag;
+ ScriptVariable attr;
+ ScriptVariable attr_src;
+ ScriptVariable attr_href;
+ ScriptVariable attr_title;
+ ScriptVariable attr_alt;
+ ScriptVariable link_text;
};