// -*- C++ -*- /** * \file QCitation.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Angus Leeming * \author Kalle Dalheimer * \author Abdelrazak Younes * * Full author contact details are available in file CREDITS. */ #ifndef QCITATION_H #define QCITATION_H #include "frontends/controllers/ControlCitation.h" #include "support/docstring.h" #include #include namespace lyx { namespace frontend { class QCitation : public ControlCitation { public: /// QCitation(Dialog &); virtual ~QCitation() {} virtual bool initialiseParams(std::string const & data); /// void init(); /// Available keys QStringListModel * available() { return &available_model_; } /// Selected keys QStringListModel * selected() { return &selected_model_; } /// Text before cite QString textBefore(); /// Text after cite QString textAfter(); /// Get key description QString getKeyInfo(QString const &); /// Clear selected keys void clearSelection(); /// Return a list of available fields QStringList getFieldsAsQStringList(); /// Return a list of available fields QStringList getEntriesAsQStringList(); /// Find keys containing a string. void findKey( QString const & str, //< string expression bool only_keys, //< set to true if only keys shall be searched. docstring field, //