diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-20 12:51:25 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2006-12-20 12:51:25 +0000 |
commit | 936706e64a8e83c8e9ebdd591185ee9cff16cd48 (patch) | |
tree | 15c2628d9df7f194869e36dbc660c119b55deb2b /toolkit | |
parent | 1d4e60fc3b8364926291f7d2b0be6785fd174d0d (diff) |
INTEGRATION: CWS jl49 (1.1.4); FILE ADDED
2006/12/19 09:42:16 jl 1.1.4.1: #i70481# adding copy of file which will be introduced in cws updchk02. In case of a conflict when updchk02 is integrated then the file from updchk02 shall be used
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/inc/toolkit/controls/tkthrobber.hxx | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/toolkit/inc/toolkit/controls/tkthrobber.hxx b/toolkit/inc/toolkit/controls/tkthrobber.hxx new file mode 100644 index 000000000000..f0b7d6967d47 --- /dev/null +++ b/toolkit/inc/toolkit/controls/tkthrobber.hxx @@ -0,0 +1,135 @@ +/************************************************************************* + * + * OpenOffice.org - a multi-platform office productivity suite + * + * $RCSfile: tkthrobber.hxx,v $ + * + * $Revision: 1.2 $ + * + * last change: $Author: ihi $ $Date: 2006-12-20 13:51:25 $ + * + * The Contents of this file are made available subject to + * the terms of GNU Lesser General Public License Version 2.1. + * + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2005 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + ************************************************************************/ +#ifndef TOOLKIT_CONTROLS_TKTHROBBER_HXX +#define TOOLKIT_CONTROLS_TKTHROBBER_HXX + +#ifndef _TOOLKIT_AWT_UNOCONTROLMODEL_HXX_ +#include <toolkit/controls/unocontrolmodel.hxx> +#endif +#ifndef _TOOLKIT_HELPER_SERVICENAMES_HXX_ +#include <toolkit/helper/servicenames.hxx> +#endif +#ifndef _TOOLKIT_AWT_UNOCONTROLBASE_HXX_ +#include <toolkit/controls/unocontrolbase.hxx> +#endif +#ifndef _TOOLKIT_HELPER_MACROS_HXX_ +#include <toolkit/helper/macros.hxx> +#endif + +#ifndef _COM_SUN_STAR_GRAPHIC_XGRAPHIC_HPP_ +#include <com/sun/star/graphic/XGraphic.hpp> +#endif +#ifndef _COM_SUN_STAR_AWT_XTHROBBER_HPP_ +#include <com/sun/star/awt/XThrobber.hpp> +#endif + +#ifndef _COMPHELPER_UNO3_HXX_ +#include <comphelper/uno3.hxx> +#endif +#ifndef _CPPUHELPER_IMPLBASE1_HXX_ +#include <cppuhelper/implbase1.hxx> +#endif + +//........................................................................ +namespace toolkit +{ +//........................................................................ + + //==================================================================== + //= UnoThrobberControlModel + //==================================================================== + class UnoThrobberControlModel : public UnoControlModel + { + protected: + ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const; + ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper(); + + public: + UnoThrobberControlModel(); + UnoThrobberControlModel( const UnoThrobberControlModel& rModel ) : UnoControlModel( rModel ) {;} + + UnoControlModel* Clone() const { return new UnoThrobberControlModel( *this ); } + + // XMultiPropertySet + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException); + + // XPersistObject + ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException); + + // XServiceInfo + ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + }; + + //==================================================================== + //= UnoThrobberControl + //==================================================================== + + typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XThrobber + > UnoThrobberControl_Base; + + class UnoThrobberControl :public UnoControlBase + ,public UnoThrobberControl_Base + { + private: + + public: + UnoThrobberControl(); + ::rtl::OUString GetComponentServiceName(); + + DECLARE_UNO3_AGG_DEFAULTS( UnoThrobberControl, UnoControlBase ); + ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); + + void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException); + void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); } + void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException); + + // XTypeProvider + DECLARE_XTYPEPROVIDER() + + // XThrobber + virtual void SAL_CALL start() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL stop() throw (::com::sun::star::uno::RuntimeException); + + // XServiceInfo + ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException); + ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); + }; + +//........................................................................ +} // namespacetoolkit +//........................................................................ + +#endif // TOOLKIT_CONTROLS_TKTHROBBER_HXX |