///
int docbook(odocstream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const;
///
enum XHTMLOptions {
JustText = 0,
WriteEverything = 7
};
///
- docstring insetAsXHTML(XHTMLStream &, OutputParams const &,
+ docstring insetAsXHTML(XMLStream &, OutputParams const &,
XHTMLOptions) const;
///
void validate(LaTeXFeatures & features) const;
///
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
{ 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);
///
bool confirmDeletion() const { return !text().empty(); }
///
- bool needsCProtection() const;
+ bool needsCProtection(bool const maintext = false,
+ bool const fragile = false) const;
+ ///
+ bool hasCProtectContent(bool fragile = false) const;
protected:
///
void closeAddToTocForParagraph(pit_type start, pit_type end,
TocBackend & backend) const;
///
- bool hasCProtectContent() const;
- ///
bool drawFrame_;
+ /// true if the inset contains change
+ mutable bool is_changed_;
///
ColorCode frame_color_;
///