Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : : #ifndef TOOLKIT_CONTROLS_TKTHROBBER_HXX
20 : : #define TOOLKIT_CONTROLS_TKTHROBBER_HXX
21 : :
22 : : #include <toolkit/controls/unocontrolmodel.hxx>
23 : : #include <toolkit/helper/servicenames.hxx>
24 : : #include <toolkit/controls/unocontrolbase.hxx>
25 : : #include <toolkit/helper/macros.hxx>
26 : : #include <com/sun/star/graphic/XGraphic.hpp>
27 : : #include <com/sun/star/awt/XThrobber.hpp>
28 : : #include <comphelper/uno3.hxx>
29 : : #include <cppuhelper/implbase1.hxx>
30 : :
31 : : //........................................................................
32 : : namespace toolkit
33 : : {
34 : : //........................................................................
35 : :
36 : : //====================================================================
37 : : //= UnoThrobberControlModel
38 : : //====================================================================
39 [ # # ]: 0 : class UnoThrobberControlModel : public UnoControlModel
40 : : {
41 : : protected:
42 : : ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const;
43 : : ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
44 : :
45 : : public:
46 : : UnoThrobberControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
47 : 0 : UnoThrobberControlModel( const UnoThrobberControlModel& rModel ) : UnoControlModel( rModel ) {;}
48 : :
49 [ # # ]: 0 : UnoControlModel* Clone() const { return new UnoThrobberControlModel( *this ); }
50 : :
51 : : // XMultiPropertySet
52 : : ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw(::com::sun::star::uno::RuntimeException);
53 : :
54 : : // XPersistObject
55 : : ::rtl::OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException);
56 : :
57 : : // XServiceInfo
58 : : ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
59 : : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
60 : : };
61 : :
62 : : //====================================================================
63 : : //= UnoThrobberControl
64 : : //====================================================================
65 : :
66 : : typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XThrobber
67 : : > UnoThrobberControl_Base;
68 : :
69 [ # # ]: 0 : class UnoThrobberControl :public UnoControlBase
70 : : ,public UnoThrobberControl_Base
71 : : {
72 : : private:
73 : :
74 : : public:
75 : : UnoThrobberControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
76 : : ::rtl::OUString GetComponentServiceName();
77 : :
78 : 0 : DECLARE_UNO3_AGG_DEFAULTS( UnoThrobberControl, UnoControlBase );
79 : : ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
80 : :
81 : : 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);
82 : 0 : void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException) { UnoControlBase::disposing( Source ); }
83 : : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException);
84 : :
85 : : // XTypeProvider
86 : : DECLARE_XTYPEPROVIDER()
87 : :
88 : : // XThrobber
89 : : virtual void SAL_CALL start() throw (::com::sun::star::uno::RuntimeException);
90 : : virtual void SAL_CALL stop() throw (::com::sun::star::uno::RuntimeException);
91 : :
92 : : // XServiceInfo
93 : : ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
94 : : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
95 : : };
96 : :
97 : : //........................................................................
98 : : } // namespacetoolkit
99 : : //........................................................................
100 : :
101 : : #endif // TOOLKIT_CONTROLS_TKTHROBBER_HXX
102 : :
103 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|