InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IAnimationFacade.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: SusanCL
6
//
7
// $Author$
8
//
9
// $DateTime$
10
//
11
// $Revision$
12
//
13
// $Change$
14
//
15
// ADOBE CONFIDENTIAL
16
//
17
// Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18
//
19
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
20
// with the terms of the Adobe license agreement accompanying it. If you have received
21
// this file from a source other than Adobe, then your use, modification, or
22
// distribution of it requires the prior written permission of Adobe.
23
//
24
//========================================================================================
25
26
#include "DynamicDocumentsID.h"
27
28
#include "IAnimationCmdData.h"
29
#include "WideString.h"
30
#include "Utils.h"
31
32
class
IAnimationAttributeData
;
33
class
IAnimationData
;
34
class
ISubject
;
35
class
IDocument
;
36
37
namespace
Facade
38
{
62
class
IAnimationFacade
:
public
IPMUnknown
63
{
64
public
:
65
enum
{ kDefaultIID = IID_IANIMATIONFACADE };
66
71
virtual
bool
PageItemHasAnimation
(
const
UIDRef
& pageItemRef)
const
= 0;
72
77
virtual
bool
PageItemHasCustomAnimationSettings
(
const
UIDRef
& pageItemRef)
const
= 0;
78
84
virtual
bool
PageItemAndChildrenHaveAnimation
(
const
UIDRef
& pageItemRef,
UIDList
* pAnimationList = nil)
const
= 0;
85
94
virtual
ErrorCode
SetPageItemMotionPreset
(
const
UIDRef
& pageItemRef,
const
UIDRef
& presetRef,
bool
skipTargeting =
false
,
bool
doForceCreateNew =
false
) = 0;
95
100
virtual
UIDRef
GetPageItemMotionPreset
(
const
UIDRef
& pageItemRef)
const
= 0;
101
106
virtual
PMReal
GetPageItemAnimationDuration
(
const
UIDRef
& pageItemRef)
const
= 0;
107
112
virtual
bool
SetPageItemAnimationDuration
(
const
UIDRef
& pageItemRef,
const
PMReal
& duration) = 0;
113
118
virtual
PMPoint
GetPageItemAnimationTransformOffsetPoint
(
const
UIDRef
& pageItemRef)
const
= 0;
119
124
virtual
bool
SetPageItemAnimationTransformOffsetPoint
(
const
UIDRef
& pageItemRef,
const
PMPoint
& offsetPoint) = 0;
125
129
virtual
AnimationOptions
GetPageItemAnimationOption
(
const
UIDRef
& pageItemRef)
const
= 0;
130
136
virtual
bool
SetPageItemAnimationOption
(
const
UIDRef
& pageItemRef,
const
AnimationOptions& animateOption) = 0;
137
142
virtual
bool
GetPageItemAnimationHideInitially
(
const
UIDRef
& pageItemRef)
const
= 0;
143
149
virtual
bool
SetPageItemAnimationHideInitially
(
const
UIDRef
& pageItemRef,
bool
setHiddenTillAnimated) = 0;
150
155
virtual
bool
GetPageItemAnimationHideAfter
(
const
UIDRef
& pageItemRef)
const
= 0;
156
162
virtual
bool
SetPageItemAnimationHideAfter
(
const
UIDRef
& pageItemRef,
bool
setHiddenAfterAnimated) = 0;
163
167
virtual
uint32
GetPageItemAnimationPlays
(
const
UIDRef
& pageItemRef)
const
= 0;
168
174
virtual
bool
SetPageItemAnimationPlays
(
const
UIDRef
& pageItemRef, uint32 numPlays) = 0;
175
178
virtual
bool
GetPageItemAnimationPlaysLoop
(
const
UIDRef
& pageItemRef)
const
= 0;
179
185
virtual
bool
SetPageItemAnimationPlaysLoop
(
const
UIDRef
& pageItemRef,
bool
setToLoop) = 0;
186
190
virtual
AnimationEaseType
GetPageItemAnimationSimpleEaseType
(
const
UIDRef
& pageItemRef)
const
= 0;
191
197
virtual
bool
SetPageItemAnimationSimpleEaseType
(
const
UIDRef
& pageItemRef,
const
AnimationEaseType& easeType) = 0;
198
204
virtual
bool
GetPageItemAnimationMotionPath
(
const
UIDRef
& pageItemRef, AnimationPathDataList& path)
const
= 0;
205
211
virtual
bool
SetPageItemAnimationMotionPath
(
const
UIDRef
& pageItemRef,
const
AnimationPathDataList& path) = 0;
212
218
virtual
bool
GetPageItemAnimationMotionPath
(
const
UIDRef
& pageItemRef,
PMPathPointList
& path)
const
= 0;
219
226
virtual
bool
SetPageItemAnimationMotionPath
(
const
UIDRef
& pageItemRef,
const
PMPathPointList
& path) = 0;
227
235
virtual
bool
SetPageItemAnimationMotionPath
(
const
UIDRef
& pageItemRef,
const
UIDRef
& sourcePageItemRef,
bool
bDeleteItem) = 0;
236
242
virtual
UIDRef
CreateAnimationMotionPathPageItem
(
const
UIDRef
& pageItemRef) = 0;
243
250
virtual
ErrorCode
DeleteAnimationMotionPathPageItemData
(
IDocument
* document, bool16 bDeleteItem) = 0;
251
259
virtual
bool
SyncPageItemWithMotionPath
(
const
UIDRef
& pageItemRef,
const
UIDRef
& motionPathPageItemRef) = 0;
260
266
virtual
bool
IsPageItemMotionPathPageItem
(
const
UIDRef
& pageItemRef)
const
= 0;
267
273
virtual
uint32
GetPageItemAnimationOpacityKeyFrameCount
(
const
UIDRef
& pageItemRef)
const
= 0;
274
282
virtual
bool
GetPageItemAnimationOpacityKeyFrame
(
const
UIDRef
& pageItemRef, int32 which, uint32& keyframe,
PMReal
& value)
const
= 0;
283
289
virtual
bool
GetPageItemAnimationOpacityValueAtKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
PMReal
& value)
const
= 0;
290
297
virtual
bool
SetPageItemAnimationOpacityKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
const
PMReal
& value = 0) = 0;
298
303
virtual
bool
RemovePageItemAnimationOpacityKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe) = 0;
304
308
virtual
bool
RemovePageItemAnimationOpacityAllKeyFrames
(
const
UIDRef
& pageItemRef) = 0;
309
314
virtual
uint32
GetPageItemAnimationRotationKeyFrameCount
(
const
UIDRef
& pageItemRef)
const
= 0;
315
323
virtual
bool
GetPageItemAnimationRotationKeyFrame
(
const
UIDRef
& pageItemRef, int32 which, uint32& keyframe,
PMReal
& value)
const
= 0;
324
330
virtual
bool
GetPageItemAnimationRotationValueAtKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
PMReal
& value)
const
= 0;
331
338
virtual
bool
SetPageItemAnimationRotationKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
const
PMReal
& value = 0) = 0;
339
344
virtual
bool
RemovePageItemAnimationRotationKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe) = 0;
345
350
virtual
bool
RemovePageItemAnimationRotationAllKeyFrames
(
const
UIDRef
& pageItemRef) = 0;
351
356
virtual
uint32
GetPageItemAnimationScaleXKeyFrameCount
(
const
UIDRef
& pageItemRef)
const
= 0;
357
364
virtual
bool
GetPageItemAnimationScaleXKeyFrame
(
const
UIDRef
& pageItemRef, int32 which, uint32& keyframe,
PMReal
& value)
const
= 0;
365
372
virtual
bool
GetPageItemAnimationScaleXValueAtKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
PMReal
& value)
const
= 0;
373
380
virtual
bool
SetPageItemAnimationScaleXKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
const
PMReal
& value = 0) = 0;
381
387
virtual
bool
RemovePageItemAnimationScaleXKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe) = 0;
388
393
virtual
bool
RemovePageItemAnimationScaleXAllKeyFrames
(
const
UIDRef
& pageItemRef) = 0;
394
399
virtual
uint32
GetPageItemAnimationScaleYKeyFrameCount
(
const
UIDRef
& pageItemRef)
const
= 0;
400
407
virtual
bool
GetPageItemAnimationScaleYKeyFrame
(
const
UIDRef
& pageItemRef, int32 which, uint32& keyframe,
PMReal
& value)
const
= 0;
408
415
virtual
bool
GetPageItemAnimationScaleYValueAtKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
PMReal
& value)
const
= 0;
416
423
virtual
bool
SetPageItemAnimationScaleYKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe,
const
PMReal
& value = 0) = 0;
424
430
virtual
bool
RemovePageItemAnimationScaleYKeyFrame
(
const
UIDRef
& pageItemRef, uint32 keyframe) = 0;
431
436
virtual
bool
RemovePageItemAnimationScaleYAllKeyFrames
(
const
UIDRef
& pageItemRef) = 0;
437
445
virtual
ErrorCode
UpdatePageItemAnimationData
(
const
UIDRef
& pageItemRef,
const
IAnimationData
* iNewAnimaData,
const
uint32& dataSetFlags,
bool
skipTargeting =
false
) = 0;
446
454
virtual
ErrorCode
AddPageItemAnimation
(
const
UIDRef
& pageItemRef,
const
IAnimationData
* iNewAnimaData,
const
uint32& dataSetFlags,
bool
skipTargeting =
false
) = 0;
455
460
virtual
ErrorCode
RemovePageItemAnimation
(
const
UIDRef
& pageItemRef) = 0;
461
466
virtual
ErrorCode
RemovePageItemAndChildrenAnimation
(
const
UIDRef
& pageItemRef) = 0;
467
475
virtual
ErrorCode
SavePageItemAnimation
(
const
UIDRef
& pageItemRef,
const
PMString
& newPresetName,
UIDRef
& newCustomRef,
bool
doApply =
true
) = 0;
476
482
virtual
ErrorCode
SaveACopyPageItemAnimation
(
const
UIDRef
& pageItemRef,
const
IDFile
& newPresetFile) = 0;
483
};
484
485
};
// namespace
tmpdoxygeninput
IAnimationFacade.h
Generated on Sat Jul 19 2025 02:54:12 for InDesign SDK by
1.8.3.1