1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-02-04 09:38:32 +00:00
|
|
|
* Copyright 1995-2000 The LyX Team.
|
1999-09-27 18:44:28 +00:00
|
|
|
*
|
2000-02-04 09:38:32 +00:00
|
|
|
* This file is Copyright 1999
|
1999-09-27 18:44:28 +00:00
|
|
|
* Kayvan A. Sylvan
|
|
|
|
*
|
1999-11-15 12:01:38 +00:00
|
|
|
* ======================================================
|
1999-09-27 18:44:28 +00:00
|
|
|
*/
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef IMPORTNOWEB_H
|
|
|
|
#define IMPORTNOWEB_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class Buffer;
|
|
|
|
|
|
|
|
///
|
|
|
|
class ImportNoweb {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
file = name and path of the noweb file to import
|
|
|
|
*/
|
2000-02-04 09:38:32 +00:00
|
|
|
ImportNoweb(string const & file) : file(file) {}
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
/** Imports the document.
|
|
|
|
Return 0 if fail.
|
|
|
|
*/
|
|
|
|
Buffer * run();
|
|
|
|
private:
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string file;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string documentclass();
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
2000-02-04 09:38:32 +00:00
|
|
|
enum {
|
1999-09-27 18:44:28 +00:00
|
|
|
BUFSIZE = 512
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|