LibreOffice Module sd (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
sd::CustomAnimationPresets Class Referencefinal

#include <CustomAnimationPreset.hxx>

Public Member Functions

SAL_DLLPRIVATE CustomAnimationPresets ()
 
SAL_DLLPRIVATE ~CustomAnimationPresets ()
 
SAL_DLLPRIVATE css::uno::Reference< css::animations::XAnimationNode > getRandomPreset (sal_Int16 nPresetClass) const
 
CustomAnimationPresetPtr getEffectDescriptor (const OUString &rPresetId) const
 
SAL_DLLPRIVATE const OUString & getUINameForPresetId (const OUString &rPresetId) const
 
SAL_DLLPRIVATE const OUString & getUINameForProperty (const OUString &rProperty) const
 
SAL_DLLPRIVATE const PresetCategoryListgetEntrancePresets () const
 
SAL_DLLPRIVATE const PresetCategoryListgetEmphasisPresets () const
 
SAL_DLLPRIVATE const PresetCategoryListgetExitPresets () const
 
SAL_DLLPRIVATE const PresetCategoryListgetMotionPathsPresets () const
 
SAL_DLLPRIVATE const PresetCategoryListgetMiscPresets () const
 
SAL_DLLPRIVATE void changePresetSubType (const CustomAnimationEffectPtr &pEffect, const OUString &rPresetSubType) const
 

Static Public Member Functions

static const CustomAnimationPresetsgetCustomAnimationPresets ()
 This method gets presets instance, which is localized for the current user's locale. More...
 

Private Member Functions

SAL_DLLPRIVATE void importEffects ()
 
SAL_DLLPRIVATE void importResources ()
 
SAL_DLLPRIVATE void importPresets (const css::uno::Reference< css::lang::XMultiServiceFactory > &xConfigProvider, const OUString &rNodePath, PresetCategoryList &rPresetMap)
 

Static Private Member Functions

static SAL_DLLPRIVATE const OUString & translateName (const OUString &rId, const UStringMap &rNameMap)
 

Private Attributes

css::uno::Reference< css::animations::XAnimationNode > mxRootNode
 
EffectDescriptorMap maEffectDescriptorMap
 
UStringMap maEffectNameMap
 
UStringMap maPropertyNameMap
 
PresetCategoryList maEntrancePresets
 
PresetCategoryList maEmphasisPresets
 
PresetCategoryList maExitPresets
 
PresetCategoryList maMotionPathsPresets
 
PresetCategoryList maMiscPresets
 

Static Private Attributes

static SAL_DLLPRIVATE std::map< OUString, CustomAnimationPresetsmPresetsMap
 Maps per-language the animation presets. More...
 

Detailed Description

Definition at line 85 of file CustomAnimationPreset.hxx.

Constructor & Destructor Documentation

◆ CustomAnimationPresets()

sd::CustomAnimationPresets::CustomAnimationPresets ( )

Definition at line 204 of file CustomAnimationPreset.cxx.

◆ ~CustomAnimationPresets()

sd::CustomAnimationPresets::~CustomAnimationPresets ( )

Definition at line 208 of file CustomAnimationPreset.cxx.

Member Function Documentation

◆ changePresetSubType()

void sd::CustomAnimationPresets::changePresetSubType ( const CustomAnimationEffectPtr pEffect,
const OUString &  rPresetSubType 
) const

◆ getCustomAnimationPresets()

const CustomAnimationPresets & sd::CustomAnimationPresets::getCustomAnimationPresets ( )
static

◆ getEffectDescriptor()

CustomAnimationPresetPtr sd::CustomAnimationPresets::getEffectDescriptor ( const OUString &  rPresetId) const

◆ getEmphasisPresets()

SAL_DLLPRIVATE const PresetCategoryList & sd::CustomAnimationPresets::getEmphasisPresets ( ) const
inline

Definition at line 104 of file CustomAnimationPreset.hxx.

Referenced by sd::CustomAnimationPane::fillAnimationLB().

◆ getEntrancePresets()

SAL_DLLPRIVATE const PresetCategoryList & sd::CustomAnimationPresets::getEntrancePresets ( ) const
inline

Definition at line 103 of file CustomAnimationPreset.hxx.

Referenced by sd::CustomAnimationPane::fillAnimationLB().

◆ getExitPresets()

SAL_DLLPRIVATE const PresetCategoryList & sd::CustomAnimationPresets::getExitPresets ( ) const
inline

Definition at line 105 of file CustomAnimationPreset.hxx.

Referenced by sd::CustomAnimationPane::fillAnimationLB().

◆ getMiscPresets()

SAL_DLLPRIVATE const PresetCategoryList & sd::CustomAnimationPresets::getMiscPresets ( ) const
inline

Definition at line 107 of file CustomAnimationPreset.hxx.

Referenced by sd::CustomAnimationPane::fillAnimationLB().

◆ getMotionPathsPresets()

SAL_DLLPRIVATE const PresetCategoryList & sd::CustomAnimationPresets::getMotionPathsPresets ( ) const
inline

Definition at line 106 of file CustomAnimationPreset.hxx.

Referenced by sd::CustomAnimationPane::fillAnimationLB().

◆ getRandomPreset()

Reference< XAnimationNode > sd::CustomAnimationPresets::getRandomPreset ( sal_Int16  nPresetClass) const

◆ getUINameForPresetId()

const OUString & sd::CustomAnimationPresets::getUINameForPresetId ( const OUString &  rPresetId) const

Definition at line 412 of file CustomAnimationPreset.cxx.

References maEffectNameMap, and translateName().

Referenced by importEffects().

◆ getUINameForProperty()

const OUString & sd::CustomAnimationPresets::getUINameForProperty ( const OUString &  rProperty) const

Definition at line 417 of file CustomAnimationPreset.cxx.

References maPropertyNameMap, and translateName().

◆ importEffects()

void sd::CustomAnimationPresets::importEffects ( )
private

◆ importPresets()

void sd::CustomAnimationPresets::importPresets ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  xConfigProvider,
const OUString &  rNodePath,
PresetCategoryList rPresetMap 
)
private

