![]() | InDesign SDK 20.5 |
#include <IGuideData.h>

Public Types | |
| enum | { kDefaultIID = IID_IGUIDEDATA } |
| enum | GuideType { kRulerGuide = 0, kLiquidGuide, kMagneticGuide, kGrowZoneGuide } |
Public Member Functions | |
| virtual void | Set (bool16 isHoriz, const PMReal &distance, const UID &ownerUID, const PMReal &threshold=kDefaultViewThreshold, const int32 colorIndex=IUIColorUtils::kStockRulerGuide)=0 |
| virtual void | SetIsShort (bool16 isShort)=0 |
| virtual void | SetLocation (const PMReal &location)=0 |
| virtual void | SetType (const GuideType guideType)=0 |
| virtual GuideType | GetType () const =0 |
| virtual void | SetLiquidGrowZoneSize (const PMReal &size)=0 |
| virtual PMReal | GetLiquidGrowZoneSize () const =0 |
| virtual void | ModifyIsHoriz (bool16 isHoriz)=0 |
| virtual void | ModifyDistance (const PMReal &distance)=0 |
| virtual void | ModifyOwnerUID (const UID &ownerUID)=0 |
| virtual void | ModifyViewThreshold (const PMReal viewThreshold)=0 |
| virtual void | ModifyColorUID (const UID colorUID)=0 |
| virtual bool16 | GetIsHoriz () const =0 |
| virtual PMReal | GetDistance () const =0 |
| virtual UID | GetOwnerUID () const =0 |
| virtual PMReal | GetViewThreshold () const =0 |
| virtual int32 | GetColorIndex_FOR_CONVERSION_ONLY () const =0 |
| virtual UID | GetColorUID () const =0 |
| virtual bool16 | GetIsShort ()=0 |
| virtual PMPoint | GetTopLeftPoint ()=0 |
| virtual PMPoint | GetBottomRightPoint ()=0 |
| virtual PMReal | GetLocation ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Represents properties of a ruler guide (kGuideItemBoss). A ruler guide is defined by it's orientation (horizontal or vertical), its distance from the origin, its owner(a page id or the pasteboard), its view threshold beyond which a guide is not drawn, and its color to draw the guide.
There are two types of ruler guides: 1) short guides which are drawn clipped to the page dimensions; 2) long guides which extend across the entire pasteboard dimensions. The guide type is determined by the owner UID.
| pure virtual |
Get bottom right point of the guide.
| pure virtual |
Get the color index of the guide. DON'T use this after Anna(InDesign 2.0), USE GetColorUID() instead.
| pure virtual |
Get the color UID of guide.
| pure virtual |
Get the distance the guide is located at.
| pure virtual |
Get the orientation of the guide.
| pure virtual |
Get the color UID of guide.
| pure virtual |
| pure virtual |
Get the X value of middle point for horizontal guide or Y value of middle point(X, Y) for vertical guide.
| pure virtual |
Get UID of the owner, a page uid for a short guide and the pasteboard for long guide.
| pure virtual |
Get top left point of the guide.
| pure virtual |
| pure virtual |
Get the view threshold beyond which a guide is not drawn.
| pure virtual |
Change the color UID of guide.
| colorUID | refers to the color that draws the guide. |
| pure virtual |
Change the distance the guide is located at. For example, move the guide.
| distance | refers to the distance from origin. |
| pure virtual |
Change the orientation of the guide. For example, switch between horizontal and vertical.
| isHoriz | refers to the orientation of guide(kTrue indicates horizontal guide and kFalse indicates vertical guide). |
| pure virtual |
Change the owner, a page uid for a short guide and the pasteboard for long guide.
| ownerUID | refers to the owner of a page or the pasteboard. |
| pure virtual |
Change the view threshold, this represents the percentage beyond which a guide is not drawn.
| ownerUID | refers to the owner of a page or the pasteboard. |
| pure virtual |
Set the guide attributes.
| isHoriz | refers to the orientation of guide(kTrue indicates horizontal guide and kFalse indicates vertical guide). |
| distance | refers to the distance from origin. |
| ownerUID | refers to the owner of a page or the pasteboard. |
| threshold | refers to the percentage beyond which a guide is not drawn. |
| colorIndex | refers to the color that draws the guide. |
| pure virtual |
Change the color UID of guide.
| colorUID | refers to the color that draws the guide. |
| pure virtual |
Sets the size of the zone (width for vertical, height for horizontal).
| size | [IN] specifies the size of the zone (width for vertical, height for horizontal). |
| pure virtual |
Set location of the guide. For horizontal guide, location is X value of the middle point(X, Y) of the guide; for vertical guide, location is Y value of the middle point(X, Y) of the guide.
| location | refers to X or Y value of the middle point(X, Y). |
| pure virtual |
Sets the type of guide. Default is kRulerGuide.
| guideType | [IN] One of ruler, liquid, magnetic, etc. |