X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetCitation.h;h=7962809eda9929b3ea113d58bc186d69030d5097;hb=b7ec3d8515b539260a16e9c5987c4116f4d1257c;hp=e29c3997fb8fcfa8953512c13cb2fa40c46f5324;hpb=2ffd130d2bc4b594ab64327479ace742f119b5ae;p=lyx.git diff --git a/src/insets/InsetCitation.h b/src/insets/InsetCitation.h index e29c3997fb..7962809eda 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 { @@ -34,6 +33,9 @@ public: /// ~InsetCitation(); + /// + bool addKey(std::string const & key); + /// \name Public functions inherited from Inset class //@{ /// @@ -45,11 +47,14 @@ 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; /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream & ods, OutputParams const & op, + size_t max_length = INT_MAX) const; /// int docbook(odocstream &, OutputParams const &) const; /// @@ -57,15 +62,16 @@ 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; + /// + bool forceLTR(OutputParams const &) const; //@} /// \name Static public methods obligated for InsetCommand derived classes @@ -75,8 +81,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 @@ -98,13 +113,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; ///