diff options
Diffstat (limited to 'UnoControls/source/base/basecontrol.cxx')
-rw-r--r-- | UnoControls/source/base/basecontrol.cxx | 294 |
1 files changed, 147 insertions, 147 deletions
diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx index 030f19d6d452..465b916591c3 100644 --- a/UnoControls/source/base/basecontrol.cxx +++ b/UnoControls/source/base/basecontrol.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -26,13 +26,13 @@ ************************************************************************/ //____________________________________________________________________________________________________________ -// my own include +// my own include //____________________________________________________________________________________________________________ #include "basecontrol.hxx" //____________________________________________________________________________________________________________ -// includes of other projects +// includes of other projects //____________________________________________________________________________________________________________ #include <com/sun/star/awt/XDevice.hpp> #include <com/sun/star/awt/XDisplayBitmap.hpp> @@ -42,52 +42,52 @@ #include <cppuhelper/typeprovider.hxx> //____________________________________________________________________________________________________________ -// includes of my own project +// includes of my own project //____________________________________________________________________________________________________________ //____________________________________________________________________________________________________________ -// namespaces +// namespaces //____________________________________________________________________________________________________________ -using namespace ::cppu ; -using namespace ::osl ; -using namespace ::rtl ; -using namespace ::com::sun::star::uno ; -using namespace ::com::sun::star::lang ; -using namespace ::com::sun::star::awt ; +using namespace ::cppu ; +using namespace ::osl ; +using namespace ::rtl ; +using namespace ::com::sun::star::uno ; +using namespace ::com::sun::star::lang ; +using namespace ::com::sun::star::awt ; namespace unocontrols{ //____________________________________________________________________________________________________________ -// defines +// defines //____________________________________________________________________________________________________________ -#define DEFAULT_PMULTIPLEXER NULL -#define DEFAULT_X 0 -#define DEFAULT_Y 0 -#define DEFAULT_WIDTH 100 -#define DEFAULT_HEIGHT 100 -#define DEFAULT_VISIBLE sal_False -#define DEFAULT_INDESIGNMODE sal_False -#define DEFAULT_ENABLE sal_True -#define SERVICE_VCLTOOLKIT "com.sun.star.awt.Toolkit" +#define DEFAULT_PMULTIPLEXER NULL +#define DEFAULT_X 0 +#define DEFAULT_Y 0 +#define DEFAULT_WIDTH 100 +#define DEFAULT_HEIGHT 100 +#define DEFAULT_VISIBLE sal_False +#define DEFAULT_INDESIGNMODE sal_False +#define DEFAULT_ENABLE sal_True +#define SERVICE_VCLTOOLKIT "com.sun.star.awt.Toolkit" //____________________________________________________________________________________________________________ -// construct/destruct +// construct/destruct //____________________________________________________________________________________________________________ BaseControl::BaseControl( const Reference< XMultiServiceFactory >& xFactory ) - : IMPL_MutexContainer ( ) - , OComponentHelper ( m_aMutex ) - , m_xFactory ( xFactory ) - , m_pMultiplexer ( DEFAULT_PMULTIPLEXER ) - , m_nX ( DEFAULT_X ) - , m_nY ( DEFAULT_Y ) - , m_nWidth ( DEFAULT_WIDTH ) - , m_nHeight ( DEFAULT_HEIGHT ) - , m_bVisible ( DEFAULT_VISIBLE ) - , m_bInDesignMode ( DEFAULT_INDESIGNMODE ) - , m_bEnable ( DEFAULT_ENABLE ) + : IMPL_MutexContainer ( ) + , OComponentHelper ( m_aMutex ) + , m_xFactory ( xFactory ) + , m_pMultiplexer ( DEFAULT_PMULTIPLEXER ) + , m_nX ( DEFAULT_X ) + , m_nY ( DEFAULT_Y ) + , m_nWidth ( DEFAULT_WIDTH ) + , m_nHeight ( DEFAULT_HEIGHT ) + , m_bVisible ( DEFAULT_VISIBLE ) + , m_bInDesignMode ( DEFAULT_INDESIGNMODE ) + , m_bEnable ( DEFAULT_ENABLE ) { } @@ -96,7 +96,7 @@ BaseControl::~BaseControl() } //____________________________________________________________________________________________________________ -// XInterface +// XInterface //____________________________________________________________________________________________________________ Any SAL_CALL BaseControl::queryInterface( const Type& rType ) throw( RuntimeException ) @@ -118,33 +118,33 @@ Any SAL_CALL BaseControl::queryInterface( const Type& rType ) throw( RuntimeExce } //____________________________________________________________________________________________________________ -// XInterface +// XInterface //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::acquire() throw() { // Attention: - // Don't use mutex or guard in this method!!! Is a method of XInterface. + // Don't use mutex or guard in this method!!! Is a method of XInterface. // Forward to baseclass OComponentHelper::acquire(); } //____________________________________________________________________________________________________________ -// XInterface +// XInterface //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::release() throw() { // Attention: - // Don't use mutex or guard in this method!!! Is a method of XInterface. + // Don't use mutex or guard in this method!!! Is a method of XInterface. // Forward to baseclass OComponentHelper::release(); } //____________________________________________________________________________________________________________ -// XTypeProvider +// XTypeProvider //____________________________________________________________________________________________________________ Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException ) @@ -163,12 +163,12 @@ Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException ) if ( pTypeCollection == NULL ) { // Create a static typecollection ... - static OTypeCollection aTypeCollection ( ::getCppuType(( const Reference< XPaintListener >*)NULL ) , - ::getCppuType(( const Reference< XWindowListener>*)NULL ) , - ::getCppuType(( const Reference< XView >*)NULL ) , - ::getCppuType(( const Reference< XWindow >*)NULL ) , - ::getCppuType(( const Reference< XServiceInfo >*)NULL ) , - ::getCppuType(( const Reference< XControl >*)NULL ) , + static OTypeCollection aTypeCollection ( ::getCppuType(( const Reference< XPaintListener >*)NULL ) , + ::getCppuType(( const Reference< XWindowListener>*)NULL ) , + ::getCppuType(( const Reference< XView >*)NULL ) , + ::getCppuType(( const Reference< XWindow >*)NULL ) , + ::getCppuType(( const Reference< XServiceInfo >*)NULL ) , + ::getCppuType(( const Reference< XControl >*)NULL ) , OComponentHelper::getTypes() ); @@ -181,7 +181,7 @@ Sequence< Type > SAL_CALL BaseControl::getTypes() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XTypeProvider +// XTypeProvider //____________________________________________________________________________________________________________ Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeException ) @@ -213,7 +213,7 @@ Sequence< sal_Int8 > SAL_CALL BaseControl::getImplementationId() throw( RuntimeE } //____________________________________________________________________________________________________________ -// XAggregation +// XAggregation //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setDelegator( const Reference< XInterface >& xDel ) throw( RuntimeException ) @@ -224,20 +224,20 @@ void SAL_CALL BaseControl::setDelegator( const Reference< XInterface >& xDel ) t } //____________________________________________________________________________________________________________ -// XAggregation +// XAggregation //____________________________________________________________________________________________________________ Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeException ) { // Ask for my own supported interfaces ... // Attention: XTypeProvider and XInterface are supported by OComponentHelper! - Any aReturn ( ::cppu::queryInterface( aType , - static_cast< XPaintListener*> ( this ) , - static_cast< XWindowListener*> ( this ) , - static_cast< XView* > ( this ) , - static_cast< XWindow* > ( this ) , - static_cast< XServiceInfo* > ( this ) , - static_cast< XControl* > ( this ) + Any aReturn ( ::cppu::queryInterface( aType , + static_cast< XPaintListener*> ( this ) , + static_cast< XWindowListener*> ( this ) , + static_cast< XView* > ( this ) , + static_cast< XWindow* > ( this ) , + static_cast< XServiceInfo* > ( this ) , + static_cast< XControl* > ( this ) ) ); @@ -255,7 +255,7 @@ Any SAL_CALL BaseControl::queryAggregation( const Type& aType ) throw( RuntimeEx } //____________________________________________________________________________________________________________ -// XServiceInfo +// XServiceInfo //____________________________________________________________________________________________________________ OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException ) @@ -264,13 +264,13 @@ OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XServiceInfo +// XServiceInfo //____________________________________________________________________________________________________________ sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) throw( RuntimeException ) { - Sequence< OUString > seqServiceNames = getSupportedServiceNames(); - const OUString* pArray = seqServiceNames.getConstArray(); + Sequence< OUString > seqServiceNames = getSupportedServiceNames(); + const OUString* pArray = seqServiceNames.getConstArray(); for ( sal_Int32 nCounter=0; nCounter<seqServiceNames.getLength(); nCounter++ ) { if ( pArray[nCounter] == sServiceName ) @@ -282,7 +282,7 @@ sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) t } //____________________________________________________________________________________________________________ -// XServiceInfo +// XServiceInfo //____________________________________________________________________________________________________________ Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( RuntimeException ) @@ -291,7 +291,7 @@ Sequence< OUString > SAL_CALL BaseControl::getSupportedServiceNames() throw( Run } //____________________________________________________________________________________________________________ -// XComponent +// XComponent //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::dispose() throw( RuntimeException ) @@ -320,7 +320,7 @@ void SAL_CALL BaseControl::dispose() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XComponent +// XComponent //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException ) @@ -331,7 +331,7 @@ void SAL_CALL BaseControl::addEventListener( const Reference< XEventListener >& } //____________________________________________________________________________________________________________ -// XComponent +// XComponent //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeEventListener( const Reference< XEventListener >& xListener ) throw( RuntimeException ) @@ -342,11 +342,11 @@ void SAL_CALL BaseControl::removeEventListener( const Reference< XEventListener } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ -void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToolkit , - const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException ) +void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToolkit , + const Reference< XWindowPeer >& xParentPeer ) throw( RuntimeException ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -369,8 +369,8 @@ void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToo // but first create wellknown toolkit, if it not exist xLocalToolkit = Reference< XToolkit > ( m_xFactory->createInstance( OUString::createFromAscii( SERVICE_VCLTOOLKIT ) ), UNO_QUERY ); } - m_xPeer = xLocalToolkit->createWindow( *pDescriptor ); - m_xPeerWindow = Reference< XWindow >( m_xPeer, UNO_QUERY ); + m_xPeer = xLocalToolkit->createWindow( *pDescriptor ); + m_xPeerWindow = Reference< XWindow >( m_xPeer, UNO_QUERY ); // don't forget to release the memory! delete pDescriptor ; @@ -398,15 +398,15 @@ void SAL_CALL BaseControl::createPeer( const Reference< XToolkit >& xToo } // PosSize_POSSIZE defined in <stardiv/uno/awt/window.hxx> - m_xPeerWindow->setPosSize( m_nX, m_nY, m_nWidth, m_nHeight, PosSize::POSSIZE ); - m_xPeerWindow->setEnable( m_bEnable ); - m_xPeerWindow->setVisible( m_bVisible && !m_bInDesignMode ); + m_xPeerWindow->setPosSize( m_nX, m_nY, m_nWidth, m_nHeight, PosSize::POSSIZE ); + m_xPeerWindow->setEnable( m_bEnable ); + m_xPeerWindow->setVisible( m_bVisible && !m_bInDesignMode ); } } } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setContext( const Reference< XInterface >& xContext ) throw( RuntimeException ) @@ -417,7 +417,7 @@ void SAL_CALL BaseControl::setContext( const Reference< XInterface >& xContext ) } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setDesignMode( sal_Bool bOn ) throw( RuntimeException ) @@ -428,7 +428,7 @@ void SAL_CALL BaseControl::setDesignMode( sal_Bool bOn ) throw( RuntimeException } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ Reference< XInterface > SAL_CALL BaseControl::getContext() throw( RuntimeException ) @@ -439,7 +439,7 @@ Reference< XInterface > SAL_CALL BaseControl::getContext() throw( RuntimeExcepti } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ Reference< XWindowPeer > SAL_CALL BaseControl::getPeer() throw( RuntimeException ) @@ -450,7 +450,7 @@ Reference< XWindowPeer > SAL_CALL BaseControl::getPeer() throw( RuntimeException } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ Reference< XView > SAL_CALL BaseControl::getView() throw( RuntimeException ) @@ -461,7 +461,7 @@ Reference< XView > SAL_CALL BaseControl::getView() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException ) @@ -472,7 +472,7 @@ sal_Bool SAL_CALL BaseControl::isDesignMode() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XControl +// XControl //____________________________________________________________________________________________________________ sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException ) @@ -481,14 +481,14 @@ sal_Bool SAL_CALL BaseControl::isTransparent() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ -void SAL_CALL BaseControl::setPosSize( sal_Int32 nX , - sal_Int32 nY , - sal_Int32 nWidth , - sal_Int32 nHeight , - sal_Int16 nFlags ) throw( RuntimeException ) +void SAL_CALL BaseControl::setPosSize( sal_Int32 nX , + sal_Int32 nY , + sal_Int32 nWidth , + sal_Int32 nHeight , + sal_Int16 nFlags ) throw( RuntimeException ) { // - change size and position of window and save the values // - "nFlags" declared in <stardiv/uno/awt/window.hxx> ("#define PosSize_X .....") @@ -525,7 +525,7 @@ void SAL_CALL BaseControl::setPosSize( sal_Int32 nX , } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setVisible( sal_Bool bVisible ) throw( RuntimeException ) @@ -544,7 +544,7 @@ void SAL_CALL BaseControl::setVisible( sal_Bool bVisible ) throw( RuntimeExcepti } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setEnable( sal_Bool bEnable ) throw( RuntimeException ) @@ -563,7 +563,7 @@ void SAL_CALL BaseControl::setEnable( sal_Bool bEnable ) throw( RuntimeException } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::setFocus() throw( RuntimeException ) @@ -578,7 +578,7 @@ void SAL_CALL BaseControl::setFocus() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ Rectangle SAL_CALL BaseControl::getPosSize() throw( RuntimeException ) @@ -589,7 +589,7 @@ Rectangle SAL_CALL BaseControl::getPosSize() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException ) @@ -598,7 +598,7 @@ void SAL_CALL BaseControl::addWindowListener( const Reference< XWindowListener > } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException ) @@ -607,7 +607,7 @@ void SAL_CALL BaseControl::addFocusListener( const Reference< XFocusListener >& } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException ) @@ -616,7 +616,7 @@ void SAL_CALL BaseControl::addKeyListener( const Reference< XKeyListener >& xLis } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException ) @@ -625,7 +625,7 @@ void SAL_CALL BaseControl::addMouseListener( const Reference< XMouseListener >& } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException ) @@ -634,7 +634,7 @@ void SAL_CALL BaseControl::addMouseMotionListener( const Reference< XMouseMotion } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::addPaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException ) @@ -643,7 +643,7 @@ void SAL_CALL BaseControl::addPaintListener( const Reference< XPaintListener >& } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeWindowListener( const Reference< XWindowListener >& xListener ) throw( RuntimeException ) @@ -652,7 +652,7 @@ void SAL_CALL BaseControl::removeWindowListener( const Reference< XWindowListene } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeFocusListener( const Reference< XFocusListener >& xListener ) throw( RuntimeException ) @@ -661,7 +661,7 @@ void SAL_CALL BaseControl::removeFocusListener( const Reference< XFocusListener } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeKeyListener( const Reference< XKeyListener >& xListener ) throw( RuntimeException ) @@ -670,7 +670,7 @@ void SAL_CALL BaseControl::removeKeyListener( const Reference< XKeyListener >& x } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeMouseListener( const Reference< XMouseListener >& xListener ) throw( RuntimeException ) @@ -679,7 +679,7 @@ void SAL_CALL BaseControl::removeMouseListener( const Reference< XMouseListener } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removeMouseMotionListener( const Reference< XMouseMotionListener >& xListener ) throw( RuntimeException ) @@ -688,7 +688,7 @@ void SAL_CALL BaseControl::removeMouseMotionListener( const Reference< XMouseMo } //____________________________________________________________________________________________________________ -// XWindow +// XWindow //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::removePaintListener( const Reference< XPaintListener >& xListener ) throw( RuntimeException ) @@ -697,11 +697,11 @@ void SAL_CALL BaseControl::removePaintListener( const Reference< XPaintListener } //____________________________________________________________________________________________________________ -// XView +// XView //____________________________________________________________________________________________________________ -void SAL_CALL BaseControl::draw( sal_Int32 nX , - sal_Int32 nY ) throw( RuntimeException ) +void SAL_CALL BaseControl::draw( sal_Int32 nX , + sal_Int32 nY ) throw( RuntimeException ) { // Ready for multithreading MutexGuard aGuard( m_aMutex ); @@ -713,7 +713,7 @@ void SAL_CALL BaseControl::draw( sal_Int32 nX , } //____________________________________________________________________________________________________________ -// XView +// XView //____________________________________________________________________________________________________________ sal_Bool SAL_CALL BaseControl::setGraphics( const Reference< XGraphics >& xDevice ) throw( RuntimeException ) @@ -727,25 +727,25 @@ sal_Bool SAL_CALL BaseControl::setGraphics( const Reference< XGraphics >& xDevic // Ready for multithreading MutexGuard aGuard( m_aMutex ); - m_xGraphicsView = xDevice ; - bReturn = sal_True ; + m_xGraphicsView = xDevice ; + bReturn = sal_True ; } return bReturn ; } //____________________________________________________________________________________________________________ -// XView +// XView //____________________________________________________________________________________________________________ -void SAL_CALL BaseControl::setZoom( float /*fZoomX*/ , - float /*fZoomY*/ ) throw( RuntimeException ) +void SAL_CALL BaseControl::setZoom( float /*fZoomX*/ , + float /*fZoomY*/ ) throw( RuntimeException ) { // Not implemented yet } //____________________________________________________________________________________________________________ -// XView +// XView //____________________________________________________________________________________________________________ Reference< XGraphics > SAL_CALL BaseControl::getGraphics() throw( RuntimeException ) @@ -756,7 +756,7 @@ Reference< XGraphics > SAL_CALL BaseControl::getGraphics() throw( RuntimeExcepti } //____________________________________________________________________________________________________________ -// XView +// XView //____________________________________________________________________________________________________________ Size SAL_CALL BaseControl::getSize() throw( RuntimeException ) @@ -767,7 +767,7 @@ Size SAL_CALL BaseControl::getSize() throw( RuntimeException ) } //____________________________________________________________________________________________________________ -// XEventListener +// XEventListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::disposing( const EventObject& /*aSource*/ ) throw( RuntimeException ) @@ -791,7 +791,7 @@ void SAL_CALL BaseControl::disposing( const EventObject& /*aSource*/ ) throw( Ru } //____________________________________________________________________________________________________________ -// XPaintListener +// XPaintListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::windowPaint( const PaintEvent& /*aEvent*/ ) throw( RuntimeException ) @@ -806,7 +806,7 @@ void SAL_CALL BaseControl::windowPaint( const PaintEvent& /*aEvent*/ ) throw( Ru } //____________________________________________________________________________________________________________ -// XWindowListener +// XWindowListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( RuntimeException ) @@ -814,8 +814,8 @@ void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( Run // Ready for multithreading MutexGuard aGuard( m_aMutex ); - m_nWidth = aEvent.Width ; - m_nHeight = aEvent.Height ; + m_nWidth = aEvent.Width ; + m_nHeight = aEvent.Height ; WindowEvent aMappedEvent = aEvent; aMappedEvent.X = 0; aMappedEvent.Y = 0; @@ -823,7 +823,7 @@ void SAL_CALL BaseControl::windowResized( const WindowEvent& aEvent ) throw( Run } //____________________________________________________________________________________________________________ -// XWindowListener +// XWindowListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( RuntimeException ) @@ -831,8 +831,8 @@ void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( Runti // Ready for multithreading MutexGuard aGuard( m_aMutex ); - m_nWidth = aEvent.Width ; - m_nHeight = aEvent.Height ; + m_nWidth = aEvent.Width ; + m_nHeight = aEvent.Height ; WindowEvent aMappedEvent = aEvent; aMappedEvent.X = 0; aMappedEvent.Y = 0; @@ -840,7 +840,7 @@ void SAL_CALL BaseControl::windowMoved( const WindowEvent& aEvent ) throw( Runti } //____________________________________________________________________________________________________________ -// XWindowListener +// XWindowListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::windowShown( const EventObject& /*aEvent*/ ) throw( RuntimeException ) @@ -848,7 +848,7 @@ void SAL_CALL BaseControl::windowShown( const EventObject& /*aEvent*/ ) throw( R } //____________________________________________________________________________________________________________ -// XWindowListener +// XWindowListener //____________________________________________________________________________________________________________ void SAL_CALL BaseControl::windowHidden( const EventObject& /*aEvent*/ ) throw( RuntimeException ) @@ -856,8 +856,8 @@ void SAL_CALL BaseControl::windowHidden( const EventObject& /*aEvent*/ ) throw( } //____________________________________________________________________________________________________________ -// impl but public method to register service in DLL -// (In this BASE-implementation not implemented! Overwrite it in derived classes.) +// impl but public method to register service in DLL +// (In this BASE-implementation not implemented! Overwrite it in derived classes.) //____________________________________________________________________________________________________________ const Sequence< OUString > BaseControl::impl_getStaticSupportedServiceNames() @@ -866,8 +866,8 @@ const Sequence< OUString > BaseControl::impl_getStaticSupportedServiceNames() } //____________________________________________________________________________________________________________ -// impl but public method to register service in DLL -// (In this BASE-implementation not implemented! Overwrite it in derived classes.) +// impl but public method to register service in DLL +// (In this BASE-implementation not implemented! Overwrite it in derived classes.) //____________________________________________________________________________________________________________ const OUString BaseControl::impl_getStaticImplementationName() @@ -876,7 +876,7 @@ const OUString BaseControl::impl_getStaticImplementationName() } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ const Reference< XMultiServiceFactory > BaseControl::impl_getMultiServiceFactory() @@ -885,7 +885,7 @@ const Reference< XMultiServiceFactory > BaseControl::impl_getMultiServiceFactory } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ const Reference< XWindow > BaseControl::impl_getPeerWindow() @@ -894,7 +894,7 @@ const Reference< XWindow > BaseControl::impl_getPeerWindow() } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ const Reference< XGraphics > BaseControl::impl_getGraphicsPeer() @@ -903,7 +903,7 @@ const Reference< XGraphics > BaseControl::impl_getGraphicsPeer() } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ const sal_Int32& BaseControl::impl_getWidth() @@ -912,7 +912,7 @@ const sal_Int32& BaseControl::impl_getWidth() } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ const sal_Int32& BaseControl::impl_getHeight() @@ -921,7 +921,7 @@ const sal_Int32& BaseControl::impl_getHeight() } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ WindowDescriptor* BaseControl::impl_getWindowDescriptor( const Reference< XWindowPeer >& xParentPeer ) @@ -932,23 +932,23 @@ WindowDescriptor* BaseControl::impl_getWindowDescriptor( const Reference< XWindo WindowDescriptor* pDescriptor = new WindowDescriptor ; - pDescriptor->Type = WindowClass_SIMPLE ; - pDescriptor->WindowServiceName = OUString::createFromAscii( "window" ) ; - pDescriptor->ParentIndex = -1 ; - pDescriptor->Parent = xParentPeer ; - pDescriptor->Bounds = getPosSize () ; - pDescriptor->WindowAttributes = 0 ; + pDescriptor->Type = WindowClass_SIMPLE ; + pDescriptor->WindowServiceName = OUString::createFromAscii( "window" ) ; + pDescriptor->ParentIndex = -1 ; + pDescriptor->Parent = xParentPeer ; + pDescriptor->Bounds = getPosSize () ; + pDescriptor->WindowAttributes = 0 ; return pDescriptor ; } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ -void BaseControl::impl_paint( sal_Int32 /*nX*/ , - sal_Int32 /*nY*/ , - const Reference< XGraphics >& /*xGraphics*/ ) +void BaseControl::impl_paint( sal_Int32 /*nX*/ , + sal_Int32 /*nY*/ , + const Reference< XGraphics >& /*xGraphics*/ ) { // - one paint method for peer AND view !!! // (see also => "windowPaint()" and "draw()") @@ -956,7 +956,7 @@ void BaseControl::impl_paint( sal_Int32 /*nX*/ } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ void BaseControl::impl_recalcLayout( const WindowEvent& /*aEvent*/ ) @@ -966,7 +966,7 @@ void BaseControl::impl_recalcLayout( const WindowEvent& /*aEvent*/ ) } //____________________________________________________________________________________________________________ -// protected method +// protected method //____________________________________________________________________________________________________________ Reference< XInterface > BaseControl::impl_getDelegator() @@ -975,7 +975,7 @@ Reference< XInterface > BaseControl::impl_getDelegator() } //____________________________________________________________________________________________________________ -// private method +// private method //____________________________________________________________________________________________________________ void BaseControl::impl_releasePeer() @@ -990,8 +990,8 @@ void BaseControl::impl_releasePeer() } m_xPeer->dispose(); - m_xPeerWindow = Reference< XWindow >(); - m_xPeer = Reference< XWindowPeer >(); + m_xPeerWindow = Reference< XWindow >(); + m_xPeer = Reference< XWindowPeer >(); if ( m_pMultiplexer != NULL ) { @@ -1002,7 +1002,7 @@ void BaseControl::impl_releasePeer() } //____________________________________________________________________________________________________________ -// private method +// private method //____________________________________________________________________________________________________________ OMRCListenerMultiplexerHelper* BaseControl::impl_getMultiplexer() |