1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995-1999 The LyX Team.
|
|
|
|
*
|
|
|
|
* This file is Copyright (C) 1999
|
|
|
|
* Kayvan A. Sylvan
|
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
*/
|
1999-10-02 16:21:10 +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
|
|
|
///
|
|
|
|
enum{
|
|
|
|
BUFSIZE = 512
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|