home *** CD-ROM | disk | FTP | other *** search
- #ifndef _DTFORMBS_HPP
- #define _DTFORMBS_HPP
-
- #include "dtcodebk.hpp"
- #include "mmdata.hpp"
- #include "dttype.hpp"
-
- class FormEdit;
- class DTCodeBlockBase;
- class MMEvent;
- class DTWForm;
- class DTWMenu;
- typedef class DTObject DTWObject;
-
- typedef class DTWForm DTForm;
- typedef WCValOrderedVector< DTObject * > DTWObjectList; // not the only def'n
-
- class METACLASSDEF DTFormEditBase {
- public:
- // -- notification routines called by dtwclass -- //
-
- inline virtual ~DTFormEditBase() {}
- virtual WBool DTNameChanged( DTObject * obj,
- const WString & newName ) = 0;
- virtual void DTPropsChanged( WBool codeChanged ) = 0;
-
- virtual FormEdit * GetDTFormEdit() = 0;
- virtual WForm * GetDTFormWindow() = 0;
- virtual WOleContainer * GetDTFormContainer() = 0;
- virtual DTForm * GetDTFormObj() const = 0;
- virtual DTWMenu * GetDTMenu() = 0;
- virtual DTWMenu * SetDTWMenu( DTWMenu * ) = 0;
-
- virtual DTCodeBlockBase *MakeDTEvent( WString & obj_name,
- MMEvent *event_def ) = 0;
- virtual DTCodeBlockBase *FindOrAddEvent( const WString & str,
- DTObject * obj,
- MMEvent * definition = NULL ) = 0;
- virtual void DTMoveControl( DTObject * obj,
- const WRect & r ) = 0;
- virtual void GetDTWMenuList( DTWObjectList & ) = 0;
- virtual void GetDTWPopupMenuList( DTWObjectList & ) = 0;
-
- virtual unsigned GetNumControls() = 0;
- virtual DTWObject * GetControl( unsigned idx ) = 0;
-
- // ---- OLE save / load / .rc interface ---- //
-
- virtual WString GetOleUniqueID() = 0;
- virtual void RemoveOleUniqueID( const WString & ) = 0;
- virtual WString GetOleSaveFile( const WString & ) = 0;
- virtual WString GetOleRCFile( const WString & ) = 0;
- };
-
- #endif // _DTFORMBS_HPP
-