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 / Table / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.4 KB  |  118 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. #ifndef FWWINDOW_K
  35. #include "FWWindow.k"
  36. #endif
  37.  
  38. //----------------------------------------------------------------------------------------
  39. //    PartInfo Resource
  40. //----------------------------------------------------------------------------------------
  41.  
  42. resource FW_RPartInfo(kPartInfoID)
  43. {
  44.     // ----- Icon ID
  45.     kViewAsIconID,
  46.     
  47.     // ----- MenuBar ID
  48.     kMenuBar,
  49.     
  50.     // ----- Document Window ID
  51.     kDocumentWindowID,
  52.     
  53.     // ----- Part Name
  54.     kEditorUserString,
  55.     
  56.     // ----- PartKind
  57.     kKind
  58. };
  59.  
  60. //----------------------------------------------------------------------------------------
  61. //    Document Window Resource
  62. //----------------------------------------------------------------------------------------
  63.  
  64. resource FW_RDocumentWindow(kDocumentWindowID)
  65. {
  66.     // ----- Size
  67.     {FW_FIX(500), FW_FIX(500)},
  68.     
  69.     // ----- Position
  70.     {FW_FIX(0), FW_FIX(0)},        // (0,0) means default position
  71.     
  72.     // ----- Style
  73.     FW_kDocumentWindow,
  74.  
  75.     // ----- Presentation
  76.     kTablePresentation
  77. };
  78.  
  79. //----------------------------------------------------------------------------------------
  80. //    About Resource
  81. //----------------------------------------------------------------------------------------
  82.  
  83. resource FW_RAbout(kAbout)
  84. {
  85.     // ----- Icon ID
  86.     kAboutIconID,
  87.     // ----- Part Name
  88.     FW_RStyledText
  89.     (
  90.         FW_FIX(18), 
  91.         FW_kBold, 
  92.         "times", 
  93.         "ODFTable"
  94.     ),
  95.     // ----- Version Number
  96.     FW_RStyledText
  97.     (
  98.         FW_FIX(9),
  99.         FW_kPlain,
  100.         "geneva",
  101.         "ODF Release 2"
  102.     ),
  103.     // ----- Credits
  104.     FW_RStyledText
  105.     (
  106.         FW_FIX(9),
  107.         FW_kPlain,
  108.         "geneva",
  109.         "ODFTable is a grid of cells, each of which can contain an embedded part. "
  110.         "It supports embedding, drag and drop, cut/copy/paste, scrolling and scrolling focus, "
  111.         "undo, linking, and facet highlight.\r\r\r\r"                                    
  112.         "Written by the ODF Team.\r"
  113.     ),
  114.     // ----- ButtonString
  115.     "OK",
  116.     // ----- ButtonSize
  117.     {FW_FIX(80), FW_FIX(30)}
  118. };