]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetLabel.h
Get rid of regex_constants::match_partial
[lyx.git] / src / insets / InsetLabel.h
index 3eac3ff02e210fcbcdfdc4286221d1892ceab85d..3c9bbd05f6b25257c855bbf60fc2ff30cd0d6752 100644 (file)
@@ -31,8 +31,11 @@ public:
        docstring const & counterValue() const { return counter_value_; }
        ///
        docstring const & prettyCounter() const { return pretty_counter_; }
-       ///
-       void updateCommand(docstring const & new_label, bool updaterefs = true);
+       /// Updates only the label string, doesn't handle undo nor references.
+       void updateLabel(docstring const & new_label);
+       /// Updates the label and the references to it.
+       /// Will also handle undo/redo if \p cursor is passed.
+       void updateLabelAndRefs(docstring const & new_label, Cursor * cursor = 0);
 
        /// \name Public functions inherited from Inset class
        //@{
@@ -45,7 +48,8 @@ public:
        ///
        InsetCode lyxCode() const { return LABEL_CODE; }
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
@@ -53,7 +57,7 @@ public:
        ///
        void updateBuffer(ParIterator const & it, UpdateType);
        ///
-       void addToToc(DocIterator const &);
+       void addToToc(DocIterator const & di, bool output_active) const;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -85,6 +89,11 @@ private:
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        //@}
 
+       ///
+       void uniqueLabel(docstring & label) const;
+       ///
+       void updateReferences(docstring const & old_label,
+               docstring const & new_label);
        ///
        docstring screen_label_;
        ///