home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Button / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.2 KB  |  61 lines  |  [TEXT/MPS ]

  1. //=====================================================================================
  2. //
  3. //    File:                Defines.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //=====================================================================================
  9.  
  10. #ifndef DEFINES_K
  11. #define DEFINES_K
  12.  
  13. //-------------------------------------------------------------------------------------
  14. // Uncomment the following three lines, and define them appropriately!!
  15. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  16. // to be 1.  Otherwise define it to be 0.
  17. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  18. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  19. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  20. // define it to be zero.  Note that if your part is scriptable is must support
  21. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  22. #define FW_SUPPORTS_EMBEDDING     0
  23. #define FW_SUPPORTS_EXTENSIONS     1
  24. #define FW_SUPPORTS_SCRIPTING     1
  25.  
  26. //-------------------------------------------------------------------------------------
  27. // Icons ID
  28. #define kViewAsIconID             128
  29.  
  30. //-------------------------------------------------------------------------------------
  31. // Views
  32. #define    kButtonView             1024
  33.  
  34. //-------------------------------------------------------------------------------------
  35. // Strings
  36. #define kButtonDialogStrings    1024
  37. #define kNoAppleScriptMsg           1
  38.  
  39. //-------------------------------------------------------------------------------------
  40. // Scripting
  41. #define kODFButtonSuiteID        'ODFb'
  42. #define kDoItEventID            'bDoI'
  43.  
  44. //-------------------------------------------------------------------------------------
  45. // Part Info 
  46. #define kPartInfoID                1024
  47.  
  48. //-------------------------------------------------------------------------------------
  49. // Document Window 
  50. #define kDocumentWindowID        1024
  51.  
  52. //-------------------------------------------------------------------------------------
  53. // Presentation
  54. #define kODFButtonPresentation "Apple:Presentation:ODFButton"
  55.  
  56.  
  57. #define kNothing                0
  58. #define kSound                    1
  59. #define kScript                    2    
  60.  
  61. #endif