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
|
|
|
///
|
|
|
|
bool MenuWrite(BufferView * bv, Buffer * buffer);
|
2001-03-07 14:25:31 +00:00
|
|
|
/// write the given file, or ask if no name given
|
2001-03-12 01:43:12 +00:00
|
|
|
bool WriteAs(BufferView * bv, Buffer * buffer,
|
|
|
|
string const & filename = string());
|
2000-11-14 02:01:57 +00:00
|
|
|
///
|
|
|
|
int MenuRunChktex(Buffer * buffer);
|
|
|
|
///
|
|
|
|
void QuitLyX();
|
|
|
|
///
|
|
|
|
void AutoSave(BufferView * bv);
|
|
|
|
///
|
|
|
|
Buffer * NewLyxFile(string const & filename);
|
|
|
|
///
|
|
|
|
void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
|
|
|
|
///
|
|
|
|
void MenuInsertLabel(BufferView * bv, string const & arg);
|
|
|
|
///
|
|
|
|
void Reconfigure(BufferView * bv);
|
1999-09-27 18:44:28 +00:00
|
|
|
#endif
|
|
|
|
|