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