InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INewGuideCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Stacy Molitor
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 __INewGuideCmdData__
25 #define __INewGuideCmdData__
26 
27 #include "IPMUnknown.h"
28 #include "UIDRef.h"
29 #include "IGuideData.h"
30 #include "GuideID.h"
31 //#include "PMPoint.h"
32 //#include "GenericID.h"
33 
34 class INewGuideCmdData : public IPMUnknown {
35 public:
36  enum { kDefaultIID = IID_INEWGUIDECMDDATA };
37  // the data needed when creating a NewGuideCmd
38 
42  virtual void Set(const UIDRef& parent, bool16 isHoriz, const PMReal &distance, const UID &ownerUID,
43  bool16 isShort = kTrue, const PMReal &threshold = kDefaultViewThreshold,
44  const int32 colorIndex = IUIColorUtils::kStockRulerGuide, const IGuideData::GuideType guideType = IGuideData::kRulerGuide) = 0;
45  // set all the command data
46 
47  virtual void SetMultiple(bool16 isMultiple) = 0;
48  // Set to true if the guide is part of a multiple guide command (horizontal + vertical), false (default) otherwise
49  // Separate from Set method. All guide commands are either vertical or horizontal, only after appending commands
50  // together is the SetMultiple used.
51 
55  virtual void SetType(const IGuideData::GuideType guideType) = 0;
56 
59  virtual IGuideData::GuideType GetType() const = 0;
60 
64  virtual void SetLiquidGrowZoneSize(const PMReal& size) = 0;
65 
68  virtual PMReal GetLiquidGrowZoneSize() const = 0;
69 
70  virtual void SetLocation(const PMReal& location) = 0;
71  virtual PMReal GetLocation() const = 0;
72 
73  virtual const UIDRef& GetParent() = 0;
74  // returns the parent of the new guide page item, this is a layer UIDRef (which is usually set to the active layer)
75 
76  virtual bool16 GetIsHoriz() const = 0;
77  // return true if the guide is horizontal, otherwise it's vertical
78 
79  virtual bool16 GetIsMultiple() const = 0;
80  // return true if the guide is part of a multiple guide command (horizontal + vertical), false (default) otherwise
81 
82  virtual const PMReal& GetDistance() const = 0;
83  // return the distance the guide is located at
84 
85  virtual const UID& GetOwnerUID() const = 0;
86  // return the id of the owner, for short guides this is the page it's located on,
87  // for long guides it's the pasteboard
88 
89  virtual const PMReal& GetThreshold() const = 0;
90  // return the default the threshold when creating a new guide
91 
92  virtual const int32 GetColorIndex() const = 0;
93 
94  virtual bool16 GetIsShort() const = 0;
95 };
96 
97 
98 
99 #endif // __INewGuideCmdData__