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

#include <ITextFrameOversetOverride.h>

Inheritance diagram for ITextFrameOversetOverride:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ITEXTFRAMEOVERSETOVERRIDE }
 

Public Member Functions

virtual void Inval (GraphicsData *gd) const =0
 
virtual void Draw (GraphicsData *gd, int32 iShapeFlags) const =0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

This class allows private boss implementations that use the kTextFrameImpl to override its default overset indicator handing behavior. This implementation must be on the same boss as the kTextFrameImpl. TextOnAPath is an example of an implementation which uses kTextFrameImpl but draws its own overset indicator. Boss implementations which are happy with the default behavior do not need to supply this implementation.

Member Function Documentation

virtual void ITextFrameOversetOverride::Draw (GraphicsDatagd,
int32 iShapeFlags 
) const
pure virtual

This method will be called from FrameShape::DrawShape() as required if the TextFrame is overset and we are not printing. Note that for the standard kTextFrameBoss the overset indicator is also drawn by the IHandleShape() implementation of the spline and this drawing will usually overwrite what is drawn here. The exception occurs during drawing of the TextFrame with the TextOffscreen active in which case the drawing of the handles is suppressed and what is drawn here will be effective.

virtual void ITextFrameOversetOverride::Inval (GraphicsDatagd) const
pure virtual

This method will be called from the FrameShape::Inval() method as a result of a broadcast of kTextFrameOversetChangedMsg on the TextFrame. The implementation is expected to use the specified GraphicsData parameter to invalidate the appropriate amount of the view.