LCOV - code coverage report
Current view: top level - sd/source/ui/inc - unoaprms.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 39 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 19 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_SOURCE_UI_INC_UNOAPRMS_HXX
      21             : #define INCLUDED_SD_SOURCE_UI_INC_UNOAPRMS_HXX
      22             : 
      23             : #include <com/sun/star/presentation/AnimationEffect.hpp>
      24             : #include <com/sun/star/presentation/AnimationSpeed.hpp>
      25             : #include <com/sun/star/presentation/ClickAction.hpp>
      26             : #include "sdundo.hxx"
      27             : #include <svx/svdopath.hxx>
      28             : #include <tools/color.hxx>
      29             : 
      30             : class SdDrawDocument;
      31             : class SdrObject;
      32             : 
      33             : class SdAnimationPrmsUndoAction : public SdUndoAction
      34             : {
      35             :     SdrObject*      pObject;
      36             :     bool            bOldActive;
      37             :     bool            bNewActive;
      38             :     bool            bOldDimPrevious;
      39             :     bool            bNewDimPrevious;
      40             :     bool            bOldDimHide;
      41             :     bool            bNewDimHide;
      42             :     bool            bOldSoundOn;
      43             :     bool            bNewSoundOn;
      44             :     bool            bOldSecondSoundOn;
      45             :     bool            bNewSecondSoundOn;
      46             :     bool            bOldPlayFull;
      47             :     bool            bNewPlayFull;
      48             :     bool            bOldSecondPlayFull;
      49             :     bool            bNewSecondPlayFull;
      50             :     ::com::sun::star::presentation::AnimationEffect eOldEffect;
      51             :     ::com::sun::star::presentation::AnimationEffect eNewEffect;
      52             :     ::com::sun::star::presentation::AnimationEffect eOldTextEffect;
      53             :     ::com::sun::star::presentation::AnimationEffect eNewTextEffect;
      54             :     ::com::sun::star::presentation::AnimationSpeed  eOldSpeed;
      55             :     ::com::sun::star::presentation::AnimationSpeed  eNewSpeed;
      56             :     ::com::sun::star::presentation::AnimationEffect eOldSecondEffect;
      57             :     ::com::sun::star::presentation::AnimationEffect eNewSecondEffect;
      58             :     ::com::sun::star::presentation::AnimationSpeed  eOldSecondSpeed;
      59             :     ::com::sun::star::presentation::AnimationSpeed  eNewSecondSpeed;
      60             :     Color           aOldDimColor;
      61             :     Color           aNewDimColor;
      62             :     Color           aOldBlueScreen;
      63             :     Color           aNewBlueScreen;
      64             :     OUString        aOldSoundFile;
      65             :     OUString        aNewSoundFile;
      66             :     SdrPathObj*     pOldPathObj;
      67             :     SdrPathObj*     pNewPathObj;
      68             :     ::com::sun::star::presentation::ClickAction     eOldClickAction;
      69             :     ::com::sun::star::presentation::ClickAction     eNewClickAction;
      70             :     OUString        aOldBookmark;
      71             :     OUString        aNewBookmark;
      72             :     bool            bOldInvisibleInPres;
      73             :     bool            bNewInvisibleInPres;
      74             :     sal_uInt16          nOldVerb;
      75             :     sal_uInt16          nNewVerb;
      76             :     sal_uLong           nOldPresOrder;
      77             :     sal_uLong           nNewPresOrder;
      78             : 
      79             :     bool            bInfoCreated;
      80             : 
      81             : public:
      82             :     TYPEINFO_OVERRIDE();
      83           0 :     SdAnimationPrmsUndoAction(SdDrawDocument* pTheDoc, SdrObject* pObj,
      84             :                                   bool bCreated)
      85             :         : SdUndoAction(pTheDoc)
      86             :         , pObject(pObj)
      87             :         , bOldActive(false)
      88             :         , bNewActive(false)
      89             :         , bOldDimPrevious(false)
      90             :         , bNewDimPrevious(false)
      91             :         , bOldDimHide(false)
      92             :         , bNewDimHide(false)
      93             :         , bOldSoundOn(false)
      94             :         , bNewSoundOn(false)
      95             :         , bOldSecondSoundOn(false)
      96             :         , bNewSecondSoundOn(false)
      97             :         , bOldPlayFull(false)
      98             :         , bNewPlayFull(false)
      99             :         , bOldSecondPlayFull(false)
     100             :         , bNewSecondPlayFull(false)
     101             :         , eOldEffect(css::presentation::AnimationEffect_NONE)
     102             :         , eNewEffect(css::presentation::AnimationEffect_NONE)
     103             :         , eOldTextEffect(css::presentation::AnimationEffect_NONE)
     104             :         , eNewTextEffect(css::presentation::AnimationEffect_NONE)
     105             :         , eOldSpeed(css::presentation::AnimationSpeed_SLOW)
     106             :         , eNewSpeed(css::presentation::AnimationSpeed_SLOW)
     107             :         , eOldSecondEffect(css::presentation::AnimationEffect_NONE)
     108             :         , eNewSecondEffect(css::presentation::AnimationEffect_NONE)
     109             :         , eOldSecondSpeed(css::presentation::AnimationSpeed_SLOW)
     110             :         , eNewSecondSpeed(css::presentation::AnimationSpeed_SLOW)
     111             :         , pOldPathObj(NULL)
     112             :         , pNewPathObj(NULL)
     113             :         , eOldClickAction(css::presentation::ClickAction_NONE)
     114             :         , eNewClickAction(css::presentation::ClickAction_NONE)
     115             :         , bOldInvisibleInPres(false)
     116             :         , bNewInvisibleInPres(false)
     117             :         , nOldVerb(0)
     118             :         , nNewVerb(0)
     119             :         , nOldPresOrder(0)
     120             :         , nNewPresOrder(0)
     121           0 :         , bInfoCreated(bCreated)
     122             :     {
     123           0 :     }
     124             : 
     125           0 :         void SetActive(bool bTheOldActive, bool bTheNewActive)
     126           0 :             { bOldActive = bTheOldActive; bNewActive = bTheNewActive; }
     127           0 :         void SetEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
     128           0 :             { eOldEffect = eTheOldEffect; eNewEffect = eTheNewEffect; }
     129           0 :         void SetTextEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
     130           0 :             { eOldTextEffect = eTheOldEffect; eNewTextEffect = eTheNewEffect; }
     131           0 :         void SetSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
     132           0 :             { eOldSpeed = eTheOldSpeed; eNewSpeed = eTheNewSpeed; }
     133           0 :         void SetDim(bool bTheOldDim, bool bTheNewDim)
     134           0 :             { bOldDimPrevious = bTheOldDim; bNewDimPrevious = bTheNewDim; }
     135           0 :         void SetDimColor(Color aTheOldDimColor, Color aTheNewDimColor)
     136           0 :             { aOldDimColor = aTheOldDimColor; aNewDimColor = aTheNewDimColor; }
     137           0 :         void SetDimHide(bool bTheOldDimHide, bool bTheNewDimHide)
     138           0 :             { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; }
     139           0 :         void SetSoundOn(bool bTheOldSoundOn, bool bTheNewSoundOn)
     140           0 :             { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; }
     141           0 :         void SetSound(const OUString& aTheOldSound, const OUString& aTheNewSound)
     142           0 :             { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; }
     143             :         void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen)
     144             :             { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; }
     145           0 :         void SetPlayFull(bool bTheOldPlayFull, bool bTheNewPlayFull)
     146           0 :             { bOldPlayFull = bTheOldPlayFull; bNewPlayFull = bTheNewPlayFull; }
     147           0 :         void SetPathObj(SdrPathObj* pTheOldPath, SdrPathObj* pTheNewPath)
     148           0 :             { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; }
     149           0 :         void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction)
     150           0 :             { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; }
     151           0 :         void SetBookmark(const OUString& aTheOldBookmark, const OUString& aTheNewBookmark)
     152           0 :             { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; }
     153             :         void SetInvisibleInPres(bool bTheOldInvisibleInPres, bool bTheNewInvisibleInPres)
     154             :             { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; }
     155           0 :         void SetVerb(sal_uInt16 nTheOldVerb, sal_uInt16 nTheNewVerb)
     156           0 :             { nOldVerb = nTheOldVerb; nNewVerb = nTheNewVerb; }
     157           0 :         void SetSecondEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
     158           0 :             { eOldSecondEffect = eTheOldEffect; eNewSecondEffect = eTheNewEffect; }
     159           0 :         void SetSecondSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
     160           0 :             { eOldSecondSpeed = eTheOldSpeed; eNewSecondSpeed = eTheNewSpeed; }
     161           0 :         void SetSecondSoundOn(bool bTheOldSoundOn, bool bTheNewSoundOn)
     162           0 :             { bOldSecondSoundOn = bTheOldSoundOn; bNewSecondSoundOn = bTheNewSoundOn; }
     163           0 :         void SetSecondPlayFull(bool bTheOldPlayFull, bool bTheNewPlayFull)
     164           0 :             { bOldSecondPlayFull = bTheOldPlayFull; bNewSecondPlayFull = bTheNewPlayFull; }
     165             :         void SetPresOrder(sal_uLong nTheOldPresOrder, sal_uLong nTheNewPresOrder)
     166             :             { nOldPresOrder = nTheOldPresOrder; nNewPresOrder = nTheNewPresOrder; }
     167             : 
     168             :     virtual ~SdAnimationPrmsUndoAction();
     169             :     virtual void Undo() SAL_OVERRIDE;
     170             :     virtual void Redo() SAL_OVERRIDE;
     171             : };
     172             : 
     173             : #endif // INCLUDED_SD_SOURCE_UI_INC_UNOAPRMS_HXX
     174             : 
     175             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11