InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGalleyFitCalculator.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 __IGalleyFitCalculator__
25 #define __IGalleyFitCalculator__
26 
27 #include "IPMUnknown.h"
28 #include "IGalleyInfoUtils.h"
29 
30 #include "WritingModeUIID2.h"
31 #include "GalleyInfoID.h"
32 #include "UIDRef.h"
33 
39 {
40 public:
41  enum { kDefaultIID = IID_IGALLEYFITCALCULATOR };
42 
47  virtual void SetDocRef(const UIDRef &docRef) = 0;
48 
53  virtual UIDRef GetDocRef() = 0;
54 
59  virtual void SetStoryRef(const UIDRef &storyRef) = 0;
60 
65  virtual UIDRef GetStoryRef() = 0;
66 
72  virtual void SetFitControl(bool16 useCachedLineCount = kFalse, bool16 updateFit = kTrue) = 0;
73 
78  virtual void SetFitType(IGalleyInfoUtils::FitType fitType) = 0;
79 
84  virtual IGalleyInfoUtils::FitType GetFitType() = 0;
85 
86 
92  virtual void SetCharCount(int32 charCount) = 0;
93 
98  virtual int32 GetCharCount() = 0;
99 
105  virtual void SetLineCount(int32 lineCount) = 0;
106 
112  virtual int32 GetLineCount() = 0;
113 
118  virtual void SetLastLineVPos(PMReal lastLineVPos) = 0;
119 
124  virtual PMReal GetLastLineVPos() = 0;
125 
130  virtual void SetLastLineHeight(PMReal lastLineHeight) = 0;
131 
136  virtual PMReal GetLastLineHeight() = 0;
137 
142  virtual void SetLastValidFrame(const UIDRef &frameRef) = 0;
143 
148  virtual UIDRef GetLastValidFrame() = 0;
149 
154  virtual void SetFirstOverflowLine(int32 firstOverflowLine) = 0;
155 
160  virtual int32 GetFirstOverflowLine() = 0;
161 
162 };
163 
164 #endif // __IGalleyFitCalculator__