[prev in list] [next in list] [prev in thread] [next in thread]
List: klyx
Subject: Re: Problem with 'Print to file' ???
From: Doug Rabson <dfr () calcaphon ! com>
Date: 1998-12-11 12:35:12
[Download RAW message or body]
On Mon, 17 Jan 2135, Jochen Kuepper wrote:
> On Don, 10 Dez 1998 Doug Rabson wrote:
>
> >This patch fixes it:
> >
> >--- lyx_cb.C~ Mon Sep 28 16:56:03 1998
> >+++ lyx_cb.C Thu Dec 10 12:36:08 1998
> >@@ -2721,7 +2721,7 @@
> > if( klyxprinter->setup() ) {
> > #endif
> > config->setGroup( "Printer" );
> >- config->writeEntry( "FileOutput", (const char*) klyxprinter->outputToFile() );
> >+ config->writeEntry( "FileOutput", klyxprinter->outputToFile() ? "true" : "false" );
> > config->writeEntry( "PrintProgram", (const char*) klyxprinter->printProgram() );
> > config->writeEntry( "Printer", (const char*) klyxprinter->printerName() );
> > config->writeEntry( "Orientation", (const char*) klyxprinter->orientation() );
>
> Well,
> klyxprinter->outputToFile() returns a bool, writeEntry is overloaded to take a
> bool for it's second argument in one implementation, so it should work to use
>
> config->writeEntry( "FileOutput", klyxprinter->outputToFile() );
>
> That is actually in the cvs sources !
> ( We are reading back by readBoolEntry( ... ) :-)
I think that klyx should mention that it is only compatible with the KDE
1.1 sources then. For it to work with 1.0, then it needs to pass a string
to writeEntry().
--
Doug Rabson Mail: dfr@calcaphon.com
Phone: +44 171 289 4201
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic