DisplayType display() const;
///
bool noFontChange() const { return params_.type != InsetNoteParams::Note; }
+ /*!
+ * Is the content of this inset part of the output document?
+ *
+ * Note that Note insets are not considered part of the
+ * document, even in their 'greyed out' incarnation.
+ */
+ bool producesOutput() const { return false; }
///
void write(std::ostream &) const;
///
void validate(LaTeXFeatures &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
- // Update the counters of this inset and of its contents
- void updateLabels(ParIterator const &);
///
- void addToToc(ParConstIterator const &) const;
+ void addToToc(DocIterator const &);
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
InsetNoteParams params_;
};
+/**
+ * Mutate all NoteInsets of "source" type to the "target" type in the document.
+ * Returns true when some inset was changed.
+ */
+bool mutateNotes(lyx::Cursor & cur, std::string const & source, std::string const &target);
} // namespace lyx