]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/Menubar_pimpl.C
Get rid of the static_casts.
[lyx.git] / src / frontends / qt2 / Menubar_pimpl.C
index 1747534dc27154f37fbe103a70aea5f6f93a7d49..517a4bdb516982dc9dea79f4d2cbeb5f4dd3a789 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file Menubar_pimpl.C
+ * \file qt2/Menubar_pimpl.C
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
 
 #include <config.h>
 
-#include <algorithm>
-
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "Menubar_pimpl.h"
 #include "MenuBackend.h"
@@ -25,7 +20,7 @@
 #include "FloatList.h"
 #include "support/lstrings.h"
 #include "support/LAssert.h"
-#include "gettext.h"
+#include "qt_helpers.h"
 #include "debug.h"
 
 #include "QtView.h"
@@ -34,6 +29,8 @@
 #include <qmenubar.h>
 #include <qcursor.h>
 
+#include <algorithm>
+
 using std::endl;
 using std::vector;
 using std::max;
@@ -41,6 +38,7 @@ using std::min;
 using std::for_each;
 using std::pair;
 
+
 Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
        : owner_(static_cast<QtView*>(view)), menubackend_(mbe)
 {
@@ -54,6 +52,10 @@ Menubar::Pimpl::Pimpl(LyXView * view, MenuBackend const & mbe)
 }
 
 
+Menubar::Pimpl::~Pimpl()
+{}
+
+
 void Menubar::Pimpl::openByName(string const & name)
 {
        NameMap::const_iterator const cit = name_map_.find(name);
@@ -63,3 +65,19 @@ void Menubar::Pimpl::openByName(string const & name)
        // this will have to do I'm afraid.
        cit->second->exec(QCursor::pos());
 }
+
+
+void Menubar::Pimpl::update()
+{}
+
+
+QtView * Menubar::Pimpl::view()
+{
+       return owner_;
+}
+
+
+MenuBackend const & Menubar::Pimpl::backend()
+{
+       return menubackend_;
+}