X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_cb.h;h=264204fa466a288ad154edec79303bf597ba5edc;hb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;hp=4518af219a129cce5ca02f75c6f821e19b07d21a;hpb=fe4e2a84c664ab13a2cfbfcbdb953d72c77eb268;p=lyx.git diff --git a/src/lyx_cb.h b/src/lyx_cb.h index 4518af219a..264204fa46 100644 --- a/src/lyx_cb.h +++ b/src/lyx_cb.h @@ -2,62 +2,41 @@ #ifndef LYX_CB_H #define LYX_CB_H -#include FORMS_H_LOCATION - #include "LString.h" -class Inset; +class Buffer; class BufferView; /// extern bool quitting; -// When still false after reading lyxrc, warn user -//about failing \bind_file command. RVDK_PATCH_5 -extern bool BindFileSet; - -/// -extern void Foot(BufferView *); -/// -extern void Emph(BufferView *); -/// -extern void Bold(BufferView *); -/// -extern void Noun(BufferView *); -/// -extern void Margin(BufferView *); /// -extern void Figure(); +void ShowMessage(Buffer const * buf, + string const & msg1, + string const & msg2 = string(), + string const & msg3 = string(), int delay = 6); /// -extern void Lang(BufferView *, string const &); +bool MenuWrite(BufferView * bv, Buffer * buffer); +/// write the given file, or ask if no name given +bool WriteAs(BufferView * bv, Buffer * buffer, + string const & filename = string()); /// -extern void Table(); +int MenuRunChktex(Buffer * buffer); /// -extern void Melt(BufferView *); +void QuitLyX(); /// -extern void Tex(BufferView *); +void AutoSave(BufferView * bv); /// -extern void changeDepth(BufferView *, int); +Buffer * NewLyxFile(string const & filename); /// -extern void Free(BufferView *); +void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph); /// -extern void ProhibitInput(BufferView *); +void MenuInsertLabel(BufferView * bv, string const & arg); /// -extern void AllowInput(BufferView *); +void MenuLayoutSave(BufferView * bv); /// -extern void Code(BufferView *); +void Figure(); /// -extern void Sans(BufferView *); -/// -extern void Roman(BufferView *); -/// -extern void StyleReset(BufferView *); -/// -extern void Underline(BufferView *); -/// -extern void FontSize(BufferView *, string const &); -/// -extern string CurrentState(BufferView *); - +void Reconfigure(BufferView * bv); #endif