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