home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / DTFORMBS.HPP < prev    next >
C/C++ Source or Header  |  1996-11-11  |  3KB  |  76 lines

  1. #ifndef _DTFORMBS_HPP
  2. #define _DTFORMBS_HPP
  3.  
  4. #include "dtcodebk.hpp"
  5. #include "mmdata.hpp"
  6. #include "dttype.hpp"
  7.  
  8. class FormEdit;
  9. class DTCodeBlockBase;
  10. class DTCodeBlockList;
  11. class MMEvent;
  12. class DTWForm;
  13. class DTWMenu;
  14. class DTObject;
  15. class DTJForm;
  16. class WOleStorage;
  17.  
  18. typedef class DTWForm DTForm;
  19. typedef WCValOrderedVector< DTObject * > DTObjectList; // not the only def'n
  20.  
  21. class METACLASSDEF DTFormEditBase {
  22.     public:
  23.         // -- notification routines called by dtwclass -- //
  24.  
  25.         inline virtual ~DTFormEditBase() {}
  26.  
  27.         virtual WBool           DTValidateNameChange( DTObject * obj,
  28.                                                       const WString & newName,
  29.                                                       WString & error ) = 0;
  30.  
  31.         virtual WBool           DTNameChanged( DTObject * obj,
  32.                                                 const WString & newName ) = 0;
  33.         virtual void            DTPropsChanged( WBool codeChanged ) = 0;
  34.  
  35.         virtual FormEdit *      GetDTFormEdit() = 0;
  36.         virtual WForm *         GetDTFormWindow() = 0;
  37.         virtual WOleContainer * GetDTFormContainer() = 0;
  38.         virtual DTObject *      GetDTForm() const = 0;
  39.         virtual DTForm *        GetDTFormObj() const = 0;
  40.         virtual DTJForm *       GetDTJFormObj() const = 0;
  41.         virtual DTObject *      GetDTMenu() = 0;
  42.         virtual DTObject *      SetDTMenu( DTObject * ) = 0;
  43.  
  44.         virtual DTCodeBlockBase *MakeDTEvent( WString & obj_name,
  45.                                               MMEvent *event_def ) = 0;
  46.         virtual DTCodeBlockBase *FindOrAddEvent( const WString & str,
  47.                                     DTObject * obj,
  48.                                     MMEvent * definition = NULL ) = 0;
  49.         virtual void            DTMoveControl(  DTObject * obj,
  50.                                                 const WRect & r ) = 0;
  51.         virtual void            AddControl( DTObject * ) = 0;
  52.         virtual void            GetDTWControlList( DTObjectList & ) = 0;
  53.         virtual void            GetDTWMenuList( DTObjectList & ) = 0;
  54.         virtual void            GetDTWPopupMenuList( DTObjectList & ) = 0;
  55.  
  56.         virtual void            GetUserFuncList( DTCodeBlockList& ,
  57.                                                  WBool bGetProtoTypes = FALSE ) = 0;
  58.  
  59.         virtual unsigned        GetNumControls() = 0;
  60.         virtual DTObject *      GetControl( unsigned idx ) = 0;
  61.  
  62.         // ---- OLE save / load / .rc interface ---- //
  63.  
  64.         virtual WString         GetOleUniqueID() = 0;
  65.         virtual void            RemoveOleUniqueID( const WString & ) = 0;
  66.         virtual WString         GetOleSaveFile( const WString & ) = 0;
  67.         virtual WString         GetOleRCFile( const WString & ) = 0;
  68.  
  69.         virtual WBool           OpenOleSaveStg( void ) = 0;
  70.         virtual WBool           CloseOleSaveStg( void ) = 0;
  71.         virtual WOleStorage *   GetOleSaveStg( void ) = 0;
  72. };
  73.  
  74. #endif // _DTFORMBS_HPP
  75.  
  76.