X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetScript.h;h=9eb80dbbd5032c9866366b19cf6c72082f5d79e4;hb=e26a60edef3eae39c2e8379f395febedc5ba7efa;hp=cd61117a3f47c6fdf04a53d574ffd32c66ae11a4;hpb=9176e60b7bcab3e355521a86ddb4c2778cd9b29e;p=features.git diff --git a/src/insets/InsetScript.h b/src/insets/InsetScript.h index cd61117a3f..9eb80dbbd5 100644 --- a/src/insets/InsetScript.h +++ b/src/insets/InsetScript.h @@ -12,6 +12,7 @@ #ifndef INSET_SCRIPT_H #define INSET_SCRIPT_H +#include "FontInfo.h" #include "InsetText.h" @@ -63,73 +64,71 @@ public: /// \name Public functions inherited from Inset class //@{ /// - InsetCode lyxCode() const { return SCRIPT_CODE; } + InsetCode lyxCode() const override { return SCRIPT_CODE; } /// - docstring layoutName() const; - /// - DisplayType display() const; + docstring layoutName() const override; /// - int topOffset(BufferView const *) const { return 0; } + int topOffset(BufferView const *) const override { return 0; } /// - int bottomOffset(BufferView const *) const { return 0; } + int bottomOffset(BufferView const *) const override { return 0; } /// - int leftOffset(BufferView const *) const { return 0; } + int leftOffset(BufferView const *) const override { return 0; } /// - int rightOffset(BufferView const *) const { return 0; } + int rightOffset(BufferView const *) const override { return 0; } /// - void metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const override; /// - void draw(PainterInfo & pi, int x, int y) const; + void draw(PainterInfo & pi, int x, int y) const override; /// void cursorPos(BufferView const & bv, - CursorSlice const & sl, bool boundary, int & x, int & y) const; + CursorSlice const & sl, bool boundary, int & x, int & y) const override; /// - void write(std::ostream &) const; + void write(std::ostream &) const override; /// - void read(Lexer & lex); + void read(Lexer & lex) override; /// - bool forcePlainLayout(idx_type = 0) const { return true; } + bool forcePlainLayout(idx_type = 0) const override { return true; } /// - bool allowParagraphCustomization(idx_type = 0) const { return false; } + bool allowParagraphCustomization(idx_type = 0) const override { return false; } /// - bool neverIndent() const { return true; } + bool neverIndent() const override { return true; } /// - bool inheritFont() const { return true; } + bool inheritFont() const override { return true; } /// int plaintext(odocstringstream & ods, OutputParams const & op, - size_t max_length = INT_MAX) const; + size_t max_length = INT_MAX) const override; /// - int docbook(odocstream &, OutputParams const &) const; + void docbook(XMLStream &, OutputParams const &) const override; /// void edit(Cursor & cur, bool front, - EntryDirection entry_from = ENTRY_DIRECTION_IGNORE); + EntryDirection entry_from = ENTRY_DIRECTION_IGNORE) override; /// - Inset * editXY(Cursor & cur, int x, int y); + Inset * editXY(Cursor & cur, int x, int y) override; /// - bool insetAllowed(InsetCode code) const; + bool insetAllowed(InsetCode code) const override; /// - bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override; /// - docstring toolTip(BufferView const & bv, int x, int y) const; + docstring toolTip(BufferView const & bv, int x, int y) const override; /// - Inset * clone() const { return new InsetScript(*this); } + Inset * clone() const override { return new InsetScript(*this); } /// - std::string contextMenuName() const; + std::string contextMenuName() const override; //@} /// \name Public functions inherited from InsetText class //@{ /// - bool allowMultiPar() const { return false; } + bool allowMultiPar() const override { return false; } //@} protected: /// \name Protected functions inherited from Inset class //@{ /// - void doDispatch(Cursor & cur, FuncRequest & cmd); + void doDispatch(Cursor & cur, FuncRequest & cmd) override; //@} private: