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

  1. /*====START_GENERATED_PROLOG======================================*/
  2. /*
  3.  *   COMPONENT_NAME: odtextpart
  4.  *
  5.  *   CLASSES: none
  6.  *
  7.  *   ORIGINS: 27
  8.  *
  9.  *
  10.  *   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  11.  *   All Rights Reserved
  12.  *   Licensed Materials - Property of IBM
  13.  *   US Government Users Restricted Rights - Use, duplication or
  14.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  15.  *
  16.  *   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  17.  *   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  18.  *   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19.  *   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  20.  *   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  21.  *   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  22.  *   OR PERFORMANCE OF THIS SOFTWARE.
  23.  */
  24. /*====END_GENERATED_PROLOG========================================*/
  25. // @(#) 1.21 com/src/samples/text/iodtext.h, odtextpart, od96os2, odos29712d 2/12/97 18:05:46 [3/21/97 17:45:34]
  26. #ifndef _IODTEXT_H_
  27. #define _IODTEXT_H_
  28.  
  29. // OpenDoc utility functions
  30. #include <itext.h>
  31. #include <odutils.h>
  32. #include <stdtypio.h>
  33. #include <storutil.h>
  34. #include <tempobj.h>
  35.  
  36. // IBM VAC++ Compiler utility functions
  37. #include <locale.h>
  38. #include <wchar.h>
  39.  
  40. // TextPart helper functions and classes
  41. #include "textmgr.hpp"
  42. #include "textplat.h"
  43.  
  44. // NLS Catalog support
  45. #include "iodtextm.h"
  46. #define TX_NLS_CATALOG "iodtextm.cat"  // TextPart Messages are stored in iodtextm.msg
  47.  
  48. // Local constants and defines
  49. // Constants used for ChangeNotification
  50. const ODULong TP_TEXTCHANGED = 256;
  51.  
  52. // Constants used for Part Registration
  53. const ODType   kODKindTextPart          = "TextPart";
  54. const ODType   kTextPartKindDisplayName = "TextPart Kind";
  55. const ODType   kTextPartHandlerName     = "TextPart";
  56. const ODType   kTextPartHandlerDisplayName  = "Text Import/Export Part";
  57. const ODType   kTextPartCategory        = "OpenDoc:Category:Sample";
  58. const ODType   kTextPartIconFileName    = "iodtext.ico";
  59.  
  60. // Property names
  61. #define kODPropTextContents  "TextPart:Property:TextContents"
  62. static const ODPropertyName kTypeAscii = "TextPart:Value:AsciiText";
  63. static char* kTextPartPropertyName  =  "Text";
  64.  
  65. // allow shorthand specification of menu commands
  66. #define CMD(X)    kODCommand##X
  67.  
  68. #define kODCommandImport           (CMD_Offset_Subclass)
  69. #define kODCommandExport           (CMD_Offset_Subclass+1)
  70.  
  71. // NLS Catalog name
  72. #define TX_NLS_CATALOG "iodtextm.cat"  // TextPart Messages are stored in iodtextm.msg
  73. #endif // _IODTEXT_H_
  74.  
  75. // end of file
  76.