2000-10-23 12:16:05 +00:00
|
|
|
// -*- C++ -*-
|
2002-05-30 03:37:24 +00:00
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
* \file Importer.h
|
2003-08-23 00:17:00 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2002-05-30 03:37:24 +00:00
|
|
|
* \author unknown
|
2003-08-23 00:17:00 +00:00
|
|
|
* \author Jean-Marc Lasgouttes
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-05-30 03:37:24 +00:00
|
|
|
*/
|
2000-10-23 12:16:05 +00:00
|
|
|
|
|
|
|
#ifndef IMPORTER_H
|
|
|
|
#define IMPORTER_H
|
|
|
|
|
2003-10-07 06:45:25 +00:00
|
|
|
#include <string>
|
2000-11-13 10:35:02 +00:00
|
|
|
#include <vector>
|
2003-10-06 15:43:21 +00:00
|
|
|
|
2000-10-23 12:16:05 +00:00
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
namespace lyx {
|
|
|
|
|
2006-12-02 16:07:15 +00:00
|
|
|
namespace support { class FileName; }
|
|
|
|
|
2006-08-13 16:16:43 +00:00
|
|
|
class ErrorList;
|
2000-11-13 10:35:02 +00:00
|
|
|
class Format;
|
2000-10-23 12:16:05 +00:00
|
|
|
|
2007-08-14 09:54:59 +00:00
|
|
|
namespace frontend {
|
|
|
|
class LyXView;
|
|
|
|
}
|
|
|
|
|
2000-10-23 12:16:05 +00:00
|
|
|
class Importer {
|
|
|
|
public:
|
|
|
|
///
|
2007-08-14 09:54:59 +00:00
|
|
|
static bool Import(frontend::LyXView * lv, support::FileName const & filename,
|
2006-08-13 16:16:43 +00:00
|
|
|
std::string const & format, ErrorList & errorList);
|
2002-05-30 03:37:24 +00:00
|
|
|
|
2000-11-13 10:35:02 +00:00
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
static std::vector<Format const *> const GetImportableFormats();
|
2000-11-13 10:35:02 +00:00
|
|
|
private:
|
|
|
|
///
|
2006-10-21 00:16:43 +00:00
|
|
|
static std::vector<std::string> const Loaders();
|
2000-10-23 12:16:05 +00:00
|
|
|
};
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
2000-10-23 12:16:05 +00:00
|
|
|
#endif
|