]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.h
Remove TextClassPtr without losing the type safety it provided.
[lyx.git] / src / insets / InsetBox.h
index 218b209eccfa8c5888c8648e127e353d6ba4a53a..d74c68cc9f0d673fe94fc716ff37874e9c7b17d3 100644 (file)
@@ -62,13 +62,15 @@ public:
        ///
        ~InsetBox();
        ///
-       virtual docstring const editMessage() const;
+       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return BOX_CODE; }
        ///
-       void write(Buffer const &, std::ostream &) const;
+       docstring name() const;
        ///
-       void read(Buffer const & buf, Lexer & lex);
+       void write(std::ostream &) const;
+       ///
+       void read(Lexer & lex);
        ///
        void setButtonLabel();
        ///
@@ -77,18 +79,22 @@ public:
        bool showInsetDialog(BufferView * bv) const;
        ///
        DisplayType display() const { return Inline; }
+       //FIXME Is this the one we want? or is it:
+       //allowParagraphCustomization(idx_type)?
        ///
-       bool forceDefaultParagraphs(idx_type) const;
+       virtual bool forceEmptyLayout() const;
        ///
-       bool neverIndent(Buffer const &) const { return true; }
+       bool neverIndent() const { return true; }
        ///
        bool noFontChange() const { return true; }
        ///
-       int latex(Buffer const &, odocstream &, OutputParams const &) const;
+       bool isMacroScope() const;
        ///
-       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+       int plaintext(odocstream &, OutputParams const &) const;
+       ///
+       int docbook(odocstream &, OutputParams const &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -99,9 +105,11 @@ public:
        enum BoxType {
                Frameless,
                Boxed,
+               Framed,
                ovalbox,
                Ovalbox,
                Shadowbox,
+               Shaded,
                Doublebox
        };
 protected:
@@ -109,8 +117,6 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        /// Is the width forced to some value?
        virtual bool hasFixedWidth() const;
-       ///
-       virtual docstring name() const { return from_ascii("Box"); }
 private:
        friend class InsetBoxParams;