Diffstat (limited to 'noncore/apps/opie-reader/striphtml.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/striphtml.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/striphtml.h b/noncore/apps/opie-reader/striphtml.h index 42e2b7e..b1f7c0a 100644 --- a/noncore/apps/opie-reader/striphtml.h +++ b/noncore/apps/opie-reader/striphtml.h | |||
@@ -1,25 +1,27 @@ | |||
1 | #ifndef __STRIPHTML_H | 1 | #ifndef __STRIPHTML_H |
2 | #define __STRIPHTML_H | 2 | #define __STRIPHTML_H |
3 | 3 | ||
4 | #include "CFilter.h" | 4 | #include "CFilter.h" |
5 | #include "Navigation.h" | 5 | #include "Navigation.h" |
6 | #include "CBuffer.h" | 6 | #include "CBuffer.h" |
7 | #include "CExpander.h" | 7 | #include "CExpander.h" |
8 | #include "my_list.h" | 8 | #include "my_list.h" |
9 | 9 | ||
10 | class striphtml : public CFilter | 10 | class striphtml : public CFilter |
11 | { | 11 | { |
12 | void reset(); | ||
12 | bool ignorespace; | 13 | bool ignorespace; |
13 | bool m_bchm; | 14 | bool m_bchm; |
15 | int tablenesteddepth; | ||
14 | CList<CStyle> stylestack; | 16 | CList<CStyle> stylestack; |
15 | static CNavigation_base<htmlmark> m_nav; | 17 | static CNavigation_base<htmlmark> m_nav; |
16 | QMap<QString, tchar>* entmap; | 18 | QMap<QString, tchar>* entmap; |
17 | CStyle currentstyle; | 19 | CStyle currentstyle; |
18 | bool isPre; | 20 | bool isPre; |
19 | unsigned short skip_ws(); | 21 | unsigned short skip_ws(); |
20 | unsigned short skip_ws_end(); | 22 | unsigned short skip_ws_end(); |
21 | unsigned short skip_ws_end(unsigned long&); | 23 | unsigned short skip_ws_end(unsigned long&); |
22 | unsigned short parse_m(); | 24 | unsigned short parse_m(); |
23 | QMap<QString, unsigned long>* href2filepos; | 25 | QMap<QString, unsigned long>* href2filepos; |
24 | QMap<unsigned long, QString>* id2href; | 26 | QMap<unsigned long, QString>* id2href; |
25 | unsigned long currentid; | 27 | unsigned long currentid; |
@@ -80,14 +82,15 @@ class striphtml : public CFilter | |||
80 | } | 82 | } |
81 | } | 83 | } |
82 | else | 84 | else |
83 | { | 85 | { |
84 | f = m.filename(); | 86 | f = m.filename(); |
85 | } | 87 | } |
86 | loc = m.posn(); | 88 | loc = m.posn(); |
87 | return ret; | 89 | return ret; |
88 | } | 90 | } |
89 | bool hasnavigation() { return true; } | 91 | bool hasnavigation() { return true; } |
90 | virtual void locate(unsigned int n); | 92 | virtual void locate(unsigned int n); |
91 | void setchm(bool _b) { m_bchm = _b; } | 93 | void setchm(bool _b) { m_bchm = _b; } |
94 | QString getTableAsHtml(unsigned long loc); | ||
92 | }; | 95 | }; |
93 | #endif | 96 | #endif |