InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextFrameFacade.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jianlan Song
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 __ITextFrameFacade__
25 #define __ITextFrameFacade__
26 
27 // ----- Interfaces -----
28 #include "ITextModel.h"
29 #include "IFrameList.h"
30 #include "IMultiColumnTextFrame.h"
31 
32 // ----- ID.h files -----
33 #include "TextID.h"
34 
35 namespace Facade
36  {
44  {
45  public:
46  enum { kDefaultIID = IID_ITEXTFRAMEFACADE };
47 
61  virtual ErrorCode CreateTextFrame
62  (
63  UIDRef parent,
64  UIDRef& newFrame,
65  const PMRect& boundary,
66  bool16 noGraphicAttr,
67  bool16 isHorizontal,
68  bool16 isFrameGrid,
69  bool16 isLeftToRight,
70  ClassID frameItem = kFrameItemBoss
71  ) = 0;
72 
73 
87  virtual ErrorCode CreateTextFrame
88  (
89  UIDRef parent,
90  UIDRef& newFrame,
91  const PMPointList& opposingCorners,
92  bool16 noGraphicAttr,
93  bool16 isHorizontal,
94  bool16 isFrameGrid,
95  bool16 isLeftToRight,
96  ClassID frameItem = kFrameItemBoss
97  ) = 0;
98 
113  virtual ErrorCode CreateTextFrameForStory
114  (
115  UIDRef parent,
116  UIDRef& newFrame,
117  const PMRect& boundary,
118  bool16 noGraphicAttr,
119  ITextModel* story,
120  bool16 isHorizontal,
121  bool16 isFrameGrid,
122  bool16 isLeftToRight,
123  ClassID frameItem = kFrameItemBoss
124  ) = 0;
125 
139  virtual ErrorCode CreateTextFrameForFrameList
140  (
141  UIDRef parent,
142  UIDRef& newFrame,
143  const PMRect& boundary,
144  bool16 noGraphicAttr,
145  IFrameList * frameList,
146  bool16 atEnd = kTrue,
147  ClassID frameItem = kFrameItemBoss
148  ) = 0;
149 
164  virtual ErrorCode CreateTextFrameForFrameList
165  (
166  UIDRef parent,
167  UIDRef& newFrame,
168  const PMRect& boundary,
169  bool16 noGraphicAttr,
170  IMultiColumnTextFrame * mcFrame,
171  bool16 insertAfter = kTrue,
172  ClassID frameItem = kFrameItemBoss
173  ) = 0;
174 
185  virtual ErrorCode ConvertToTextFrame
186  (
187  UIDRef parent,
188  bool16 isHorizontal,
189  bool16 isFrameGrid,
190  bool16 isLeftToRight,
191  ClassID frameItem = kFrameItemBoss
192  ) = 0;
193 
205  virtual ErrorCode ConvertToTextFrameForStory
206  (
207  UIDRef parent,
208  ITextModel* story,
209  bool16 isHorizontal,
210  bool16 isFrameGrid,
211  bool16 isLeftToRight,
212  ClassID frameItem = kFrameItemBoss
213  ) = 0;
214 
224  virtual ErrorCode ConvertToTextFrameForFrameList
225  (
226  UIDRef parent,
227  IFrameList* frameList,
228  bool16 atEnd = kTrue,
229  ClassID frameItem = kFrameItemBoss
230  ) = 0;
231 
243  virtual ErrorCode ConvertToTextFrameForFrameList
244  (
245  UIDRef parent,
246  IMultiColumnTextFrame * mcFrame,
247  bool16 insertAfter = kTrue,
248  ClassID frameItem = kFrameItemBoss
249  ) = 0;
250 
291  virtual void GetSplinePathDimensionsIf
292  (
293  PMReal splinePathWidth,
294  PMReal splinePathHeight,
295  PMReal strokeWeight,
296  int32 strokeAlignment,
297  PMReal leftTextInset,
298  PMReal topTextInset,
299  PMReal rightTextInset,
300  PMReal bottomTextInset,
301  bool16 storyIsVertical,
302  int32 mcfNumColumns,
303  PMReal mcfGutterWidth,
304  PMReal& adjSplinePathWidth,
305  PMReal& adjSplinePathHeight,
306  PMReal& mcfVariableColWidth
307  ) = 0;
308 
334  virtual void GetSplinePathDimensionsIf
335  (
336  PMReal splinePathWidth,
337  PMReal splinePathHeight,
338  PMReal strokeWeight,
339  int32 strokeAlignment,
340  PMReal leftTextInset,
341  PMReal topTextInset,
342  PMReal rightTextInset,
343  PMReal bottomTextInset,
344  bool16 storyIsVertical,
345  PMReal textSize,
346  PMReal charAki,
347  PMReal lineAki,
348  PMReal hScale,
349  PMReal vScale,
350  int32 mcfNumColumns,
351  PMReal mcfGutterWidth,
352  PMReal& adjSplinePathWidth,
353  PMReal& adjSplinePathHeight,
354  PMReal& mcfVariableColWidth,
355  int32& mcfGridColCount,
356  int32& mcfGridRowCount
357  ) = 0;
358 
377  virtual void GetSplinePathDimensionsIf
378  (
379  PMReal splinePathWidth,
380  PMReal splinePathHeight,
381  PMReal strokeWeight,
382  int32 strokeAlignment,
383  PMReal leftTextInset,
384  PMReal topTextInset,
385  PMReal rightTextInset,
386  PMReal bottomTextInset,
387  bool16 storyIsVertical,
388  PMReal mcfGutterWidth,
389  PMReal mcfFixedColumnWidth,
390  PMReal& adjSplinePathWidth,
391  PMReal& adjSplinePathHeight,
392  int32& mcfNumColumns
393  ) = 0;
394 
395 
421  virtual void GetSplinePathDimensionsIf
422  (
423  PMReal splinePathWidth,
424  PMReal splinePathHeight,
425  PMReal strokeWeight,
426  int32 strokeAlignment,
427  PMReal leftTextInset,
428  PMReal topTextInset,
429  PMReal rightTextInset,
430  PMReal bottomTextInset,
431  bool16 storyIsVertical,
432  PMReal textSize,
433  PMReal charAki,
434  PMReal lineAki,
435  PMReal hScale,
436  PMReal vScale,
437  PMReal mcfGutterWidth,
438  PMReal mcfFixedColumnWidth,
439  PMReal& adjSplinePathWidth,
440  PMReal& adjSplinePathHeight,
441  int32& mcfNumColumns,
442  int32& mcfGridColCount,
443  int32& mcfGridRowCount
444  ) = 0;
445 
465  virtual void GetSplinePathDimensionsIf
466  (
467  PMReal splinePathWidth,
468  PMReal splinePathHeight,
469  PMReal strokeWeight,
470  int32 strokeAlignment,
471  PMReal leftTextInset,
472  PMReal topTextInset,
473  PMReal rightTextInset,
474  PMReal bottomTextInset,
475  bool16 storyIsVertical,
476  PMReal mcfGutterWidth,
477  PMReal mcfColumnWidthMin,
478  PMReal mcfColumnWidthMax,
479  PMReal& adjSplinePathWidth,
480  PMReal& adjSplinePathHeight,
481  int32& mcfNumColumns
482  ) = 0;
483 
491  virtual void GetMinFlexibleColumnWidthIf
492  (
493  int32 numColumns,
494  PMReal gutterWidth,
495  PMReal maxFlexibleWidth,
496  PMReal currentColumnWidth,
497  PMReal& adjustedColumnWidth
498  ) = 0;
499  };
500 
501 }
502 
503 #endif // __ITextFrameFacade__
504