3 * John Levon, moz@compsoc.man.ac.uk
4 * Changed for Qt2 port by Kalle Dalheimer, kalle@klaralvdalens-datakonsult.se
7 /***************************************************************************
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
14 ***************************************************************************/
16 #ifndef FORMCITATION_H
17 #define FORMCITATION_H
19 #include "DialogBase.h"
20 #include "insets/insetcommand.h"
26 class FormCitationDialog;
30 class FormCitation : public DialogBase {
31 friend class FormCitationDialogImpl;
33 /**@name Constructors and Destructors */
36 FormCitation(LyXView *, Dialogs *);
50 /// Create the dialog if necessary, update it and display it.
54 /// Update the dialog.
57 void setBibButtons(State status) const;
58 void setCiteButtons(State status) const;
60 /// create a Citation inset
61 void createCitation(string const &);
62 /// edit a Citation inset
63 void showCitation(InsetCommand * const);
66 void updateBrowser( QListBox* listbox,
67 vector<string> const & keys) const;
69 /// Real GUI implementation.
70 FormCitationDialog * dialog_;
72 /// the LyXView we belong to
75 /** Which Dialogs do we belong to?
76 Used so we can get at the signals we have to connect to.
79 /// pointer to the inset if any
80 InsetCommand * inset_;
82 InsetCommandParams params;
83 /// is the inset we are reading from a readonly buffer ?
86 /// Inset hide connection.
89 std::vector<string> citekeys;
91 std::vector<string> bibkeys;
93 std::vector<string> bibkeysInfo;