InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITOPOptionsCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Yves Carbonneaux
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 __ITOPOptionsCmdData__
25 #define __ITOPOptionsCmdData__
26 
27 #include "IPMUnknown.h"
28 
29 #include "TextOnPathID.h"
30 
31 #include "TOPOptionsType.h"
32 
33 
34 //This class is an interface of the kAddTextOnPathCmdBoss,
35 // kPickUpTOPAttributesCmdBoss,
36 // kApplyTOPAttributesCmdBoss
37 
38 // The kAddTextOnPathCmdBoss:
39 // IID_IBOOLDATA, kBoolDataImpl, //Default creation
40 // IID_IPOINTLISTDATA, kPointListDataImpl, //Brackets points
41 // IID_ITOPOPTIONSCMDDATA, kTOPOptionsCmdDataImpl, //Options: unique for all selected items
42 // If default creation is kTrue, the last 2 interfaces are not used. A TOP is created from beginning
43 // to end of the path using all default values for the options.
44 
45 // The kPickUpTOPAttributesCmdBoss and kApplyTOPAttributesCmdBoss:
46 // IID_ITOPOPTIONSCMDDATA, kTOPOptionsCmdDataImpl, //Options
47 
52 {
53  public:
54 
55  enum { kDefaultIID = IID_ITOPOPTIONSCMDDATA };
56 
57 
58  virtual void SetTypeEffect( const EffectType typeEffect ) = 0;
59  virtual const EffectType GetTypeEffect() const = 0;
60 
61  virtual void SetTextAlign( const TextAlignType textAlign ) = 0;
62  virtual const TextAlignType GetTextAlign() const = 0;
63 
64  virtual void SetPathAlign( const PathAlignType pathAlign ) = 0;
65  virtual const PathAlignType GetPathAlign() const = 0;
66 
67  // The overlap offset is a value (int) between -800 and 800
68  // Default value is 0
69  virtual void SetOverlapOffset( const int16 overlapOffset ) = 0;
70  virtual const int16 GetOverlapOffset() const = 0;
71 
72  // Default value is kFalse
73  virtual void SetFlip( const bool16 flip ) = 0;
74  virtual const bool16 GetFlip() const = 0;
75 
76  virtual void Set( const TextAlignType textAlign, const PathAlignType pathAlign,
77  const EffectType typeEffect, const int16 overlapOffset,
78  const bool16 flip ) = 0;
79 };
80 
81 #endif //__ITOPOptionsCmdData__