void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo & pi, int x, int y) const;
+ /// Drawing background is handled in draw
+ virtual void drawBackground(PainterInfo &, int, int) const {}
///
bool editable() const { return true; }
///
WriteEverything = 7
};
///
- docstring insetAsXHTML(XHTMLStream &, OutputParams const &,
+ docstring insetAsXHTML(XHTMLStream &, OutputParams const &,
XHTMLOptions) const;
///
void validate(LaTeXFeatures & features) const;
-
+
/// return the argument(s) only
void getArgs(otexstream & os, OutputParams const &, bool const post = false) const;
/// Update the counters of this inset and of its contents
virtual void updateBuffer(ParIterator const &, UpdateType);
- ///
+ ///
void setMacrocontextPositionRecursive(DocIterator const & pos);
///
void toString(odocstream &) const;
/// \param prefix: a string that will preced the tooltip,
/// e.g., "Index: ".
/// \param len: length of the resulting string
- /// NOTE This routine is kind of slow. It's fine to use it within the
+ /// NOTE This routine is kind of slow. It's fine to use it within the
/// GUI, but definitely do not try to use it in updateBuffer or anything
/// of that sort. (Note: unnecessary internal copies have been removed
/// since the previous note. The efficiency would have to be assessed
///
bool confirmDeletion() const { return !text().empty(); }
+ ///
+ bool needsCProtection() const;
+
protected:
///
void iterateForToc(DocIterator const & cdit, bool output_active,
void closeAddToTocForParagraph(pit_type start, pit_type end,
TocBackend & backend) const;
///
+ bool hasCProtectContent() const;
+ ///
bool drawFrame_;
///
ColorCode frame_color_;