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 / Bitmap / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.7 KB  |  129 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PartInfo.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWPART_FR
  15. #include "FWPart.fr"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. #ifndef SLGCONST_K
  27. #include "SLGConst.k" 
  28. #endif
  29.  
  30. #ifndef FWVIEWS_FR
  31. #include "FWViews.fr"
  32. #endif
  33.  
  34. // CyberDog is really only supported in Metrowerks builds. Unfortunately,
  35. // we can't detect that we are in Metrowerks REZ or the Metrowerks ODFRC
  36. // plugin, so we always define FW_SUPPORTS_CYBERDOG true for resource
  37. // compiles.
  38.  
  39. #ifdef FW_SUPPORTS_CYBERDOG
  40. #undef FW_SUPPORTS_CYBERDOG
  41. #endif
  42.  
  43. #define FW_SUPPORTS_CYBERDOG 1
  44.  
  45. #if FW_SUPPORTS_CYBERDOG
  46. #ifndef FWSAVEAS_FR
  47. #include "FWSaveAs.fr"
  48. #endif
  49. #endif
  50.  
  51. //----------------------------------------------------------------------------------------
  52. //    PartInfo Resource
  53. //----------------------------------------------------------------------------------------
  54.  
  55. resource FW_RPartInfo(kPartInfoID)
  56. {
  57.     // ----- Icon ID
  58.     kViewAsIconID,
  59.     
  60.     // ----- MenuBar ID
  61.     kMenuBar,
  62.     
  63.     // ----- Document Window ID
  64.     0,
  65.     
  66.     // ----- Part Name (also the default stationery name?)
  67.     kODFBitmapEditorUserString,
  68.     
  69.     // ----- PartKind
  70.     kODFBitmapKind
  71. };
  72.  
  73. //----------------------------------------------------------------------------------------
  74. //    About Resource
  75. //----------------------------------------------------------------------------------------
  76.  
  77. resource FW_RAbout(kAbout)
  78. {
  79.     // ----- Icon ID
  80.     kAboutIconID,                                                        
  81.     // ----- Part Name
  82.     FW_RStyledText
  83.     (
  84.         FW_FIX(18), 
  85.         FW_kBold, 
  86.         "times", 
  87.         "ODFBitmap"
  88.     ),
  89.     // ----- Version Number
  90.     FW_RStyledText
  91.     (
  92.         FW_FIX(9),
  93.         FW_kPlain,
  94.         "geneva",
  95.         "ODF Release 2"
  96.     ),
  97.     // ----- Credits
  98.     FW_RStyledText
  99.     (
  100.         FW_FIX(9),
  101.         FW_kPlain,
  102.         "geneva",
  103.         "ODFBitmap is a simple bitmap viewer. It supports selection, Cut/Copy/Paste, "
  104.         "Drag&Drop, and frame negotiation.\r\r\r\r"                                    
  105.         "Written by the ODF Team.\r"
  106.         // the line below is required by the IJG license:
  107.         "This software is based in part on the work of the Independent JPEG Group.\r"
  108.     ),
  109.     // ----- ButtonString
  110.     "OK",
  111.     // ----- ButtonSize
  112.     {FW_FIX(80), FW_FIX(30)}
  113. };
  114.  
  115. //----------------------------------------------------------------------------------------
  116. //    Save As Info
  117. //----------------------------------------------------------------------------------------
  118.  
  119. #if FW_SUPPORTS_CYBERDOG
  120. resource FW_RSaveAsInfo (kSaveAs) {
  121.     "Save a copy as:",
  122.     {
  123.         "OpenDocâ„¢ Document",
  124.         "Internet Reference",
  125.         "Picture"
  126.     }
  127. };
  128. #endif
  129.