1 // -*- C++ -*- 2 /** 3 * \file GuiBibitem.h 4 * This file is part of LyX, the document processor. 5 * Licence details can be found in the file COPYING. 6 * 7 * \author Angus Leeming 8 * \author John Levon 9 * 10 * Full author contact details are available in file CREDITS. 11 */ 12 13 #ifndef GUIBIBITEM_H 14 #define GUIBIBITEM_H 15 16 #include "InsetParamsWidget.h" 17 #include "ui_BibitemUi.h" 18 19 20 namespace lyx { 21 namespace frontend { 22 23 class GuiBibitem : public InsetParamsWidget, public Ui::BibitemUi 24 { 25 Q_OBJECT 26 27 public: 28 /// Constructor 29 GuiBibitem(QWidget * parent = 0); 30 31 private: 32 /// \name DialogView inherited methods 33 //@{ insetCode()34 InsetCode insetCode() const { return BIBITEM_CODE; } creationCode()35 FuncCode creationCode() const { return LFUN_INSET_INSERT; } dialogTitle()36 QString dialogTitle() const { return qt_("Bibliography Item Settings"); } 37 void paramsToDialog(Inset const *); 38 docstring dialogToParams() const; 39 bool checkWidgets(bool readonly) const; 40 //@} 41 }; 42 43 } // namespace frontend 44 } // namespace lyx 45 46 #endif // GUIBIBITEM_H 47