Angus Leeming wrote: > On Wednesday 09 October 2002 10:12 am, Rob Lahaye wrote: > >>Angus Leeming wrote: >> >>>On Wednesday 09 October 2002 9:28 am, Jean-Marc Lasgouttes >> > wrote: > >>>>Unfortunately, there is a lot of hardcoded stuff in >>>>dvips/xdvi support. It would be nice to get rid of it, but >>>>I am not sure how to do it. >>> >>>Well the obvious way to accommodate this is to drop direct >>>support for dvips/xdvi completely. >>> >>>Instead support an external LyX script that can interpret >>>these hard-coded options in the source code for whichever >>>dvi converter/viewer the user desires. >> >>Does that also mean to forget about Allan's "comma/-" direct >>input to From/To fields: > > > No, it was a recommendation that you should not worry too much > about what happens to the data after "Apply" is pressed. You are > implementing a user interface to a print dialog, so make it > logical and intuitive and powerful. If commas and dashes add to > the power, then use them. > > What we do with these PrinterParams is no business of the View. > It's the Controller's business. > > You have mentioned that the controller is effectively assuming > that this data is to be used by dvips. So be it, for the time > being.
Well, actually, it's not only in the controller, but configurable in the preferences (Preferences->Outputs->Printer), which makes it a GUI issue, doesn't it? Yes, eventually the preferences settings are one or the other way used in the controller (eh, if src/frontends/Lianson.C is considered to be a controller!?!?) The point I made was that preferences suggests that the printer output command is highly configurable, but the print dialog request by Allen is totally biased to dvips command! If his proposal should be coded, then we should decided to let just anything go into the From/To fields. My own print output command "robs_dvi_to_ps", for example, may accept even funnier page selections than only commas and dashes :). Rob. PS: Argh, this is not that of an important issue. It's only that I have modified the printer dialog & code, and I now want to get it right in my tree here, so that everyone says "wooow" when my patch merges with CVS ;).