summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-12-19 13:03:57 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-12-19 13:03:57 +0000
commita76bf6d45cf736f24cd83025b9a04321a58d7961 (patch)
tree0438a49385a2d194426f13a4b42b1380c09684a6
parent08bc586df3dc98feb00910d157537ec899cb14eb (diff)
INTEGRATION: CWS fwk56 (1.27.6); FILE MERGED
2006/12/04 15:14:59 mav 1.27.6.1: #i68012# fix resizing of embedded object
-rw-r--r--embeddedobj/source/general/docholder.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/embeddedobj/source/general/docholder.cxx b/embeddedobj/source/general/docholder.cxx
index a5b8385ec7d6..0b96097562ff 100644
--- a/embeddedobj/source/general/docholder.cxx
+++ b/embeddedobj/source/general/docholder.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: docholder.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: vg $ $Date: 2006-11-01 18:20:30 $
+ * last change: $Author: ihi $ $Date: 2006-12-19 14:03:57 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -241,7 +241,8 @@ DocumentHolder::DocumentHolder( const uno::Reference< lang::XMultiServiceFactory
m_bWaitForClose( sal_False ),
m_bAllowClosing( sal_False ),
m_bDesktopTerminated( sal_False ),
- m_nNoBorderResizeReact( 0 )
+ m_nNoBorderResizeReact( 0 ),
+ m_nNoResizeReact( 0 )
{
const ::rtl::OUString aServiceName ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.frame.Desktop" ) );
uno::Reference< frame::XDesktop > xDesktop( m_xFactory->createInstance( aServiceName ), uno::UNO_QUERY );
@@ -386,6 +387,7 @@ void DocumentHolder::PlaceFrame( const awt::Rectangle& aNewRect )
awt::Rectangle aHatchRect = AddBorderToArea( aNewRect );
ResizeWindows_Impl( aHatchRect );
+
} while ( aOldWidths.Left != m_aBorderWidths.Left
|| aOldWidths.Top != m_aBorderWidths.Top
|| aOldWidths.Right != m_aBorderWidths.Right
@@ -579,6 +581,7 @@ sal_Bool DocumentHolder::ShowInplace( const uno::Reference< awt::XWindowPeer >&
if ( m_xHatchWindow.is() )
m_xHatchWindow->setVisible( sal_True );
+
return sal_True;
}
@@ -1387,7 +1390,8 @@ void SAL_CALL DocumentHolder::notifyEvent( const document::EventObject& Event )
if ( !Event.EventName.equalsAscii( "OnSave" )
&& !Event.EventName.equalsAscii( "OnSaveDone" )
&& !Event.EventName.equalsAscii( "OnSaveAs" )
- && !Event.EventName.equalsAscii( "OnSaveAsDone" ) )
+ && !Event.EventName.equalsAscii( "OnSaveAsDone" )
+ && !( Event.EventName.equalsAscii( "OnVisAreaChanged" ) && m_nNoResizeReact ) )
m_pEmbedObj->PostEvent_Impl( Event.EventName, Event.Source );
}
}
@@ -1421,6 +1425,7 @@ void SAL_CALL DocumentHolder::requestPositioning( const awt::Rectangle& aRect )
{
// borders should not be counted
awt::Rectangle aObjRect = CalculateBorderedArea( aRect );
+ IntCounterGuard aGuard( m_nNoResizeReact );
m_pEmbedObj->requestPositioning( aObjRect );
}
}