]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
New DocBook support
[lyx.git] / src / insets / InsetText.h
index d50d5556c14ff265ca36273577eb24e3676b5402..d86bfb75d339456def755b311329633fed9f575a 100644 (file)
@@ -81,8 +81,6 @@ public:
        int plaintext(odocstringstream & ods, OutputParams const & op,
                      size_t max_length = INT_MAX) const;
        ///
-       int docbook(odocstream &, OutputParams const &) const;
-       ///
        docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        enum XHTMLOptions {
@@ -96,6 +94,10 @@ public:
        docstring insetAsXHTML(XMLStream &, OutputParams const &,
                               XHTMLOptions) const;
        ///
+       void docbook(XMLStream &, OutputParams const &, XHTMLOptions opts) const;
+       ///
+       void docbook(XMLStream &, OutputParams const &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
 
        /// return the argument(s) only
@@ -161,6 +163,8 @@ public:
        ///
        virtual bool allowMultiPar() const { return getLayout().isMultiPar(); }
        ///
+       bool isInTitle() const { return intitle_context_; }
+       ///
        /// should paragraphs be forced to use the empty layout?
        virtual bool forcePlainLayout(idx_type = 0) const
                { return getLayout().forcePlainLayout(); }
@@ -252,6 +256,8 @@ private:
        /// true if the inset contains change
        mutable bool is_changed_;
        ///
+       bool intitle_context_;
+       ///
        ColorCode frame_color_;
        ///
        Text text_;