]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Allow row-breaking after some insets
[lyx.git] / src / insets / InsetText.h
index fc43ccbb38805a8bdc9f544c61b7a3fa5999251d..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;
@@ -125,7 +125,9 @@ public:
        void fixParagraphsFont();
 
        /// does the inset contain changes ?
-       bool isChanged() const;
+       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
@@ -170,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);
        ///
@@ -247,6 +249,8 @@ private:
                                       TocBackend & backend) const;
        ///
        bool drawFrame_;
+       /// true if the inset contains change
+       mutable bool is_changed_;
        ///
        ColorCode frame_color_;
        ///