]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.h
Remove profiling.py
[lyx.git] / src / insets / InsetScript.h
index cd61117a3f47c6fdf04a53d574ffd32c66ae11a4..eab074b1e2f41beb5095ac7fd058fd94de36ad51 100644 (file)
@@ -12,6 +12,7 @@
 #ifndef INSET_SCRIPT_H
 #define INSET_SCRIPT_H
 
+#include "FontInfo.h"
 #include "InsetText.h"
 
 
@@ -29,7 +30,7 @@ public:
        ///
        void write(std::ostream & os) const;
        ///
-       void read(Lexer & lex);
+       void read(support::Lexer & lex);
        ///
        int shift(FontInfo const & font) const;
        ///
@@ -63,73 +64,69 @@ 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;
-       ///
-       void write(std::ostream &) const;
+               CursorSlice const & sl, bool boundary, int & x, int & y) const override;
        ///
-       void read(Lexer & lex);
+       void write(std::ostream &) const override;
        ///
-       bool forcePlainLayout(idx_type = 0) const { return true; }
+       void read(support::Lexer & lex) override;
        ///
-       bool allowParagraphCustomization(idx_type = 0) const { return false; }
+       bool forcePlainLayout(idx_type = 0) const override { return true; }
        ///
-       bool neverIndent() const { return true; }
+       bool allowParagraphCustomization(idx_type = 0) const override { return false; }
        ///
-       bool inheritFont() const { return true; }
+       bool neverIndent() 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: