3 * Read the file COPYING
5 * \author Lars Gullik Bjønnes
7 * Full author contact details are available in file CREDITS
13 #pragma implementation "Toolbar.h"
17 #include "ToolbarDefaults.h"
18 #include "Toolbar_pimpl.h"
20 #include "LyXAction.h"
24 Toolbar::Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &tbd)
27 pimpl_ = new Pimpl(o, x, y);
29 // extracts the toolbar actions from tbd
30 for (ToolbarDefaults::const_iterator cit = tbd.begin();
31 cit != tbd.end(); ++cit) {
33 lyxerr[Debug::GUI] << "tool action: " << (*cit) << endl;
44 void Toolbar::update()
51 void Toolbar::setLayout(string const & layout)
53 pimpl_->setLayout(layout);
57 bool Toolbar::updateLayoutList(int textclass)
59 // update the layout display
60 if (last_textclass_ != textclass) {
61 pimpl_->updateLayoutList(true);
62 last_textclass_ = textclass;
65 pimpl_->updateLayoutList(false);
71 void Toolbar::openLayoutList()
73 pimpl_->openLayoutList();
77 void Toolbar::clearLayoutList()
79 pimpl_->clearLayoutList();