]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBox.h
Allow removing words from the personal dictionary, that weren't previously added.
[features.git] / src / insets / InsetBox.h
index 4e9894548c17332e5aaf10d412713463b3380734..cc80da3ecd219a8de3426f344313d2febd0b3c90 100644 (file)
@@ -15,7 +15,8 @@
 #define INSETBOX_H
 
 #include "InsetCollapsible.h"
-#include "Length.h"
+
+#include "support/Length.h"
 
 
 namespace lyx {
@@ -101,66 +102,64 @@ public:
        /// \name Public functions inherited from Inset class
        //@{
        ///
-       InsetCode lyxCode() const { return BOX_CODE; }
-       ///
-       docstring layoutName() const;
+       InsetCode lyxCode() const override { return BOX_CODE; }
        ///
-       void write(std::ostream &) const;
+       docstring layoutName() const override;
        ///
-       void read(Lexer & lex);
+       void write(std::ostream &) const override;
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       void read(Lexer & lex) override;
        ///
-       DisplayType display() const { return Inline; }
+       void metrics(MetricsInfo &, Dimension &) const override;
        ///
-       ColorCode backgroundColor(PainterInfo const &) const;
+       ColorCode backgroundColor(PainterInfo const &) const override;
        ///
-       LyXAlignment contentAlignment() const;
+       LyXAlignment contentAlignment() const override;
        ///
-       bool allowParagraphCustomization(idx_type = 0) const { return !forcePlainLayout(); }
+       bool allowParagraphCustomization(idx_type = 0) const override { return !forcePlainLayout(); }
        ///
-       bool allowMultiPar() const;
+       bool allowMultiPar() const override;
        ///
-       bool forcePlainLayout(idx_type = 0) const;
+       bool forcePlainLayout(idx_type = 0) const override;
        ///
        bool needsCProtection(bool const maintext = false,
-                             bool const fragile = false) const;
+                             bool const fragile = false) const override;
        ///
-       bool neverIndent() const { return true; }
+       bool neverIndent() const override { return true; }
        ///
-       bool inheritFont() const { return false; }
+       bool inheritFont() const override { return false; }
        ///
-       void latex(otexstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const override;
        ///
        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;
        ///
-       docstring xhtml(XMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const override;
        ///
-       void validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const override;
        ///
-       bool hasFixedWidth() const;
+       bool hasFixedWidth() const override;
        ///
-       std::string contextMenuName() const;
+       std::string contextMenuName() const override;
        //@}
 
        /// \name Public functions inherited from InsetCollapsible class
        //@{
        ///
-       void setButtonLabel();
+       void setButtonLabel() override;
        //@}
 
 protected:
        /// \name Protected functions inherited from Inset class
        //@{
        ///
-       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
        ///
-       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd) override;
        ///
-       Inset * clone() const { return new InsetBox(*this); }
+       Inset * clone() const override { return new InsetBox(*this); }
        //@}
 
 private: