[framework-features] new/SRC680 m82 : Preselection of OOo applications from command line

[email protected] Wed, 21 Sep 2005 13:21:29 +0200 (CEST)
Newsgroups gmane.comp.openoffice.announce.features
Message-ID <2776460.1127301689734.JavaMail.root@sd-web1>
Product
Application Framework

Type
new

Title
Preselection of OOo applications from command line

Posted by
[email protected]

Affected
-,

Effective from
SRC680 m82

API/ BASIC [x]
Configuration [ ]
File format change [ ]
Help/ Guide [ ]
Performance test [ ]
Translation [ ]
UI relevant [ ]

Description

Until now calling "soffice -calc" or "scalc" from the command line
could be used only for creating a new empty document. Adding a file
name to this command line ("soffice -calc foo.bar") resulted in two
windows, one with the empty Calc document, the other one with the file
opened in the default application for this file type.

There are two good reasons to change this:

(1) It is confusing.

(2) There are a lot of requests to open certain document types from
the desktop or the command line by an application different to the
default application OOo would chose for this file. Most often this
request is done for text files with arbitrary extensions (others than
csv) that should open in Calc.

Now soffice -calc foo.bar

will open foo.bar in Calc if possible. That means first OOo tries to
find a suitable Calc filter for the file and only if it doesn't find
any it proceeds as usual.

Of course this feature works for all applications (not only for Calc)
and on all platforms.

This feature can also be used for system integration, f.e. by
registering "scalc" as the default application for all files with
extension "bla". Then every doubleclick on a "bla" file will load it
into Calc (if possible, if not, OOo finds a suitable module).

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]