X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetenv.h;h=0925a20ad39a05d4dc42f4d146fbb15211fe2c4c;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=3385a4cda0ed9e28c59998dd26ec039e2f3be900;hpb=59413be9a0b999c17784d1abad01e55819ecd27a;p=lyx.git diff --git a/src/insets/insetenv.h b/src/insets/insetenv.h index 3385a4cda0..0925a20ad3 100644 --- a/src/insets/insetenv.h +++ b/src/insets/insetenv.h @@ -16,6 +16,8 @@ #include "lyxlayout_ptr_fwd.h" +namespace lyx { + class InsetEnvironment : public InsetText { public: /// @@ -25,21 +27,19 @@ public: /// void read(Buffer const & buf, LyXLex & lex); /// - InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; } + InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; } /// - int latex(Buffer const &, std::ostream &, + int latex(Buffer const &, odocstream &, OutputParams const &) const; /// - std::string const editMessage() 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; /** 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 &); @@ -49,4 +49,7 @@ private: LyXLayout_ptr layout_; }; + +} // namespace lyx + #endif