]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Allow row-breaking after some insets
[lyx.git] / src / insets / InsetText.h
index eea88cdd690786ac9fddfaaa127872159b4c9180..0ad33a1f163b9e08dc6f37d8fc03cfeb9f28b18b 100644 (file)
@@ -83,7 +83,7 @@ public:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const;
        ///
        enum XHTMLOptions {
                JustText = 0,
@@ -93,7 +93,7 @@ public:
                WriteEverything = 7
        };
        ///
-       docstring insetAsXHTML(XHTMLStream &, OutputParams const &,
+       docstring insetAsXHTML(XMLStream &, OutputParams const &,
                               XHTMLOptions) const;
        ///
        void validate(LaTeXFeatures & features) const;
@@ -124,6 +124,10 @@ public:
        ///
        void fixParagraphsFont();
 
+       /// does the inset contain changes ?
+       bool isChanged() const { return is_changed_; }
+       /// this is const because value is mutable
+       void isChanged(bool ic) const { is_changed_ = ic; }
        /// set the change for the entire inset
        void setChange(Change const & change);
        /// accept the changes within the inset
@@ -168,7 +172,7 @@ public:
                { return getLayout().forcelocalfontswitch(); }
 
        /// Update the counters of this inset and of its contents
-       virtual void updateBuffer(ParIterator const &, UpdateType);
+       virtual void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
        ///
        void setMacrocontextPositionRecursive(DocIterator const & pos);
        ///
@@ -223,6 +227,12 @@ public:
        ///
        bool confirmDeletion() const { return !text().empty(); }
 
+       ///
+       bool needsCProtection(bool const maintext = false,
+                             bool const fragile = false) const;
+       ///
+       bool hasCProtectContent(bool fragile = false) const;
+
 protected:
        ///
        void iterateForToc(DocIterator const & cdit, bool output_active,
@@ -239,6 +249,8 @@ private:
                                       TocBackend & backend) const;
        ///
        bool drawFrame_;
+       /// true if the inset contains change
+       mutable bool is_changed_;
        ///
        ColorCode frame_color_;
        ///