#include <viewmod.h>
Inheritance diagram for ViewModule:
Public Member Functions | |
virtual BOOL | Init () |
Initialise the view module (which contains the Push and Zoom tools). Does nothing at the moment. | |
virtual UINT32 | GetInterfaceVersion () |
virtual UINT32 | GetInfoVersion () |
virtual void | Describe (void *Info) |
Get info on the Module. | |
virtual void * | CreateTool (UINT32 ToolID) |
Create an instance of a given tool. |
Definition at line 104 of file viewmod.h.
|
Create an instance of a given tool.
Reimplemented from Module_v1. Definition at line 238 of file viewmod.cpp. 00239 { 00240 switch (Type) 00241 { 00242 case 1: 00243 return IN_DLL(ZoomTool); 00244 00245 case 2: 00246 return IN_DLL(PushTool); 00247 00248 #ifndef STANDALONE 00249 case 3: 00250 return IN_DLL(RectangleTool); 00251 00252 #ifndef WEBSTER //Martin-06/11/96-begin 00253 case 4: 00254 return IN_DLL(FreeHandTool); 00255 #endif //WEBSTER 00256 00257 case 5: 00258 return NOT_IN_DLL(SelectorTool); 00259 00260 PORTNOTE("other","Removed grid tool usage") 00261 #ifndef EXCLUDE_FROM_XARALX 00262 #ifndef WEBSTER //Martin 00263 case 6: 00264 return IN_DLL(GridTool); 00265 00266 #endif //WEBSTER 00267 #endif 00268 case 7: 00269 return IN_DLL(BezierTool); 00270 00271 case 8: 00272 return NOT_IN_DLL(EllipseTool); 00273 00274 case 9: 00275 return IN_DLL(GradFillTool); 00276 00277 #ifndef WEBSTER //Martin 00278 case 10: 00279 return IN_DLL(PenTool); 00280 00281 case 11: 00282 return IN_DLL(BlendTool); 00283 #endif //WEBSTER 00284 00285 case 12: 00286 return IN_DLL(TranspTool); 00287 00288 case 13: 00289 return IN_DLL(QuickShapeTool); 00290 00291 #ifndef WEBSTER //Martin 00292 case 14: 00293 return IN_DLL(MouldTool); 00294 00295 PORTNOTE("other","Removed blank tool usage") 00296 #ifndef EXCLUDE_FROM_XARALX 00297 case 15: 00298 return IN_DLL(BlankTool); 00299 #endif 00300 #endif //WEBSTER-Martin-06/11/96-end 00301 00302 case 16: 00303 return IN_DLL(TextTool); 00304 00305 #ifndef NO_ADVANCED_TOOLS 00306 PORTNOTE("other","Removed effects tool usage") 00307 #ifndef EXCLUDE_FROM_XARALX 00308 case 17: 00309 return IN_DLL(LiveEffectsTool); 00310 #endif 00311 00312 case 18: 00313 return IN_DLL(SoftShadowTool); 00314 00315 case 19: 00316 return IN_DLL(BevelTool); 00317 00318 case 20: 00319 return IN_DLL(ContourTool); 00320 #endif 00321 00322 PORTNOTE("other","Removed slice tool usage") 00323 #ifndef EXCLUDE_FROM_XARALX 00324 case 21: 00325 return IN_DLL(SliceTool); 00326 #endif 00327 00328 // Add more view tools here... 00329 00330 #endif 00331 } 00332 00333 return NULL; 00334 }
|
|
Get info on the Module.
Reimplemented from Module_v1. Definition at line 196 of file viewmod.cpp. 00197 { 00198 // Cast the pointer into one we understand... 00199 00200 ModInfo_v1 *ModInfo = (ModInfo_v1 *) Info; 00201 00202 // ...and fill in the fields 00203 00204 ModInfo->InfoVersion = 1; 00205 ModInfo->InterfaceVersion = GetInterfaceVersion(); 00206 ModInfo->Version = 1; 00207 ModInfo->ID = MODULEID_KERNEL; 00208 #ifdef STANDALONE 00209 ModInfo->NumTools = 2; 00210 #else 00211 #ifdef BUILDSHADOWS 00212 ModInfo->NumTools = 21; // Shadows + Bevels + Contours + Slicing 00213 #else 00214 ModInfo->NumTools = 18; // Shadows + Bevels + Contours + Slicing 00215 #endif 00216 #endif 00217 ModInfo->Name = Name; 00218 ModInfo->Purpose = Purpose; 00219 ModInfo->Author = Author; 00220 }
|
|
Definition at line 114 of file viewmod.h.
|
|
Reimplemented from Module_v1. Definition at line 111 of file viewmod.h.
|
|
Initialise the view module (which contains the Push and Zoom tools). Does nothing at the moment.
Reimplemented from Module_v1. Definition at line 168 of file viewmod.cpp. 00169 { 00170 #if !defined(EXCLUDE_FROM_RALPH) 00171 #ifdef STANDALONE 00172 TextTool* pTextTool = new TextTool(); 00173 if (pTextTool) 00174 pTextTool->Init(); 00175 #endif 00176 #endif 00177 00178 return TRUE; 00179 }
|