home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / ADDON.PAK / TXOWL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  1.7 KB  |  65 lines

  1. /*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2.  
  3.    Copyright (c) 1987, 1995 Borland International Inc.  All Rights Reserved.
  4.    $Revision:   1.13  $
  5.  
  6. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/ 
  7. #ifndef __TXOWL_H
  8. #define __TXOWL_H
  9.  
  10. #ifndef __ITX_H
  11.   #include <ideaddon\itx.h>
  12. #endif
  13.  
  14. #ifndef __COMHELP_H
  15.   #include <ideaddon\comhelp.h>
  16. #endif
  17.  
  18. struct OwlTargetData {
  19.   BOOL d_fDynamic;
  20.   BOOL d_fBWCC;
  21. };
  22.  
  23. struct OwlTarget : ITargetType, ITargetPropertyPage {
  24.   ~OwlTarget();
  25.   //
  26.   // ITargetType
  27.   //
  28.   virtual BOOL         IsTargetable(IPolyString* fileExt);
  29.   virtual ProjectNode ConvertNodeToTarget(ProjectNode node, IPolyString* name);
  30.   virtual STDMETHODIMP ConvertTargetToNode(ProjectNode node);
  31.   virtual HRESULT     GetClassID(CLSID *pClassID);
  32.  
  33.   //
  34.   // ITargetPropertyPage
  35.   //
  36.   virtual void          PlatformSelectionChangeNotification(UINT id);
  37.   virtual void          AdvancedDialog(HWND hwndParent);
  38.   virtual void          Setup(ProjectNode);
  39.   virtual void          OnCommand(UINT id);
  40.   virtual void          GetDlgItems();
  41.   virtual void          SetDlgItems();
  42.  
  43.   //
  44.   // Locals
  45.   //
  46.           void          SetIDEObj(LPUNKNOWN ideObj);
  47.  
  48.   HTARGET                        d_hTarget;
  49.  
  50. protected:
  51.   LPUNKNOWN                      d_IdeObj;
  52.   ITargetManager*                d_targetMgr;
  53.   ITargetManagerPropertyDialog*  d_targetMgrDlg;
  54.  
  55.   OwlTargetData                  d_targetData;
  56. };
  57.  
  58. struct OwlTargetImpl : IUnknownImp<OwlTarget> {
  59.   OwlTargetImpl(LPUNKNOWN IdeObj);
  60.  
  61.   STDMETHODIMP QueryInterface (THIS_ REFIID, LPVOID FAR *);
  62. };
  63.  
  64. #endif // __TXOWL_H
  65.