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 / Container / Sources / Defines.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.9 KB  |  90 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. #ifndef FWMENUS_K
  14. #include "FWMenus.k"
  15. #endif
  16.  
  17. //-------------------------------------------------------------------------------------
  18. // Uncomment the following three lines, and define them appropriately!!
  19. // If your part can be a container for other parts, define FW_SUPPORTS_EMBEDDING
  20. // to be 1.  Otherwise define it to be 0.
  21. // If your part defines any ODExtensions, define FW_SUPPORTS_EXTENSIONS to be
  22. // 1 to enable the extensions manager.  Otherwise, define it to be 0.
  23. // If your part is scriptable, define FW_SUPPORTS_SCRIPTING to be 1. Otherwise,
  24. // define it to be zero.  Note that if your part is scriptable is must support
  25. // extensions, so FW_SUPPORTS_EXTENSIONS must be defined to be 1.
  26. #define FW_SUPPORTS_EMBEDDING 1
  27. #define FW_SUPPORTS_EXTENSIONS 1
  28. #define FW_SUPPORTS_SCRIPTING 0
  29.  
  30. //-------------------------------------------------------------------------------------
  31. // Icons ID
  32. #define kViewAsIconID            128
  33. #define kAboutIconID            130
  34.  
  35. //-------------------------------------------------------------------------------------
  36. // Frame Presentations
  37. #define kMainPresentation        "Apple:ODF:Presentation:Container:Main"
  38.  
  39. //-------------------------------------------------------------------------------------
  40. // Menus
  41. #define kMenuBar                1024
  42.  
  43. // ----- Commands -----
  44. #define cAsFrame                FW_kFirstUserCommandID
  45. #define cAsLargeIcon            cAsFrame + 1
  46. #define cAsSmallIcon            cAsLargeIcon + 1
  47. #define cAsThumbnail             cAsSmallIcon + 1
  48.  
  49. #define cZoom50                    cAsThumbnail + 1
  50. #define cZoom100                 cZoom50 + 1
  51. #define cZoom200                 cZoom100 + 1
  52.  
  53. #define cSetBackgroundColor        cZoom200 + 1
  54.  
  55. //-------------------------------------------------------------------------------------
  56. // View resources & View IDs 
  57. #define kContainerView            1024
  58.  
  59. #define kContainerViewID        2
  60. #define kHorzScrollBarID        3
  61. #define kVertScrollBarID        4 
  62. #define kGrowBoxID                 5
  63.  
  64. //-------------------------------------------------------------------------------------
  65. // About
  66. #define kAbout                    1024
  67.  
  68. //-------------------------------------------------------------------------------------
  69. // Part Info 
  70. #define kPartInfoID                1024
  71.  
  72. //-------------------------------------------------------------------------------------
  73. // Strings
  74. #define kUndoStrings            1036
  75. #define kUndoResizeMsg              19
  76. #define kRedoResizeMsg             20
  77. #define kUndoEmbedAsMsg            21
  78. #define kRedoEmbedAsMsg            22
  79. #define kUndoSetBackColorMsg      23
  80. #define kRedoSetBackColorMsg      24
  81.  
  82.  
  83. //-------------------------------------------------------------------------------------
  84. // Misc. constants
  85. #define kDrawingSizeX            1024 * 5
  86. #define kDrawingSizeY            1024 * 5
  87.  
  88.  
  89. #endif
  90.