#include <GraphicStateDefnObserver.h>
|
| virtual void | HandleSelectionChanged (const ISelectionMessage *iSelectionMsg) |
| |
| virtual void | HandleSelectionAttributeChanged (const ISelectionMessage *iSelectionMsg) |
| |
| virtual void | HandleDefinitionChange (IGraphicAttributeSuite *iGraphicAttrSuite, IGraphicAttrMessage *iGraphicAttrMsg) |
| |
| virtual void | UpdateDefinition (IGraphicAttributeSuite *iGraphicAttrSuite, IGraphicAttrMessage *iGraphicAttrMsg)=0 |
| |
| virtual void | UpdateFillRenderData (IGraphicAttributeSuite *iGraphicAttrSuite, UID renderUID, IGraphicAttrMessage *iGraphicAttrMsg) |
| |
| virtual void | UpdateStrokeRenderData (IGraphicAttributeSuite *iGraphicAttrSuite, UID renderUID, IGraphicAttrMessage *iGraphicAttrMsg) |
| |
| virtual void | UpdateSwapStrokeAndFill (IGraphicAttributeSuite *iGraphicAttrSuite, IGraphicAttrMessage *iGraphicAttrMsg) |
| |
| virtual void | EnableWidget (bool16 enableFlag) |
| |
| virtual void | HandleFrequentSelectionChanged () |
| |
| virtual void | AttachToSelectionSubject (ISubject *selectionSubject) |
| |
| virtual void | DetachFromSelectionSubject (ISubject *selectionSubject) |
| |
| virtual void | HandleActiveSelectionChanged () |
| |
| virtual void | HandleSelectionUpdate (const ClassID &c, ISubject *s, const PMIID &p, void *v) |
| |
| virtual IPMUnknown * | QueryAbstractSelection (const PMIID &p) |
| |
| virtual void | AttachToActiveSelection () |
| |
| virtual void | DetachFromActiveSelection () |
| |
|
| enum | { kDefaultIID = IID_IOBSERVER } |
| |
A utility class for observing active selection related to graphic attributes. This class inherits from ActiveSelectionObserver.
- See Also
- also SelectionObserver.h
| virtual void GraphicStateDefnObserver::AutoAttach | ( | | ) | |
| virtual |
Called when this observer should attach to the subject(s) that it observes (Active Context and Active Selection).
Reimplemented from ActiveSelectionObserver.
| virtual void GraphicStateDefnObserver::AutoDetach | ( | | ) | |
| virtual |
Called when this observer should automatically detach from the subject(s) that it observes.
Reimplemented from ActiveSelectionObserver.
| virtual void GraphicStateDefnObserver::EnableWidget | ( | bool16 | enableFlag | ) | |
| protectedvirtual |
Called to Enable/Disable the associated widget(s).
- Parameters
| enableFlag | is true if the associated widgets should be enabled. |
Handles any graphic attribute related changes.
- Parameters
| iGraphicAttrSuite | is the graphic attribute suite affected by this change. |
| iGraphicAttrMsg | is the graphic attribute message forward from the selection. |
| virtual void GraphicStateDefnObserver::HandleSelectionAttributeChanged | ( | const ISelectionMessage * | iSelectionMsg | ) | |
| protectedvirtual |
Handles any selection attributes changed related messages. Only IID_IGRAPHICATTRIBUTESUITE messages are handled in this method.
- Parameters
| iSelectionMsg | is the selection message. If iSelectionMsg is nil, everything should update. |
Reimplemented from ActiveSelectionObserver.
| virtual void GraphicStateDefnObserver::HandleSelectionChanged | ( | const ISelectionMessage * | iSelectionMsg | ) | |
| protectedvirtual |
Handles any selection changed related messages.
- Parameters
| iSelectionMsg | is the selection message. If iSelectionMsg is nil, everything should update. |
Reimplemented from ActiveSelectionObserver.
Override some or all of the following to respond to, according to the state of the definition. By default they do nothing.Update to reflect the current definition. This method is called whenever there's a change in that cannot be described by the other messages. It is usually called when something external changes the current selection. One or more objects could be selected. By default the method updates the active render data. The subclass must overwrite this and do the rest of the updates.
- Parameters
| iGraphicAttrSuite | is the graphic attribute suite affected by this change. |
| iGraphicAttrMsg | is the graphic attribute message forward from the selection. |
Called when the current target's fill rendering data has changed.
- Parameters
| iGraphicAttrSuite | is the graphic attribute suite affected by this change. |
| renderUID | is the new fill rendering UID. |
| iGraphicAttrMsg | is the graphic attribute message forward from the selection. |
Called when the current target's stroke rendering data has changed.
- Parameters
| iGraphicAttrSuite | is the graphic attribute suite affected by this change. |
| renderUID | is the new stroke rendering UID. |
| iGraphicAttrMsg | is the graphic attribute message forward from the selection. |
Called when the current target's has its fill and stroke swapped.
- Parameters
| iGraphicAttrSuite | is the graphic attribute suite affected by this change. |
| iGraphicAttrMsg | is the graphic attribute message forward from the selection. |
| bool16 GraphicStateDefnObserver::fEnabledState |
| protected |
fEnabledState keeps track of the widgets' enabling state.