InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStoryManager.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 __IStoryManager__
25 #define __IStoryManager__
26 
27 #include "IPMUnknown.h"
28 
29 #include "WritingModeUIID2.h"
30 #include "PMRect.h"
31 #include "UIDList.h"
32 #include "IInterfaceColors.h"
33 #include "LineDescription.h"
34 #include "K2Vector.h"
35 
36 class ITextRun;
37 class IGraphicsPort;
38 class IPMFont;
39 class ITextModel;
40 class IdleTimer;
41 
46 class IStoryManager : public IPMUnknown
47 {
48  public:
49  enum { kDefaultIID = IID_ISTORYMANAGER };
50 
55  virtual bool16 DeleteStory(UID storyUID) = 0;
56 
59  virtual void SyncStoriesToManaged() = 0;
60 
74  virtual void SetStoryDisplayOrder(const UIDList &storiesInDisplayOrder, bool16 redraw = kTrue) = 0;
75 
85  virtual void RemoveFromUncomposedRange(int32 storyIndex, int32 composeID) = 0;
86 
94  virtual void AddToUncomposedRange(int32 storyIndex, int32 composeID, int32 lineIndexHint = -1) = 0;
95 
100  virtual bool16 StoryHasPsuedoLines(int32 storyIndex) = 0;
101 
106  virtual bool16 ComposeUncomposed(int32 storyIndex, IdleTimer* timeCheck) = 0;
107 
113  virtual void SetOversetLineIndex(int32 storyIndex, int32 lineIndex) = 0;
114 
119  virtual int32 GetOversetLineIndex(int32 storyIndex) = 0;
120 
121 };
122 
123 #endif // __IStoryManager__