home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / utils / StorUtil.h < prev    next >
C/C++ Source or Header  |  1997-04-02  |  5KB  |  179 lines

  1. /* @(#)Z 1.8 com/src/utils/include/StorUtil.h, odstorage, od96os2, odos29712d 97/03/21 17:21:34 (97/03/14 16:53:08) */
  2. /*====START_GENERATED_PROLOG======================================
  3.  */
  4. /*
  5.  *   COMPONENT_NAME: odstorage
  6.  *
  7.  *   CLASSES: none
  8.  *
  9.  *   ORIGINS: 82,27
  10.  *
  11.  *
  12.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13.  *   All Rights Reserved
  14.  *   Licensed Materials - Property of IBM
  15.  *   US Government Users Restricted Rights - Use, duplication or
  16.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17.  *       
  18.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24.  *   OR PERFORMANCE OF THIS SOFTWARE.
  25.  */
  26. /*====END_GENERATED_PROLOG========================================
  27.  */
  28. /*
  29.     File:        StorUtil.h
  30.  
  31.     Contains:    Utilities for Storage.
  32.  
  33.     Owned by:    Vincent Lo
  34.  
  35.     Copyright:    (C) 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  36.  
  37.     
  38.     In Progress:
  39.         
  40. */
  41.  
  42.  
  43.  
  44. #ifndef _STORUTIL_
  45. #define _STORUTIL_
  46.  
  47. #ifndef SOM_ODDraft_xh
  48. #include <Draft.xh>
  49. #endif
  50.  
  51. #ifndef _ODTYPES_
  52. #include <ODTypes.h>
  53. #endif
  54.  
  55. #ifndef _ODMEMORY_
  56. #include <ODMemory.h>
  57. #endif
  58.  
  59.  
  60. #ifndef SOM_ODPart_xh
  61. #include <Part.xh>
  62. #endif
  63.  
  64. #ifndef _PLATFORM_MACINTOSH_
  65. #include <somltype.h>
  66. #endif
  67.  
  68. #ifndef _ODMVCLNK_
  69. #include <ODMvcLnk.h>
  70. #endif
  71.  
  72. class ODContainer;
  73. class ODSession;
  74. class ODStorageUnitView;
  75. class ODStorageUnit;
  76.  
  77. #ifdef _OD_IMPL_SHARE_UTILS_
  78. #pragma import on
  79. #endif
  80.  
  81.  
  82. #ifdef _PLATFORM_MACINTOSH_
  83. extern "C" {
  84.  
  85.     void ODSUAddPropValue(Environment* ev, ODStorageUnit* su,
  86.                                ODPropertyName prop, ODValueType val);
  87.  
  88.     void ODSUForceFocus(Environment* ev, ODStorageUnit* su,
  89.                              ODPropertyName prop, ODValueType val);
  90.  
  91.     ODBoolean ODSUExistsThenFocus(Environment* ev, ODStorageUnit* su,
  92.                                        ODPropertyName prop, ODValueType val);
  93.  
  94.     void ODSURemoveProperty(Environment* ev, ODStorageUnit* su,
  95.                                                ODPropertyName prop);
  96.  
  97. #else // _PLATFORM_MACINTOSH_
  98.  
  99. SOMEXTERN _DLLIMPORTEXPORT_  void SOMLINK ODSUAddPropValue(Environment* ev, ODStorageUnit* su,
  100.                                ODPropertyName prop, ODValueType val);
  101.  
  102. SOMEXTERN _DLLIMPORTEXPORT_  void SOMLINK ODSUForceFocus(Environment* ev, ODStorageUnit* su,
  103.                               ODPropertyName prop, ODValueType val);
  104.  
  105. SOMEXTERN _DLLIMPORTEXPORT_  ODBoolean SOMLINK ODSUExistsThenFocus(Environment* ev, ODStorageUnit* su,
  106.                                        ODPropertyName prop, ODValueType val);
  107.  
  108. SOMEXTERN _DLLIMPORTEXPORT_  void SOMLINK ODSURemoveProperty(Environment* ev, ODStorageUnit* su,
  109.                                                 ODPropertyName prop);
  110.     
  111. #endif // _PLATFORM_MACINTOSH_
  112.  
  113.  
  114.  
  115.  
  116. #ifdef _PLATFORM_MACINTOSH_
  117.     ODULong      StorageUnitGetValue(ODStorageUnit* su, Environment* ev,
  118.                         ODULong size, void *buffer);
  119.  
  120.     ODULong      StorageUnitViewGetValue(ODStorageUnitView* suv, Environment* ev,
  121.                         ODULong size, void *buffer);
  122.  
  123.     void    StorageUnitSetValue(ODStorageUnit* su, Environment* ev,
  124.                     ODULong size, const void *buffer);
  125.  
  126.     void    StorageUnitViewSetValue(ODStorageUnitView* suv, Environment* ev,
  127.                     ODULong size, const void *buffer);
  128.  
  129.     void   StorageUnitSetPromiseValue(ODStorageUnit* su, Environment* ev,
  130.                     ODValueType value, ODULong offset,
  131.             ODULong size, const void *buffer, ODPart *sourcePart);
  132.  
  133.     ODBoolean  StorageUnitGetStylFromStyledText(ODStorageUnit* su,
  134.                         Environment* ev,
  135.                         ODULong* size,
  136.                         ODPtr* styl);
  137.                         
  138.     ODCloneKind  GetOriginalCloneKind(Environment* ev, ODDraft* draft);
  139.  
  140.     void  RemoveDataInterchangeProperties (Environment* ev,
  141.                         ODStorageUnit* su,
  142.                         ODBoolean clonedToFileContainer);
  143. }
  144.  
  145. #else // _PLATFORM_MACINTOSH_
  146.  
  147. SOMEXTERN _DLLIMPORTEXPORT_  ODULong  SOMLINK  StorageUnitGetValue(ODStorageUnit* su, Environment* ev,
  148.                         ODULong size, void *buffer);
  149.  
  150. SOMEXTERN _DLLIMPORTEXPORT_  ODULong  SOMLINK  StorageUnitViewGetValue(ODStorageUnitView* suv, Environment* ev,
  151.                         ODULong size, void *buffer);
  152.  
  153.  
  154. SOMEXTERN _DLLIMPORTEXPORT_  void  SOMLINK  StorageUnitSetValue(ODStorageUnit* su, Environment* ev,
  155.                     ODULong size, const void *buffer);
  156.  
  157. SOMEXTERN _DLLIMPORTEXPORT_  void  SOMLINK  StorageUnitViewSetValue(ODStorageUnitView* suv, Environment* ev,
  158.                     ODULong size, const void *buffer);
  159.  
  160. SOMEXTERN _DLLIMPORTEXPORT_  void  SOMLINK  StorageUnitSetPromiseValue(ODStorageUnit* su, Environment* ev,
  161.                     ODValueType value, ODULong offset,
  162.  
  163.             ODULong size, const void *buffer, ODPart *sourcePart);
  164.  
  165.                         
  166. SOMEXTERN _DLLIMPORTEXPORT_  ODCloneKind SOMLINK  GetOriginalCloneKind(Environment* ev, ODDraft* draft);
  167.  
  168. SOMEXTERN _DLLIMPORTEXPORT_  void  SOMLINK RemoveDataInterchangeProperties (Environment* ev,
  169.                         ODStorageUnit* su,
  170.                         ODBoolean clonedToFileContainer);
  171. #endif // _PLATFORM_MACINTOSH_
  172.  
  173.  
  174. #ifdef _OD_IMPL_SHARE_UTILS_
  175. #pragma import off
  176. #endif
  177.     
  178. #endif // _STORUTIL_
  179.