]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiToc.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiToc.cpp
index 3dd5ea1b2e55b1f98557f0894a523d2808e1b8b3..43485fa320c1c66494eb14b799a3a63ecc560146 100644 (file)
@@ -43,7 +43,7 @@ namespace frontend {
 GuiToc::GuiToc(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags)
        : DockView(parent, "toc", qt_("Outline"), area, flags)
 {
-       widget_ = new TocWidget(*this);
+       widget_ = new TocWidget(*this, &parent);
        setWidget(widget_);
 }
 
@@ -233,10 +233,12 @@ docstring GuiToc::guiName(string const & type) const
                return _("List of Marginal notes");
        if (type == "note")
                return _("List of Notes");
+       if (type == "citation")
+               return _("List of Citations");
        if (type == "label")
                return _("Labels and References");
 
-       FloatList const & floats = buffer().params().textClass().floats();
+       FloatList const & floats = buffer().params().documentClass().floats();
        if (floats.typeExist(type))
                return _(floats.getType(type).listName());