LCOV - code coverage report
Current view: top level - include/oox/ppt - slidetransition.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 4 50.0 %
Date: 2015-06-13 12:38:46 Functions: 1 2 50.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             : 
      21             : #ifndef INCLUDED_OOX_PPT_SLIDETRANSITION_HXX
      22             : #define INCLUDED_OOX_PPT_SLIDETRANSITION_HXX
      23             : 
      24             : #include <rtl/ustring.hxx>
      25             : 
      26             : #include <com/sun/star/animations/XTransitionFilter.hpp>
      27             : 
      28             : namespace oox { class PropertyMap; }
      29             : 
      30             : namespace oox { namespace ppt {
      31             : 
      32             :     class SlideTransition
      33             :     {
      34             :     public:
      35             :         SlideTransition();
      36             :         explicit SlideTransition(const OUString & );
      37             : 
      38             :         void setSlideProperties( PropertyMap& props );
      39             :         void setTransitionFilterProperties( const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XTransitionFilter > & xFilter );
      40             : 
      41             :         void setOoxTransitionSpeed( sal_Int32 nToken );
      42             :         void setFadeColor( sal_Int32 nColor )
      43             :             { mnFadeColor = nColor; }
      44           4 :         void setMode( bool bMode )
      45           4 :             { mbMode = bMode; }
      46           0 :         void setOoxAdvanceTime( sal_Int32 nAdvanceTime )
      47           0 :             { mnAdvanceTime = nAdvanceTime; }
      48             : 
      49             :     static sal_Int16 ooxToOdpDirection( ::sal_Int32 nOoxType );
      50             :     static sal_Int16 ooxToOdpEightDirections( ::sal_Int32 nOoxType );
      51             :     static sal_Int16 ooxToOdpCornerDirections( ::sal_Int32 nOoxType );
      52             :     static sal_Int16 ooxToOdpBorderDirections( ::sal_Int32 nOoxType );
      53             :     static sal_Int16 ooxToOdpSideDirections( ::sal_Int32 nOoxType );
      54             :     static bool      ooxToOdpSideDirectionsDirectionNormal( ::sal_Int32 nOoxType );
      55             : 
      56             :         void setOoxTransitionType( ::sal_Int32 OoxType,
      57             :                                                              ::sal_Int32 param1, ::sal_Int32 param2 );
      58             :     private:
      59             :         ::sal_Int16 mnTransitionType;
      60             :         ::sal_Int16 mnTransitionSubType;
      61             :         bool  mbTransitionDirectionNormal;
      62             :         ::sal_Int16 mnAnimationSpeed;
      63             :         ::sal_Int32 mnFadeColor;
      64             :         bool  mbMode; /**< http://api.libreoffice.org/docs/common/ref/com/sun/star/animations/XTransitionFilter.html Mode property */
      65             :         ::sal_Int32 mnAdvanceTime;
      66             :     };
      67             : 
      68             : } }
      69             : 
      70             : #endif
      71             : 
      72             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11