X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCitation.h;h=a8e9e1853d9fc797b2715b4c41a49e093f8f527e;hb=9762ba5d388e8a81a6e58c464b635ca4cf48cbfa;hp=0bd048ebfb5ec0351ac030e9fb9c058c7289aad2;hpb=ecef54500d4d77baf4fa47eac2253679875ac08c;p=lyx.git diff --git a/src/insets/InsetCitation.h b/src/insets/InsetCitation.h index 0bd048ebfb..a8e9e1853d 100644 --- a/src/insets/InsetCitation.h +++ b/src/insets/InsetCitation.h @@ -14,7 +14,6 @@ #define INSET_CITATION_H #include "InsetCommand.h" - #include "Citation.h" namespace lyx { @@ -48,6 +47,8 @@ public: /// void doDispatch(Cursor & cur, FuncRequest & cmd); /// + bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const; + /// InsetCode lyxCode() const { return CITE_CODE; } /// void latex(otexstream &, OutputParams const &) const; @@ -61,13 +62,12 @@ public: /// void toString(odocstream &) const; /// - void forToc(docstring &, size_t) const; - /// - void validate(LaTeXFeatures &) const {} + void forOutliner(docstring &, size_t const, bool const) const; /// void updateBuffer(ParIterator const & it, UpdateType); /// - void addToToc(DocIterator const &) const; + void addToToc(DocIterator const & di, bool output_active, + UpdateType utype, TocBackend & backend) const; /// std::string contextMenuName() const; //@} @@ -79,8 +79,17 @@ public: /// static std::string defaultCommand() { return "cite"; } /// - static bool isCompatibleCommand(std::string const & cmd); + static bool isCompatibleCommand(std::string const &); //@} + /// + void redoLabel() { cache.recalculate = true; } + /// + CitationStyle getCitationStyle(BufferParams const & bp, std::string const & input, + std::vector const & valid_styles) const; + /// + std::map getQualifiedLists(docstring const p) const; + /// + static bool last_literal; private: /// tries to make a pretty label and makes a basic one if not @@ -102,13 +111,9 @@ private: docstring screenLabel() const; //@} - /// we'll eventually want to be able to get info on this from the - /// various CiteEngines - static ParamInfo param_info_; - /// struct Cache { - Cache() : recalculate(true) {}; + Cache() : recalculate(true) {} /// bool recalculate; ///