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

Public Types | |
| enum | { kDefaultIID = IID_ICJKGRIDMANAGER } |
Public Member Functions | |
| virtual void | RecalcGrid ()=0 |
| virtual bool16 | IsActive () const =0 |
| virtual bool16 | IsGridVertical () const =0 |
| virtual bool16 | IsGridRectangular () const =0 |
| virtual void | GetGridBounds (PMRect &rect) const =0 |
| virtual const Int32List & | GetCharsPerLine () const =0 |
| virtual int32 | GetNumOfLines () const =0 |
| virtual int32 | GetRectCount () const =0 |
| virtual PMRect | GetNthEmBoxRect (const int32 cellNumber) const =0 |
| virtual PMRect | GetNthICFBoxRect (const int32 cellNumber) const =0 |
| virtual PMReal | GetHCellSize () const =0 |
| virtual PMReal | GetVCellSize () const =0 |
| virtual bool16 | DrawVisibleEmBoxRects (const IDrawCJKGrid *drawCJKGrid, const PMRect *viewRect=nil) const =0 |
| virtual bool16 | DrawVisibleICFBoxRects (const IDrawCJKGrid *drawCJKGrid, const PMRect *viewRect=nil) const =0 |
| virtual void | GetICFAdjustments (PMReal &xAdjustment, PMReal &yAdjustment) const =0 |
| virtual bool16 | MoveToClosestEmBoxLeft (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestEmBoxTop (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestEmBoxRight (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestEmBoxBottom (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestICFBoxLeft (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestICFBoxTop (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestICFBoxRight (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestICFBoxBottom (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestBaseline (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
| virtual bool16 | MoveToClosestCenter (PMPoint &thePoint, const PMMatrix *transform=nil, const PMReal &extra=PMReal(0.0)) const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
ICJKGridManager is the interface used to manage a frame or layout grid. It provides geometric information like the scaled cell size, the number of characters, the number of lines, etc. It also contains methods for moving points to closest grid left, top, right, or bottom.
| pure virtual |
Draws all visible EmBox rects for the current grid.
| drawCJKGrid | IN The IDrawCJKGrid to draw with. |
| viewRect | IN The visible rect. If nil, the parent's rect will be used. |
| pure virtual |
Draws all visible ICF Box rects for the current grid.
| drawCJKGrid | IN The IDrawCJKGrid to draw with. |
| viewRect | IN The visible rect. If nil, the parent's rect will be used. |
| pure virtual |
| pure virtual |
Fills in the PMRect at & rect with the bounds of the grid.
| rect | OUT The bounds of the grid. |
| pure virtual |
| pure virtual |
Provides the x and y distances between the em and icf box.
| xAdjustment | OUT The x distance between the left of the em and icf box. |
| yAdjustment | OUT The y distance between the bottom of the em and icf box. |
| pure virtual |
| cellNumber | IN which cell do we want the bounds of. |
| pure virtual |
| cellNumber | IN which cell do we want the bounds of. |
| pure virtual |
| pure virtual |
| pure virtual |
| pure virtual |
Returns the calculated state of the grid. Note that this might lag the value returned from the controlling ICJKGrid (such as the Story) because the manager of the layout (such as the MultiColumnTextFrame) has not caught up with the change.
| pure virtual |
| pure virtual |
| pure virtual |
Moves thePoint to the closest baseline, then adds extra to the y value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest bottom. |
| pure virtual |
Moves thePoint to the closest center, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest bottom. |
| pure virtual |
Moves thePoint to the closest em box bottom, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest bottom. |
| pure virtual |
Moves thePoint to the closest em box left then adds extra to the x value of thePoint, then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest left. |
| pure virtual |
Moves thePoint to the closest em box right, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest right. |
| pure virtual |
Moves thePoint to the closest em box top, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest top. |
| pure virtual |
Moves thePoint to the closest icf box bottom, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest bottom. |
| pure virtual |
MoveToClosestICFBoxLeft moves thePoint to the closest icf box left then adds extra to the x value of thePoint, then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest left. |
| pure virtual |
Moves thePoint to the closest icf box right, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest right. |
| pure virtual |
Moves thePoint to the closest icf box top, then adds extra to the x value of thePoint, and then transforms.
| thePoint | INOUT the point to adjust. |
| transform | IN The transform apply before moving the point. |
| extra | IN The extra distance to add after finding the closest top. |
| pure virtual |
Calculates and caches cell counts, grid data, scaled size, and more.
| dynamicBounds | IN Optional argument specifying the bounds of the grid during dynamic resize. |