]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbar.C
implement getLabelList
[lyx.git] / src / frontends / Toolbar.C
index dc2b46b5aba437e47039cf1aa86d06ac8f589e05..37ebc67a54ba5bf6ba15b3e64e72136281841f27 100644 (file)
@@ -44,6 +44,7 @@ Toolbar::Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &tbd)
        }
 }
 
+
 Toolbar::~Toolbar()
 {
        delete pimpl_;
@@ -67,23 +68,27 @@ void Toolbar::deactivate()
        pimpl_->deactivate();
 }
 
+
 void Toolbar::update()
 {
        pimpl_->update();
 }
 
 
-void Toolbar::setLayout(int layout) {
+void Toolbar::setLayout(int layout)
+{
        pimpl_->setLayout(layout);
 }
 
 
-void Toolbar::updateLayoutList(bool force) {
+void Toolbar::updateLayoutList(bool force)
+{
        pimpl_->updateLayoutList(force);
 }
 
                
-void Toolbar::openLayoutList() {
+void Toolbar::openLayoutList()
+{
        pimpl_->openLayoutList();
 }
 
@@ -96,12 +101,13 @@ void Toolbar::clearLayoutList()
 
 void Toolbar::push(int nth)
 {
-       pimpl_->push(nth);}
+       pimpl_->push(nth);
+}
 
 
 void Toolbar::add(string const & func, bool doclean)
 {
-       int tf = lyxaction.LookupFunc(func);
+       int const tf = lyxaction.LookupFunc(func);
 
        if (tf == -1) {
                lyxerr << "Toolbar::add: no LyX command called`"
@@ -110,5 +116,3 @@ void Toolbar::add(string const & func, bool doclean)
                pimpl_->add(tf, doclean);
        }
 }
-
-