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-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
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-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);
|
|
|
|
|
///
|
2003-07-07 08:37:02 +00:00
|
|
|
|
void NewFile(BufferView * bv, 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
|