X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_cb.h;h=03cecc4a7058b103faa96d56d1a68dcbeb23c09b;hb=e5a46922e916a06ad1b958d5895cc3cfb4f13d2c;hp=40d9de315de04ac09aa03053d1e61ea2df3456aa;hpb=a32d2c972f88e771a326e011bc16b6d38d6e9082;p=lyx.git diff --git a/src/lyx_cb.h b/src/lyx_cb.h index 40d9de315d..03cecc4a70 100644 --- a/src/lyx_cb.h +++ b/src/lyx_cb.h @@ -1,63 +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 + +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; -/// -extern LyXFont const UserFreeFont(BufferParams const & params); -/// -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); /// -void QuitLyX(); +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 AutoSave(BufferView * bv); +void autoSave(BufferView * bv); /// -Buffer * NewLyxFile(string const & filename); +void newFile(BufferView * bv, std::string const & filename); /// -void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph); +void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph); /// -void MenuInsertLabel(BufferView * bv, string const & arg); +std::string getContentsOfPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph); /// -void LayoutsCB(int sel, void *, Combox *); -/// -void MenuLayoutCharacter(); -/// -bool UpdateLayoutPreamble(BufferView * bv); -/// -void MenuLayoutPreamble(); -/// -void MenuLayoutSave(BufferView * bv); -/// -LyXFont const UserFreeFont(BufferParams const & params); -/// -void Figure(); -/// -void Reconfigure(BufferView * bv); +void reconfigure(LyXView & lv); - -#endif +} // namespace lyx +#endif