X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetERT.h;h=05540aad270651603ebe60099c95026f4bf9257a;hb=2c357c1d23b7b83839a9beb8225d4f1ae4f793b4;hp=99875c97cfaab55bede6ee40e2801b8def585edd;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/insets/InsetERT.h b/src/insets/InsetERT.h index 99875c97cf..05540aad27 100644 --- a/src/insets/InsetERT.h +++ b/src/insets/InsetERT.h @@ -42,39 +42,35 @@ public: /// ~InsetERT(); /// - Inset::Code lyxCode() const { return Inset::ERT_CODE; } + InsetCode lyxCode() const { return ERT_CODE; } /// - docstring insetName() const { return from_ascii("ERT"); } + docstring name() const { return from_ascii("ERT"); } /// void write(Buffer const & buf, std::ostream & os) const; /// - void read(Buffer const & buf, Lexer & lex); - /// virtual docstring const editMessage() const; /// - bool insetAllowed(Inset::Code code) const; + bool insetAllowed(InsetCode code) const; /// int latex(Buffer const &, odocstream &, OutputParams const &) const; /// int plaintext(Buffer const &, odocstream &, - OutputParams const &) const; + OutputParams const &) const; /// int docbook(Buffer const &, odocstream &, OutputParams const &) const; /// void validate(LaTeXFeatures &) const {} /// - bool metrics(MetricsInfo &, Dimension &) const; - /// void draw(PainterInfo & pi, int x, int y) const; /// bool showInsetDialog(BufferView *) const; /// - void getDrawFont(LyXFont &) const; + virtual bool forceEmptyLayout() const { return true; } /// - bool forceDefaultParagraphs(idx_type) const { return true; } - /// should paragraph indendation be ommitted in any case? + 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 &); @@ -82,10 +78,9 @@ protected: virtual void doDispatch(Cursor & cur, FuncRequest & cmd); /// bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const; + private: - virtual std::auto_ptr doClone() const; - /// - void init(); + virtual Inset * clone() const; /// void setButtonLabel(); ///