InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISplineState.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ISplineState__
25 #define __ISplineState__
26 
27 #include "IPMUnknown.h"
28 #include "SplineUIID.h"
29 
34 class ISplineState : public IPMUnknown
35 {
36 public:
37  enum { kDefaultIID = IID_ISPLINESTATE } ;
38 
41  enum SplineState {
42  kOff = 0x0000,
43  kCreation = 0x0001,
44  kMotion = 0x0002,
46  };
47 
49  virtual void SetState (SplineState newState) = 0;
50 
52  virtual ISplineState::SplineState GetState () const = 0;
53 
55  virtual void SetPageItem( const UIDRef& pageitem ) = 0 ;
56 
58  virtual const UIDRef& GetPageItem() const = 0 ;
59 
61  virtual void SetMotionPageItem( const UIDRef& pageitem ) = 0 ;
62 
64  virtual void SetMotionOwnerPageItem( const UIDRef& pageitem ) = 0 ;
65 
67  virtual const UIDRef& GetMotionPageItem() const = 0 ;
68 
70  virtual const UIDRef& GetMotionOwnerPageItem() const = 0 ;
71 
73  virtual void SetPathAndPointIndex (int32 pathIndex, int32 pointIndex) = 0;
74 
76  virtual int32 GetPathIndex () const = 0;
77 
79  virtual int32 GetPointIndex () const = 0;
80 };
81 
83 
84 #endif // __ISplineState__