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 / ODF / Other View Systems / PowerPlant PPob / FWPPobOb.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  9.2 KB  |  315 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWPPobOb.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWPPOBOB_H
  11. #define FWPPOBOB_H
  12.  
  13. #ifndef FWVIEW_H
  14. #include "FWView.h"
  15. #endif
  16.  
  17. #ifndef FWCONTRL_H
  18. #include "FWContrl.h"
  19. #endif
  20.  
  21. #ifndef FWBUTTON_H
  22. #include "FWButton.h"
  23. #endif
  24.  
  25. #ifndef FWPPOBRD_H
  26. #include "FWPPobRd.h"
  27. #endif
  28.  
  29. //========================================================================================
  30. // Forward declarations
  31. //========================================================================================
  32.  
  33. class FW_CReadableStream;
  34. class FW_CSuperView;
  35. class FW_CScrollBarScroller;
  36. struct Environment;
  37.  
  38. //========================================================================================
  39. // class FW_CPPobView
  40. //========================================================================================
  41.  
  42. class FW_CPPobView 
  43. {
  44. public:
  45.     FW_CPPobView(Environment* ev, FW_CReadableStream& stream);
  46.     
  47. //    static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  48.     virtual void        CreateODFView(Environment* ev);
  49.  
  50.     FW_CSuperView*        fSuperView;
  51.     ODID                fViewID;
  52.     FW_CRect            fBounds;
  53.     FW_ViewBinding        fBindings;
  54. };
  55.  
  56. //========================================================================================
  57. // class FW_CPPobView
  58. //========================================================================================
  59.  
  60. class FW_CPPobSuperView : public FW_CPPobView
  61. {
  62. public:
  63.     FW_CPPobSuperView(Environment* ev, FW_CReadableStream& stream);
  64.  
  65.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  66.     virtual void        CreateODFView(Environment* ev);
  67.     void                PostCreateODFView(Environment* ev, FW_CSuperView* view);
  68.  
  69.     FW_CPoint                fExtent;        
  70.     FW_Boolean                fIsContentView;     
  71.     FW_EScrollingDirection    fScrollingDirection;
  72. };
  73.  
  74. //========================================================================================
  75. // class FW_CPPobEditView
  76. //========================================================================================
  77.  
  78. class FW_CPPobEditView : public FW_CPPobView
  79. {
  80. public:
  81.     FW_DECLARE_AUTO(FW_CPPobEditView)
  82.  
  83.     FW_CPPobEditView(Environment* ev, FW_CReadableStream& stream);
  84.  
  85.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  86.     virtual void        CreateODFView(Environment* ev);
  87.  
  88.     FW_CString            fText;
  89.     ResIDT                fTextTraitsID;
  90.     short                fMaxChars;
  91.     unsigned char        fAttributes;
  92.     char                fKeyFilterID;
  93. };
  94.  
  95. //========================================================================================
  96. // class FW_CPPobTextEdit
  97. //========================================================================================
  98.  
  99. class FW_CPPobTextEdit : public FW_CPPobSuperView
  100. {
  101. public:
  102.     FW_DECLARE_AUTO(FW_CPPobTextEdit)
  103.  
  104.     FW_CPPobTextEdit(Environment* ev, FW_CReadableStream& stream);
  105.  
  106.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  107.     virtual void        CreateODFView(Environment* ev);
  108.  
  109.     FW_CString            fText;
  110.     ResIDT                fTextTraitsID;
  111.     unsigned short        fAttributes;
  112. };
  113.  
  114. //========================================================================================
  115. // class FW_CPPobListBox
  116. //========================================================================================
  117.  
  118. class FW_CPPobListBox : public FW_CPPobView
  119. {
  120. public:
  121.     FW_DECLARE_AUTO(FW_CPPobListBox)
  122.  
  123.     FW_CPPobListBox(Environment* ev, FW_CReadableStream& stream);
  124.  
  125.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  126.     virtual void        CreateODFView(Environment* ev);
  127.  
  128.     short                fNumRows;
  129.     FW_Boolean            fScrollVert;
  130.     ResIDT                fTextTraitsID;
  131.     FW_Message            fDoubleClickMsg;
  132.     FW_Boolean            fSingleSelection;
  133.     FW_Boolean            fUseFocusFrame;
  134. };
  135.  
  136. //========================================================================================
  137. // class FW_CPPobStaticText
  138. //========================================================================================
  139.  
  140. class FW_CPPobStaticText : public FW_CPPobView
  141. {
  142. public:
  143.     FW_DECLARE_AUTO(FW_CPPobStaticText)
  144.  
  145.     FW_CPPobStaticText(Environment* ev, FW_CReadableStream& stream);
  146.  
  147.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  148.     virtual void        CreateODFView(Environment* ev);
  149.  
  150.     FW_CString            fText;
  151.     ResIDT                fTextTraitsID;
  152. };
  153.  
  154. //========================================================================================
  155. // class FW_CPPobGroupBox
  156. //========================================================================================
  157.  
  158. class FW_CPPobGroupBox : public FW_CPPobStaticText
  159. {
  160. public:
  161.     FW_DECLARE_AUTO(FW_CPPobGroupBox)
  162.  
  163.     FW_CPPobGroupBox(Environment* ev, FW_CReadableStream& stream);
  164.  
  165.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  166.     virtual void        CreateODFView(Environment* ev);
  167.  
  168. };
  169.  
  170. //========================================================================================
  171. // class FW_CPPobControl
  172. //========================================================================================
  173.  
  174. class FW_CPPobControl : public FW_CPPobView
  175. {
  176. public:
  177.     FW_CPPobControl(Environment* ev, FW_CReadableStream& stream);
  178.  
  179. //    static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  180. //    virtual void        CreateODFView(Environment* ev);
  181.  
  182.     FW_Message            fMessage;
  183.     FW_ControlValue        fValue;
  184.     FW_ControlValue        fMinValue;
  185.     FW_ControlValue        fMaxValue;
  186. };
  187.  
  188. //========================================================================================
  189. // class FW_CPPobButton
  190. //========================================================================================
  191.  
  192. class FW_CPPobButton : public FW_CPPobControl
  193. {
  194. public:
  195.     FW_DECLARE_AUTO(FW_CPPobButton)
  196.  
  197.     FW_CPPobButton(Environment* ev, FW_CReadableStream& stream);
  198.     
  199.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  200.     virtual void        CreateODFView(Environment* ev);
  201.  
  202.     FW_ButtonKind        fKind;
  203.     FW_CString            fLabel;
  204.     short                fTextTraitsID;
  205. };
  206.  
  207. //========================================================================================
  208. // class FW_CPPobPopupMenu
  209. //========================================================================================
  210.  
  211. class FW_CPPobPopupMenu : public FW_CPPobControl
  212. {
  213. public:
  214.     FW_DECLARE_AUTO(FW_CPPobPopupMenu)
  215.  
  216.     FW_CPPobPopupMenu(Environment* ev, FW_CReadableStream& stream);
  217.     
  218.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  219.     virtual void        CreateODFView(Environment* ev);
  220.  
  221.     short                fControlKind;
  222.     FW_CString            fLabel;
  223.     short                fTextTraitsID;
  224.     long                fRefCon;
  225.     short                fInitialItem;
  226. };
  227.  
  228. //========================================================================================
  229. // class FW_CPPobScrollBarScroller
  230. //========================================================================================
  231.  
  232. class FW_CPPobScrollBarScroller : public FW_CPPobSuperView
  233. {
  234. public:
  235.     FW_CPPobScrollBarScroller(Environment* ev, FW_CReadableStream& stream, FW_Boolean liveScrolling);
  236.  
  237.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  238.     virtual void        CreateODFView(Environment* ev);
  239.  
  240.     short            fHorizBarLeftIndent;
  241.     short            fHorizBarRightIndent;
  242.     short            fVertBarTopIndent;
  243.     short            fVertBarBottomIndent;
  244.     long            fScrollingViewID;
  245.     FW_Boolean        fLiveScrolling;
  246.     
  247.     FW_CScrollBarScroller*    fODFScroller;
  248. };
  249.  
  250. //========================================================================================
  251. // class FW_CPPobPictSView
  252. //========================================================================================
  253.  
  254. class FW_CPPobPictSView : public FW_CPPobSuperView
  255. {
  256. public:
  257.     FW_CPPobPictSView(Environment* ev, FW_CReadableStream& stream, long type);
  258.  
  259.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  260.     virtual void        CreateODFView(Environment* ev);
  261.     
  262.     ResIDT        fPictID;
  263. };
  264.  
  265. //========================================================================================
  266. // class FW_CPPobUnknownView
  267. //========================================================================================
  268.  
  269. class FW_CPPobUnknownView : public FW_CPPobView
  270. {
  271. public:
  272.     FW_CPPobUnknownView(Environment* ev, FW_CReadableStream& stream, long type);
  273.  
  274.     virtual void        CreateODFView(Environment* ev);
  275.     
  276.     long        fClassID;
  277. };
  278.  
  279. //========================================================================================
  280. // class FW_CPPobUnknownSView
  281. //========================================================================================
  282.  
  283. class FW_CPPobUnknownSView : public FW_CPPobSuperView
  284. {
  285. public:
  286.     FW_CPPobUnknownSView(Environment* ev, FW_CReadableStream& stream, long type);
  287.  
  288.     virtual void        CreateODFView(Environment* ev);
  289.  
  290.     long        fClassID;
  291. };
  292.  
  293. //========================================================================================
  294. // class FW_CPPobRadioCluster
  295. //========================================================================================
  296.  
  297. class FW_CPPobRadioCluster 
  298. {
  299. public:
  300.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  301. };
  302.  
  303. //========================================================================================
  304. // class FW_CPPobViewTabber
  305. //========================================================================================
  306.  
  307. class FW_CPPobViewTabber 
  308. {
  309. public:
  310.     static void*        Create(Environment* ev, FW_CReadableStream& stream, long type);
  311. };
  312.  
  313.  
  314. #endif
  315.