![]() | InDesign SDK 20.5 |
#include <TableTypes.h>
Public Types | |
| typedef base_type | data_type |
Public Member Functions | |
| ColRange () | |
| ColRange (int32 sstart, int32 ccount) | |
| ColRange (const GridArea &area) | |
| void | Set (int32 sstart, int32 ccount) |
| int32 | End () const |
| bool16 | IsEmpty () const |
| bool16 | Contains (const ColRange &rhs) const |
| bool16 | Contains (int32 col) const |
| bool16 | Intersects (const ColRange &rhs) const |
| bool16 | operator== (const ColRange &rhs) const |
| bool16 | operator!= (const ColRange &rhs) const |
| ColRange | operator& (const ColRange &rhs) const |
| ColRange | operator| (const ColRange &rhs) const |
| ColRange & | operator&= (const ColRange &rhs) |
| ColRange & | operator|= (const ColRange &rhs) |
| void | ReadWrite (IPMStream *stream) |
Public Attributes | |
| int32 | start |
| int32 | count |
A range of cols represented by [start, start+count).
For instance, a ColRange(2,3) would miss out the zeroth and first columns, and would include the next three columns (2,3 and 4).
| inline |
No-args constructor.
| inline |
Constructor.
| sstart | the first column in the range of interest |
| ccount | the number of columns to include in the range |
| inlineexplicit |
Constructor. The projection of the GridArea onto the column (horizontal) axis will give the column range to span.
| area | specifies an area, from which the columns spanned will become this column-range. |
| inline |
Query whether the given range is subset of this range (can be contained within).
| rhs | specifies a range of columns |
| inline |
Query whether given column lies within this range.
| col | specifies column for query |
| inline |
Query for column just beyond end of the range spanned.
| inline |
Query whether a given range of columns intersects with this range.
| rhs | specifies column range for this query |
| inline |
Query if the range spans any columns at all.
| inline |
Overload of not-equal operator.
| rhs | specifies the range for comparison |
Overload of bitwise and operator, signifying intersection.
| rhs | specifies the range to take intersection of this with |
Overload of bitwise-and assignment operator, to mean an intersection of this with the rhs range, followed by assignment.
| rhs | specifies a range to take intersection with |
| inline |
Overload of the equality relational operator. Two ranges are identical iff they have the same start and span the same number of columns.
| rhs | specifies the range to compare this against |
Overload of bitwise or operator, signifying a union operation.
| rhs | gives a range to take union of this range with |
Overload of bitwise-or assignment operator, to mean a union followed by assignment.
| rhs | specifies range to take a union of this range with |
| inline |
Used in persisting the state of an instance.
| stream | the stream to read instance data from or write instance data to depending on the stream's state |
| inline |
Mutator.
| sstart | the first column in the range of interest |
| ccount | the number of columns to include in the range |
| int32 ColRange::count |
Represents the columns spanned by this range.
| int32 ColRange::start |
Represents the first column in this range.