X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetbib.h;h=a478f646f9f0061e10f7ca4d0d7588d104786563;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=10754316bad0c342b22112bce520166e46f37dd0;hpb=132fe5e1322fbc86a32692df51eba78d6b4e479c;p=lyx.git diff --git a/src/insets/insetbib.h b/src/insets/insetbib.h index 10754316ba..a478f646f9 100644 --- a/src/insets/insetbib.h +++ b/src/insets/insetbib.h @@ -27,6 +27,7 @@ public: /// InsetCitation() : InsetCommand("cite") {} /// + explicit InsetCitation(string const & key, string const & note = string()); /// ~InsetCitation(); @@ -64,15 +65,17 @@ public: /// InsetBibKey() : InsetCommand("bibitem") { counter = 1; } /// + explicit InsetBibKey(string const & key, string const & label = string()); /// + explicit InsetBibKey(InsetBibKey const *); /// ~InsetBibKey(); /// Inset * Clone() const { return new InsetBibKey(this); } /// Currently \bibitem is used as a LyX2.x command, so we need this method. - void Write(ostream &) const; + void Write(std::ostream &) const; /// virtual string getScreenLabel() const; /// @@ -113,6 +116,9 @@ public: /// InsetBibtex(string const & dbase, string const & style, Buffer *); + /// + ~InsetBibtex(); + /// Inset * Clone() const { return new InsetBibtex(contents, options, 0); @@ -127,11 +133,7 @@ public: /// void Edit(BufferView *, int x, int y, unsigned int button); /// - int Latex(ostream &, signed char, bool) const; -#ifndef USE_OSTREAM_ONLY - /// - int Latex(string & file, signed char fragile, bool) const; -#endif + int Latex(std::ostream &, bool fragile, bool freespace) const; /// string getKeys(char delim); /// @@ -143,10 +145,19 @@ public: /// bool delDatabase(string const &); /// - bool display() const { return true; } + bool display() const { return true; } + + struct Holder { + InsetBibtex * inset; + BufferView * view; + }; + private: /// mutable Buffer * owner; + + /// + Holder holder; }; #endif