4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
8 * \author Kalle Dalheimer
10 * Full author contact details are available in file CREDITS.
16 #include "ControlCitation.h"
18 #include <QStringListModel>
23 class QCitation : public ControlCitation
29 QStringListModel * available() { return &available_keys_; }
32 QStringListModel * selected() { return &selected_keys_; }
35 QStringListModel * found() { return &found_keys_; }
43 /// Get key description
44 QString getKeyInfo(QString const &);
46 /// Clear selected keys
47 void clearSelection();
49 /// Find keys containing the string (not case-sens)
50 void findKey(QString const &);
52 /// Add key to selected keys
53 void addKey(QModelIndex const &);
55 /// Delete key from selected keys
56 void deleteKey(QModelIndex const &);
58 /// Move selected key one place up
59 void upKey(QModelIndex const &);
61 /// Move selected key one place down
62 void downKey(QModelIndex const &);
64 /// List of example cite strings
65 QStringList citationStyles(int);
67 /// Set the Params variable for the Controller.
68 virtual void apply(int const choice, bool const full, bool const force,
69 QString before, QString after);
71 /// Update dialog before/whilst showing it.
72 virtual void updateModel();
76 QStringListModel available_keys_;
79 QStringListModel selected_keys_;
82 QStringListModel found_keys_;
86 } // namespace frontend