summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-07-19 14:05:51 +0000
committerOliver Bolte <obo@openoffice.org>2005-07-19 14:05:51 +0000
commita138981c03bc02783c0286d230e495360aa2257f (patch)
treec46f23a86b2c89a6793f20ce4b3ff82b9f1420ce
parent67451941a8c02056f21d500b64f1cecbfe7550f9 (diff)
INTEGRATION: CWS jl21bean (1.10.4); FILE MERGED
2005/06/07 09:34:25 jl 1.10.4.1: #i50285# clearDocument not properly implemented, causes Exception when later loadFromURl is called
-rw-r--r--bean/com/sun/star/comp/beans/OOoBean.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/bean/com/sun/star/comp/beans/OOoBean.java b/bean/com/sun/star/comp/beans/OOoBean.java
index 2949b34522d9..8cf636a7a8fa 100644
--- a/bean/com/sun/star/comp/beans/OOoBean.java
+++ b/bean/com/sun/star/comp/beans/OOoBean.java
@@ -2,9 +2,9 @@
*
* $RCSfile: OOoBean.java,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: obo $ $Date: 2005-07-07 13:16:41 $
+ * last change: $Author: obo $ $Date: 2005-07-19 15:05:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -382,7 +382,8 @@ public class OOoBean
If a document is loaded and the content modified,
the changes are dismissed. Otherwise nothing happens.
- This method only does only work on specific subclasses.
+ This method is intended to be overridden in derived classes.
+ This implementation simply calls clear.
@param bClearStateToo
Not only the document content but also the state of the bean,
@@ -402,12 +403,7 @@ public class OOoBean
NoConnectionException
{
// TBD
- com.sun.star.util.XCloseable xCloseable = (com.sun.star.util.XCloseable)
- UnoRuntime.queryInterface( com.sun.star.util.XCloseable.class, aFrame );
- if ( xCloseable != null )
- xCloseable.close(true);
- else
- throw new RuntimeException( "frame without XCloseable" );
+ clear();
}
/** Resets the OOoBean to an empty status.
@@ -589,8 +585,7 @@ public class OOoBean
com.sun.star.util.CloseVetoException
{
dbgPrint( "loadFromURL()" );
-
- // try loading
+ // try loading
try
{
boolean bLoaded = false;