X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetenv.h;h=0925a20ad39a05d4dc42f4d146fbb15211fe2c4c;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=c3f78f05c9d80328f07705821a63b9c5d3621215;hpb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;p=lyx.git diff --git a/src/insets/insetenv.h b/src/insets/insetenv.h index c3f78f05c9..0925a20ad3 100644 --- a/src/insets/insetenv.h +++ b/src/insets/insetenv.h @@ -6,7 +6,7 @@ * * \author André Pönitz * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #ifndef INSETENVIRONMENT_H @@ -15,41 +15,41 @@ #include "insettext.h" #include "lyxlayout_ptr_fwd.h" + +namespace lyx { + class InsetEnvironment : public InsetText { public: /// - InsetEnvironment(BufferParams const &, string const & name); - /// - InsetEnvironment(InsetEnvironment const &); - /// - void write(Buffer const * buf, std::ostream & os) const; - /// - void read(Buffer const * buf, LyXLex & lex); + InsetEnvironment(BufferParams const &, std::string const & name); /// - virtual std::auto_ptr clone() const; + void write(Buffer const & buf, std::ostream & os) const; /// - InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; } + void read(Buffer const & buf, LyXLex & lex); /// - int latex(Buffer const *, std::ostream &, - LatexRunParams const &) const; + InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; } /// - string const editMessage() const; + int latex(Buffer const &, odocstream &, + OutputParams const &) const; /// - InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; } + virtual docstring const editMessage() const; /// - bool isTextInset() const { return true; } + InsetBase::EDITABLE editable() const { return HIGHLY_EDITABLE; } /// LyXLayout_ptr const & layout() const; - /// - bool needFullRow() const { return true; } /** returns true if, when outputing LaTeX, font changes should - be closed before generating this inset. This is needed for - insets that may contain several paragraphs */ + be closed before generating this inset. This is needed for + insets that may contain several paragraphs */ bool noFontChange() const { return true; } - +protected: + InsetEnvironment(InsetEnvironment const &); private: + virtual std::auto_ptr doClone() const; /// the layout LyXLayout_ptr layout_; }; + +} // namespace lyx + #endif