LibreOffice Module sd (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Ppt97Animation Class Reference

this is a helping class for import of PPT 97 animations More...

#include <ppt97animations.hxx>

Collaboration diagram for Ppt97Animation:
[legend]

Public Member Functions

 Ppt97Animation (SvStream &rIn)
 
bool operator< (const Ppt97Animation &rAnimation) const
 
bool operator> (const Ppt97Animation &rAnimation) const
 
bool HasEffect () const
 
bool HasParagraphEffect () const
 
bool HasSoundEffect () const
 
sal_Int32 GetDimColor () const
 
sal_uInt32 GetSoundRef () const
 
bool HasAnimateAssociatedShape () const
 
void SetDimColor (Color nDimColor)
 
void SetSoundFileUrl (const OUString &rSoundFileUrl)
 
void SetAnimateAssociatedShape (bool bAnimate)
 
void createAndSetCustomAnimationEffect (SdrObject *pObj)
 this method creates a CustomAnimationEffect for the given SdrObject from internal data and stores the created effect at the draw model More...
 

Private Member Functions

OUString const & GetPresetId () const
 
OUString const & GetPresetSubType () const
 
bool HasAfterEffect () const
 
bool HasAfterEffect_ChangeColor () const
 
bool HasAfterEffect_DimAtNextEffect () const
 
bool HasStopPreviousSound () const
 
bool HasReverseOrder () const
 
sal_Int32 GetParagraphLevel () const
 paragraph level that is animated ( that paragraph and higher levels ) More...
 
sal_Int16 GetTextAnimationType () const
 
sal_Int16 GetEffectNodeType () const
 
double GetDelayTimeInSeconds () const
 
bool GetSpecialDuration (double &rfDurationInSeconds) const
 
bool GetSpecialTextIterationDelay (double &rfTextIterationDelay) const
 
void UpdateCacheData () const
 
void ClearCacheData () const
 

Private Attributes

Ppt97AnimationInfoAtom m_aAtom
 pure input from stream More...
 
OUString m_aSoundFileUrl
 this needs to be set in addition from outside as this class has not the knowledge to translate the sound bits to a file url More...
 
bool m_bDirtyCache
 
OUString m_aPresetId
 
OUString m_aSubType
 
bool m_bHasSpecialDuration
 
double m_fDurationInSeconds
 

Detailed Description

this is a helping class for import of PPT 97 animations

  1. use the constructor Ppt97Animation( SvStream& rIn ) to import information from the stream
  2. use the set methods to modify and complete the data
  3. use the method createAndSetCustomAnimationEffect( ) to create an effect in sd model

Definition at line 84 of file ppt97animations.hxx.

Constructor & Destructor Documentation

◆ Ppt97Animation()

Ppt97Animation::Ppt97Animation ( SvStream rIn)
explicit

Definition at line 55 of file ppt97animations.cxx.

References m_aAtom, Ppt97AnimationInfoAtom::ReadStream(), and rInputStream.

Member Function Documentation

◆ ClearCacheData()

void Ppt97Animation::ClearCacheData ( ) const
private

Definition at line 225 of file ppt97animations.cxx.

References m_aPresetId, m_aSubType, m_bHasSpecialDuration, and m_fDurationInSeconds.

Referenced by UpdateCacheData().

◆ createAndSetCustomAnimationEffect()

void Ppt97Animation::createAndSetCustomAnimationEffect ( SdrObject pObj)

◆ GetDelayTimeInSeconds()

double Ppt97Animation::GetDelayTimeInSeconds ( ) const
private
Returns
-1 for start on mouseclick or >= 0 for a delay in seconds for automatic start

Definition at line 126 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nDelayTime.

Referenced by createAndSetCustomAnimationEffect().

◆ GetDimColor()

sal_Int32 Ppt97Animation::GetDimColor ( ) const
inline

Definition at line 97 of file ppt97animations.hxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nDimColor.

Referenced by createAndSetCustomAnimationEffect().

◆ GetEffectNodeType()

sal_Int16 Ppt97Animation::GetEffectNodeType ( ) const
private
See also
css::presentation::EffectNodeType

Definition at line 188 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nFlags.

Referenced by createAndSetCustomAnimationEffect().

◆ GetParagraphLevel()

sal_Int32 Ppt97Animation::GetParagraphLevel ( ) const
private

paragraph level that is animated ( that paragraph and higher levels )

Definition at line 80 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nBuildType.

Referenced by createAndSetCustomAnimationEffect().

◆ GetPresetId()

OUString const & Ppt97Animation::GetPresetId ( ) const
private

◆ GetPresetSubType()

OUString const & Ppt97Animation::GetPresetSubType ( ) const
private

Definition at line 219 of file ppt97animations.cxx.

References m_aSubType, and UpdateCacheData().

Referenced by createAndSetCustomAnimationEffect().

◆ GetSoundRef()

sal_uInt32 Ppt97Animation::GetSoundRef ( ) const
inline

Definition at line 98 of file ppt97animations.hxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nSoundRef.

◆ GetSpecialDuration()

bool Ppt97Animation::GetSpecialDuration ( double &  rfDurationInSeconds) const
private

◆ GetSpecialTextIterationDelay()

bool Ppt97Animation::GetSpecialTextIterationDelay ( double &  rfTextIterationDelay) const
private

Definition at line 139 of file ppt97animations.cxx.

References GetTextAnimationType().

Referenced by createAndSetCustomAnimationEffect().

◆ GetTextAnimationType()

sal_Int16 Ppt97Animation::GetTextAnimationType ( ) const
private
See also
css::presentation::TextAnimationType

Definition at line 198 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nSubEffect.

Referenced by createAndSetCustomAnimationEffect(), and GetSpecialTextIterationDelay().

◆ HasAfterEffect()

bool Ppt97Animation::HasAfterEffect ( ) const
private

◆ HasAfterEffect_ChangeColor()

bool Ppt97Animation::HasAfterEffect_ChangeColor ( ) const
private

◆ HasAfterEffect_DimAtNextEffect()

bool Ppt97Animation::HasAfterEffect_DimAtNextEffect ( ) const
private

◆ HasAnimateAssociatedShape()

bool Ppt97Animation::HasAnimateAssociatedShape ( ) const
Returns
true if the shape should be animated in addition to the text

Definition at line 99 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nFlags.

Referenced by createAndSetCustomAnimationEffect(), and SetAnimateAssociatedShape().

◆ HasEffect()

bool Ppt97Animation::HasEffect ( ) const

◆ HasParagraphEffect()

bool Ppt97Animation::HasParagraphEffect ( ) const

Definition at line 76 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nBuildType.

Referenced by createAndSetCustomAnimationEffect().

◆ HasReverseOrder()

bool Ppt97Animation::HasReverseOrder ( ) const
private
Returns
true if the text paragraphs should be animated in reverse order

Definition at line 95 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nFlags.

Referenced by createAndSetCustomAnimationEffect().

◆ HasSoundEffect()

bool Ppt97Animation::HasSoundEffect ( ) const

◆ HasStopPreviousSound()

bool Ppt97Animation::HasStopPreviousSound ( ) const
private

Definition at line 91 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nFlags.

Referenced by createAndSetCustomAnimationEffect().

◆ operator<()

bool Ppt97Animation::operator< ( const Ppt97Animation rAnimation) const

Definition at line 64 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nOrderID.

◆ operator>()

bool Ppt97Animation::operator> ( const Ppt97Animation rAnimation) const

Definition at line 68 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nOrderID.

◆ SetAnimateAssociatedShape()

void Ppt97Animation::SetAnimateAssociatedShape ( bool  bAnimate)

◆ SetDimColor()

void Ppt97Animation::SetDimColor ( Color  nDimColor)

Definition at line 158 of file ppt97animations.cxx.

References m_aAtom, and Ppt97AnimationInfoAtom::nDimColor.

◆ SetSoundFileUrl()

void Ppt97Animation::SetSoundFileUrl ( const OUString &  rSoundFileUrl)

Definition at line 121 of file ppt97animations.cxx.

References m_aSoundFileUrl.

◆ UpdateCacheData()

void Ppt97Animation::UpdateCacheData ( ) const
private

Member Data Documentation

◆ m_aAtom

Ppt97AnimationInfoAtom Ppt97Animation::m_aAtom
private

◆ m_aPresetId

OUString Ppt97Animation::m_aPresetId
mutableprivate

Definition at line 150 of file ppt97animations.hxx.

Referenced by ClearCacheData(), GetPresetId(), and UpdateCacheData().

◆ m_aSoundFileUrl

OUString Ppt97Animation::m_aSoundFileUrl
private

this needs to be set in addition from outside as this class has not the knowledge to translate the sound bits to a file url

Definition at line 146 of file ppt97animations.hxx.

Referenced by createAndSetCustomAnimationEffect(), and SetSoundFileUrl().

◆ m_aSubType

OUString Ppt97Animation::m_aSubType
mutableprivate

Definition at line 151 of file ppt97animations.hxx.

Referenced by ClearCacheData(), GetPresetSubType(), and UpdateCacheData().

◆ m_bDirtyCache

bool Ppt97Animation::m_bDirtyCache
mutableprivate

Definition at line 149 of file ppt97animations.hxx.

Referenced by UpdateCacheData().

◆ m_bHasSpecialDuration

bool Ppt97Animation::m_bHasSpecialDuration
mutableprivate

Definition at line 152 of file ppt97animations.hxx.

Referenced by ClearCacheData(), GetSpecialDuration(), and UpdateCacheData().

◆ m_fDurationInSeconds

double Ppt97Animation::m_fDurationInSeconds
mutableprivate

Definition at line 153 of file ppt97animations.hxx.

Referenced by ClearCacheData(), GetSpecialDuration(), and UpdateCacheData().


The documentation for this class was generated from the following files: