All of lore.kernel.org
 help / color / mirror / Atom feed
From: Till Kamppeter <till.kamppeter@gmail.com>
To: Svilen Kanev <mighty.frost@gmail.com>
Cc: printing-architecture@lists.linux-foundation.org
Subject: Re: [Printing-architecture] GSoC 09: Modifying applications to use the new printing dialog
Date: Fri, 27 Mar 2009 10:44:32 +0100	[thread overview]
Message-ID: <49CCA000.2020908@gmail.com> (raw)
In-Reply-To: <1238145837.5930.37.camel@chimera>

Lars Uebernickel wrote:
> I am currently working on getting support for the dialog into GTK/Qt
> themselves. This means that applications might be able to use it right
> away. I hope this will be the preferred way for applications to use the
> dialog (via their toolkit, not an external dependency).
> 
> However, many applications (e.g. GIMP, Firefox) provide custom widgets
> for the dialog, which set application specific options (e.g. the
> "options" Tab in Firefox). Naturally, this doesn't work over D-Bus ...
> Therefore, we have a way for applications to send option specifications
> (such as the name, type, default value of the option) over the bus to
> the common printing dialog. So they would have to be modified in such a
> way that they do not make use of the 'custom widget' feature anymore and
> send their options another way.
> 
> Hence, these applications can all continue to use the GTK dialog API
> (which might be a bit extended). This reduces the amount of work done
> per application substantially.
> 
> IIRC, evince does not have any extra options, so it can continue using
> the GTK API. But a similar simple project for you to start on could be
> gedit. It too uses the GTK printing API, but it enhances it with custom
> options such as printing syntax highlighting and enabling line numbers.
>

Another potential reason for needing to patch applications is the live 
preview. The dialog could request a new preview from the app if certain 
option settings are changed. It should also request the preview only for 
selected pages to save resources on big documents.

>> - Open Office uses its own printing dialog that looks much like the 
>> Windows one. In fact, most of the printing settings are hidden under 
>> another dialog, called "Printing Options". Both dialogs are supposed to 
>> be platform-independent, i.e. there is only one implementation for all 
>> environments. The actual code mixes GUI and data members in one class 
>> per dialog. All this means it will be harder to use the new dialog 
>> without breaking the platform independence and would require some 
>> restructuring of the current code. A possible approach would be to 
>> abstract away the different implementations that will be created with 
>> interfaces and choose an implementation based on the target platform (or 
>> for example, based on whether cpdapi is running).
> 
> Yes, OO.o will probably be the hardest to patch. I would definitely not
> start with it, but as Till already said, it has a high priority.
>

The Red Hat/Fedora packages of OpenOffice.org have patches to use the 
GTK printing dialog. Perhaps one could base the changes on these 
patches, or the patches show at least ehre changes in OOo are needed to 
replace the printing dialog.

    Till


  reply	other threads:[~2009-03-27  9:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-27  7:48 [Printing-architecture] GSoC 09: Modifying applications to use the new printing dialog Svilen Kanev
2009-03-27  9:23 ` Lars Uebernickel
2009-03-27  9:44   ` Till Kamppeter [this message]
2009-03-27 15:08     ` Svilen Kanev

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=49CCA000.2020908@gmail.com \
    --to=till.kamppeter@gmail.com \
    --cc=mighty.frost@gmail.com \
    --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.