#include <styles.h>
Inheritance diagram for WizOpStyle:
Public Member Functions | |
WizOpStyle (const StringBase &Name, const StringBase &Question, const WizOp &WizOpRef, const StringBase &Param) | |
virtual Style * | CreateCopy (const StringBase &NewName) const |
virtual BOOL | operator== (const Style &OtherStyle) const |
Compares two Style's. | |
const StringBase & | GetQuestion () const |
BOOL | SetQuestion (const StringBase &NewQuestion) |
const WizOp & | GetWizOp () const |
const StringBase & | GetParam () const |
Protected Member Functions | |
BOOL | SetParam (const StringBase &NewParam) |
Private Attributes | |
String_256 | m_Question |
const WizOp & | m_WizOp |
String_256 | m_Param |
Definition at line 268 of file styles.h.
|
Definition at line 992 of file styles.cpp. 00993 : 00994 Style(Name), 00995 m_WizOp(WizOpRef) 00996 { 00997 SetQuestion(Question); 00998 00999 SetParam(Param); 01000 }
|
|
Implements Style. Definition at line 1004 of file styles.cpp. 01005 { 01006 return new WizOpStyle(NewName, GetQuestion(), GetWizOp(), GetParam()); 01007 }
|
|
Definition at line 1059 of file styles.cpp. 01060 { 01061 return m_Param; 01062 }
|
|
Definition at line 1049 of file styles.cpp. 01050 { 01051 return m_Question; 01052 }
|
|
Definition at line 1054 of file styles.cpp. 01055 { 01056 return m_WizOp; 01057 }
|
|
Compares two Style's.
Reimplemented from Style. Definition at line 1010 of file styles.cpp. 01011 { 01012 ERROR3IF(!OtherStyle.IsKindOf(CC_RUNTIME_CLASS(WizOpStyle)), "OtherStyle isn't a WizOpStyle"); 01013 01014 const WizOpStyle& OtherWizOpStyle = (const WizOpStyle&)OtherStyle; 01015 01016 return (Style::operator==(OtherStyle) && 01017 m_Question == OtherWizOpStyle.m_Question && 01018 &m_WizOp == &(OtherWizOpStyle.m_WizOp) && 01019 m_Param == OtherWizOpStyle.m_Param); 01020 }
|
|
Definition at line 1034 of file styles.cpp. 01035 { 01036 BOOL AllCopied = TRUE; 01037 01038 if (NewParam.Length() > m_Param.MaxLength()) 01039 { 01040 TRACE( _T("WizOpStyle::SetParam - That param's too long!\n")); 01041 AllCopied = FALSE; 01042 } 01043 NewParam.Left(&m_Param, m_Param.MaxLength()); 01044 01045 return AllCopied; 01046 }
|
|
Definition at line 1023 of file styles.cpp. 01024 { 01025 if (NewQuestion.Length() > m_Question.MaxLength()) 01026 { 01027 TRACE( _T("WizOpStyle::SetQuestion - Couldn't you ask a shorter question?\n")); 01028 } 01029 NewQuestion.Left(&m_Question, m_Question.MaxLength()); 01030 01031 return TRUE; 01032 }
|
|
|
|
|
|
|