diff options
Diffstat (limited to 'UnoControls/source/controls/statusindicator.cxx')
-rw-r--r-- | UnoControls/source/controls/statusindicator.cxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/UnoControls/source/controls/statusindicator.cxx b/UnoControls/source/controls/statusindicator.cxx index e90b21a67bb9..b0f4c5b1eb1b 100644 --- a/UnoControls/source/controls/statusindicator.cxx +++ b/UnoControls/source/controls/statusindicator.cxx @@ -36,10 +36,8 @@ using namespace ::com::sun::star::task ; namespace unocontrols{ - // construct/destruct - StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext >& rxContext ) : BaseContainerControl ( rxContext ) { @@ -69,10 +67,8 @@ StatusIndicator::StatusIndicator( const css::uno::Reference< XComponentContext > StatusIndicator::~StatusIndicator() {} - // XInterface - Any SAL_CALL StatusIndicator::queryInterface( const Type& rType ) throw( RuntimeException, std::exception ) { // Attention: @@ -94,10 +90,8 @@ Any SAL_CALL StatusIndicator::queryInterface( const Type& rType ) throw( Runtime return aReturn ; } - // XInterface - void SAL_CALL StatusIndicator::acquire() throw() { // Attention: @@ -107,10 +101,8 @@ void SAL_CALL StatusIndicator::acquire() throw() BaseControl::acquire(); } - // XInterface - void SAL_CALL StatusIndicator::release() throw() { // Attention: @@ -120,10 +112,8 @@ void SAL_CALL StatusIndicator::release() throw() BaseControl::release(); } - // XTypeProvider - Sequence< Type > SAL_CALL StatusIndicator::getTypes() throw( RuntimeException, std::exception ) { // Optimize this method ! @@ -152,10 +142,8 @@ Sequence< Type > SAL_CALL StatusIndicator::getTypes() throw( RuntimeException, s return pTypeCollection->getTypes(); } - // XAggregation - Any SAL_CALL StatusIndicator::queryAggregation( const Type& aType ) throw( RuntimeException, std::exception ) { // Ask for my own supported interfaces ... @@ -176,10 +164,8 @@ Any SAL_CALL StatusIndicator::queryAggregation( const Type& aType ) throw( Runti return aReturn ; } - // XStatusIndicator - void SAL_CALL StatusIndicator::start( const OUString& sText, sal_Int32 nRange ) throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -192,10 +178,8 @@ void SAL_CALL StatusIndicator::start( const OUString& sText, sal_Int32 nRange ) impl_recalcLayout ( WindowEvent(static_cast< OWeakObject* >(this),0,0,impl_getWidth(),impl_getHeight(),0,0,0,0) ) ; } - // XStatusIndicator - void SAL_CALL StatusIndicator::end() throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -207,10 +191,8 @@ void SAL_CALL StatusIndicator::end() throw( RuntimeException, std::exception ) setVisible( sal_False ); } - // XStatusIndicator - void SAL_CALL StatusIndicator::setText( const OUString& sText ) throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -220,10 +202,8 @@ void SAL_CALL StatusIndicator::setText( const OUString& sText ) throw( RuntimeEx m_xText->setText( sText ); } - // XStatusIndicator - void SAL_CALL StatusIndicator::setValue( sal_Int32 nValue ) throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -233,10 +213,8 @@ void SAL_CALL StatusIndicator::setValue( sal_Int32 nValue ) throw( RuntimeExcept m_xProgressBar->setValue( nValue ); } - // XStatusIndicator - void SAL_CALL StatusIndicator::reset() throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -248,19 +226,15 @@ void SAL_CALL StatusIndicator::reset() throw( RuntimeException, std::exception ) m_xProgressBar->setValue( 0 ); } - // XLayoutConstrains - Size SAL_CALL StatusIndicator::getMinimumSize () throw( RuntimeException, std::exception ) { return Size (STATUSINDICATOR_DEFAULT_WIDTH, STATUSINDICATOR_DEFAULT_HEIGHT) ; } - // XLayoutConstrains - Size SAL_CALL StatusIndicator::getPreferredSize () throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -290,19 +264,15 @@ Size SAL_CALL StatusIndicator::getPreferredSize () throw( RuntimeException, std: return Size ( nWidth, nHeight ) ; } - // XLayoutConstrains - Size SAL_CALL StatusIndicator::calcAdjustedSize ( const Size& /*rNewSize*/ ) throw( RuntimeException, std::exception ) { return getPreferredSize () ; } - // XControl - void SAL_CALL StatusIndicator::createPeer ( const css::uno::Reference< XToolkit > & rToolkit, const css::uno::Reference< XWindowPeer > & rParent @@ -320,20 +290,16 @@ void SAL_CALL StatusIndicator::createPeer ( } } - // XControl - sal_Bool SAL_CALL StatusIndicator::setModel ( const css::uno::Reference< XControlModel > & /*rModel*/ ) throw( RuntimeException, std::exception ) { // We have no model. return sal_False ; } - // XControl - css::uno::Reference< XControlModel > SAL_CALL StatusIndicator::getModel () throw( RuntimeException, std::exception ) { // We have no model. @@ -341,10 +307,8 @@ css::uno::Reference< XControlModel > SAL_CALL StatusIndicator::getModel () throw return css::uno::Reference< XControlModel > () ; } - // XComponent - void SAL_CALL StatusIndicator::dispose () throw( RuntimeException, std::exception ) { // Ready for multithreading @@ -363,10 +327,8 @@ void SAL_CALL StatusIndicator::dispose () throw( RuntimeException, std::exceptio BaseContainerControl::dispose(); } - // XWindow - void SAL_CALL StatusIndicator::setPosSize ( sal_Int32 nX, sal_Int32 nY, @@ -394,28 +356,22 @@ void SAL_CALL StatusIndicator::setPosSize ( } } - // impl but public method to register service - const Sequence< OUString > StatusIndicator::impl_getStaticSupportedServiceNames() { return css::uno::Sequence<OUString>(); } - // impl but public method to register service - const OUString StatusIndicator::impl_getStaticImplementationName() { return OUString("stardiv.UnoControls.StatusIndicator"); } - // protected method - WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Reference< XWindowPeer >& xParentPeer ) { // - used from "createPeer()" to set the values of an ::com::sun::star::awt::WindowDescriptor !!! @@ -433,10 +389,8 @@ WindowDescriptor* StatusIndicator::impl_getWindowDescriptor( const css::uno::Ref return pDescriptor ; } - // protected method - void StatusIndicator::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::Reference< XGraphics > & rGraphics ) { // This paint method ist not buffered !! @@ -472,10 +426,8 @@ void StatusIndicator::impl_paint ( sal_Int32 nX, sal_Int32 nY, const css::uno::R } } - // protected method - void StatusIndicator::impl_recalcLayout ( const WindowEvent& aEvent ) { sal_Int32 nX_ProgressBar ; |