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.
15 #include "ToolbarBackend.h"
17 #include "LyXAction.h"
34 // extracts the toolbars from the backend
35 ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
36 ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
38 for (; cit != end; ++cit)
43 void Toolbar::update(bool in_math, bool in_table)
47 // extracts the toolbars from the backend
48 ToolbarBackend::Toolbars::const_iterator cit = toolbarbackend.begin();
49 ToolbarBackend::Toolbars::const_iterator end = toolbarbackend.end();
51 for (; cit != end; ++cit) {
52 if (cit->flags & ToolbarBackend::MATH)
53 displayToolbar(*cit, in_math);
54 else if (cit->flags & ToolbarBackend::TABLE)
55 displayToolbar(*cit, in_table);
60 void Toolbar::clearLayoutList()
66 bool Toolbar::updateLayoutList(int textclass)
68 // update the layout display
69 if (last_textclass_ != textclass) {
71 last_textclass_ = textclass;