X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcite.C;h=8bd95bfdbea5f73c6cad53c8bd0767386521126c;hb=6ce86e2bfe0a403e0e811b66fdddb2d56cfe0f83;hp=24f2b12325c7c4d2895b04ca4d32d7ead95bdb8a;hpb=53274e31ec1cc715c0b48921ee67818790c2e99a;p=lyx.git diff --git a/src/insets/insetcite.C b/src/insets/insetcite.C index 24f2b12325..8bd95bfdbe 100644 --- a/src/insets/insetcite.C +++ b/src/insets/insetcite.C @@ -11,27 +11,14 @@ #include -#ifdef __GNUG__ -#pragma implementation -#endif - #include "insetcite.h" #include "buffer.h" #include "BufferView.h" #include "LaTeXFeatures.h" -#include "frontends/LyXView.h" -#include "debug.h" -#include "gettext.h" #include "frontends/controllers/biblio.h" -#include "frontends/Dialogs.h" -#include "support/filetools.h" #include "support/lstrings.h" -#include "support/path.h" -#include "support/os.h" -#include "support/lstrings.h" -#include "support/LAssert.h" #include @@ -69,7 +56,8 @@ string const getNatbibLabel(Buffer const * buffer, if (loadkeys) { // build the keylist typedef vector > InfoType; - InfoType bibkeys = buffer->getBibkeyList(); + InfoType bibkeys; + buffer->fillWithBibKeys(bibkeys); InfoType::const_iterator bit = bibkeys.begin(); InfoType::const_iterator bend = bibkeys.end(); @@ -237,6 +225,13 @@ InsetCitation::InsetCitation(InsetCommandParams const & p, bool) {} +InsetCitation::~InsetCitation() +{ + InsetCommandMailer mailer("citation", *this); + mailer.hideDialog(); +} + + string const InsetCitation::generateLabel(Buffer const * buffer) const { string const before = string(); @@ -328,7 +323,8 @@ void InsetCitation::edit(BufferView * bv, int, int, mouse_button::state) // buffer but doing some real work. setLoadingBuffer(bv->buffer(), false); - bv->owner()->getDialogs().showCitation(this); + InsetCommandMailer mailer("citation", *this); + mailer.showDialog(bv); }