Switch to unified view

a/src/internfile/internfile.cpp b/src/internfile/internfile.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.16 2006-03-20 16:05:41 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: internfile.cpp,v 1.17 2006-11-10 13:29:39 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
/*
4
/*
5
 *   This program is free software; you can redistribute it and/or modify
5
 *   This program is free software; you can redistribute it and/or modify
6
 *   it under the terms of the GNU General Public License as published by
6
 *   it under the terms of the GNU General Public License as published by
7
 *   the Free Software Foundation; either version 2 of the License, or
7
 *   the Free Software Foundation; either version 2 of the License, or
...
...
170
        m_fn.c_str()));
170
        m_fn.c_str()));
171
}
171
}
172
172
173
FileInterner::Status FileInterner::internfile(Rcl::Doc& doc, string& ipath)
173
FileInterner::Status FileInterner::internfile(Rcl::Doc& doc, string& ipath)
174
{
174
{
175
    if (!m_handler)
175
    if (!m_handler) {
176
  LOGERR(("FileInterner::internfile: no handler !!\n"));
176
    return FIError;
177
    return FIError;
178
    }
177
179
178
    // Turn file into a document. The document has fields for title, body 
180
    // Turn file into a document. The document has fields for title, body 
179
    // etc.,  all text converted to utf8
181
    // etc.,  all text converted to utf8
180
    MimeHandler::Status mhs = 
182
    MimeHandler::Status mhs = 
181
    m_handler->mkDoc(m_cfg, m_fn, m_mime, doc, ipath);
183
    m_handler->mkDoc(m_cfg, m_fn, m_mime, doc, ipath);