Document>Settings>Output.
It turns out that we always want this list to be sorted when we get it,
so we can sort it in BufferParams rather than in three different places.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40102
a592a061-630c-0410-9148-
cb99ea01b6c8
}
+namespace {
+bool formatSorter(Format const * lhs, Format const * rhs) {
+ return _(lhs->prettyname()) < _(rhs->prettyname());
+}
+}
+
+
vector<Format const *> BufferParams::exportableFormats(bool only_viewable) const
{
vector<string> const backs = backends();
theConverters().getReachable(*it, only_viewable, false, excludes);
result.insert(result.end(), r.begin(), r.end());
}
+ sort(result.begin(), result.end(), formatSorter);
return result;
}
}
-namespace {
-bool formatSorter(Format const * lhs, Format const * rhs) {
- return _(lhs->prettyname()) < _(rhs->prettyname());
-}
-} // end namespace
-
-
void GuiSendTo::updateContents()
{
all_formats_ = buffer().params().exportableFormats(false);
- sort(all_formats_.begin(), all_formats_.end(), formatSorter);
-
// Save the current selection if any
Format const * current_format = 0;
int const line = formatLW->currentRow();
}
-bool compareFormat(Format const * p1, Format const * p2)
-{
- return *p1 < *p2;
-}
-
-
QString limitStringLength(docstring const & str)
{
size_t const max_item_length = 45;
formats = buf->params().exportableFormats(false);
action = LFUN_BUFFER_EXPORT;
}
- sort(formats.begin(), formats.end(), &compareFormat);
bool const view_update = (kind == MenuItem::ViewFormats
|| kind == MenuItem::UpdateFormats);
- Fix change of language of selected text with context menu (bug 7778).
+- Sort formats under Document>Settings>Output (bug 7758).
+
* ADVANCED FIND AND REPLACE