X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLabel.h;h=61bcc1f3109d052835f4c2f5d2b66256bf4a7e84;hb=25ef8e7eef8dfb2b6d6d4f2935ae6775ebf2ba60;hp=35e8f4ba953a3a857a4b7491e9ea3f3a5466fa24;hpb=4b1777d2fa533f5a36f010c592a0408be92cdbd2;p=lyx.git diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h index 35e8f4ba95..61bcc1f310 100644 --- a/src/insets/InsetLabel.h +++ b/src/insets/InsetLabel.h @@ -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 //@{ @@ -85,6 +88,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_; ///