home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / componen / interact / demo / data.2 / samples / vc / EXPAND / IDO.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-24  |  4.9 KB  |  148 lines

  1. #ifndef __IDO_H__
  2. #define __IDO_H__
  3.  
  4. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  5.  
  6. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  7. //  Microsoft Visual C++, your modifications will be overwritten.
  8.  
  9.  
  10. // Dispatch interfaces referenced by this interface
  11. class CEntity;
  12. class CRelation;
  13. class CDORule;
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CIDO wrapper class
  17.  
  18. class CIDO : public CWnd
  19. {
  20. protected:
  21.     DECLARE_DYNCREATE(CIDO)
  22. public:
  23.     CLSID const& GetClsid()
  24.     {
  25.         static CLSID const clsid
  26.             = { 0x9dccd563, 0x29b5, 0x11cf, { 0xbd, 0xcb, 0x0, 0x20, 0xa9, 0xb, 0x18, 0x3a } };
  27.         return clsid;
  28.     }
  29.     virtual BOOL Create(LPCTSTR lpszClassName,
  30.         LPCTSTR lpszWindowName, DWORD dwStyle,
  31.         const RECT& rect,
  32.         CWnd* pParentWnd, UINT nID,
  33.         CCreateContext* pContext = NULL)
  34.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  35.  
  36.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  37.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  38.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  39.         BSTR bstrLicKey = NULL)
  40.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  41.         pPersist, bStorage, bstrLicKey); }
  42.  
  43. // Attributes
  44. public:
  45.     OLE_COLOR GetBackColor();
  46.     void SetBackColor(OLE_COLOR);
  47.     unsigned long GetGridLineColor();
  48.     void SetGridLineColor(unsigned long);
  49.     BOOL GetEditMode();
  50.     void SetEditMode(BOOL);
  51.     BOOL GetToolsPalette();
  52.     void SetToolsPalette(BOOL);
  53.     BOOL GetGridLines();
  54.     void SetGridLines(BOOL);
  55.     BOOL GetSnapToGrid();
  56.     void SetSnapToGrid(BOOL);
  57.     long GetScrollBars();
  58.     void SetScrollBars(long);
  59.     BOOL GetBorder();
  60.     void SetBorder(BOOL);
  61.     short GetGridHeight();
  62.     void SetGridHeight(short);
  63.     short GetGridWidth();
  64.     void SetGridWidth(short);
  65.     BOOL GetRulesEnforced();
  66.     void SetRulesEnforced(BOOL);
  67.     BOOL GetRedraw();
  68.     void SetRedraw(BOOL);
  69.     CEntity GetCurrentEntity();
  70.     void SetCurrentEntity(LPDISPATCH);
  71.     CRelation GetCurrentRelation();
  72.     void SetCurrentRelation(LPDISPATCH);
  73.     CString GetFileName();
  74.     void SetFileName(LPCTSTR);
  75.     BOOL GetPrinterLines();
  76.     void SetPrinterLines(BOOL);
  77.     CString GetInetPath();
  78.     void SetInetPath(LPCTSTR);
  79.     short GetZoomValue();
  80.     void SetZoomValue(short);
  81.     BOOL GetPrintLandscape();
  82.     void SetPrintLandscape(BOOL);
  83.  
  84. // Operations
  85. public:
  86.     void ResetDiagram();
  87.     void ManageClasses();
  88.     void Cut();
  89.     void Copy();
  90.     void Paste();
  91.     BOOL AddEntityFromClass(long UserID, LPCTSTR UserName, LPCTSTR ClassName, LPCTSTR Text, short X, short Y, short Width, short Height);
  92.     BOOL DeleteEntity(long UserID, LPCTSTR UserName);
  93.     BOOL DeleteRelation(long UserID, LPCTSTR UserName);
  94.     long GetNumberOfEntities();
  95.     long GetNumberOfRelations();
  96.     BOOL DoesEntityExist(long UserID, LPCTSTR UserName);
  97.     BOOL ReadDiagram(LPCTSTR lpszFileName);
  98.     BOOL SaveDiagram(LPCTSTR szFileName);
  99.     void ResetPalette();
  100.     BOOL ReadPalette(LPCTSTR szFile);
  101.     BOOL SavePalette(LPCTSTR szFile);
  102.     BOOL DragAddEntity(LPCTSTR ClassName);
  103.     BOOL DragAddRelation(LPCTSTR ClassName);
  104.     void ManageRules();
  105.     void PrintDiagram();
  106.     BOOL PropertyPage(short cPage);
  107.     BOOL GetPopupMenu(long lFlag);
  108.     void SetPopupMenu(long lFlag, BOOL bNewValue);
  109.     CEntity GetEntity(long ID, LPCTSTR Name);
  110.     CRelation GetRelation(long ID, LPCTSTR Name);
  111.     BOOL DoesRelationExist(long UserID, LPCTSTR UserName);
  112.     CEntity AddEntityClass(LPCTSTR ClassName, LPCTSTR BitmapName);
  113.     BOOL DeleteEntityClass(LPCTSTR ClassName);
  114.     BOOL DoesEntityClassExist(LPCTSTR ClassName);
  115.     BOOL RedefineFromEntityClass(LPCTSTR ClassName);
  116.     BOOL IterateEntityFirst();
  117.     CEntity IterateEntityNext();
  118.     BOOL IterateRelationFirst();
  119.     CRelation IterateRelationNext();
  120.     CEntity GetEntityClass(LPCTSTR ClassName);
  121.     BOOL IterateEntityClassFirst();
  122.     CString IterateEntityClassNext();
  123.     BOOL AddRelationFromClass(long UserID, LPCTSTR UserName, LPCTSTR ClassName, LPCTSTR Text, long Src_ID, LPCTSTR Src_Name, long Dst_ID, LPCTSTR Dst_Name);
  124.     CEntity GetNotifyEntity();
  125.     CRelation GetNotifyRelation();
  126.     long GetNumberOfSelectedEntities();
  127.     BOOL IterateSelectedEntityFirst();
  128.     CEntity IterateSelectedEntityNext();
  129.     CRelation AddRelationClass(LPCTSTR ClassName, LPCTSTR BitmapName);
  130.     BOOL DeleteRelationClass(LPCTSTR ClassName);
  131.     BOOL DoesRelationClassExist(LPCTSTR ClassName);
  132.     CRelation GetRelationClass(LPCTSTR ClassName);
  133.     BOOL RedefineFromRelationClass(LPCTSTR ClassName);
  134.     BOOL IterateRelationClassFirst();
  135.     CString IterateRelationClassNext();
  136.     BOOL AddRule(LPCTSTR SourceEntity, LPCTSTR Relation, LPCTSTR TargetEntity);
  137.     BOOL DeleteRule(LPDISPATCH IDORule);
  138.     BOOL DoesRuleExist(LPCTSTR SourceEntity, LPCTSTR Relation, LPCTSTR TargetEntity);
  139.     BOOL IterateRuleFirst();
  140.     CDORule IterateRuleNext();
  141.     long GetVersion();
  142.     void SetToolsPaletteButtonText(LPCTSTR szText);
  143.     void Zoom(short Mode, long Value);
  144.     void AboutBox();
  145. };
  146.  
  147. #endif // __IDO_H__
  148.