(Herbert): rather ugly hard-coded fix to hide some graphics formats from the

export menu and from the custom-export dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4085 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-04-29 09:50:34 +00:00
parent 030311739b
commit 3b9f84afb3
4 changed files with 25 additions and 2 deletions

View File

@ -3,6 +3,11 @@
* BufferView_pimpl.C (Dispatch): Check that float type exists when
inserting list of floats.
2002-04-25 Herbert Voss <voss@lyx.org>
* MenuBackend.C (expand): don't add the graphics extensions to the
export menu
2002-04-24 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* CutAndPaste.C (SwitchLayoutsBetweenClasses): when converting a

View File

@ -353,6 +353,15 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
if ((*fit)->dummy())
continue;
string label = (*fit)->prettyname();
// we need to hide the default graphic export
// formats from the external menu, because we
// need them only for the internal lyx-view and
// external latex run
if (label == "EPS" ||
label == "XPM" ||
label == "PNG")
continue;
if (cit->kind() == MenuItem::ImportFormats)
if ((*fit)->name() == "text")
label = _("Ascii text as lines");

View File

@ -1,3 +1,8 @@
2002-04-25 Herbert Voss <voss@lyx.org>
* ControlSendto.C (allFormats): don't add the graphics extensions to the
export menu
2002-04-22 Angus Leeming <a.leeming@ic.ac.uk>
* biblio.C (getAbbreviatedAuthor, getYear): Deal with sub-standard

View File

@ -70,9 +70,13 @@ vector<Format const *> const ControlSendto::allFormats() const
Formats::const_iterator fo_it = formats.begin();
Formats::const_iterator fo_end = formats.end();
for (; fo_it != fo_end; ++fo_it) {
if (converters.isReachable(*ex_it, fo_it->name())) {
// we need to hide the default graphic export formats
// from the external menu, because we need them only
// for the internal lyx-view and external latex run
string const name = fo_it->name();
if (name != "eps" && name != "xpm" && name != "png" &&
converters.isReachable(*ex_it, name))
to.push_back(&(*fo_it));
}
}
}