author | pohly <pohly> | 2005-05-05 14:39:33 (UTC) |
---|---|---|
committer | pohly <pohly> | 2005-05-05 14:39:33 (UTC) |
commit | 39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91 (patch) (side-by-side diff) | |
tree | 96e66fdc18dca4d4ab8611133e072f57dea224b9 /noncore/apps/opie-reader/striphtml.h | |
parent | 279fc4fd1986074acbadd3a8e86fcf3968a8dd5c (diff) | |
download | opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.zip opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.gz opie-39fbfd5eb7e45d73d38e8a2ce9437a3d7e1b8e91.tar.bz2 |
new opie-reader sources with support for ArriereGo, Reb input and flite output plugins
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,37 +1,39 @@ #ifndef __STRIPHTML_H #define __STRIPHTML_H #include "CFilter.h" #include "Navigation.h" #include "CBuffer.h" #include "CExpander.h" #include "my_list.h" class striphtml : public CFilter { + void reset(); bool ignorespace; bool m_bchm; + int tablenesteddepth; CList<CStyle> stylestack; static CNavigation_base<htmlmark> m_nav; QMap<QString, tchar>* entmap; CStyle currentstyle; bool isPre; unsigned short skip_ws(); unsigned short skip_ws_end(); unsigned short skip_ws_end(unsigned long&); unsigned short parse_m(); QMap<QString, unsigned long>* href2filepos; QMap<unsigned long, QString>* id2href; unsigned long currentid; tchar lastch; QString currentfile; QString q; bool forcecentre, m_inblock; QString text_q; int indent; int m_listtype[m_cmaxdepth]; int m_ctr[m_cmaxdepth]; void mygetch(tchar& ch, CStyle& sty, unsigned long& pos); void initentmap(); QString getname(tchar& ch, const QString& nd); void skipblock(const QString&); @@ -68,26 +70,27 @@ class striphtml : public CFilter loc = m.posn(); return ret; } linkType back(QString& f, size_t& loc) { htmlmark m(f, loc); linkType ret = (m_nav.back(m)) ? eFile : eNone; if (f == m.filename()) { if (ret == eFile) { ret = eLink; } } else { f = m.filename(); } loc = m.posn(); return ret; } bool hasnavigation() { return true; } virtual void locate(unsigned int n); void setchm(bool _b) { m_bchm = _b; } + QString getTableAsHtml(unsigned long loc); }; #endif |