19#ifndef TDEHTMLREADER_H
20#define TDEHTMLREADER_H
22#include <tdehtml_part.h>
24#include <tqptrstack.h>
36struct HTMLReader_state {
38 TQDomElement frameset;
39 TQDomElement paragraph;
44class TDEHTMLReader: public TQObject {
50 TDEHTMLReader(KWDWriter *writer);
53 bool filter(KURL url);
59 void parseNode(DOM::Node n);
60 bool parseTag(DOM::Element e);
61 void parseStyle(DOM::Element e);
62 void parse_head(DOM::Element e);
63 HTMLReader_state *state();
64 HTMLReader_state *pushNewState();
73 TQPtrStack<HTMLReader_state> _state;
77 void startNewLayout( bool startNewFormat= false);
78 void startNewLayout( bool startNewFormat, TQDomElement layout);
79 void startNewParagraph( bool startnewformat= true, bool startnewlayout= true);
84 bool parse_CommonAttributes(DOM::Element e);
85 bool parse_a(DOM::Element e);
86 bool parse_p(DOM::Element e);
87 bool parse_br(DOM::Element e);
88 bool parse_table(DOM::Element e);
89 bool parse_pre(DOM::Element e);
90 bool parse_font(DOM::Element e);
91 bool parse_ol(DOM::Element e);
92 bool parse_ul(DOM::Element e);
93 bool parse_hr(DOM::Element e);
94 bool parse_img(DOM::Element e);
|