X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetLabel.h;h=33ba32ebc27e6b0b4c61834b66e48082dbac6428;hb=d6f1915684328c6e3fe61c6eef8846b5cabec334;hp=e9e2669c10d0552b252079e650927f8ab319f3b8;hpb=132003aac5a30bc133f82a453a558945f13d83ff;p=lyx.git diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h index e9e2669c10..33ba32ebc2 100644 --- a/src/insets/InsetLabel.h +++ b/src/insets/InsetLabel.h @@ -21,14 +21,22 @@ class InsetLabel : public InsetCommand { public: /// InsetLabel(InsetCommandParams const &); + + /// verify label and update references. + /** + * Overloaded from Inset::initView. + **/ + void initView(); + + /// + bool isLabeled() const { return true; } + /// docstring screenLabel() const; /// EDITABLE editable() const { return IS_EDITABLE; } /// InsetCode lyxCode() const { return LABEL_CODE; } - /// Appends \c list with this label - void getLabelList(std::vector & list) const; /// int latex(odocstream &, OutputParams const &) const; /// @@ -45,7 +53,9 @@ public: /// void updateLabels(ParIterator const & it); /// - void addToToc(ParConstIterator const &) const; + void addToToc(DocIterator const &); + /// + void updateCommand(docstring const & new_label, bool updaterefs = true); protected: /// void doDispatch(Cursor & cur, FuncRequest & cmd); @@ -53,7 +63,7 @@ private: /// Inset * clone() const { return new InsetLabel(*this); } /// - void update(docstring const & new_label); + docstring screen_label_; };