home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / shape / iodshape.idl < prev    next >
Text File  |  1997-04-02  |  3KB  |  121 lines

  1. //#====START_GENERATED_PROLOG======================================
  2. //#
  3. //#
  4. //#   COMPONENT_NAME: odshapepart
  5. //#
  6. //#   CLASSES: none
  7. //#
  8. //#   ORIGINS: 82,27
  9. //#
  10. //#
  11. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //#   All Rights Reserved
  13. //#   Licensed Materials - Property of IBM
  14. //#   US Government Users Restricted Rights - Use, duplication or
  15. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //#       
  17. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //#   OR PERFORMANCE OF THIS SOFTWARE.
  24. //#
  25. //#====END_GENERATED_PROLOG========================================
  26. //#
  27. /* @(#)Z 1.14 com/src/samples/shape/iodshape.idl, odshapepart, od96os2, odos29712d 97/03/21 17:45:25 (96/11/01 08:53:50) */
  28. #ifdef __PRIVATE__
  29. //#
  30. //#     File:           Shape.idl
  31. //#
  32. //#     Contains:       IDL description of Shape Part
  33. //#
  34. #endif
  35.  
  36.  
  37. #ifndef _SHAPE_H_
  38. #define _SHAPE_H_
  39. #ifndef _SIMPLPRT_
  40.  
  41. #include "iodsimpl.idl"
  42. #endif
  43.  
  44. interface M_ShapePart;
  45. interface ODFrame;
  46.  
  47. typedef somToken COLORREF;
  48.  
  49.  
  50. interface ShapePart : SimplePart
  51. {
  52.  
  53.         void HandleColorChange(in ODFrame frame);
  54.         void InvalidateAllFrames();
  55.  
  56. #ifdef __SOMIDL__
  57.         implementation
  58.         {
  59.                 functionprefix = ShapePart;
  60.                 metaclass     = M_ShapePart;
  61.                 majorversion = 1;
  62.                 minorversion = 0;
  63.                 dllname = "iodshape.dll";
  64.  
  65.         releaseorder:
  66.                HandleColorChange,
  67.                InvalidateAllFrames;
  68.  
  69.         override:
  70.                somInit,
  71.                somUninit,
  72.                CommonInit,
  73.                InitPart,
  74.                InitPartFromStorage,
  75.                CloneInto,
  76.                Externalize,
  77.                AdjustViewTypeShapes,
  78.                CreateIcons,
  79.                HandleMenuEvent,
  80.                DrawFrame,
  81.                AdjustMenus,
  82.                UndoAction,
  83.                RedoAction,
  84.                Release;
  85.  
  86.         passthru C_xh = ""
  87.          ;
  88.         passthru C_xh_after = ""
  89.          ;
  90.         passthru C_xih = ""
  91.          ;
  92.  
  93.         // instance variables
  94.          ODSession           fSession;
  95.          ODPart              fPartWrapper;
  96.          COLORREF            fBackgroundColor;
  97.          ODBoolean           fDraftReadOnly;
  98.         };
  99. #endif
  100. };
  101.  
  102. interface M_ShapePart : M_SimplePart
  103. {
  104.  
  105. #ifdef __SOMIDL__
  106.   implementation
  107.   {
  108.     functionprefix = M_ShapePart;
  109.     override:
  110.       clsGetODPartHandlerName,
  111.       clsGetODPartHandlerDisplayName,
  112.       clsGetODPartKinds,
  113.       clsGetOLE2ClassId,
  114.       clsGetWindowsIconFileName;
  115.   };
  116. #endif
  117. };
  118. #endif  // _SHAPE_H_
  119.  
  120.  
  121.