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

Public Types | |
| enum | { kDefaultIID = IID_ISTROKESELECTATTRIBUTES } |
| enum | RectLines { kNone = 0, kLeft = 1, kRight = 2, kTop = 4, kBottom = 8, kOuterEdges = 15, kHorizontalMiddle = 16, kVerticalMiddle = 32, kInnerEdges = 48, kAllSides = 63, kTopRight = 9, kTopLeft = 5, kBottomRight = 10, kBottomLeft = 6, kTopMiddle = 17, kBottomMiddle = 18, kLeftMiddle = 36, kRightMiddle = 40 } |
Public Member Functions | |
| virtual const bool | IsSelected (const IStrokeSelectAttributes::RectLines &position) const =0 |
| virtual const int32 | GetSelected () const =0 |
| virtual void | SetSelected (const IStrokeSelectAttributes::RectLines &position)=0 |
| virtual void | SetSelectedValue (const IStrokeSelectAttributes::RectLines &position)=0 |
| virtual void | ResetSelected ()=0 |
| virtual void | SelectAll ()=0 |
| virtual int32 | GetMostRecentSelection () const =0 |
| virtual bool16 | DrawVertical () const =0 |
| virtual bool16 | DrawBiDi () const =0 |
| virtual bool16 | IsDrawn (const IStrokeSelectAttributes::RectLines &position)=0 |
| virtual void | SetDrawnPosition (const IStrokeSelectAttributes::RectLines &position, bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual const int32 | GetDrawnPositions () const =0 |
| virtual void | DrawSingle (bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual void | DrawDoubleVertical (bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual void | DrawDoubleHorizontal (bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual void | DrawAll (bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual void | ResetDrawn (bool16 drawVertical, bool16 drawBiDi=kFalse)=0 |
| virtual const int32 | GetSelectedNeighbors (const RectLines &line) const =0 |
| virtual void | SetStoreSidesWithSelection (bool16)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Abstract interface that defines API of cell-stroke widget for stroke-selection. This is an application UI-related interface and not likely to be relevant to client code directly.
Enumerates the possible configurations for selecting sides on a cell or pair of cells
| pure virtual |
Draws all four cells
| drawVertical | true if we are in a vertical table – this way the sides draw correctly |
| pure virtual |
Returns true if table is Bidirectional
| pure virtual |
Draws two cells horizontally
| drawVertical | true if we are in a vertical table – this way the sides draw correctly |
| pure virtual |
Draws two cells vertically
| drawVertical | true if we are in a vertical table – this way the sides draw correctly |
| pure virtual |
Draws a single cell
| drawVertical | true if we are in a vertical table – this way the sides draw correctly |
| pure virtual |
Returns true if table is vertical
| pure virtual |
Returns the cell drawing information (see comment one above)
| pure virtual |
Determine most recent selection.
| pure virtual |
Gets the selected value
| pure virtual |
Gets the neighbors that are selected (returns 00, 01, 10, 11)
| line |
| pure virtual |
Returns true if the position is being drawn
| position | one of the RectLines values |
| pure virtual |
Returns true if the value passed in is selected
| kTrue | if the specified configuration is selected |
| pure virtual |
Resets drawn to 0
| pure virtual |
No broadcast – sets the values back to 0 (calls SetSelectedValue)
| pure virtual |
No broadcast – sets the values back to 63 (calls SetSelectedValue)
| pure virtual |
Sets the positions that will be drawn in the widget (one cell, two vertical cells. two horizontal cells, four cells)
| position | one of the RectLines values |
| pure virtual |
Used when the user selects the value. Sends out a broadcast
| position | one of the RectLines values |
| pure virtual |
Used when setting the value when we don't want a broadcast
| position | one of the RectLines values |