X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.h;h=6f509ada4572c470fad3b69b39a9b0c51ae8c640;hb=f61bebd7fb25beabdf0dc761520030f9059499d6;hp=f20fd4a0b36e88098410c90d9e48c41e6871371c;hpb=fa1305ccd33e3b58b42b9a4516718ac88ce568b5;p=lyx.git diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index f20fd4a0b3..6f509ada45 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jürgen Vigna + * \author Jürgen Vigna * * Full author contact details are available in file CREDITS. */ @@ -34,8 +34,15 @@ class InsetTabular; */ class InsetText : public Inset { public: - /// - explicit InsetText(Buffer const & buffer); + enum UsePlain { + DefaultLayout, + PlainLayout + }; + /// \param buffer + /// \param useplain whether to use the plain layout + /// This is needed because we cannot call the virtual function + /// usePlainLayout() from within the constructor. + explicit InsetText(Buffer const & buffer, UsePlain type = DefaultLayout); /// InsetText(InsetText const &); /// @@ -57,7 +64,7 @@ public: /// docstring editMessage() const; /// - EDITABLE editable() const { return HIGHLY_EDITABLE; } + bool editable() const { return true; } /// bool canTrackChanges() const { return true; } /// @@ -74,6 +81,8 @@ public: /// int docbook(odocstream &, OutputParams const &) const; /// + int xhtml(odocstream &, OutputParams const &) const; + /// void validate(LaTeXFeatures & features) const; /// return x,y of given position relative to the inset's baseline @@ -169,7 +178,7 @@ public: void doDispatch(Cursor & cur, FuncRequest & cmd); private: /// - void initParagraphs(BufferParams const &); + void initParagraphs(UsePlain type); /// void setParagraphOwner(); ///