27#include <com/sun/star/lang/XMultiServiceFactory.hpp>
31#include <unordered_map>
36typedef std::unordered_map< OUString, OUString >
UStringMap;
47 SD_DLLPUBLIC css::uno::Reference< css::animations::XAnimationNode >
create(
const OUString& rstrSubType );
56 bool hasProperty( std::u16string_view rProperty )
const;
96 SAL_DLLPRIVATE css::uno::Reference< css::animations::XAnimationNode > getRandomPreset( sal_Int16 nPresetClass )
const;
100 SAL_DLLPRIVATE
const OUString& getUINameForPresetId(
const OUString& rPresetId )
const;
101 SAL_DLLPRIVATE
const OUString& getUINameForProperty(
const OUString& rProperty )
const;
109 SAL_DLLPRIVATE
void changePresetSubType(
const CustomAnimationEffectPtr& pEffect,
const OUString& rPresetSubType )
const;
112 SAL_DLLPRIVATE
void importEffects();
113 SAL_DLLPRIVATE
void importResources();
115 SAL_DLLPRIVATE
void importPresets(
const css::uno::Reference< css::lang::XMultiServiceFactory >& xConfigProvider,
const OUString& rNodePath,
PresetCategoryList& rPresetMap );
117 SAL_DLLPRIVATE
static const OUString& translateName(
const OUString& rId,
const UStringMap& rNameMap );
120 css::uno::Reference< css::animations::XAnimationNode >
mxRootNode;
132 SAL_DLLPRIVATE
static std::map<OUString, CustomAnimationPresets>
mPresetsMap;
136css::uno::Reference< css::animations::XAnimationNode >
implImportEffects(
const css::uno::Reference< css::lang::XMultiServiceFactory >& xServiceFactory,
const OUString& rPath );
138void implImportLabels(
const css::uno::Reference< css::lang::XMultiServiceFactory >& xConfigProvider,
const OUString& rNodePath,
UStringMap& rStringMap );
std::vector< OUString > getSubTypes()
CustomAnimationPreset(const CustomAnimationEffectPtr &pEffect)
std::vector< OUString > getProperties() const
EffectsSubTypeMap maSubTypes
const OUString & getPresetId() const
SD_DLLPUBLIC css::uno::Reference< css::animations::XAnimationNode > create(const OUString &rstrSubType)
double getDuration() const
bool hasProperty(std::u16string_view rProperty) const
const OUString & getLabel() const
void add(const CustomAnimationEffectPtr &pEffect)
SAL_DLLPRIVATE const PresetCategoryList & getEmphasisPresets() const
static SAL_DLLPRIVATE std::map< OUString, CustomAnimationPresets > mPresetsMap
Maps per-language the animation presets.
UStringMap maPropertyNameMap
PresetCategoryList maMotionPathsPresets
SAL_DLLPRIVATE const PresetCategoryList & getMotionPathsPresets() const
css::uno::Reference< css::animations::XAnimationNode > mxRootNode
PresetCategoryList maExitPresets
SAL_DLLPRIVATE const PresetCategoryList & getExitPresets() const
EffectDescriptorMap maEffectDescriptorMap
PresetCategoryList maEmphasisPresets
UStringMap maEffectNameMap
PresetCategoryList maMiscPresets
SAL_DLLPRIVATE const PresetCategoryList & getMiscPresets() const
SAL_DLLPRIVATE const PresetCategoryList & getEntrancePresets() const
PresetCategoryList maEntrancePresets
void implImportLabels(const Reference< XMultiServiceFactory > &xConfigProvider, const OUString &rNodePath, UStringMap &rStringMap)
std::vector< PresetCategoryPtr > PresetCategoryList
std::shared_ptr< CustomAnimationPreset > CustomAnimationPresetPtr
std::unordered_map< OUString, CustomAnimationEffectPtr > EffectsSubTypeMap
Reference< XAnimationNode > implImportEffects(const Reference< XMultiServiceFactory > &xServiceFactory, const OUString &rPath)
std::unordered_map< OUString, CustomAnimationPresetPtr > EffectDescriptorMap
std::unordered_map< OUString, OUString > UStringMap
std::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr
std::shared_ptr< PresetCategory > PresetCategoryPtr
std::vector< CustomAnimationPresetPtr > EffectDescriptorList
PresetCategory(OUString aLabel, EffectDescriptorList &&rEffects)
EffectDescriptorList maEffects