}
-InsetBibKey::InsetBibKey(string const & key, string const & label)
- : InsetCommand("bibitem", key, label)
+InsetBibKey::InsetBibKey(InsetCommandParams const & p)
+ : InsetCommand(p)
{
counter = 1;
- if (key.empty())
- setCmdName(" ");
-}
-
-
-InsetBibKey::InsetBibKey(InsetBibKey const * b)
- : InsetCommand("bibitem", b->getContents(), b->getOptions())
-{
- counter = b->counter;
}
}
+Inset * InsetBibKey::Clone() const
+{
+ InsetBibKey * b = new InsetBibKey(params());
+ b->setCounter(counter);
+ return b;
+}
+
+
void InsetBibKey::callback( FD_bibitem_form * form, long data )
{
switch (data) {
}
-InsetBibtex::InsetBibtex(string const & dbase, string const & style,
- Buffer * o)
- : InsetCommand("BibTeX", dbase, style), owner(o)
+InsetBibtex::InsetBibtex(InsetCommandParams const & p, Buffer * o)
+ : InsetCommand(p), owner(o)
{}