LibreOffice Module sd (master) 1
|
#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 PresetCategoryList & | getEntrancePresets () const |
SAL_DLLPRIVATE const PresetCategoryList & | getEmphasisPresets () const |
SAL_DLLPRIVATE const PresetCategoryList & | getExitPresets () const |
SAL_DLLPRIVATE const PresetCategoryList & | getMotionPathsPresets () const |
SAL_DLLPRIVATE const PresetCategoryList & | getMiscPresets () const |
SAL_DLLPRIVATE void | changePresetSubType (const CustomAnimationEffectPtr &pEffect, const OUString &rPresetSubType) const |
Static Public Member Functions | |
static const CustomAnimationPresets & | getCustomAnimationPresets () |
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, CustomAnimationPresets > | mPresetsMap |
Maps per-language the animation presets. More... | |
Definition at line 85 of file CustomAnimationPreset.hxx.
sd::CustomAnimationPresets::CustomAnimationPresets | ( | ) |
Definition at line 204 of file CustomAnimationPreset.cxx.
sd::CustomAnimationPresets::~CustomAnimationPresets | ( | ) |
Definition at line 208 of file CustomAnimationPreset.cxx.
void sd::CustomAnimationPresets::changePresetSubType | ( | const CustomAnimationEffectPtr & | pEffect, |
const OUString & | rPresetSubType | ||
) | const |
Definition at line 435 of file CustomAnimationPreset.cxx.
References getEffectDescriptor().
Referenced by sd::CustomAnimationPane::setProperty1Value().
|
static |
This method gets presets instance, which is localized for the current user's locale.
Definition at line 452 of file CustomAnimationPreset.cxx.
References LanguageTag::getBcp47(), comphelper::LibreOfficeKit::getLanguageTag(), SvtSysLocaleOptions::GetLanguageTag(), importResources(), comphelper::LibreOfficeKit::isActive(), and mPresetsMap.
Referenced by Ppt97Animation::createAndSetCustomAnimationEffect(), sd::CustomAnimationPane::createSelectionSet(), sd::CustomAnimationListEntryItem::CustomAnimationListEntryItem(), sd::CustomAnimationPane::fillAnimationLB(), sd::IMPL_LINK_NOARG(), sd::CustomAnimationPane::setProperty1Value(), and sd::CustomAnimationPane::updateControls().
CustomAnimationPresetPtr sd::CustomAnimationPresets::getEffectDescriptor | ( | const OUString & | rPresetId | ) | const |
Definition at line 398 of file CustomAnimationPreset.cxx.
References maEffectDescriptorMap.
Referenced by changePresetSubType(), sd::CustomAnimationPane::createSelectionSet(), importEffects(), importPresets(), sd::EffectMigration::SetAnimationEffect(), sd::EffectMigration::SetTextAnimationEffect(), and sd::CustomAnimationPane::updateControls().
|
inline |
Definition at line 104 of file CustomAnimationPreset.hxx.
Referenced by sd::CustomAnimationPane::fillAnimationLB().
|
inline |
Definition at line 103 of file CustomAnimationPreset.hxx.
Referenced by sd::CustomAnimationPane::fillAnimationLB().
|
inline |
Definition at line 105 of file CustomAnimationPreset.hxx.
Referenced by sd::CustomAnimationPane::fillAnimationLB().
|
inline |
Definition at line 107 of file CustomAnimationPreset.hxx.
Referenced by sd::CustomAnimationPane::fillAnimationLB().
|
inline |
Definition at line 106 of file CustomAnimationPreset.hxx.
Referenced by sd::CustomAnimationPane::fillAnimationLB().
Reference< XAnimationNode > sd::CustomAnimationPresets::getRandomPreset | ( | sal_Int16 | nPresetClass | ) | const |
Definition at line 470 of file CustomAnimationPreset.cxx.
References maEmphasisPresets, maEntrancePresets, maExitPresets, maMotionPathsPresets, and comphelper::rng::uniform_size_distribution().
const OUString & sd::CustomAnimationPresets::getUINameForPresetId | ( | const OUString & | rPresetId | ) | const |
Definition at line 412 of file CustomAnimationPreset.cxx.
References maEffectNameMap, and translateName().
Referenced by importEffects().
const OUString & sd::CustomAnimationPresets::getUINameForProperty | ( | const OUString & | rProperty | ) | const |
Definition at line 417 of file CustomAnimationPreset.cxx.
References maPropertyNameMap, and translateName().
|
private |
Definition at line 243 of file CustomAnimationPreset.cxx.
References aURL, Exception, sd::EffectSequenceHelper::getBegin(), getEffectDescriptor(), sd::EffectSequenceHelper::getEnd(), comphelper::getExpandedUri(), comphelper::getProcessComponentContext(), getUINameForPresetId(), sd::implImportEffects(), comphelper::InitAnyPropertySequence(), maEffectDescriptorMap, mxRootNode, and TOOLS_WARN_EXCEPTION.
Referenced by importResources().
|
private |
Definition at line 339 of file CustomAnimationPreset.cxx.
References aLabel, Exception, getEffectDescriptor(), sd::getNodeAccess(), SAL_WARN_IF, and TOOLS_WARN_EXCEPTION.
Referenced by importResources().
|
private |
Definition at line 307 of file CustomAnimationPreset.cxx.
References Exception, comphelper::getProcessComponentContext(), sd::implImportLabels(), importEffects(), importPresets(), maEffectNameMap, maEmphasisPresets, maEntrancePresets, maExitPresets, maMiscPresets, maMotionPathsPresets, maPropertyNameMap, and TOOLS_WARN_EXCEPTION.
Referenced by getCustomAnimationPresets().
|
staticprivate |
Definition at line 422 of file CustomAnimationPreset.cxx.
Referenced by getUINameForPresetId(), and getUINameForProperty().
|
private |
Definition at line 121 of file CustomAnimationPreset.hxx.
Referenced by getEffectDescriptor(), and importEffects().
|
private |
Definition at line 122 of file CustomAnimationPreset.hxx.
Referenced by getUINameForPresetId(), and importResources().
|
private |
Definition at line 126 of file CustomAnimationPreset.hxx.
Referenced by getRandomPreset(), and importResources().
|
private |
Definition at line 125 of file CustomAnimationPreset.hxx.
Referenced by getRandomPreset(), and importResources().
|
private |
Definition at line 127 of file CustomAnimationPreset.hxx.
Referenced by getRandomPreset(), and importResources().
|
private |
Definition at line 129 of file CustomAnimationPreset.hxx.
Referenced by importResources().
|
private |
Definition at line 128 of file CustomAnimationPreset.hxx.
Referenced by getRandomPreset(), and importResources().
|
private |
Definition at line 123 of file CustomAnimationPreset.hxx.
Referenced by getUINameForProperty(), and importResources().
|
staticprivate |
Maps per-language the animation presets.
Definition at line 132 of file CustomAnimationPreset.hxx.
Referenced by getCustomAnimationPresets().
|
private |
Definition at line 120 of file CustomAnimationPreset.hxx.
Referenced by importEffects().