]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.h
Fixup 572b06d6: reduce cache size for breakString
[lyx.git] / src / insets / InsetFloat.h
index 224017e7eafa72d8d389aae4d23e47dbb666ba3d..20ee6452e8660f415fad2403261581a401a2b2a6 100644 (file)
@@ -73,53 +73,57 @@ public:
        ///
        InsetFloatParams const & params() const { return params_; }
        ///
-       bool allowsCaptionVariation(std::string const &) const;
+       bool allowsCaptionVariation(std::string const &) const override;
        ///
-       LyXAlignment contentAlignment() const;
+       LyXAlignment contentAlignment() const override;
+       ///
+       bool forceParDirectionSwitch() const override { return true; }
 private:
        ///
-       void setCaptionType(std::string const & type);
+       void setCaptionType(std::string const & type) override;
        ///
-       docstring layoutName() const;
+       docstring layoutName() const override;
        ///
-       docstring toolTip(BufferView const & bv, int x, int y) const;
+       docstring toolTip(BufferView const & bv, int x, int y) const override;
        ///
-       void write(std::ostream & os) const;
+       void write(std::ostream & os) const override;
        ///
-       void read(Lexer & lex);
+       void read(Lexer & lex) override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void validate(LaTeXFeatures & features) const override;
        ///
-       InsetCode lyxCode() const { return FLOAT_CODE; }
+       InsetCode lyxCode() const override { return FLOAT_CODE; }
        ///
-       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(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const override;
        ///
-       bool insetAllowed(InsetCode) const;
-       /** returns false if, when outputing LaTeX, font changes should
-           be closed before generating this inset. This is needed for
-           insets that may contain several paragraphs */
-       bool inheritFont() const { return false; }
+       bool insetAllowed(InsetCode) const override;
        ///
-       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+       bool inheritFont() const override { return false; }
        ///
-       bool hasSubCaptions(ParIterator const & it) const;
+       bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
        ///
-       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       bool hasSubCaptions(ParIterator const & it) const override;
        ///
-       Inset * clone() const { return new InsetFloat(*this); }
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
+       ///
+       void doDispatch(Cursor & cur, FuncRequest & cmd) override;
+       ///
+       Inset * clone() const override { return new InsetFloat(*this); }
        /// Is the content of this inset part of the immediate (visible) text sequence?
-       bool isPartOfTextSequence() const { return false; }
+       bool isPartOfTextSequence() const override { return false; }
        ///
        TexString getCaption(OutputParams const &) const;
        ///
        std::string getAlignment() const;
+       ///
+       CtObject getCtObject(OutputParams const &) const override;
 
        InsetFloatParams params_;
 };