#define INSET_INFO_H
#include "InsetCollapsable.h"
-#include "Cursor.h"
-#include "support/gettext.h"
-#include "support/Translator.h"
+namespace lyx {
+
+class Cursor;
/* InsetInfo displays shortcuts, lyxrc, package and textclass
availability and menu information in a non-editable boxed InsetText.
buffer: argument can be one of "name", "path", "class". This inset output the
filename, path, and textclass of this buffer.
+
+lyxinfo: argument must (presently) be "version". This inset outputs information
+ about the version of LyX currently in use.
There is currently no GUI, no menu entry for this inset. A user can define a
shortcut for "info-insert" (e.g. C-S-I), and
*/
-namespace lyx {
-
class InsetInfo : public InsetCollapsable {
public:
enum info_type {
MENU_INFO, // Which menu item is used for certain function
ICON_INFO, // which toolbar icon is used for certain function
BUFFER_INFO, // Buffer related information
+ LYX_INFO // LyX version information
};
///
///
InsetCode lyxCode() const { return INFO_CODE; }
///
- docstring name() const;
+ docstring layoutName() const;
///
Inset * editXY(Cursor & cur, int x, int y);
///
///
docstring toolTip(BufferView const & bv, int x, int y) const;
///
- docstring contextMenu(BufferView const &, int, int) const;
+ std::string contextMenu(BufferView const &, int, int) const;
+ ///
+ std::string contextMenuName() const;
/// should paragraph indendation be ommitted in any case?
bool neverIndent() const { return true; }