LCOV - code coverage report
Current view: top level - sd/inc - TransitionPreset.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 7 0.0 %
Date: 2014-04-14 Functions: 0 7 0.0 %
Legend: Lines: hit not hit

          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             : 
      20             : #ifndef INCLUDED_SD_INC_TRANSITIONPRESET_HXX
      21             : #define INCLUDED_SD_INC_TRANSITIONPRESET_HXX
      22             : 
      23             : #include <boost/shared_ptr.hpp>
      24             : #include <com/sun/star/lang/XMultiServiceFactory.hpp>
      25             : 
      26             : #include <list>
      27             : #include <boost/unordered_map.hpp>
      28             : 
      29             : namespace com { namespace sun { namespace star {
      30             :     namespace animations { class XAnimationNode; }
      31             :     namespace uno { template<class X> class Reference; }
      32             : } } }
      33             : 
      34             : class SdPage;
      35             : 
      36             : namespace sd {
      37             : 
      38             : class TransitionPreset;
      39             : typedef boost::shared_ptr< TransitionPreset > TransitionPresetPtr;
      40             : typedef std::list< TransitionPresetPtr > TransitionPresetList;
      41             : typedef boost::unordered_map< OUString, OUString, OUStringHash > UStringMap;
      42             : 
      43           0 : class TransitionPreset
      44             : {
      45             : public:
      46             :     static const TransitionPresetList& getTransitionPresetList();
      47             :     static bool importTransitionPresetList( TransitionPresetList& rList );
      48             : 
      49             :     void apply( SdPage* pSlide ) const;
      50             : 
      51           0 :     sal_Int16 getTransition() const { return mnTransition; }
      52           0 :     sal_Int16 getSubtype() const { return mnSubtype; }
      53           0 :     sal_Bool getDirection() const { return mbDirection; }
      54           0 :     sal_Int32 getFadeColor() const { return mnFadeColor; }
      55             : 
      56           0 :     const OUString& getUIName() const { return maUIName; }
      57           0 :     const OUString& getPresetId() const { return maPresetId; }
      58             : 
      59             : private:
      60             :     TransitionPreset( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      61             : 
      62             :     sal_Int16 mnTransition;
      63             :     sal_Int16 mnSubtype;
      64             :     sal_Bool mbDirection;
      65             :     sal_Int32 mnFadeColor;
      66             :     OUString maPresetId;
      67             :     OUString maUIName;
      68             : 
      69             :     static bool importTransitionsFile( TransitionPresetList& rList,
      70             :                                        ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
      71             :                                        UStringMap& rTransitionNameMape,
      72             :                                        const OUString& aFilename );
      73             : };
      74             : 
      75             : }
      76             : 
      77             : #endif // INCLUDED_SD_INC_TRANSITIONPRESET_HXX
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10