Difference between revisions of "Framework/Article/Command Line Arguments"
From Apache OpenOffice Wiki
(→Command line arguments) |
(→Command line arguments) |
||
Line 18: | Line 18: | ||
| '''-calc''' | | '''-calc''' | ||
| Creates a new spredsheet document. | | Creates a new spredsheet document. | ||
+ | |- | ||
+ | | '''-display <display>''' | ||
+ | | Specifies X-display to use in Unix/X11 versions. | ||
|- | |- | ||
| '''-draw''' | | '''-draw''' | ||
Line 30: | Line 33: | ||
| '''-help/-h/-?''' | | '''-help/-h/-?''' | ||
| Shows a small message box with information about the arguments (Windows) or outputs it to stdout. | | Shows a small message box with information about the arguments (Windows) or outputs it to stdout. | ||
+ | |- | ||
+ | | '''-impress''' | ||
+ | | Creates a new presentation document. | ||
|- | |- | ||
| '''-invisible''' | | '''-invisible''' | ||
Line 36: | Line 42: | ||
| '''-lockcheck''' | | '''-lockcheck''' | ||
| Don't check for remote instances using a .lock file in the user folder. | | Don't check for remote instances using a .lock file in the user folder. | ||
+ | |- | ||
+ | | '''-math''' | ||
+ | | Creates a new formula document. | ||
|- | |- | ||
| '''-minimized''' | | '''-minimized''' | ||
Line 48: | Line 57: | ||
| '''-norestore''' | | '''-norestore''' | ||
| Suppress restart/restore after a fatal error. | | Suppress restart/restore after a fatal error. | ||
+ | |- | ||
+ | | '''-o''' | ||
+ | | Opens a document regardless whether they are templates or not. | ||
|- | |- | ||
| '''-quickstart''' | | '''-quickstart''' | ||
| Start the quickstart service (only available on Windows and OS/2 platform). | | Start the quickstart service (only available on Windows and OS/2 platform). | ||
|- | |- | ||
− | | '''- | + | | '''-show <presentation>''' |
− | | | + | | Open the specified presentation and start it immediately. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
| '''-web''' | | '''-web''' | ||
| Creates a new HTML document. | | Creates a new HTML document. | ||
|- | |- | ||
− | | '''- | + | | '''-writer''' |
− | | | + | | Creates a new text document. |
|- | |- | ||
| '''-n''' | | '''-n''' | ||
| Always open documents as new files (use as templates). | | Always open documents as new files (use as templates). | ||
− | |||
− | |||
− | |||
|- | |- | ||
| '''-p <documents...>''' | | '''-p <documents...>''' | ||
Line 81: | Line 84: | ||
| '''-view <documents...>''' | | '''-view <documents...>''' | ||
| Open the specified documents in viewer-(readonly-)mode. | | Open the specified documents in viewer-(readonly-)mode. | ||
− | |||
− | |||
− | |||
|- | |- | ||
| '''-accept=<accept-string>''' | | '''-accept=<accept-string>''' |
Revision as of 09:42, 29 September 2010
Command line arguments
The general command line of OpenOffice.org is defined as:
Usage: soffice[.exe] [options] [documents]
Command | Purpose |
-base | Creates a new database document. |
-calc | Creates a new spredsheet document. |
-display <display> | Specifies X-display to use in Unix/X11 versions. |
-draw | Creates a new drawing document. |
-global | Creates a new global text document. |
-headless | Suppresses any modal dialog so OpenOffice.org can run without user interaction. This is NOT designed to run OOo as a "background" process. The Office still starts and open document views. It's the task of a developer to use the API correctly to assure that no UI is shown. |
-help/-h/-? | Shows a small message box with information about the arguments (Windows) or outputs it to stdout. |
-impress | Creates a new presentation document. |
-invisible | Initially no start up screen, no default document and UI is shown. It's possible to show documents via API. This option is not designed to use OOo as a "background" process. The API developer has to make sure that the views are opened non-visible. |
-lockcheck | Don't check for remote instances using a .lock file in the user folder. |
-math | Creates a new formula document. |
-minimized | keeps start up bitmap minimized |
-nodefault | Don't start with an empty document. |
-nologo | Don't show the splash screen. |
-norestore | Suppress restart/restore after a fatal error. |
-o | Opens a document regardless whether they are templates or not. |
-quickstart | Start the quickstart service (only available on Windows and OS/2 platform). |
-show <presentation> | Open the specified presentation and start it immediately. |
-web | Creates a new HTML document. |
-writer | Creates a new text document. |
-n | Always open documents as new files (use as templates). |
-p <documents...> | Print the specified documents on the default printer. |
-pt <printer> <documents...> | Print the specified documents on the specified printer. |
-view <documents...> | Open the specified documents in viewer-(readonly-)mode. |
-accept=<accept-string> | Specify an UNO connect-string to create an UNO acceptor through which other programs can connect to access the API. |
-unaccept=<accept-string> | Close an acceptor that was created with -accept=<accept-string>. Use -unaccept=all to close all open acceptors. |
-language=<iso language code> | Preset a user interface language. The Office uses a fallback mechanism if the provided language is not available. |
Remaining arguments will be treated as filesnames or URLs of documents to open. |