]> git.lyx.org Git - lyx.git/blobdiff - src/MenuBackend.cpp
Andre's s/getTextClass/textClass/ cleanup.
[lyx.git] / src / MenuBackend.cpp
index ceb071cf8f7443c063444c7b783b1685d5d501b9..05aa0b461de1e5833d62a5567ca3ff43d18f251b 100644 (file)
@@ -599,7 +599,7 @@ void expandFloatListInsert(Menu & tomenu, Buffer const * buf)
        }
 
        FloatList const & floats =
-               buf->params().getTextClass().floats();
+               buf->params().textClass().floats();
        FloatList::const_iterator cit = floats.begin();
        FloatList::const_iterator end = floats.end();
        for (; cit != end; ++cit) {
@@ -621,7 +621,7 @@ void expandFloatInsert(Menu & tomenu, Buffer const * buf)
        }
 
        FloatList const & floats =
-               buf->params().getTextClass().floats();
+               buf->params().textClass().floats();
        FloatList::const_iterator cit = floats.begin();
        FloatList::const_iterator end = floats.end();
        for (; cit != end; ++cit) {
@@ -642,13 +642,13 @@ void expandFlexInsert(Menu & tomenu, Buffer const * buf, string s)
                                    FuncRequest(LFUN_NOACTION)));
                return;
        }
-       InsetLayouts const & insetlayouts =
-               buf->params().getTextClass().insetlayouts();
-       InsetLayouts::const_iterator cit = insetlayouts.begin();
-       InsetLayouts::const_iterator end = insetlayouts.end();
+       InsetLayouts const & insetLayouts =
+               buf->params().textClass().insetLayouts();
+       InsetLayouts::const_iterator cit = insetLayouts.begin();
+       InsetLayouts::const_iterator end = insetLayouts.end();
        for (; cit != end; ++cit) {
                docstring const label = cit->first;
-               if (cit->second.lyxtype == s)
+               if (cit->second.lyxtype() == s)
                        tomenu.addWithStatusCheck(MenuItem(MenuItem::Command, 
                                label, FuncRequest(LFUN_FLEX_INSERT,
                                                label)));
@@ -743,7 +743,7 @@ void expandToc(Menu & tomenu, Buffer const * buf)
                tomenu.add(MenuItem(MenuItem::Command, _("Master Document"), f));
        }
 
-       FloatList const & floatlist = buf->params().getTextClass().floats();
+       FloatList const & floatlist = buf->params().textClass().floats();
        TocList const & toc_list = buf->tocBackend().tocs();
        TocList::const_iterator cit = toc_list.begin();
        TocList::const_iterator end = toc_list.end();