InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableLayout::Parcel Class Referenceabstract

#include <ITableLayout.h>

Public Types

enum  Damage {
  pdt_none = 0x00, pdt_content = 0x01, pdt_content_attr = 0x02, pdt_x_offset = 0x08,
  pdt_structure = 0x10, pdt_all = 0x1b
}
 

Public Member Functions

virtual bool16 operator== (const Parcel &other) const =0
 
virtual bool16 operator!= (const Parcel &other) const =0
 
virtual GridAddress GetGridAddress () const =0
 
virtual ParcelKey GetParcelKey () const =0
 
virtual Damage GetDamage () const =0
 
virtual PMPoint GetXYOffset () const =0
 

Detailed Description

Layout Parcels hold information about the IParcel objects owned by the Cells which are what the TableComposer manipulates during composition.

Member Enumeration Documentation

Enumerator
pdt_content 

The content has become damaged and requires that the Parcel needs to be re-composed. The Parcel as a whole has NOT been Inval()ed although parts of it may have been.

pdt_content_attr 

A Cell attribute which pertains to content has been changed. The Parcel has NOT been Inval()ed.

pdt_x_offset 

The XPosition of the Parcel is in doubt because the width of a column to the left of the Parcel has been changed. The Parcel HAS been Inval()ed.

pdt_structure 

Requires that the size and XYOffset be recomputed. The Parcel HAS been Inval()ed.

Member Function Documentation

virtual Damage ITableLayout::Parcel::GetDamage () const
pure virtual

Parcel damage is NOT hierarchical, unlike Frame and Row damage. In addition, unlike Rows, the information available here is still valid for damaged Parcels.

virtual GridAddress ITableLayout::Parcel::GetGridAddress () const
pure virtual

Returns the GridAddress of the Cell that owns this Parcel. Note that because of vertically merged Cells, this may NOT be the same as the ModelRow of the Layout Row this Parcel is part of.

virtual ParcelKey ITableLayout::Parcel::GetParcelKey () const
pure virtual

Parcel keys are only unique for a given Cell. Keys may not be asked for if the containing Row is damaged.

virtual PMPoint ITableLayout::Parcel::GetXYOffset () const
pure virtual

The XYOffset of the Parcel is measured from the Top Left of of the Path bounds of the containing Row.

virtual bool16 ITableLayout::Parcel::operator== (const Parcelother) const
pure virtual

comparison operators