From: Lars Uebernickel <larsuebernickel@gmx.de>
To: printing-architecture@lists.linux-foundation.org
Subject: Re: [Printing-architecture] Coding the Common Printing Dialog and its interface
Date: Thu, 01 May 2008 19:51:03 +0200 [thread overview]
Message-ID: <481A0307.6040504@gmx.de> (raw)
In-Reply-To: <4819F84F.40501@gmail.com>
Till Kamppeter wrote:
> Lars Uebernickel wrote:
>> Till Kamppeter wrote:
>>>> 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.
>
> Support both possibilities in a switchable way. Let application
> developers choose between option saving/remembering per
>
> - Document file (saved in document file)
> - Document (saved in personal config directory of the dialog)
> - Application (saved in personal config directory of the dialog)
> - Globally per user (saved in ~/.cups/lpoptions)
>
> Only in the first case option settings which are not
> application-specific have to be reported back to the application.
What I was suggesting with (2), is that there is no need for
applications to switch between those possibilities at all. Everything
would be handled transparently.
The dialog would _always_ store all options for the documents and
applications. Applications like OpenOffice, which save the options in
the documents themselves, would just overwrite the stored settings,
because their settings would be applied after the stored ones.
This way, we'd simplify the API, reducing the amount of work for
application developers. Also, users could choose themselves whether they
want options stored for applications/documents (IMHO, this shouldn't be
decided by the applications anyway). They could even set standard
options for specific applications or specific types of documents (eg. by
mime type).
Lars
next prev parent reply other threads:[~2008-05-01 17:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-24 21:54 [Printing-architecture] Coding the Common Printing Dialog and its interface Till Kamppeter
2008-04-25 1:19 ` Marcelo Ricardo Leitner
2008-04-25 11:51 ` Till Kamppeter
2008-04-25 23:07 ` Marcelo Ricardo Leitner
2008-04-27 11:05 ` Till Kamppeter
2008-05-01 15:46 ` Lars Uebernickel
2008-05-01 17:05 ` Till Kamppeter
2008-05-01 17:51 ` Lars Uebernickel [this message]
2008-05-01 17:59 ` Till Kamppeter
2008-04-30 18:33 ` Till Kamppeter
2008-04-30 20:12 ` Alex Wauck
2008-04-30 20:40 ` Till Kamppeter
2008-05-01 15:44 ` Alex Wauck
2008-05-01 16:58 ` Till Kamppeter
2008-05-01 23:48 ` Olaf Meeuwissen
2008-05-02 3:17 ` Alex Wauck
2008-05-02 5:59 ` Olaf Meeuwissen
2008-05-04 11:06 ` peter sikking
2008-05-05 6:17 ` Josef Spillner
2008-05-01 16:33 ` Lars Uebernickel
2008-05-01 17:57 ` Till Kamppeter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=481A0307.6040504@gmx.de \
--to=larsuebernickel@gmx.de \
--cc=printing-architecture@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.