◆ importResources()

void sd::CustomAnimationPresets::importResources ( )
private

◆ translateName()

const OUString & sd::CustomAnimationPresets::translateName ( const OUString &  rId,
const UStringMap rNameMap 
)
staticprivate

Definition at line 422 of file CustomAnimationPreset.cxx.

Referenced by getUINameForPresetId(), and getUINameForProperty().

Member Data Documentation

◆ maEffectDescriptorMap

EffectDescriptorMap sd::CustomAnimationPresets::maEffectDescriptorMap
private

Definition at line 121 of file CustomAnimationPreset.hxx.

Referenced by getEffectDescriptor(), and importEffects().

◆ maEffectNameMap

UStringMap sd::CustomAnimationPresets::maEffectNameMap
private

Definition at line 122 of file CustomAnimationPreset.hxx.

Referenced by getUINameForPresetId(), and importResources().

◆ maEmphasisPresets

PresetCategoryList sd::CustomAnimationPresets::maEmphasisPresets
private

Definition at line 126 of file CustomAnimationPreset.hxx.

Referenced by getRandomPreset(), and importResources().

◆ maEntrancePresets

PresetCategoryList sd::CustomAnimationPresets::maEntrancePresets
private

Definition at line 125 of file CustomAnimationPreset.hxx.

Referenced by getRandomPreset(), and importResources().

◆ maExitPresets

PresetCategoryList sd::CustomAnimationPresets::maExitPresets
private

Definition at line 127 of file CustomAnimationPreset.hxx.

Referenced by getRandomPreset(), and importResources().

◆ maMiscPresets

PresetCategoryList sd::CustomAnimationPresets::maMiscPresets
private

Definition at line 129 of file CustomAnimationPreset.hxx.

Referenced by importResources().

◆ maMotionPathsPresets

PresetCategoryList sd::CustomAnimationPresets::maMotionPathsPresets
private

Definition at line 128 of file CustomAnimationPreset.hxx.

Referenced by getRandomPreset(), and importResources().

◆ maPropertyNameMap

UStringMap sd::CustomAnimationPresets::maPropertyNameMap
private

Definition at line 123 of file CustomAnimationPreset.hxx.

Referenced by getUINameForProperty(), and importResources().

◆ mPresetsMap

std::map< OUString, CustomAnimationPresets > sd::CustomAnimationPresets::mPresetsMap
staticprivate

Maps per-language the animation presets.

Definition at line 132 of file CustomAnimationPreset.hxx.

Referenced by getCustomAnimationPresets().

◆ mxRootNode

css::uno::Reference< css::animations::XAnimationNode > sd::CustomAnimationPresets::mxRootNode
private

Definition at line 120 of file CustomAnimationPreset.hxx.

Referenced by importEffects().


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