LCOV - code coverage report
Current view: top level - sd/source/filter/ppt - pptinanimations.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 100.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_SOURCE_FILTER_PPT_PPTINANIMATIONS_HXX
      21             : #define INCLUDED_SD_SOURCE_FILTER_PPT_PPTINANIMATIONS_HXX
      22             : 
      23             : #include <com/sun/star/animations/XTimeContainer.hpp>
      24             : #include <com/sun/star/drawing/XDrawPage.hpp>
      25             : 
      26             : #include "pptanimations.hxx"
      27             : #include <animations.hxx>
      28             : 
      29             : #ifdef DBG_ANIM_LOG
      30             : #include <stdio.h>
      31             : #endif
      32             : #include <filter/msfilter/svdfppt.hxx>
      33             : 
      34             : #include <list>
      35             : 
      36             : class DffRecordHeader;
      37             : class SvStream;
      38             : class ImplSdPPTImport;
      39             : 
      40             : namespace ppt
      41             : {
      42             : class PropertySet;
      43             : class Atom;
      44             : 
      45          43 : class AnimationImporter
      46             : {
      47             : public:
      48             :     AnimationImporter( ImplSdPPTImport* pPPTImport, SvStream& rStCtrl );
      49             : 
      50             :     int  import( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xPage, const DffRecordHeader& rProgTagContentHd );
      51             : 
      52             : private:
      53             :     int  importAnimationContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xParent );
      54             :     int  importTimeContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      55             :     int  importAnimationNodeContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      56             : 
      57             :     void importAnimateSetContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      58             :     void importAnimateFilterContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      59             :     void importAnimateContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      60             :     void importAnimateScaleContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      61             :     void importAnimateColorContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      62             :     void importAnimateRotationContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      63             :     void importAnimateMotionContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      64             :     void importCommandContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      65             :     int  importAudioContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      66             : 
      67             :     void importAnimationEvents( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      68             :     void importAnimationValues( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      69             :     void importAnimationActions( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      70             :     void importAnimateAttributeTargetContainer( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      71             : 
      72             :     void importAnimateKeyPoints( const Atom* pAtom, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      73             :     void importPropertySetContainer( const Atom* pAtom,PropertySet& rSet );
      74             :     bool importAttributeValue( const Atom* pAtom, com::sun::star::uno::Any& rAny );
      75             :     bool importAttributeNamesContainer( const Atom* pAtom, OUString& rAttributeNames );
      76             :     sal_Int32 importTargetElementContainer( const Atom* pAtom, ::com::sun::star::uno::Any& rTarget, sal_Int16& nSubType );
      77             : 
      78             :     static void fillNode( ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xTiming, const AnimationNode& rNode, const PropertySet& rSet );
      79             :     static ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > createNode( const Atom* pAtom, const AnimationNode& rNode );
      80             : 
      81             :     bool convertAnimationNode( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xParent );
      82             :     static bool convertAnimationValue( MS_AttributeNames eAttribute, com::sun::star::uno::Any& rValue );
      83             : 
      84             :     static void fixMainSequenceTiming( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      85             :     static void fixInteractiveSequenceTiming( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
      86             : 
      87             :     void processAfterEffectNodes();
      88             : 
      89             :     ::com::sun::star::uno::Any  implGetColorAny( sal_Int32 nMode, sal_Int32  nA, sal_Int32 nB, sal_Int32 nC );
      90             :     static sal_Int16            implGetColorSpace( sal_Int32 nMode, sal_Int32  nA, sal_Int32 nB, sal_Int32 nC );
      91             : 
      92             : private:
      93             :     ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > mxRootNode;
      94             : 
      95             :     ImplSdPPTImport* mpPPTImport;
      96             :     SvStream&   mrStCtrl;
      97             : 
      98             :     sd::AfterEffectNodeList maAfterEffectNodes;
      99             : 
     100             : #ifdef DBG_ANIM_LOG
     101             :     FILE * mpFile;
     102             :     void dump_anim_group( const Atom* pAtom, const AnimationNode& rNode, const PropertySet& rSet, bool bOpen );
     103             :     void dump( const OUString& rString );
     104             :     void dump( sal_uInt32 nLen, bool bNewLine = true );
     105             : #endif
     106             : 
     107             :     static void dump_atom_header( const Atom* pAtom, bool bOpen, bool bAppend );
     108             :     static void dump_atom( const Atom* pAtom, bool bNewLine = true );
     109             :     static void dump_target( ::com::sun::star::uno::Any& rAny );
     110             :     static void dump( ::com::sun::star::uno::Any& rAny );
     111             :     static void dump( const PropertySet& rSet );
     112             :     static void dump( const AnimationNode& rNode );
     113             :     static void dump( const char * pText );
     114             :     static void dump( const char * pText, sal_Int32 nInt );
     115             :     void dump( const char * pText, sal_Int64 nInt );
     116             :     static void dump( const char * pText, double fDouble );
     117             :     static void dump( const char * pText, const char * pText2 );
     118             :     static void dump( const char * pText, const OUString& rString );
     119             : };
     120             : 
     121             : } // namespace ppt
     122             : 
     123             : #endif
     124             : 
     125             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11