X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.h;h=e6f37462cd53ca1e3167598cfbc5ebfe7f423809;hb=67e70c6c022fa445cd654937faeb87955e3bca7a;hp=9ba7895d86bb624aed5db59f2ee0e0a72e72da6d;hpb=017ba3c4c7b7711431779dba931f50735ce32b71;p=lyx.git diff --git a/src/insets/InsetRef.h b/src/insets/InsetRef.h index 9ba7895d86..e6f37462cd 100644 --- a/src/insets/InsetRef.h +++ b/src/insets/InsetRef.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author José Matos + * \author José Matos * * Full author contact details are available in file CREDITS. */ @@ -36,17 +36,14 @@ public: static std::string const & getName(int type); - InsetRef(InsetCommandParams const &, Buffer const &); + InsetRef(Buffer const & buffer, InsetCommandParams const &); - /// verify label and reference. - /** - * Overloaded from Inset::initView. - **/ - void initView(); + /// + bool isLabeled() const { return true; } /// docstring screenLabel() const; /// - EDITABLE editable() const { return IS_EDITABLE; } + bool hasSettings() const { return true; } /// InsetCode lyxCode() const { return REF_CODE; } /// @@ -58,7 +55,7 @@ public: /// int docbook(odocstream &, OutputParams const &) const; /// the string that is passed to the TOC - void textString(odocstream &) const; + void tocString(odocstream &) const; /// void validate(LaTeXFeatures & features) const; /// @@ -70,12 +67,10 @@ public: /// void updateLabels(ParIterator const & it); /// - void addToToc(ParConstIterator const &) const; + void addToToc(DocIterator const &); protected: /// InsetRef(InsetRef const &); - /// - void doDispatch(Cursor & cur, FuncRequest & cmd); private: /// Inset * clone() const { return new InsetRef(*this); }