1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 #include "../base/defines.h" 11 12 13 14 15 #ifndef _ArkStandIn_h 16 #define _ArkStandIn_h 17 18 19 #include "Base.h" 20 #include <../widgets/WorkspaceW.h> 21 22 23 // 24 // Class name definition: 25 // 26 #define ClassArkStandIn "ArkStandIn" 27 28 // 29 // referenced classes 30 // 31 32 // 33 // ArkStandIn class definition: 34 // 35 class ArkStandIn : public Base 36 { 37 private: 38 // 39 // Private member data: 40 // 41 XmWorkspaceWidget parent; 42 XmWorkspaceLine line; 43 44 protected: 45 // 46 // Protected member data: 47 // 48 49 50 public: 51 // 52 // Constructor: 53 // ArkStandIn(XmWorkspaceWidget w,XmWorkspaceLine l)54 ArkStandIn(XmWorkspaceWidget w, XmWorkspaceLine l) 55 { 56 this->line = l; 57 this->parent = w; 58 } 59 60 // 61 // Destructor: 62 // ~ArkStandIn()63 ~ArkStandIn() 64 { 65 XmDestroyWorkspaceLine((XmWorkspaceWidget) this->parent, 66 this->line, FALSE); 67 } setWorkSpaceLine(XmWorkspaceLine l)68 void setWorkSpaceLine(XmWorkspaceLine l) 69 { 70 this->line = l; 71 } getWorkSpaceLine()72 XmWorkspaceLine getWorkSpaceLine() 73 { 74 return this->line; 75 } 76 77 // 78 // Print a representation of the stand in on a PostScript device. We 79 // assume that the device is in the same coordinate space as the parent 80 // of this uicomponent (i.e. we send the current geometry to the 81 // PostScript output file). 82 // 83 boolean printAsPostScript(FILE *f); 84 85 // 86 // Returns a pointer to the class name. 87 // getClassName()88 const char* getClassName() 89 { 90 return ClassArkStandIn; 91 } 92 }; 93 94 95 #endif // _ArkStandIn_h 96