]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.h
How about if we write a script to do some of this and stop doing it
[lyx.git] / src / insets / InsetNote.h
index 15b416a1f8270b124a3a3e37cc6b4ae659b47e24..f5685681a145f5eb141a6468903a46c1b9c0db25 100644 (file)
@@ -47,7 +47,7 @@ class InsetNote : public InsetCollapsable
 {
 public:
        ///
-       InsetNote(Buffer const &, std::string const &);
+       InsetNote(Buffer *, std::string const &);
        ///
        ~InsetNote();
        ///
@@ -57,8 +57,6 @@ public:
        ///
        InsetNoteParams const & params() const { return params_; }
 private:
-       ///
-       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return NOTE_CODE; }
        ///
@@ -67,6 +65,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 +89,13 @@ private:
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
+       docstring xhtml(XHTMLStream &, 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 +111,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