#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.
*/
-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
+ 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; }