1999-09-27 18:44:28 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
2007-04-28 20:44:46 +00:00
|
|
|
|
* \file callback.h
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2007-04-28 20:44:46 +00:00
|
|
|
|
#ifndef CALLBACK_H
|
|
|
|
|
#define CALLBACK_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2007-04-03 08:15:39 +00:00
|
|
|
|
#include "support/docstring.h"
|
2000-08-30 04:38:32 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2001-03-12 01:43:12 +00:00
|
|
|
|
class Buffer;
|
2000-11-14 02:01:57 +00:00
|
|
|
|
class BufferView;
|
2007-08-14 09:54:59 +00:00
|
|
|
|
|
|
|
|
|
namespace frontend {
|
2006-11-01 13:14:21 +00:00
|
|
|
|
class LyXView;
|
2007-08-14 09:54:59 +00:00
|
|
|
|
}
|
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
|
|
|
|
///
|
2006-04-09 00:26:19 +00:00
|
|
|
|
bool menuWrite(Buffer * buffer);
|
2001-03-07 14:25:31 +00:00
|
|
|
|
/// write the given file, or ask if no name given
|
2006-04-09 00:26:19 +00:00
|
|
|
|
bool writeAs(Buffer * buffer, std::string const & filename = std::string());
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2006-04-09 00:26:19 +00:00
|
|
|
|
void autoSave(BufferView * bv);
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2007-08-14 15:32:58 +00:00
|
|
|
|
void newFile(frontend::LyXView & lv, std::string const & filename);
|
2000-11-14 02:01:57 +00:00
|
|
|
|
///
|
2007-01-15 22:49:14 +00:00
|
|
|
|
void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
|
2007-04-03 08:15:39 +00:00
|
|
|
|
/// read plain text file (if \p f is empty, prompt for a filename)
|
|
|
|
|
docstring const getContentsOfPlaintextFile(BufferView * bv,
|
|
|
|
|
std::string const & f, bool asParagraph);
|
2002-03-04 15:42:54 +00:00
|
|
|
|
///
|
2007-08-14 09:54:59 +00:00
|
|
|
|
void reconfigure(frontend::LyXView & lv);
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#endif
|