[Printing-architecture] Coding the Common Printing Dialog and its interface

Lars Uebernickel larsuebernickel at gmx.de
Thu May 1 08:46:20 PDT 2008


Till Kamppeter wrote:
> Marcelo Ricardo Leitner wrote:
>> Ok, I've no idea how each app converts its data to the print job, but is
>> that really possible? I mean, rendering page 3 on a browser wouldn't
>> require pages 1 and 2 be rendered first? Again, no idea here, but the
>> idea sounds interesting if possible.
>>
> 
> Such applications will have to rerender the whole document, but many 
> other do not, like OpenOffice.org, Scribus, photo management software, 
> ... This is no big problem, as wep pages are not so long and also not 
> very complex to render, whereas a document in OOo can have several 
> hundred pages, many fonts, vector-drawn pictures, ...
> 
>>
>> In this case, storing the configs along with the dialog would be enough,
>> as it would be cross-referenced against printer queue and application
>> being used.
>>
>> You are right, perhaps the application would want to store it matching
>> against the document being printed. But that could be handled by the
>> dialog too, it would just be another field or even a matter of defining
>> a format for that domain name I talked about, "app[/doc hash]"..
> 
> OpenOffice.org saves printing settings (selected print queue and option 
> settings) in its documents. To not require OOo to change the feature 
> with the introduction of the Common Printing Dialog we should support 
> this in our interface between application and dialog.

I see two possibilities for this problem:

(1) Applications can enable/disable the saving of the printing options 
via the dialog API. This would mean that OpenOffice can keep its own per 
document settings and other applications can take advantage of the 
dialogs capabilities for that. But, they need to explicitly tell the 
dialog to do so.

(2) Options are always saved on a per application/document basis by the 
dialog. The saved options are applied _before_ any application settings 
take place. The application will not be notified. Afterwards, the 
application sets its own settings, effectively overwriting the saved 
ones. So OpenOffice's per document options would still work, and all 
other applications would gain the same feature transparently. It would 
also keep the API cleaner.



More information about the Printing-architecture mailing list