Nikos Alexandris  schrieb:
> On Wed, 2008-10-01 at 08:58 +0200, Manveru wrote:
>> 2008/10/1 Nikos Alexandris:

>> > I was wondering if the View/Update buttons could be "shrinked" 
...
>> > first action is to "View" and if the [pdf] document is open then
>> > second (re-)action should be "Update),
...

>> I do not see clear mechanism for checking whether document generated
>> is opened (window were not closed) or not. Certainly there could be an
>> option to retrigger "View" action with shift key for example... but I
>> think this would not be obvious for beginners.

> My idea was based on the fact that the Update function exists. I mean,
> if update is executed it does look for a specific created/open pdf
> document? Doesn't it? 

"Update" creates a new version of the output file in a temporary
directory (overwriting an earlier version if this exists).
  May viewers will automatically update the view of the file, others
might require user interaction to redraw or re-read.

"View" does additionally call a format specific viewer (customizable
under Tools>Settings>...>Formats )

> So why not put a "check" in the View function and if the document is
> already open then update-it, if not create it :-)

The way to go would (IMO) be a script that checks if the given file is
already open in a viewer and either

* call the viewer with the file, or
* force the viewer to re-read the file

Setting this script as "view" commando for the "format", will enable a
view/update functionality with the existing "view"
function/button/keybinding.

Günter

Reply via email to