On Wednesday 09 October 2002 11:24 am, Rob Lahaye wrote:
> 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? 

Not if you scrub this lyxrc variable (having written a default 
script to invoke dvips of course).

> 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!?!?)

It's invoked by the controller. Indeed, it should probably be 
moved into the controller. It's certainly hidden from the view.

> 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 :).

You're trying to write a useable app. If, in the process, you 
can make it configurable then well and good. Think "benvolent 
dictatorship" where the dictator is the group of coders willing 
to do something other than whine ;-)

Or write a filter that will prevent ridiculous input:

int fl_print_filter(FL_OBJECT *, char const *, char const *, int c)
{
        if (c == 0 || strchr("0123456789,-", c))
                return FL_VALID;
        return FL_INVALID|FL_RINGBELL;
}

> 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 ;).

;-)

A

Reply via email to