1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file lyx_cb.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
|
#ifndef LYX_CB_H
|
|
|
|
|
#define LYX_CB_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-10-06 15:43:21 +00:00
|
|
|
|
#include <string>
|
2000-08-30 04:38:32 +00:00
|
|
|
|
|
2001-03-12 01:43:12 +00:00
|
|
|
|
class Buffer;
|
2000-11-14 02:01:57 +00:00
|
|
|
|
class BufferView;
|
2000-06-22 09:30:43 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
///
|
|
|
|
|
extern bool quitting;
|
|
|
|
|
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2003-06-10 14:39:45 +00:00
|
|
|
|
bool MenuWrite(Buffer * buffer);
|
2001-03-07 14:25:31 +00:00
|
|
|
|
/// write the given file, or ask if no name given
|
2003-10-06 15:43:21 +00:00
|
|
|
|
bool WriteAs(Buffer * buffer, std::string const & filename = std::string());
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
|
|
|
|
void QuitLyX();
|
|
|
|
|
///
|
|
|
|
|
void AutoSave(BufferView * bv);
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
void NewFile(BufferView * bv, std::string const & filename);
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
void InsertAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string getContentsOfAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
|
2002-03-04 15:42:54 +00:00
|
|
|
|
///
|
2000-11-14 02:01:57 +00:00
|
|
|
|
void Reconfigure(BufferView * bv);
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#endif
|