InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStoryList.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: EricK
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 __ISTORYLIST__
25 #define __ISTORYLIST__
26 
27 #include "IPMUnknown.h"
28 #include "TextID.h"
29 #include "textstoryaccesstypes.h"
30 
31 class UIDList;
32 
44 class IStoryList : public IPMUnknown
45 {
46  public:
47  enum { kDefaultIID = IID_ISTORYLIST };
48 
53  virtual void AddNewStory(UID story, TextStory_StoryAccess access ) = 0;
54 
55  /* Same as AddNewStory except we do it in a command.
56  */
57  virtual void ProcessAddNewStory(UID story, TextStory_StoryAccess access) = 0;
58 
62  virtual void RemoveStory(UID story) = 0;
63 
68  virtual int32 GetUserAccessibleStoryCount() const = 0;
69 
74  virtual int32 GetAllTextModelCount() const = 0;
75 
81  virtual UIDRef GetNthUserAccessibleStoryUID(int32 storyIndex) const = 0;
82 
88  virtual UIDRef GetNthTextModelUID(int32 storyIndex) const = 0;
89 
95  virtual TextStory_StoryAccess GetNthTextModelAccess(int32 storyIndex) const = 0;
96 
102  virtual int32 GetUserAccessibleStoryIndex(UID story) const = 0;
103 
109  virtual int32 GetTextModelIndex(UID model) const = 0;
110 
114  virtual void MarkStoryDamaged(UID story) = 0;
115 
119  virtual void MarkStoryComposed(UID story) = 0;
120 
124  virtual UIDRef GetLastDamagedStory() const = 0;
125 
130  virtual int32 CountDamagedStories() const = 0;
131 
137  virtual UID GetNthDamagedTextModelUID(int32 n) const = 0;
138 
139  virtual bool16 ModifiedStory (UID Story) = 0;
140 
145  virtual void ReorderStories(const UIDList& desiredOrder) = 0;
146 };
147 
148 DECLARE_OBJECT_TYPE (TextStory_StoryAccess);
149 #endif // __ISTORYLIST__
150