#include <lattrops.h>
Inheritance diagram for OpChangeLineJoinOpDesc:
Public Member Functions | |
OpChangeLineJoinOpDesc () | |
Static Public Member Functions | |
static BOOL | Init () |
Registers the OpChangeLineJoinOpDesc operation descriptor. | |
Private Member Functions | |
virtual CCRuntimeClass * | GetAttribRuntimeClass () const |
virtual UINT32 | ConvertAttribToStringID (NodeAttribute *pAttr) const |
Called by the OpChangeLineAttribOpDesc base class when it wants to get a string describing the given attribute. | |
virtual UINT32 | GetItemStringID (INT32 nIndex) const |
Called by the OpChangeLineAttribOpDesc base class when it wants the string to insert at the given position in the combo. | |
virtual NodeAttribute * | GetNewAttrib (INT32 nItemIndex) const |
Called by the OpChangeLineAttribOpDesc base class when it wants to create an attribute. |
Definition at line 132 of file lattrops.h.
|
Definition at line 163 of file lattrops.cpp. 00164 : OpChangeLineAttribOpDesc(_R(IDS_CHANGE_LINE_JOIN), 00165 OPTOKEN_CHANGE_LINE_JOIN, 00166 _R(IDBBL_CHANGE_LINE_JOIN), 00167 _R(IDLB_JOINTYPE_LIST_BOX)) 00168 { 00169 // Empty. 00170 }
|
|
Called by the OpChangeLineAttribOpDesc base class when it wants to get a string describing the given attribute.
Implements OpChangeLineAttribOpDesc. Definition at line 208 of file lattrops.cpp. 00209 { 00210 UINT32 nTxtID; 00211 switch (((AttrJoinType*) pAttr)->Value.JoinType) 00212 { 00213 case MitreJoin: 00214 nTxtID = _R(IDS_JOINTYPE_MITRE); 00215 break; 00216 00217 case RoundJoin: 00218 nTxtID = _R(IDS_JOINTYPE_ROUND); 00219 break; 00220 00221 case BevelledJoin: 00222 nTxtID = _R(IDS_JOINTYPE_BEVEL); 00223 break; 00224 00225 default: 00226 nTxtID = 0; 00227 break; 00228 } 00229 00230 return nTxtID; 00231 }
|
|
Implements OpChangeLineAttribOpDesc. Definition at line 187 of file lattrops.cpp. 00188 { 00189 return CC_RUNTIME_CLASS(AttrJoinType); 00190 }
|
|
Called by the OpChangeLineAttribOpDesc base class when it wants the string to insert at the given position in the combo.
Implements OpChangeLineAttribOpDesc. Definition at line 250 of file lattrops.cpp. 00251 { 00252 static UINT32 nStringID[] = 00253 { 00254 _R(IDS_JOINTYPE_MITRE), 00255 _R(IDS_JOINTYPE_ROUND), 00256 _R(IDS_JOINTYPE_BEVEL), 00257 0 00258 }; 00259 00260 return nStringID[nItemIndex]; 00261 }
|
|
Called by the OpChangeLineAttribOpDesc base class when it wants to create an attribute.
Implements OpChangeLineAttribOpDesc. Definition at line 279 of file lattrops.cpp. 00280 { 00281 AttrJoinType* pAttr = new AttrJoinType; 00282 if (pAttr != NULL) pAttr->Value.JoinType = (JointType) nItemIndex; 00283 return pAttr; 00284 }
|
|
Registers the OpChangeLineJoinOpDesc operation descriptor.
Reimplemented from SimpleCCObject. Definition at line 143 of file lattrops.cpp. 00144 { 00145 return (new OpChangeLineJoinOpDesc) != NULL; 00146 }
|