home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12ort2.exe / pkg / en_us / iodtext.odz / iodtext.idl < prev    next >
Text File  |  1997-04-02  |  4KB  |  145 lines

  1. //#====START_GENERATED_PROLOG======================================
  2. //#
  3. //#
  4. //#   COMPONENT_NAME: odtextpart
  5. //#
  6. //#   CLASSES: none
  7. //#
  8. //#   ORIGINS: 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. // @(#) 1.23 com/src/samples/text/iodtext.idl, odtextpart, od96os2, odos29712d 3/7/97 13:03:08 [3/21/97 17:45:27]
  28. #ifdef __PRIVATE__
  29. //#
  30. //#     File:           iodtext.idl
  31. //#
  32. //#     Contains:       IDL description of Text Part
  33. //#
  34. //#     Written by:     Rebecca Roberts
  35. //#
  36. //#     Copyright:      (c) 1996 by IBM Corp., all rights reserved.
  37. //#
  38. #endif
  39.  
  40.  
  41. #ifndef _TEXTPART_
  42. #define _TEXTPART_
  43.  
  44. #include "iodbasec.idl"
  45. typedef somToken  TextMgr;
  46.  
  47. interface M_TextPart;
  48.  
  49. interface TextPart : BaseContainer
  50. {
  51. #ifdef __PRIVATE__
  52.       ODBoolean ImportFile(in ODFrame frame);
  53.       ODBoolean ExportFile();
  54.       ODShape   AcquireEmbeddedClipShape(in ODFacet facet);
  55.       void      GetFacetBoundingRect(in ODFacet facet, inout ODRect clipRect);
  56. #endif
  57.  
  58.  
  59. #ifdef __SOMIDL__
  60.         implementation
  61.         {
  62.                 functionprefix = TextPart;
  63.                 metaclass     = M_TextPart;
  64.                 majorversion = 1;
  65.                 minorversion = 0;
  66.                 dllname = "iodtext.dll";
  67.  
  68.         releaseorder:
  69.  
  70. #ifdef __PRIVATE__
  71.           ImportFile,
  72.           ExportFile,
  73.           AcquireEmbeddedClipShape,
  74.           GetFacetBoundingRect;
  75. #else
  76.           Dummy1,
  77.           Dummy2,
  78.           Dummy3,
  79.           Dummy4;
  80. #endif
  81.  
  82.         override:
  83.                somInit,
  84.                somUninit,
  85.                ReleaseAll,
  86.                InitPartFromStorage,
  87.                Initialize,
  88.                DrawContents,
  89.                ReadContents,
  90.                WriteContents,
  91.                WriteKindInfo,
  92.                WriteIconToSU,
  93.                HandleEvent,
  94.                InstallMenuItems,
  95.                HandleMenuEvent,
  96.                AdjustMenus,
  97.                FacetAdded,
  98.                FocusAcquired,
  99.                FocusLost,
  100.                HandleMouseClick,
  101.                HandleKeyEvent,
  102.                ChangeNotification;
  103.  
  104.         passthru C_xh = ""
  105.          "class ODFacet ;"
  106.          "class ODFrame ;"
  107.          "class ODShape ;"
  108.          ;
  109.         passthru C_xh_after = ""
  110.          ;
  111.          passthru C_xih = ""
  112.          ;
  113.  
  114.          // instance variables
  115.  
  116.          ODMenuBar            fMenuBar;
  117.          ODSession            fSession;
  118.          ODTypeToken          fKeyFocus;
  119.          ODPart               fPartWrapper;
  120.          ODBoolean            fDraftReadOnly; // Indicates whether can change contents.
  121.          TextMgr*             fTextMgr;  // Text formatter
  122.          ODExtension          fScrollExt;  // Our copy of the ODScrollingExtension from parent
  123.  
  124.         };
  125. #endif
  126. };
  127.  
  128. interface M_TextPart : M_BaseContainer
  129. {
  130.  
  131. #ifdef __SOMIDL__
  132.   implementation
  133.   {
  134.     functionprefix = M_TextPart;
  135.     override:
  136.       clsGetODPartHandlerName,
  137.       clsGetODPartHandlerDisplayName,
  138.       clsGetODPartKinds,
  139.       clsGetOLE2ClassId,
  140.       clsGetWindowsIconFileName;
  141.   };
  142. #endif
  143. };
  144. #endif  // _TEXTPART_
  145.