]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetNote.h
index 15b416a1f8270b124a3a3e37cc6b4ae659b47e24..dd4cddaacaa9aaf1c8e4475155f97ff8fdd1ec66 100644 (file)
@@ -67,6 +67,13 @@ private:
        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;
        ///
@@ -84,13 +91,13 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       docstring xhtml(odocstream &, OutputParams const &) 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);
        ///
@@ -106,6 +113,11 @@ private:
        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