Switch to unified view

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.2 2005-03-17 15:35:49 dockes Exp $  (C) 2004 J.F.Dockes */
3
/* @(#$Id: mh_html.h,v 1.3 2005-03-25 09:40:27 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
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
7
// interfaces, depending if we're working on a file, or on a
8
// string. The string form is with external handlers for foreign
8
// string. The string form is with external handlers for foreign
9
// formats: they return a result in html, which has the advantage to
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
10
// be text (easy to use in shell-scripts), and semi-structured (can
11
// carry titles, abstracts, whatever)
11
// carry titles, abstracts, whatever)
12
class MimeHandlerHtml : public MimeHandler {
12
class MimeHandlerHtml : public MimeHandler {
13
 public:
13
 public:
14
    virtual bool worker(RclConfig *conf, const string &fn, 
14
    virtual MimeHandler::Status worker(RclConfig *conf, const string &fn, 
15
            const string &mtype, Rcl::Doc &docout);
15
            const string &mtype, Rcl::Doc &docout, string&);
16
    virtual bool worker1(RclConfig *conf, const string &fn, 
16
    virtual MimeHandler::Status worker1(RclConfig *conf, const string &fn, 
17
             const string& htext,
17
             const string& htext,
18
             const string &mtype, Rcl::Doc &docout);
18
             const string &mtype, Rcl::Doc &docout);
19
};
19
};
20
#endif /* _HTML_H_INCLUDED_ */
20
#endif /* _HTML_H_INCLUDED_ */