]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcite.h
Translate labels for float:algorithm, float:figure and float:table.
[lyx.git] / src / insets / insetcite.h
index d48d88e414f5694f9e5c7d501e9470c561bc00be..43269b797b6bc422e148f28ed557a26a3b03221e 100644 (file)
@@ -43,6 +43,36 @@ public:
        int latex(Buffer const *, std::ostream &, bool, bool) const;
        ///
        void validate(LaTeXFeatures &) const;
+private:
+       struct Cache {
+               ///
+               enum Style {
+                       ///
+                       BASIC,
+                       ///
+                       NATBIB_AY,
+                       ///
+                       NATBIB_NUM
+               };
+               ///
+               Cache() : style(BASIC) {}
+               ///
+               Style style;
+               ///
+               InsetCommandParams params;
+               ///
+               string generated_label;
+               ///
+               string screen_label;
+       };
+
+       /// This function does the donkey work of creating the pretty label
+       string const generateLabel(Buffer const *) const;
+       ///
+       Cache::Style getStyle(Buffer const * buffer) const;
+
+       ///
+       mutable Cache cache;
 };
 
 #endif // INSET_CITE_H