|
a/src/internfile/mh_html.h |
|
b/src/internfile/mh_html.h |
1 |
#ifndef _HTML_H_INCLUDED_
|
1 |
#ifndef _HTML_H_INCLUDED_
|
2 |
#define _HTML_H_INCLUDED_
|
2 |
#define _HTML_H_INCLUDED_
|
3 |
/* @(#$Id: mh_html.h,v 1.1 2005-02-01 17:20:05 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: mh_html.h,v 1.2 2005-03-17 15:35:49 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
#include "mimehandler.h"
|
4 |
#include "mimehandler.h"
|
5 |
|
5 |
|
|
|
6 |
// Code to turn an html document into an internal one. There are 2
|
|
|
7 |
// interfaces, depending if we're working on a file, or on a
|
|
|
8 |
// string. The string form is with external handlers for foreign
|
|
|
9 |
// formats: they return a result in html, which has the advantage to
|
|
|
10 |
// be text (easy to use in shell-scripts), and semi-structured (can
|
|
|
11 |
// carry titles, abstracts, whatever)
|
6 |
class MimeHandlerHtml : public MimeHandler {
|
12 |
class MimeHandlerHtml : public MimeHandler {
|
7 |
public:
|
13 |
public:
|
8 |
virtual bool worker(RclConfig *conf, const string &fn,
|
14 |
virtual bool worker(RclConfig *conf, const string &fn,
|
9 |
const string &mtype, Rcl::Doc &docout);
|
15 |
const string &mtype, Rcl::Doc &docout);
|
10 |
virtual bool worker1(RclConfig *conf, const string &fn,
|
16 |
virtual bool worker1(RclConfig *conf, const string &fn,
|