]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.h
more code in the menu backend == less code in the menu frontends; add support for...
[lyx.git] / src / lyx_cb.h
index 4518af219a129cce5ca02f75c6f821e19b07d21a..5db5524967b7d090a47577aee8ef1d8bc077045e 100644 (file)
@@ -2,62 +2,38 @@
 #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();
 ///
-extern void Lang(BufferView *, string const &);
+void ShowMessage(Buffer const * buf,
+                string const & msg1,
+                string const & msg2 = string(),
+                string const & msg3 = string());
 ///
-extern void Table();
+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 Melt(BufferView *);
+int MenuRunChktex(Buffer * buffer);
 ///
-extern void Tex(BufferView *);
+void QuitLyX();
 ///
-extern void changeDepth(BufferView *, int);
+void AutoSave(BufferView * bv);
 ///
-extern void Free(BufferView *);
+Buffer * NewFile(string const & filename);
 ///
-extern void ProhibitInput(BufferView *);
+void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
 ///
-extern void AllowInput(BufferView *);
+string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagraph);
 ///
-extern void Code(BufferView *);
+void MenuInsertLabel(BufferView * bv, string const & arg);
 ///
-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
-