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_TKSIMPLEANIMATION_HXX
20 : #define TOOLKIT_CONTROLS_TKSIMPLEANIMATION_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/XSimpleAnimation.hpp>
28 : #include <comphelper/uno3.hxx>
29 : #include <cppuhelper/implbase1.hxx>
30 :
31 : //........................................................................
32 : namespace toolkit
33 : {
34 : //........................................................................
35 :
36 : //====================================================================
37 : //= UnoSimpleAnimationControlModel
38 : //====================================================================
39 0 : class UnoSimpleAnimationControlModel : 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 : UnoSimpleAnimationControlModel( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
47 0 : UnoSimpleAnimationControlModel( const UnoSimpleAnimationControlModel& rModel ) : UnoControlModel( rModel ) {;}
48 :
49 0 : UnoControlModel* Clone() const { return new UnoSimpleAnimationControlModel( *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 : //= UnoSimpleAnimationControl
64 : //====================================================================
65 :
66 : typedef ::cppu::AggImplInheritanceHelper1 < UnoControlBase
67 : , ::com::sun::star::awt::XSimpleAnimation
68 : > UnoSimpleAnimationControl_Base;
69 :
70 0 : class UnoSimpleAnimationControl : public UnoSimpleAnimationControl_Base
71 : {
72 : private:
73 :
74 : public:
75 : UnoSimpleAnimationControl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory );
76 : ::rtl::OUString GetComponentServiceName();
77 :
78 : // XSimpleAnimation
79 : virtual void SAL_CALL start() throw (::com::sun::star::uno::RuntimeException);
80 : virtual void SAL_CALL stop() throw (::com::sun::star::uno::RuntimeException);
81 : virtual void SAL_CALL setImageList( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > >& ImageList )
82 : throw (::com::sun::star::uno::RuntimeException);
83 :
84 : // XServiceInfo
85 : ::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
86 : ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
87 : };
88 :
89 : //........................................................................
90 : } // namespacetoolkit
91 : //........................................................................
92 :
93 : #endif // TOOLKIT_CONTROLS_TKSIMPLEANIMATION_HXX
94 :
95 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|