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

Public Member Functions | |
| AbstractControlView (IPMUnknown *boss) | |
| virtual void | ReadWrite (IPMStream *s, ImplementationID prop) |
| virtual void | Init (const WidgetID &widgetId=kDefaultWidgetId, const PMRect &bbox=kZeroRect, RsrcID rsrcID=0) |
| virtual void | DoPostCreate () |
| virtual RsrcID | GetRsrcID () const |
| virtual void | SetRsrcID (const RsrcID &id) |
| virtual PluginID | GetRsrcPluginID () const |
| virtual void | SetRsrcPluginID (const PluginID &id) |
| virtual WidgetID | GetWidgetID () const |
| virtual void | SetWidgetID (const WidgetID &id) |
| virtual void | SetFrame (const PMRect &newFrame, bool16 invalidate=kTrue)=0 |
| virtual const PMRect & | GetFrame () const =0 |
| virtual void | Resize (const PMPoint &newDimensions, bool16 invalidate=kTrue)=0 |
| virtual void | MoveTo (const PMPoint &where, bool16 invalidate=kTrue)=0 |
| virtual void | SetFrameBinding (const FrameBinding &binding) |
| virtual FrameBinding | GetFrameBinding () const |
| virtual void | AdaptToParentsSize (const PMPoint &dimensions)=0 |
| virtual void | AdaptToChildsGeometry (const PMPoint &delta, const FrameBinding &childsBinding, bool16 invalidate=kFalse)=0 |
| virtual PMPoint | ConstrainDimensions (const PMPoint &dimensions) const |
| virtual SysRgn | GetDrawRegion ()=0 |
| virtual bool16 | DrawRegionEncompassesChildRegions () const =0 |
| virtual SysRect | GetBBox () const |
| virtual PMMatrix * | GetContentToWindowTransform () const |
| virtual void | ContentToWindowTransform (PMPoint *point) const |
| virtual void | ContentToWindowTransform (PMRect *rect) const |
| virtual void | ContentToWindowTransform (PMPolygon4 *poly) const |
| virtual void | WindowToContentTransform (PMPoint *point) const |
| virtual void | WindowToContentTransform (PMRect *rect) const |
| virtual void | WindowToContentTransform (PMPolygon4 *poly) const |
| virtual PMMatrix | GetContentToWindowMatrix () const |
| virtual PMMatrix | GetWindowToContentMatrix () const |
| virtual PMRect | GetContentBounds_ () const |
| virtual void | InvalidateTransform () |
| virtual void | DeleteDrawRegion ()=0 |
| virtual int32 | HitTest (const SysPoint &where)=0 |
| virtual void | Draw (IViewPort *viewPort, SysRgn updateRgn)=0 |
| virtual void | ForceRedraw (SysRgn invalidRgn, bool16 forceRedraw)=0 |
| virtual void | Invalidate (PMRect *bbox=nil)=0 |
| virtual void | Validate (PMRect *bbox=nil)=0 |
| virtual void | Hilite (bool16 doHilite=kTrue)=0 |
| virtual void | Unhilite ()=0 |
| virtual bool16 | IsHilited () const =0 |
| virtual bool16 | IsRolledOver () const =0 |
| virtual void | Show (bool16 doShow)=0 |
| virtual void | Hide ()=0 |
| virtual bool16 | GetVisibleState () const =0 |
| virtual bool16 | IsVisible (bool16 requireVisibleWindow=kFalse) const =0 |
| virtual void | ParentsVisibleStateChanged (bool16 visible) |
| virtual void | Enable (bool16 doEnable, bool16 invalidate)=0 |
| virtual void | Disable (bool16 invalidate)=0 |
| virtual bool16 | GetEnableState () const =0 |
| virtual bool16 | IsEnabled () const =0 |
| virtual void | ParentsEnableStateChanged (bool16 enable, bool16 invalidate)=0 |
| virtual void | WindowActivated () |
| virtual void | WindowDeactivated () |
| virtual void | WindowShown () |
| virtual void | WindowHidden () |
| virtual void | WindowChanged () |
| virtual void | WindowClosed () |
| virtual void | ParentPurged () |
| virtual void | DoAutoAttach () |
| virtual void | DoAutoDetach () |
Public Member Functions inherited from IControlView | |
| virtual void | SetClipToSelfEnabled (bool16 clipChildren) const =0 |
| virtual const PMRect | GetLocalFrame () const =0 |
| virtual PMRect | GlobalToView (const PMRect &convertRect) const =0 |
| virtual PMPoint | GlobalToView (const PMPoint &convertPoint) const =0 |
| virtual PMRect | GlobalToWindow (const PMRect &convertRect) const =0 |
| virtual PMPoint | GlobalToWindow (const PMPoint &convertPoint) const =0 |
| virtual PMRect | ViewToGlobal (const PMRect &convertRect) const =0 |
| virtual PMPoint | ViewToGlobal (const PMPoint &convertPoint) const =0 |
| virtual PMRect | WindowToGlobal (const PMRect &convertRect) const =0 |
| virtual PMPoint | WindowToGlobal (const PMPoint &convertPoint) const =0 |
| void | ShowView (bool16 doShow=kTrue) |
| void | HideView () |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Protected Member Functions | |
| virtual void | SetVisibleState (bool16 isVisible=kTrue)=0 |
| virtual void | SetEnableState (bool16 isVisible=kTrue)=0 |
| virtual bool16 | AncestorsAreVisible (bool16 requireVisibleWindow) const =0 |
| virtual bool16 | AncestorsAreEnabled () const |
| IPMUnknown * | QueryParentFor (const PMIID &interfaceID) const |
| void | NotifyParent (const WidgetAttributeID &id) |
| virtual PMMatrix * | GetUpdatedContentToWindowTransform ()=0 |
| virtual void | CreateDrawRegion (SysRgn &drawRgn)=0 |
| virtual PMMatrix * | CreateTransform () |
| void | DestroyContentTransform () |
| virtual void | DestroyWrappedSystemControls () |
| virtual bool16 | IsAutoAttached () const =0 |
| virtual void | SetIsAutoAttached (bool16 flag=kTrue)=0 |
| virtual void | HandleAutoAttach () |
| virtual void | HandleAutoDetach () |
| virtual void | SetRsrcID (const RsrcID &id, const bool isDarkIcon) |
Protected Attributes | |
| WidgetID | fWidgetId |
| PMRsrcID | fRsrcId |
| FrameBinding | fFrameBinding |
| PMRect | fFrame |
| PMMatrix * | fContentTransform |
Additional Inherited Members | |
Public Types inherited from IControlView | |
| enum | { kDefaultIID = IID_ICONTROLVIEW } |
This class is a new base class used to implement IControlView for essentially all widgets. It's purpose is to isolate Drover-based widgets from some of the assumptions found in CControlView related to wrapping platform widgets. Implementations in AbstractControlView must be independent of how the ControlView is actually implemented - so it deals mostly with identification, notification, common data, etc.
| pure virtual |
Resizes based on the current binding setting of child. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
Resizes based on the current binding setting. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| protectedvirtual |
Checks if all parents of this widget are enabled.
| protectedpure virtual |
Checks if all parents of this widget are visible. Optionally check the window as well
Implemented in DVHostedWidgetView.
Default implementation just returns the dimensions passed in. If your widget has some limits on how it resizes(e.g. only want to grow shrink in increments of a row height or something) you need to override this method.
Implements IControlView.
Reimplemented in CelPnlPanelView, DCLSizPalettePanelView, CusCondTxtPanelView, and SnipRunControlView.
| protectedpure virtual |
Return a region that defines the drawing area of the control. Default implementation creates a region from the control bbox.
Overriding this allows you to create a different draw region. Some controls do this to draw a drop shadow outside the bounds of the control. Your draw region should not extend beyond your parent's draw region, so your draw region should usually be an intersection of your adjusted bbox and your parent's draw region.
Implemented in DVHostedWidgetView.
| protectedvirtual |
Allocates a new transform. Subclasses rarely need to override this method
| pure virtual |
Default implementation throws away cached Draw Region. Next call to GetDrawRegion will recalculate it. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| protected |
Frees the content Transform.
| protectedvirtual |
Destroy any platform controls wrapped by this control. Does nothing by default - see CControlView
| pure virtual |
Sets enable flag. Optionally causes inval.
Implements IControlView.
Implemented in DVHostedWidgetView, and DVDropDownElementView.
| virtual |
Calls the AutoAttach method of the observer on the same boss with IID_IOBSERVER, plus attaches additional observers using the IControlViewObservers interface
Implements IControlView.
| virtual |
Calls the AutoDetach method of the observer on the same boss with IID_IOBSERVER, plus detaches additional observers using the IControlViewObservers interface
Implements IControlView.
Reimplemented in DVHostedWidgetView.
| virtual |
Default implementation resets transform and panorama. Subclasses sometimes override this to do some delayed initialization.
Implements IControlView.
Reimplemented in AGMDrawnPanelView, DVGIFPlayerView, CelPnlPanelView, DVBasePanelView, DVHostedWidgetView, and DVPanelView.
| pure virtual |
Draw the control. All subclasses must override.
Implements IControlView.
Implemented in DVHostedWidgetView, CusDtLnkUICustomView, PnlTrvCustomView, TableCellView, AGMDrawnPanelView, DVAbstractControlView, DVDropDownElementView, and HiDPIWidgetControlView.
| pure virtual |
As a default, Child regions will be contained within their parent's draw region(returns kTrue), but this can be overridden by some views to indicate that child regions are independant of their parent regions.
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
Sets enable flag. Optionally causes inval.
Implements IControlView.
Implemented in DVHostedWidgetView, and DVDropDownElementView.
| pure virtual |
Force the control to redraw, or just the invalid region passed in.
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
Returns value based on Frame and transform.
Implements IControlView.
| virtual |
Default implementation returns cached transform, or uses bbox and panorama to calculate the current transform. Subclasses rarely override this method
Implements IControlView.
| pure virtual |
Returns stored value, or calls CreateDrawRegion if it doesn't have one. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
| virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
Reimplemented in DVHostedWidgetView.
| virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
| virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
| protectedpure virtual |
Calculates new transform from current bbox and panorama. Subclasses usually don't need to override this method
Implemented in DVHostedWidgetView.
| pure virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
| protectedvirtual |
As control views are enabled, activated and shown we only want to call Attach once. These
methods make sure that AutoAttach is only called once.
| protectedvirtual |
As control views are disabled, deactivated and hidden we only want to call Detach once. These
methods make sure that AutoDetach is only called once.
| pure virtual |
Sets visible flag. Causes inval. Does AutoDetach of observer
Implements IControlView.
Implemented in DVHostedWidgetView, and DVBasePanelView.
| pure virtual |
| pure virtual |
Default implementation returns kTrue if the passed in point is within the bbox of the control view. Subclasses who want different hittest behavior must override this method.
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
Default implementation just stores off WidgetID, bbox, and RsrcID
Implements IControlView.
Reimplemented in DVHostedWidgetView, CusDtLnkUICustomView, and PnlTrvCustomView.
| pure virtual |
Inval the draw region of this control, or just the bbox passed in.
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
Default implementation throws away cached Transform. Next call to GetContentToWindowTransform will recalculate it. Subclasses rarely override this method
Implements IControlView.
Reimplemented in DVBasePanelView.
| protectedpure virtual |
Check if AutoAttach was called more recently than AutoDetach
Implemented in DVHostedWidgetView.
| pure virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
| pure virtual |
| pure virtual |
Returns stored value. Subclasses rarely override this method
Implements IControlView.
Implemented in DVHostedWidgetView.
| pure virtual |
| protected |
Notify parent of an attrubute change, such as kWidgetSize
| virtual |
Default implementation invalidates transform, destroys system control, deletes draw region
Implements IControlView.
Reimplemented in DVBasePanelView.
| pure virtual |
Default implementation just invals(if requested to)
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
| protected |
Convenience method to make it easier to get your window or your parent view. Continues querying up the widget hierarchy until a boss with the requested interface is found.
| pure virtual |
Resizes the widget. Invals appropriately.
Implements IControlView.
Implemented in CelPnlPanelView, DVHostedWidgetView, and SnipRunControlView.
| pure virtual |
Moves and resizes the widget. Invals appropriately.
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
Sets stored value. Subclasses rarely override this method
Implements IControlView.
Reimplemented in DVHostedWidgetView.
| virtual |
Sets stored value. Subclasses rarely override this method
Implements IControlView.
| protectedvirtual |
Sets stored value. Used for setting icon at a particular theme. Subclasses rarely override this method
Implements IControlView.
| virtual |
Sets stored value. Subclasses rarely override this method
Implements IControlView.
| protectedpure virtual |
Changes value of state flag, no side effects
Implemented in DVHostedWidgetView.
| virtual |
Sets stored value. Subclasses rarely override this method
Implements IControlView.
| pure virtual |
Sets visible flag. Causes inval. Does AutoAttach or AutoDetach of observer
Implements IControlView.
Implemented in DVHostedWidgetView, and DVBasePanelView.
| pure virtual |
| pure virtual |
Validate the draw region of this control, or just the bbox passed in.
Implements IControlView.
Implemented in DVHostedWidgetView.
| virtual |
| virtual |
Default implementation Auto attaches/detaches observer, invalidates transform, destroys system control
Implements IControlView.
Reimplemented in DVBasePanelView.
| virtual |
Default implementation invalidates transform, destroys system control, deletes draw region
Implements IControlView.
Reimplemented in DVBasePanelView.
| virtual |
| virtual |
Default implementation AutoDetaches observer
Implements IControlView.
Reimplemented in DVBasePanelView.
| virtual |
Default implementation AutoAttaches observer
Implements IControlView.
Reimplemented in DVBasePanelView.