InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IGalleySettings.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 __IGalleySettings__
25 #define __IGalleySettings__
26 
27 #include "WritingModeUIID2.h"
28 #include "WritingModeID2.h"
29 #include "IPMUnknown.h"
30 
31 class RealAGMColor;
32 class IPMFont;
33 
36 {
37 public:
38  enum { kDefaultIID = IID_IGALLEYSETTINGS };
39 
41  enum CursorType{
50 
51 
55  virtual bool16 GetSmoothText() const = 0;
56 
60  virtual void SetSmoothText(bool16 smoothText) = 0;
61 
65  virtual bool16 GetShowParagraphStyleNames() = 0;
66 
70  virtual void SetShowParagraphStyleNames(bool16 showStyleNames) = 0;
71 
75  virtual bool16 GetShowParagraphBreakMarks() = 0;
76 
80  virtual void SetShowParagraphBreakMarks(bool16 showBreakMarks) = 0;
81 
87 
94  virtual void SetParagraphIndentMultiplier(const PMReal indentMultiplier) = 0;
95 
99  virtual bool16 GetShowLineNumbers() = 0;
100 
104  virtual void SetShowLineNumbers(bool16 showLineNumbers) = 0;
105 
109  virtual bool16 GetIsGalleyAle() = 0;
110 
114  virtual void SetGalleyAle(bool16 isAle) = 0;
115 
119  virtual RealAGMColor &GetTextColor() = 0;
120 
124  virtual void SetTextColor(RealAGMColor &color) = 0;
125 
126  // Galley background color
127 
131  virtual RealAGMColor &GetBackgroundColor() = 0;
132 
136  virtual void SetBackgroundColor(RealAGMColor &color) = 0;
137 
141  virtual PMReal GetLeadingValue() const = 0;
142 
146  virtual void SetLeadingValue(PMReal leadingValue) = 0;
147 
155  virtual int32 GetOverrideCount() = 0;
156 
161  virtual const PMString &GetNthFontOverrideName(int32 n) = 0;
162 
167  virtual void SetNthFontOverrideName(int32 n, const PMString &name) = 0;
168 
172  virtual void DeleteNthFontOverrideName(int32 n) = 0;
173 
177  virtual void AppendFontOverrideName(const PMString &name) = 0;
178 
184  virtual bool16 IsAnOverrideFont(PMString fontFamilyName, IPMFont *font = nil) = 0;
185 
190 
194  virtual void SetCursorType(CursorType type) = 0;
195 
199  virtual PMString GetDisplayFont() = 0;
200 
204  virtual void SetDisplayFont(PMString displayFont) = 0;
205 
209  virtual bool16 GetBlinkCursor() = 0;
210 
214  virtual void SetBlinkCursor(bool16 blinkOn) = 0;
215 
220  virtual void SetUseUserFontOverride(bool16 useUserOverride) = 0;
221 
226  virtual bool16 GetUseUserFontOverride() = 0;
227 
231  virtual void SetDisplayFontSize (const PMReal& fontSize) = 0;
232 
236  virtual PMReal GetDisplayFontSize () = 0;
237 
245  virtual void SetUseDisplayFont(bool16 useDisplayFont) = 0;
246 
250  virtual bool16 GetUseDisplayFont() = 0;
251 
255  virtual void SetInfoColumnWidth(PMReal width) = 0;
256 
260  virtual PMReal GetInfoColumnWidth() = 0;
261 
265  virtual void SetInfoColumnHidden(bool16 hidden) = 0;
266 
270  virtual bool16 GetInfoColumnHidden() = 0;
271 
272 
275  kNone = 0,
286  };
287 
291  virtual void SetOversetDisplayType(OversetDisplayType oversetType) = 0;
292 
297 
301  virtual void SetOversetBackgroundColor(const RealAGMColor &color) = 0;
302 
307 
312  virtual void SetShowDepthRuler(bool16 showRuler) = 0;
313 
317  virtual bool16 GetShowDepthRuler() = 0;
318 
323 
326 
329  };
330 
335  virtual void SetTextAntiAliasStyle(TextAntiAliasType aliasType) = 0;
336 
341 
345  virtual void SetShowFootnotes(bool16 showFootnotes) = 0;
346 
350  virtual bool16 GetShowFootnotes() = 0;
351 
355  virtual void SetFootnoteDisplayColor(const RealAGMColor &color) = 0;
356 
360  virtual RealAGMColor &GetFootnoteDisplayColor() = 0;
361 
362 };
363 
364 #endif // __IGalleySettings__