]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QSendto.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QSendto.h
1 // -*- C++ -*-
2 /**
3  * \file QSendto.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QSENDTO_H
13 #define QSENDTO_H
14
15 #include "QDialogView.h"
16
17 #include <vector>
18
19 class Format;
20
21 namespace lyx {
22 namespace frontend {
23
24 class ControlSendto;
25 class QSendtoDialog;
26
27 /** This class provides a Qt implementation of the Custom Export Dialog.
28  */
29 class QSendto
30         : public QController<ControlSendto, QView<QSendtoDialog> >
31 {
32 public:
33         ///
34         friend class QSendtoDialog;
35         ///
36         QSendto(Dialog &);
37 protected:
38         virtual bool isValid();
39 private:
40         /// Apply from dialog
41         virtual void apply();
42         /// Update the dialog
43         virtual void update_contents();
44         /// Build the dialog
45         virtual void build_dialog();
46         ///
47         std::vector<Format const *> all_formats_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // QSENDTO_H