summaryrefslogtreecommitdiff
path: root/bean
diff options
context:
space:
mode:
Diffstat (limited to 'bean')
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java65
1 files changed, 0 insertions, 65 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 1357f6adcad0..b84ad5c4dd2c 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -658,71 +658,6 @@ public class OOoBean
- /** Stores a document to the given URL.
- <p>
- Due due a bug (50651) calling this method may cause the office to crash,
- when at the same time the office writes a backup of the document. This bug
- also affects {@link #storeToByteArray storeToByteArray} and
- {@link #storeToStream storeToStream}. The workaround
- is to start the office with the option --norestore, which disables the automatic
- backup and recovery mechanism. OOoBean offers currently no supported way of providing
- startup options for OOo. But it is possible to set a Java property when starting
- Java, which is examined by OOoBean:
- <pre>
- java -Dcom.sun.star.officebean.Options=--norestore ...
- </pre>
- It is planned to offer a way of specifying startup options in a future version.
- The property can be used until then. When using this property only one option
- can be provided.
-
- @throws IllegalArgumentException
- if either of the arguments is out of the specified range.
-
- @throws java.io.IOException
- if an IO error occurs reading the resource specified by the URL.
-
- @throws com.sun.star.lang.NoConnectionException
- if no connection is established.
-
- @throws NoDocumentException
- if no document is loaded
- */
- private void storeToURL(
- final String aURL,
- final com.sun.star.beans.PropertyValue aArguments[] )
- throws
- // @requirement FUNC.CON.LOST/0.2
- NoConnectionException,
- java.io.IOException,
- com.sun.star.lang.IllegalArgumentException,
- NoDocumentException
- {
- // no document available?
- if ( aDocument == null )
- throw new NoDocumentException();
-
- try
- {
- // start runtime timeout
- CallWatchThread aCallWatchThread =
- new CallWatchThread( nOOoCallTimeOut, "storeToURL" );
-
- // store the document
- try { aDocument.storeToURL( aURL, aArguments ); }
- catch ( com.sun.star.io.IOException aExc )
- { throw new java.io.IOException(); }
-
- // end runtime timeout
- aCallWatchThread.cancel();
- }
- catch ( java.lang.InterruptedException aExc )
- { throw new NoConnectionException(); }
- }
-
-
-
-
-
// @requirement FUNC.BEAN.PROG/0.5
// @requirement API.SIM.SEAP/0.2
/** returns the <type scope="com::sun::star::frame">Frame</a>