#include <CDialogObserver.h>
|
| enum | { kDefaultIID = IID_IOBSERVER } |
| |
| bool16 | fDetachSubjectsOnDelete |
| |
| PMIID | fAttachIID |
| |
| const UIDRef | fThisRef |
| |
| bool16 | fEnabled |
| |
CDialogObserver should be used by the dialog which has OK/Cancel button.
- See Also
- AbstractDialogObserver.h
| virtual void CDialogObserver::AutoAttach | ( | | ) | |
| virtual |
By default we attach and detach to the ok and cancel buttons. These are the widgets with ids kOKButtonWidgetID and kCancelButton_WidgetID. Override to attach to other buttons or widgets.
Reimplemented from CObserver.
Reimplemented in TranFxUIDialogObserver, BscSlDlgTabDialogObserver, PDFVTUIDialogObserver, WatermarkUIDialogObserver, BscSlDlgDialogObserver, BscL10NDialogObserver, TxtExpDialogObserver, BscDlgDialogObserver, CusDtLnkUIBrowsDialogObserver, TblBscDialogObserver, WFPDialogObserver, and CSelectableDialogObserver.
| virtual void CDialogObserver::AutoDetach | ( | | ) | |
| virtual |
If the observer knows which subject(s) to detach itself from, it'll do so with this call
Reimplemented from CObserver.
Reimplemented in TranFxUIDialogObserver, BscSlDlgTabDialogObserver, PDFVTUIDialogObserver, WatermarkUIDialogObserver, BscSlDlgDialogObserver, BscL10NDialogObserver, TxtExpDialogObserver, BscDlgDialogObserver, TblBscDialogObserver, CusDtLnkUIBrowsDialogObserver, CSelectableDialogObserver, and WFPDialogObserver.
| virtual void CDialogObserver::CloseDialog | ( | bool16 | windowAlreadyClosed = kFalse | ) | |
| protectedvirtual |
Closes the dialog window. This will release all objects associated with the dialog.
- Parameters
| windowAlreadyClosed | kTrue if system window already been closed. |
| virtual void CDialogObserver::FireOffEndDialogCmd | ( | bool16 | hitOK | ) | |
| protectedvirtual |
Dialog Preview button support methods
- Parameters
| hitOK | kTrue if dialog closed by click on OK button. |
| void CDialogObserver::SetDialogValidationStatusFailed | ( | bool16 | bStatus = kTrue | ) | |
| protected |
Set the dialog validation status, if bStatus true, dialog validation is failed, if bStatus false, dialog validation is fine
| virtual void CDialogObserver::Update | ( | const ClassID & | theChange, | | | ISubject * | theSubject, | | | const PMIID & | protocol, | | | void * | changedBy | | ) | | |
| virtual |
Respond to a change in an observed subject. Just an implementation of Update function on IObserver interface.
- See Also
- IObserver.h
Implements IObserver.
Reimplemented in TranFxUIDialogObserver, PDFVTUIDialogObserver, WatermarkUIDialogObserver, BscSlDlgDialogObserver, BscSlDlgTabDialogObserver, BscL10NDialogObserver, TxtExpDialogObserver, BscDlgDialogObserver, CusDtLnkUIBrowsDialogObserver, TblBscDialogObserver, WFPDialogObserver, and CSelectableDialogObserver.