else if ((*fit)->name() == "textparagraph")
label = _("Plain Text as Paragraphs");
label += "...";
+ } else if (kind == MenuItem::ExportFormats) {
+ // exporting to LyX does not make sense
+ // FIXME: Introduce noexport flag
+ if ((*fit)->name() == "lyx")
+ continue;
}
if (!(*fit)->shortcut().empty())
label += '|' + (*fit)->shortcut();
if (!view || !view->buffer())
return;
- BufferParams const & params = view->buffer()->params();
+ BufferParams const & params = view->buffer()->getMasterBuffer()->params();
- std::list<Branch>::const_iterator cit = params.branchlist().begin();
- std::list<Branch>::const_iterator end = params.branchlist().end();
+ BranchList::const_iterator cit = params.branchlist().begin();
+ BranchList::const_iterator end = params.branchlist().end();
for (int ii = 1; cit != end; ++cit, ++ii) {
string label = cit->getBranch();