#include "Buffer.h"
#include "BufferView.h"
#include "BufferParams.h"
-#include "support/debug.h"
#include "FloatList.h"
#include "FuncRequest.h"
-#include "support/gettext.h"
#include "TextClass.h"
#include "support/convert.h"
+#include "support/debug.h"
+#include "support/gettext.h"
#include <algorithm>
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_);
}
if (type < 0)
return QModelIndex();
- // FIXME: The TocBackend infrastructure is not ready for LOF and LOT
- // This is because a proper ParConstIterator is not constructed in
- // InsetCaption::addToToc()
- if(!canOutline(type))
- return QModelIndex();
-
return toc_models_[type]->modelIndex(currentTocItem(type));
}
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().getTextClass().floats();
+ FloatList const & floats = buffer().params().documentClass().floats();
if (floats.typeExist(type))
return _(floats.getType(type).listName());