]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GSendto.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GSendto.h
1 // -*- C++ -*-
2 /**
3  * \file GSendto.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 Spray
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GSENDTO_H
13 #define GSENDTO_H
14
15 #include "GViewBase.h"
16 #include <vector>
17
18 class Format;
19
20 namespace lyx {
21 namespace frontend {
22
23 class ControlSendto;
24
25 /** This class provides a GTK+ implementation of the Sendto Dialog.
26  */
27 class GSendto : public GViewCB<ControlSendto, GViewGladeB> {
28 public:
29         GSendto(Dialog & parent);
30 private:
31         virtual void apply();
32         virtual void doBuild();
33         virtual void update();
34
35         Gtk::TreeModelColumn<Glib::ustring> stringcol_;
36         Gtk::TreeModelColumn<unsigned int> indexcol_;
37         Gtk::TreeModel::ColumnRecord cols_;
38         Glib::RefPtr<Gtk::ListStore> formatstore_;
39
40         Gtk::TreeView * formatview_;
41         Gtk::Entry * commandentry_;
42
43         std::vector<Format const *> all_formats_;
44
45         void onCommandEntryChanged();
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // GSENDTO_H