]> git.lyx.org Git - lyx.git/blob - src/frontends/Toolbar.h
remove preamble dialog from the qt frontend
[lyx.git] / src / frontends / Toolbar.h
1 // -*- C++ -*-
2 /**
3  * \file Toolbar.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef TOOLBAR_H
13 #define TOOLBAR_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "LString.h"
20
21 class LyXView;
22 class ToolbarDefaults;
23
24
25 /** The LyX GUI independent toolbar class
26   The GUI interface is implemented in the corresponding Toolbar_pimpl class.
27   */
28 class Toolbar {
29 public:
30         ///
31         Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
32
33         ///
34         ~Toolbar();
35
36         /// update the state of the icons
37         void update();
38
39         /// update the layout combox
40         void setLayout(string const & layout);
41         /**
42          * Populate the layout combox - returns whether we did a full
43          * update or not
44          */
45         bool updateLayoutList(int textclass);
46         /// Drop down the layout list
47         void openLayoutList();
48         /// Erase the layout list
49         void clearLayoutList();
50
51         /// Compaq cxx 6.5 requires this to be public
52         struct Pimpl;
53 private:
54         ///
55         friend struct Toolbar::Pimpl;
56         ///
57         Pimpl * pimpl_;
58
59         /**
60          * The last textclass layout list in the layout choice selector
61          */
62         int last_textclass_;
63 };
64 #endif