home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / LINKDLGS.H < prev    next >
C/C++ Source or Header  |  1997-02-28  |  12KB  |  287 lines

  1. /*====START_GENERATED_PROLOG======================================
  2.  */
  3. /*
  4.  *   COMPONENT_NAME: oddataxfer
  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. // @(#) 1.9 com/src/storage/LinkDlgs.h, oddataxfer, od96os2, odos29646d 8/22/96 15:37:13 [ 11/15/96 15:25:52 ]
  28. /*
  29.         File:           LinkDlgs.h
  30.  
  31.         Contains:       function declarations for Paste As and Link Info dialogs
  32.  
  33.         Owned by:       Craig Carper
  34.  
  35.         Copyright:      ⌐ 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  36.  
  37.         Change History (most recent first):
  38.  
  39.                 <11>     8/29/95        DM              1221778, 1276165: [ShowLinkUpdateAlert]
  40.                                                                         drop count arg in ShowLinkUpdateAlert
  41.                 <10>     5/26/95        VL              1251403: Multithreading naming support.
  42.                  <9>     3/22/95        CC              1230322: Changed parameter to
  43.                                                                         ShowPasteAsDialog().
  44.                  <8>      3/9/95        CC              1221471: Added changesAllowed parameter to
  45.                                                                         ShowLinkDestinationInfo() and
  46.                                                                         ShowLinkSourceInfo().
  47.                  <7>      3/3/95        CC              1223861 Added ShowLinkStatusAlert().
  48.                  <6>     2/15/95        CC              1220327 Added InitLinkDialogs().
  49.                  <5>      2/7/95        CC               1211295: ShowPasteAsDialog() takes an
  50.                                                                         isMove parameter.
  51.                  <4>     9/20/94        CC              1160232 - Added ShowLinkUpdateAlert().
  52.                  <3>     8/10/94        CC              1179943 - LinkInfo dialog functions take
  53.                                                                         ODBaseLink and ODBaseLinkSource parameters.
  54.                  <2>      8/2/94        CC              #1178169 - ShowPasteAsDialog() takes
  55.                                                                         ODFacet* instead of ODFrame*.
  56.                  <1>     6/24/94        CC              first checked in
  57.  
  58.                 ------------------- CC ---- Converted to SOM
  59.  
  60.                  <8>     5/27/94        jpa             Remove ASLM dependency [1165267]
  61.                  <7>      5/9/94        MB              #1162181: Changes necessary to install MMM.
  62.                  <6>      4/6/94        CC              XMPTypeInfo: Changed field "creationDate"
  63.                                                                         to "creationTime" and "modificationDate" to
  64.                                                                         "changeTime". (1154722)
  65.                  <5>      4/5/94        CC              Removed unused declaration of class
  66.                                                                         XMPTypeSet. (1153046)
  67.                  <4>     3/25/94        JA              Added missing #include (1147588)
  68.                  <3>     3/24/94        CC              ShowLinkSourceInfo() takes XMPChangeID
  69.                                                                         parameter; XMPPasteAsResult specifies
  70.                                                                         original kind when selected kind is a
  71.                                                                         translation (1153068).
  72.                  <2>     3/17/94        CC              Added ShowLinkSourceInfo(),
  73.                                                                         ShowLinkDestinationInfo(), XMPLinkAction,
  74.                                                                         XMPLinkResult, and XMPLinkInfo. (1151329)
  75.                  <1>     3/14/94        CC              first checked in
  76.                  <0>     3/14/94        CC              Declaration of ShowPasteAsDialog (1144253).
  77.  
  78.         To Do:
  79. */
  80.  
  81. #ifndef _LINKDLGS_
  82. #define _LINKDLGS_
  83.  
  84.  
  85.  
  86. #ifdef _PLATFORM_OS2_
  87.  
  88.  
  89. #ifndef _ODTYPES_
  90. #include <ODTypes.h>
  91. #endif
  92.  
  93. #ifndef SOM_ODStorageUnit_xh
  94. #include "StorageU.xh"
  95. #endif
  96.  
  97. #ifndef __TIME_H__
  98. #include <time.h>
  99. #endif
  100.  
  101. #ifndef _EDITRSET_
  102. #include "EditrSet.h"
  103. #endif
  104.  
  105. #define INCL_WIN
  106. #include <os2.h>
  107. // HMODULE hmodDLL;
  108.  
  109.  
  110.  typedef struct _DIALOGDATA {
  111.   ODStorageUnit * su;
  112.   ODFacet * facet;
  113.   ODPasteAsResult result;
  114. } DIALOGDATA;
  115. typedef DIALOGDATA *PDIALOGDATA;
  116.  
  117. //==============================================================================
  118. // Classes used by this interface
  119. //==============================================================================
  120. extern "C" {
  121.  
  122. class ODStorageUnit;
  123. class ODFacet;
  124. class ODBaseLinkSource;
  125. class ODBaseLink;
  126.  
  127. //==============================================================================
  128. // Data Interchange functions
  129. //==============================================================================
  130.  
  131. //-------------------------------------------------------------------------------------
  132. // ShowPasteAsDialog
  133. //-------------------------------------------------------------------------------------
  134.  
  135. ODBoolean ShowPasteAsDialog(
  136.         ODBoolean        canPasteLink,
  137.         ODPasteAsMergeSetting  mergeSetting,
  138.         ODBoolean        isMove,
  139.         ODStorageUnit*      contentSU,
  140.         ODFacet*        facet,
  141.         ODTypeToken        viewType,
  142.         ODPasteAsResult*    result);
  143.  
  144. ODBoolean ShowMoveCopyDialog( ODMoveCopyResult*  result);
  145. ODBoolean LoadEmbedAsComboBox(HWND hwnd, ULONG id);
  146. void CenterWindow (HWND hwnd);
  147. }
  148.  
  149.  
  150. //Function prototypes for Dialog Procs
  151. extern "C" {
  152. MRESULT EXPENTRY PasteAsDlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 ); //@SK
  153. MRESULT EXPENTRY MoveCopyDlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 ); //@SK
  154. MRESULT EXPENTRY LinkDestInfoDlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  155. MRESULT EXPENTRY LinkSourceInfoDlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  156. MRESULT EXPENTRY LinkUpdateAlertDlgProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 );
  157. }
  158.  
  159. //os2 version
  160. //-------------------------------------------------------------------------------------
  161. // ShowLinkDestinationInfo
  162. //-------------------------------------------------------------------------------------
  163.  
  164. ODBoolean ShowLinkDestinationInfo(
  165.                                 ODBaseLink*             link,
  166.                                 ODLinkInfo*             info,
  167.                                 ODBoolean               changesAllowed,
  168.                                 HWND                    hwnd,
  169.                                 ODFacet *               facet,
  170.                                 ODLinkInfoResult*       infoResult);
  171.  
  172.  
  173. //-------------------------------------------------------------------------------------
  174. // ShowLinkSourceInfo
  175. //-------------------------------------------------------------------------------------
  176.  
  177. ODBoolean ShowLinkSourceInfo(
  178.                                 ODBaseLinkSource*       linkSource,
  179.                                 ODUpdateID              change,
  180.                                 ODBoolean               changesAllowed,
  181.                                 HWND                    hwnd,
  182.                                 ODFacet *               facet,
  183.                                 ODLinkInfoResult*       infoResult);
  184.  
  185. //------------------------------------------------------------------------------
  186. // ShowLinkUpdateAlert
  187. //------------------------------------------------------------------------------
  188.  
  189. ODBoolean ShowLinkUpdateAlert();
  190.  
  191. #else
  192.  
  193.  
  194. #ifndef _ODTYPES_
  195. #include <ODTypes.h>
  196. #endif
  197.  
  198. #ifndef __TIME_H__
  199. #include <time.h>
  200. #endif
  201.  
  202. //==============================================================================
  203. // Classes used by this interface
  204. //==============================================================================
  205.  
  206. class ODStorageUnit;
  207. class ODFacet;
  208. class ODBaseLinkSource;
  209. class ODBaseLink;
  210. class ODSession;
  211.  
  212. //==============================================================================
  213. // Data Interchange functions
  214. //==============================================================================
  215.  
  216. //-------------------------------------------------------------------------------------
  217. // InitLinkDialogs
  218. //-------------------------------------------------------------------------------------
  219.  
  220. void InitLinkDialogs(ODSession* session);
  221.  
  222. //-------------------------------------------------------------------------------------
  223. // ShowPasteAsDialog
  224. //-------------------------------------------------------------------------------------
  225.  
  226. ODBoolean ShowPasteAsDialog(
  227.                                 ODBoolean                               canPasteLink,
  228.                                 ODPasteAsMergeSetting   mergeSetting,
  229.                                 ODBoolean                               isMove,
  230.                                 ODStorageUnit*                  contentSU,
  231.                                 ODFacet*                                facet,
  232.                                 ODTypeToken                             viewType,
  233. #ifdef _PLATFORM_WIN32_
  234.                                 HWND                            hwnd,            // rrk 24 apr 96
  235. #endif
  236.                                 ODPasteAsResult*                result);
  237.  
  238. //-------------------------------------------------------------------------------------
  239. // ShowLinkSourceInfo
  240. //-------------------------------------------------------------------------------------
  241.  
  242. ODBoolean ShowLinkSourceInfo(
  243.                                 ODBaseLinkSource*       linkSource,
  244.                                 ODUpdateID                      change,
  245.                                 ODBoolean                       changesAllowed,
  246. #ifdef _PLATFORM_WIN32_
  247.                                 HWND                            hwnd,            // rrk 24 apr 96
  248.                                 ODFacet *                       facet,
  249. #endif
  250.                                 ODLinkInfoResult*       infoResult);
  251.  
  252. //-------------------------------------------------------------------------------------
  253. // ShowLinkDestinationInfo
  254. //-------------------------------------------------------------------------------------
  255.  
  256. ODBoolean ShowLinkDestinationInfo(
  257.                                 ODBaseLink*                     link,
  258.                                 ODLinkInfo*             info,
  259.                                 ODBoolean                       changesAllowed,
  260. #ifdef _PLATFORM_WIN32_
  261.                                 HWND                            hwnd,            // rrk 24 apr 96
  262.                                 ODFacet *                       facet,
  263. #endif
  264.                                 ODLinkInfoResult*       infoResult);
  265.  
  266. //------------------------------------------------------------------------------
  267. // ShowLinkUpdateAlert
  268. //------------------------------------------------------------------------------
  269.  
  270. ODBoolean ShowLinkUpdateAlert(
  271. #ifdef _PLATFORM_WIN32_
  272.                                 HWND                            hwnd            // rrk 24 may 96
  273. #endif
  274.  );
  275.  
  276. //------------------------------------------------------------------------------
  277. // ShowLinkStatusAlert
  278. //------------------------------------------------------------------------------
  279.  
  280. void ShowLinkStatusAlert(ODError error);
  281.  
  282. #endif
  283.  
  284.  
  285. #endif // _LINKDLGS_
  286.  
  287.