diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 17:18:23 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 17:18:23 +0000 |
commit | 145373af83db002c29a2c01b60ab96ba02e55290 (patch) | |
tree | b1fa0193c3ae02d765ea2ddea5451e18ea2cc7c3 /svtools/source/hatchwindow/hatchwindow.cxx | |
parent | 0366f3a47138ceb14a4fb8cf2f10394dc9902c08 (diff) |
INTEGRATION: CWS inplaceobjects (1.3.250); FILE MERGED
2006/09/28 19:30:48 mba 1.3.250.3: RESYNC: (1.3-1.4); FILE MERGED
2006/07/03 15:12:24 mba 1.3.250.2: #i66239#: need means to change border size
2006/06/14 10:57:13 mba 1.3.250.1: #i66239#: new API for inplace active objects
Diffstat (limited to 'svtools/source/hatchwindow/hatchwindow.cxx')
-rw-r--r-- | svtools/source/hatchwindow/hatchwindow.cxx | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/svtools/source/hatchwindow/hatchwindow.cxx b/svtools/source/hatchwindow/hatchwindow.cxx index c08839a508b9..93a014f43964 100644 --- a/svtools/source/hatchwindow/hatchwindow.cxx +++ b/svtools/source/hatchwindow/hatchwindow.cxx @@ -4,9 +4,9 @@ * * $RCSfile: hatchwindow.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2006-09-17 14:57:27 $ + * last change: $Author: vg $ $Date: 2006-11-01 18:18:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -49,6 +49,7 @@ using namespace ::com::sun::star; VCLXHatchWindow::VCLXHatchWindow() : VCLXWindow() +, pHatchWindow(0) { } @@ -70,8 +71,9 @@ void VCLXHatchWindow::initializeWindow( const uno::Reference< awt::XWindowPeer > if ( !pParent ) throw lang::IllegalArgumentException(); // TODO - SvResizeWindow* pHatchWindow = new SvResizeWindow( pParent, this ); + pHatchWindow = new SvResizeWindow( pParent, this ); pHatchWindow->SetPosSizePixel( aBounds.X, aBounds.Y, aBounds.Width, aBounds.Height ); + aHatchBorderSize = aSize; pHatchWindow->SetHatchBorderPixel( Size( aSize.Width, aSize.Height ) ); SetWindow( pHatchWindow ); @@ -192,6 +194,20 @@ uno::Sequence< sal_Int8 > SAL_CALL VCLXHatchWindow::getImplementationId() return pID->getImplementationId() ; } +::com::sun::star::awt::Size SAL_CALL VCLXHatchWindow::getHatchBorderSize() throw (::com::sun::star::uno::RuntimeException) +{ + return aHatchBorderSize; +} + +void SAL_CALL VCLXHatchWindow::setHatchBorderSize( const ::com::sun::star::awt::Size& _hatchbordersize ) throw (::com::sun::star::uno::RuntimeException) +{ + if ( pHatchWindow ) + { + aHatchBorderSize = _hatchbordersize; + pHatchWindow->SetHatchBorderPixel( Size( aHatchBorderSize.Width, aHatchBorderSize.Height ) ); + } +} + void SAL_CALL VCLXHatchWindow::setController( const uno::Reference< embed::XHatchWindowController >& xController ) throw (uno::RuntimeException) { @@ -201,6 +217,7 @@ void SAL_CALL VCLXHatchWindow::setController( const uno::Reference< embed::XHatc void SAL_CALL VCLXHatchWindow::dispose() throw (uno::RuntimeException) { + pHatchWindow = 0; VCLXWindow::dispose(); } @@ -216,3 +233,14 @@ void SAL_CALL VCLXHatchWindow::removeEventListener( const uno::Reference< lang:: VCLXWindow::removeEventListener( xListener ); } +void VCLXHatchWindow::Activated() +{ + if ( m_xController.is() ) + m_xController->activated(); +} + +void VCLXHatchWindow::Deactivated() +{ + if ( m_xController.is() ) + m_xController->deactivated(); +} |