]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.C
Move #includes out of header files.
[lyx.git] / src / MenuBackend.C
index d5c1214887f09b7c30fc24ccb64f331faa8b693b..1a25d7188fb770eaeedfba7b822e0ab209dda83b 100644 (file)
@@ -29,6 +29,7 @@
 #include "format.h"
 #include "exporter.h"
 #include "importer.h"
+#include "Floating.h"
 #include "FloatList.h"
 #include "toc.h"
 #include "CutAndPaste.h"
@@ -440,15 +441,15 @@ void expandFormats(MenuItem::Kind kind, Menu & tomenu, LyXView const * view)
                action = LFUN_IMPORT;
                break;
        case MenuItem::ViewFormats:
-               formats = Exporter::GetExportableFormats(view->buffer(), true);
+               formats = Exporter::GetExportableFormats(*view->buffer(), true);
                action = LFUN_PREVIEW;
                break;
        case MenuItem::UpdateFormats:
-               formats = Exporter::GetExportableFormats(view->buffer(), true);
+               formats = Exporter::GetExportableFormats(*view->buffer(), true);
                action = LFUN_UPDATE;
                break;
        default:
-               formats = Exporter::GetExportableFormats(view->buffer(), false);
+               formats = Exporter::GetExportableFormats(*view->buffer(), false);
                action = LFUN_EXPORT;
        }
        sort(formats.begin(), formats.end(), compare_format());
@@ -594,7 +595,7 @@ void expandToc(Menu & tomenu, LyXView const * view)
                return;
        }
 
-       lyx::toc::TocList toc_list = lyx::toc::getTocList(view->buffer());
+       lyx::toc::TocList toc_list = lyx::toc::getTocList(*view->buffer());
        lyx::toc::TocList::const_iterator cit = toc_list.begin();
        lyx::toc::TocList::const_iterator end = toc_list.end();
        for (; cit != end; ++cit) {
@@ -658,7 +659,7 @@ void expandBranches(Menu & tomenu, LyXView const * view)
 
        std::list<Branch>::const_iterator cit = params.branchlist.begin();
        std::list<Branch>::const_iterator end = params.branchlist.end();
-       
+
        for (int ii = 1; cit != end; ++cit, ++ii) {
                string label = cit->getBranch();
                int const action = lyxaction.