]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.h
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetERT.h
index 33eb5bb27cf5d900988ecd52b544cfeccb4cad73..05540aad270651603ebe60099c95026f4bf9257a 100644 (file)
@@ -63,14 +63,14 @@ public:
        ///
        void validate(LaTeXFeatures &) const {}
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
-       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        bool showInsetDialog(BufferView *) const;
        ///
-       bool forceDefaultParagraphs(idx_type) const { return true; }
-       /// should paragraph indendation be ommitted in any case?
+       virtual bool forceEmptyLayout() const { return true; }
+       ///
+       virtual bool allowParagraphCustomization(idx_type) const { return false; }
+       /// should paragraph indendation be omitted in any case?
        bool neverIndent(Buffer const &) const { return true; }
 protected:
        InsetERT(InsetERT const &);
@@ -78,16 +78,10 @@ protected:
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
-       ///
-       void resetParagraphsFont();
-       ///
-       void getDrawFont(FontInfo &) const;
 
 private:
        virtual Inset * clone() const;
        ///
-       void init();
-       ///
        void setButtonLabel();
        ///
        bool allowSpellCheck() const { return false; }