summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2004-10-08 10:15:44 +0000
committerMikhail Voitenko <mav@openoffice.org>2004-10-08 10:15:44 +0000
commit609035a239d30f9c29f8ca68206fd396fbb9e81a (patch)
tree046ab94f0fcde10359677d3bd6a270bffa1d1473 /embeddedobj
parentd2936489a3fd12d51ad2257c5a51e6ff1f1b52c3 (diff)
#i35140# do not throw exception in case object is waiting for saveCompleted but is able to provide information
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx22
1 files changed, 12 insertions, 10 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 2623582801d1..63640689868f 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: persistence.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: kz $ $Date: 2004-10-04 19:49:49 $
+ * last change: $Author: mav $ $Date: 2004-10-08 11:15:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1492,10 +1492,11 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
- if ( m_bWaitSaveCompleted )
- throw embed::WrongStateException(
- ::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
- uno::Reference< uno::XInterface >( reinterpret_cast< ::cppu::OWeakObject* >(this) ) );
+ // Actually this information is clear even in case object is wayting for saveCompleted
+ // if ( m_bWaitSaveCompleted )
+ // throw embed::WrongStateException(
+ // ::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
+ // uno::Reference< uno::XInterface >( reinterpret_cast< ::cppu::OWeakObject* >(this) ) );
return m_bIsLink;
}
@@ -1510,10 +1511,11 @@ sal_Bool SAL_CALL OCommonEmbeddedObject::isLink()
if ( m_bDisposed )
throw lang::DisposedException(); // TODO
- if ( m_bWaitSaveCompleted )
- throw embed::WrongStateException(
- ::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
- uno::Reference< uno::XInterface >( reinterpret_cast< ::cppu::OWeakObject* >(this) ) );
+ // Actually this information is clear even in case object is wayting for saveCompleted
+ // if ( m_bWaitSaveCompleted )
+ // throw embed::WrongStateException(
+ // ::rtl::OUString::createFromAscii( "The object waits for saveCompleted() call!\n" ),
+ // uno::Reference< uno::XInterface >( reinterpret_cast< ::cppu::OWeakObject* >(this) ) );
if ( !m_bIsLink )
throw embed::WrongStateException(