X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetRef.h;h=e6f37462cd53ca1e3167598cfbc5ebfe7f423809;hb=67e70c6c022fa445cd654937faeb87955e3bca7a;hp=3d2e5c4a23f2679098093824d0e4ac3e6ee6d5c4;hpb=c8d00ed1272cd489041bed2115081008b6a26489;p=lyx.git diff --git a/src/insets/InsetRef.h b/src/insets/InsetRef.h index 3d2e5c4a23..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,38 +36,48 @@ public: static std::string const & getName(int type); - InsetRef(InsetCommandParams const &, Buffer const &); + InsetRef(Buffer const & buffer, InsetCommandParams const &); /// - docstring const getScreenLabel(Buffer const &) const; + bool isLabeled() const { return true; } /// - EDITABLE editable() const { return IS_EDITABLE; } + docstring screenLabel() const; /// - Code lyxCode() const { return REF_CODE; } + bool hasSettings() const { return true; } /// - bool display() const { return false; } + InsetCode lyxCode() const { return REF_CODE; } /// - int latex(Buffer const &, odocstream &, OutputParams const &) const; + DisplayType display() const { return Inline; } /// - int plaintext(Buffer const &, odocstream &, OutputParams const &) const; + int latex(odocstream &, OutputParams const &) const; /// - int docbook(Buffer const &, odocstream &, OutputParams const &) const; + int plaintext(odocstream &, OutputParams const &) const; + /// + int docbook(odocstream &, OutputParams const &) const; /// the string that is passed to the TOC - virtual int textString(Buffer const &, odocstream &, - OutputParams const &) const; + void tocString(odocstream &) const; /// void validate(LaTeXFeatures & features) const; + /// + static ParamInfo const & findInfo(std::string const &); + /// + static std::string defaultCommand() { return "ref"; }; + /// + static bool isCompatibleCommand(std::string const & s); + /// + void updateLabels(ParIterator const & it); + /// + void addToToc(DocIterator const &); protected: - InsetRef(InsetRef const &); - /// - virtual void doDispatch(LCursor & cur, FuncRequest & cmd); + InsetRef(InsetRef const &); private: - virtual std::auto_ptr doClone() const { - return std::auto_ptr(new InsetRef(*this)); - } + /// + Inset * clone() const { return new InsetRef(*this); } /// bool isLatex; + /// + mutable docstring screen_label_; }; } // namespace lyx