]> git.lyx.org Git - lyx.git/blob - src/frontends/Toolbar.h
include sys/time.h
[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
16 #include "LString.h"
17
18 class LyXView;
19 class ToolbarDefaults;
20
21
22 /** The LyX GUI independent toolbar class
23   The GUI interface is implemented in the corresponding Toolbar_pimpl class.
24   */
25 class Toolbar {
26 public:
27         ///
28         Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &);
29
30         ///
31         ~Toolbar();
32
33         /// update the state of the icons
34         void update();
35
36         /// update the layout combox
37         void setLayout(string const & layout);
38         /**
39          * Populate the layout combox - returns whether we did a full
40          * update or not
41          */
42         bool updateLayoutList(int textclass);
43         /// Drop down the layout list
44         void openLayoutList();
45         /// Erase the layout list
46         void clearLayoutList();
47
48         /// Compaq cxx 6.5 requires this to be public
49         struct Pimpl;
50 private:
51         ///
52         friend struct Toolbar::Pimpl;
53         ///
54         Pimpl * pimpl_;
55
56         /**
57          * The last textclass layout list in the layout choice selector
58          */
59         int last_textclass_;
60 };
61 #endif