]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.h
pimpl not needed here
[lyx.git] / src / insets / InsetFlex.h
index 70fb2f49a97d1dc3089a0cbdd208555b0f95d5a1..e21774e0c829f82753d83bf3697929b037a318e6 100644 (file)
@@ -40,6 +40,8 @@ public:
        InsetFlex(BufferParams const &, InsetLayout);
        ///
        docstring name() const { return from_ascii("Flex"); }
+       ///
+       InsetLayout const & getLayout(BufferParams const &) const { return layout_; } 
        /// Is this character style defined in the document's textclass?
        /// May be wrong after textclass change or paste from another document
        bool undefined() const;
@@ -48,18 +50,12 @@ public:
        ///
        virtual docstring const editMessage() const;
        ///
-       Inset::Code lyxCode() const { return Inset::FLEX_CODE; }
+       InsetCode lyxCode() const { return FLEX_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
        void read(Buffer const & buf, Lexer & lex);
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
-       void draw(PainterInfo &, int, int) const;
-       ///
-       void getDrawFont(Font &) const;
-       ///
        bool forceDefaultParagraphs(idx_type) const { return true; }
 
        ///
@@ -79,9 +75,6 @@ public:
 
 protected:
        InsetFlex(InsetFlex const &);
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
-       ///
-       bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
 
 private:
        friend class InsetFlexParams;