]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QBibitem.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QBibitem.h
1 // -*- C++ -*-
2 /**
3  * \file QBibitem.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QBIBITEM_CONTROLLER_H
13 #define QBIBITEM_CONTROLLER_H
14
15 #include "QDialogView.h"
16
17 namespace lyx {
18 namespace frontend {
19
20 class ControlCommand;
21 class QBibitemDialog;
22
23 class QBibitem
24         : public QController<ControlCommand, QView<QBibitemDialog> >
25 {
26 public:
27         friend class QBibitemDialog;
28
29         QBibitem(Dialog &);
30
31 protected:
32         virtual bool isValid();
33 private:
34         /// Apply changes
35         virtual void apply();
36         /// update
37         virtual void update_contents();
38         /// build the dialog
39         virtual void build_dialog();
40 };
41
42 } // namespace frontend
43 } // namespace lyx
44
45 #endif // QBIBITEM_H