3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
16 #include "LyXAction.h"
17 #include "ToolbarBackend.h"
33 // extracts the toolbars from the backend
34 ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
35 ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
37 for (; cit != end; ++cit)
42 void Toolbar::update(bool in_math, bool in_table)
46 // extracts the toolbars from the backend
47 ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
48 ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
50 for (; cit != end; ++cit) {
51 if (cit->flags & ToolbarBackend::MATH)
52 displayToolbar(*cit, in_math);
53 else if (cit->flags & ToolbarBackend::TABLE)
54 displayToolbar(*cit, in_table);
59 void Toolbar::clearLayoutList()
65 bool Toolbar::updateLayoutList(int textclass)
67 // update the layout display
68 if (last_textclass_ != textclass) {
70 last_textclass_ = textclass;