1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef LYX_CB_H
|
|
|
|
#define LYX_CB_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-08-30 04:38:32 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
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-08-07 20:58:24 +00:00
|
|
|
///
|
2000-10-10 11:50:43 +00:00
|
|
|
void ShowMessage(Buffer const * buf,
|
2000-08-30 04:38:32 +00:00
|
|
|
string const & msg1,
|
|
|
|
string const & msg2 = string(),
|
2001-04-17 15:15:59 +00:00
|
|
|
string const & msg3 = string());
|
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-06-10 14:39:45 +00:00
|
|
|
bool WriteAs(Buffer * buffer, string const & filename = string());
|
2000-11-14 02:01:57 +00:00
|
|
|
///
|
|
|
|
void QuitLyX();
|
|
|
|
///
|
|
|
|
void AutoSave(BufferView * bv);
|
|
|
|
///
|
2002-08-04 23:11:50 +00:00
|
|
|
Buffer * NewFile(string const & filename);
|
2000-11-14 02:01:57 +00:00
|
|
|
///
|
|
|
|
void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
|
|
|
|
///
|
2002-03-04 15:42:54 +00:00
|
|
|
string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagraph);
|
|
|
|
///
|
2003-02-27 16:24:14 +00:00
|
|
|
string const getPossibleLabel(BufferView const & bv);
|
2000-11-14 02:01:57 +00:00
|
|
|
///
|
|
|
|
void Reconfigure(BufferView * bv);
|
1999-09-27 18:44:28 +00:00
|
|
|
#endif
|