]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
Allow row-breaking after some insets
[lyx.git] / src / insets / InsetText.h
index 54f9a571192f0cb37b2ab9a1e16da144adf2a23e..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);
        ///
@@ -224,9 +228,10 @@ public:
        bool confirmDeletion() const { return !text().empty(); }
 
        ///
-       bool needsCProtection() const;
+       bool needsCProtection(bool const maintext = false,
+                             bool const fragile = false) const;
        ///
-       bool hasCProtectContent() const;
+       bool hasCProtectContent(bool fragile = false) const;
 
 protected:
        ///
@@ -244,6 +249,8 @@ private:
                                       TocBackend & backend) const;
        ///
        bool drawFrame_;
+       /// true if the inset contains change
+       mutable bool is_changed_;
        ///
        ColorCode frame_color_;
        ///