]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.h
* GuiView.C (updateTab): do not update early if current tab has
[lyx.git] / src / lyx_cb.h
index 362f9b0d1873c297772e639f34e7c3886231e539..03cecc4a7058b103faa96d56d1a68dcbeb23c09b 100644 (file)
@@ -1,55 +1,43 @@
 // -*- C++ -*-
+/**
+ * \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ønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef LYX_CB_H
 #define LYX_CB_H
 
-#include "LString.h"
-#include "lyxfont.h"
+#include <string>
+
+namespace lyx {
 
-class BufferParams;
+class Buffer;
 class BufferView;
-class Combox;
+class LyXView;
 
 ///
 extern bool quitting;
-///
-extern bool toggleall;
 
-// When still false after reading lyxrc, warn user
-//about failing \bind_file command. RVDK_PATCH_5
-///
-extern bool BindFileSet;
-///
-void ShowMessage(Buffer const * buf,
-                string const & msg1,
-                string const & msg2 = string(),
-                string const & msg3 = string(), int delay = 6);
-///
-bool MenuWrite(BufferView * bv, Buffer * buffer);
-///
-bool MenuWriteAs(BufferView * bv, Buffer * buffer);
 ///
-int MenuRunChktex(Buffer * buffer);
+bool menuWrite(Buffer * buffer);
+/// write the given file, or ask if no name given
+bool writeAs(Buffer * buffer, std::string const & filename = std::string());
 ///
-void QuitLyX();
+void autoSave(BufferView * bv);
 ///
-void AutoSave(BufferView * bv);
+void newFile(BufferView * bv, std::string const & filename);
 ///
-Buffer * NewLyxFile(string const & filename);
+void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
 ///
-void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
+std::string getContentsOfPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
 ///
-void MenuInsertLabel(BufferView * bv, string const & arg);
-///
-void LayoutsCB(int sel, void *, Combox *);
-///
-void MenuLayoutCharacter();
-///
-void MenuLayoutSave(BufferView * bv);
-///
-void Figure();
-///
-void Reconfigure(BufferView * bv);
+void reconfigure(LyXView & lv);
 
-       
-#endif
+} // namespace lyx
 
+#endif