]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.h
Replace a half-baked attempt to remove \lyxdot from the directory part of
[lyx.git] / src / insets / InsetCitation.h
index 831da30dac859c5ec4f1fb38532491d22eb14bf7..2762bfd9f2c964ed647a5cffe70362aa6d732e36 100644 (file)
@@ -41,9 +41,11 @@ public:
        ///
        docstring toolTip(BufferView const & bv, int x, int y) const;
        ///
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       ///
        InsetCode lyxCode() const { return CITE_CODE; }
        ///
-       int latex(odocstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
        ///
@@ -51,15 +53,17 @@ public:
        ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
-       void tocString(odocstream &) const;
+       void toString(odocstream &) const;
+       ///
+       void forToc(docstring &, size_t) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
        void updateBuffer(ParIterator const & it, UpdateType);
        ///
-       void addToToc(DocIterator const &);
+       void addToToc(DocIterator const &) const;
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -100,14 +104,10 @@ private:
        static ParamInfo param_info_;
 
        ///
-       class Cache {
-       public:
-               ///
-               Cache() : engine(ENGINE_BASIC), params(CITE_CODE) {}
-               ///
-               CiteEngine engine;
+       struct Cache {
+               Cache() : recalculate(true) {};
                ///
-               InsetCommandParams params;
+               bool recalculate;
                ///
                docstring generated_label;
                ///