home *** CD-ROM | disk | FTP | other *** search
- #ifndef __IDO_H__
- #define __IDO_H__
-
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- // Dispatch interfaces referenced by this interface
- class CEntity;
- class CRelation;
- class CDORule;
-
- /////////////////////////////////////////////////////////////////////////////
- // CIDO wrapper class
-
- class CIDO : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CIDO)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x9dccd563, 0x29b5, 0x11cf, { 0xbd, 0xcb, 0x0, 0x20, 0xa9, 0xb, 0x18, 0x3a } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName,
- LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect,
- CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
-
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey); }
-
- // Attributes
- public:
- OLE_COLOR GetBackColor();
- void SetBackColor(OLE_COLOR);
- unsigned long GetGridLineColor();
- void SetGridLineColor(unsigned long);
- BOOL GetEditMode();
- void SetEditMode(BOOL);
- BOOL GetToolsPalette();
- void SetToolsPalette(BOOL);
- BOOL GetGridLines();
- void SetGridLines(BOOL);
- BOOL GetSnapToGrid();
- void SetSnapToGrid(BOOL);
- long GetScrollBars();
- void SetScrollBars(long);
- BOOL GetBorder();
- void SetBorder(BOOL);
- short GetGridHeight();
- void SetGridHeight(short);
- short GetGridWidth();
- void SetGridWidth(short);
- BOOL GetRulesEnforced();
- void SetRulesEnforced(BOOL);
- BOOL GetRedraw();
- void SetRedraw(BOOL);
- CEntity GetCurrentEntity();
- void SetCurrentEntity(LPDISPATCH);
- CRelation GetCurrentRelation();
- void SetCurrentRelation(LPDISPATCH);
- CString GetFileName();
- void SetFileName(LPCTSTR);
- BOOL GetPrinterLines();
- void SetPrinterLines(BOOL);
- CString GetInetPath();
- void SetInetPath(LPCTSTR);
- short GetZoomValue();
- void SetZoomValue(short);
- BOOL GetPrintLandscape();
- void SetPrintLandscape(BOOL);
-
- // Operations
- public:
- void ResetDiagram();
- void ManageClasses();
- void Cut();
- void Copy();
- void Paste();
- BOOL AddEntityFromClass(long UserID, LPCTSTR UserName, LPCTSTR ClassName, LPCTSTR Text, short X, short Y, short Width, short Height);
- BOOL DeleteEntity(long UserID, LPCTSTR UserName);
- BOOL DeleteRelation(long UserID, LPCTSTR UserName);
- long GetNumberOfEntities();
- long GetNumberOfRelations();
- BOOL DoesEntityExist(long UserID, LPCTSTR UserName);
- BOOL ReadDiagram(LPCTSTR lpszFileName);
- BOOL SaveDiagram(LPCTSTR szFileName);
- void ResetPalette();
- BOOL ReadPalette(LPCTSTR szFile);
- BOOL SavePalette(LPCTSTR szFile);
- BOOL DragAddEntity(LPCTSTR ClassName);
- BOOL DragAddRelation(LPCTSTR ClassName);
- void ManageRules();
- void PrintDiagram();
- BOOL PropertyPage(short cPage);
- BOOL GetPopupMenu(long lFlag);
- void SetPopupMenu(long lFlag, BOOL bNewValue);
- CEntity GetEntity(long ID, LPCTSTR Name);
- CRelation GetRelation(long ID, LPCTSTR Name);
- BOOL DoesRelationExist(long UserID, LPCTSTR UserName);
- CEntity AddEntityClass(LPCTSTR ClassName, LPCTSTR BitmapName);
- BOOL DeleteEntityClass(LPCTSTR ClassName);
- BOOL DoesEntityClassExist(LPCTSTR ClassName);
- BOOL RedefineFromEntityClass(LPCTSTR ClassName);
- BOOL IterateEntityFirst();
- CEntity IterateEntityNext();
- BOOL IterateRelationFirst();
- CRelation IterateRelationNext();
- CEntity GetEntityClass(LPCTSTR ClassName);
- BOOL IterateEntityClassFirst();
- CString IterateEntityClassNext();
- BOOL AddRelationFromClass(long UserID, LPCTSTR UserName, LPCTSTR ClassName, LPCTSTR Text, long Src_ID, LPCTSTR Src_Name, long Dst_ID, LPCTSTR Dst_Name);
- CEntity GetNotifyEntity();
- CRelation GetNotifyRelation();
- long GetNumberOfSelectedEntities();
- BOOL IterateSelectedEntityFirst();
- CEntity IterateSelectedEntityNext();
- CRelation AddRelationClass(LPCTSTR ClassName, LPCTSTR BitmapName);
- BOOL DeleteRelationClass(LPCTSTR ClassName);
- BOOL DoesRelationClassExist(LPCTSTR ClassName);
- CRelation GetRelationClass(LPCTSTR ClassName);
- BOOL RedefineFromRelationClass(LPCTSTR ClassName);
- BOOL IterateRelationClassFirst();
- CString IterateRelationClassNext();
- BOOL AddRule(LPCTSTR SourceEntity, LPCTSTR Relation, LPCTSTR TargetEntity);
- BOOL DeleteRule(LPDISPATCH IDORule);
- BOOL DoesRuleExist(LPCTSTR SourceEntity, LPCTSTR Relation, LPCTSTR TargetEntity);
- BOOL IterateRuleFirst();
- CDORule IterateRuleNext();
- long GetVersion();
- void SetToolsPaletteButtonText(LPCTSTR szText);
- void Zoom(short Mode, long Value);
- void AboutBox();
- };
-
- #endif // __IDO_H__
-