]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
HTML output code for a handful of easy insets.
[lyx.git] / src / insets / InsetText.h
index f20fd4a0b36e88098410c90d9e48c41e6871371c..6f509ada4572c470fad3b69b39a9b0c51ae8c640 100644 (file)
@@ -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();
        ///