undoapi: merge after pulling selected changeset from CWS fwk162
This commit is contained in:
@@ -488,14 +488,19 @@ void SAL_CALL OCommonEmbeddedObject::changeState( sal_Int32 nNewState )
|
|||||||
{
|
{
|
||||||
if ( nOldState != m_nObjectState )
|
if ( nOldState != m_nObjectState )
|
||||||
// notify listeners that the object has changed the state
|
// notify listeners that the object has changed the state
|
||||||
StateChangeNotification_Impl( sal_False, nOldState, m_nObjectState ,aGuard);
|
StateChangeNotification_Impl( sal_False, nOldState, m_nObjectState, aGuard );
|
||||||
|
|
||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// notify listeners that the object has changed the state
|
// notify listeners that the object has changed the state
|
||||||
StateChangeNotification_Impl( sal_False, nOldState, nNewState,aGuard );
|
StateChangeNotification_Impl( sal_False, nOldState, nNewState, aGuard );
|
||||||
|
|
||||||
|
// let the object window be shown
|
||||||
|
if ( nNewState == embed::EmbedStates::UI_ACTIVE || nNewState == embed::EmbedStates::INPLACE_ACTIVE )
|
||||||
|
PostEvent_Impl( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OnVisAreaChanged" ) ),
|
||||||
|
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -504,7 +509,6 @@ uno::Sequence< sal_Int32 > SAL_CALL OCommonEmbeddedObject::getReachableStates()
|
|||||||
throw ( embed::WrongStateException,
|
throw ( embed::WrongStateException,
|
||||||
uno::RuntimeException )
|
uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
@@ -520,7 +524,6 @@ sal_Int32 SAL_CALL OCommonEmbeddedObject::getCurrentState()
|
|||||||
throw ( embed::WrongStateException,
|
throw ( embed::WrongStateException,
|
||||||
uno::RuntimeException )
|
uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
@@ -541,7 +544,7 @@ void SAL_CALL OCommonEmbeddedObject::doVerb( sal_Int32 nVerbID )
|
|||||||
{
|
{
|
||||||
RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OCommonEmbeddedObject::doVerb" );
|
RTL_LOGFILE_CONTEXT( aLog, "embeddedobj (mv76033) OCommonEmbeddedObject::doVerb" );
|
||||||
|
|
||||||
::osl::ClearableMutexGuard aGuard( m_aMutex );
|
::osl::ResettableMutexGuard aGuard( m_aMutex );
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
@@ -575,7 +578,6 @@ uno::Sequence< embed::VerbDescriptor > SAL_CALL OCommonEmbeddedObject::getSuppor
|
|||||||
throw ( embed::WrongStateException,
|
throw ( embed::WrongStateException,
|
||||||
uno::RuntimeException )
|
uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
@@ -612,7 +614,6 @@ uno::Reference< embed::XEmbeddedClient > SAL_CALL OCommonEmbeddedObject::getClie
|
|||||||
throw ( embed::WrongStateException,
|
throw ( embed::WrongStateException,
|
||||||
uno::RuntimeException )
|
uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
@@ -665,7 +666,6 @@ sal_Int64 SAL_CALL OCommonEmbeddedObject::getStatus( sal_Int64 )
|
|||||||
throw ( embed::WrongStateException,
|
throw ( embed::WrongStateException,
|
||||||
uno::RuntimeException )
|
uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException(); // TODO
|
||||||
|
|
||||||
|
|||||||
@@ -467,9 +467,8 @@ uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getImplementationId()
|
|||||||
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
|
uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
|
||||||
throw ( uno::RuntimeException )
|
throw ( uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException();
|
||||||
|
|
||||||
return m_aClassID;
|
return m_aClassID;
|
||||||
}
|
}
|
||||||
@@ -478,9 +477,8 @@ uno::Sequence< sal_Int8 > SAL_CALL OCommonEmbeddedObject::getClassID()
|
|||||||
::rtl::OUString SAL_CALL OCommonEmbeddedObject::getClassName()
|
::rtl::OUString SAL_CALL OCommonEmbeddedObject::getClassName()
|
||||||
throw ( uno::RuntimeException )
|
throw ( uno::RuntimeException )
|
||||||
{
|
{
|
||||||
::osl::MutexGuard aGuard( m_aMutex );
|
|
||||||
if ( m_bDisposed )
|
if ( m_bDisposed )
|
||||||
throw lang::DisposedException(); // TODO
|
throw lang::DisposedException();
|
||||||
|
|
||||||
return m_aClassName;
|
return m_aClassName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user