]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Toolbar.C
remove preamble dialog from the qt frontend
[lyx.git] / src / frontends / Toolbar.C
index fa2d0e5a4c01d7d16e58af7127cb85c914266b67..23ae93d25aecd2936ac7e32921c361ebacb11315 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file Toolbar.C
- * Copyright 1995-2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes <larsbj@lyx.org>
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
 using std::endl;
 
-extern LyXAction lyxaction;
-
-
-Toolbar::Toolbar(LyXView * o, Dialogs & d,
-                int x, int y, ToolbarDefaults const &tbd)
+Toolbar::Toolbar(LyXView * o, int x, int y, ToolbarDefaults const &tbd)
        : last_textclass_(-1)
 {
-       pimpl_ = new Pimpl(o, d, x, y);
-
-       pimpl_->reset();
+       pimpl_ = new Pimpl(o, x, y);
 
        // extracts the toolbar actions from tbd
        for (ToolbarDefaults::const_iterator cit = tbd.begin();
             cit != tbd.end(); ++cit) {
                pimpl_->add((*cit));
-               lyxerr[Debug::GUI] << "tool action: "
-                                      << (*cit) << endl;
+               lyxerr[Debug::GUI] << "tool action: " << (*cit) << endl;
        }
 }
 
@@ -47,12 +42,6 @@ Toolbar::~Toolbar()
 }
 
 
-void Toolbar::set(bool doingmain)
-{
-       pimpl_->set(doingmain);
-}
-
-
 void Toolbar::update()
 {
        pimpl_->update();
@@ -90,22 +79,3 @@ void Toolbar::clearLayoutList()
 {
        pimpl_->clearLayoutList();
 }
-
-
-void Toolbar::push(int nth)
-{
-       pimpl_->push(nth);
-}
-
-
-void Toolbar::add(string const & func, bool doclean)
-{
-       int const tf = lyxaction.LookupFunc(func);
-
-       if (tf == -1) {
-               lyxerr << "Toolbar::add: no LyX command called`"
-                      << func << "'exists!" << endl;
-       } else {
-               pimpl_->add(tf, doclean);
-       }
-}