home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WOLEAOBJ.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  3KB  |  111 lines

  1. /*************************************************************************
  2.  *
  3.  * WOleApplicationObject -- OLE Application Object class
  4.  *
  5.  *
  6.  *   Events:
  7.  *
  8.  *
  9.  *************************************************************************/
  10.  
  11. #ifndef _WOLEAOBJ_HPP_INCLUDED
  12. #define _WOLEAOBJ_HPP_INCLUDED
  13.  
  14. #ifndef _WNO_PRAGMA_PUSH
  15. #pragma pack(push,8);
  16. #pragma enum int;
  17. #endif
  18.  
  19. #ifndef _WOBJECT_HPP_INCLUDED
  20. #  include "wobject.hpp"
  21. #endif
  22. #ifndef _WSTRING_HPP_INCLUDED
  23. #  include "wstring.hpp"
  24. #endif
  25.  
  26. // forward class declarations
  27. class WCMCLASS WIMessageFilter;
  28. class WCMCLASS WOleContainer;
  29. class WCMCLASS WWindow;
  30. class WCMCLASS wllist_header;
  31.  
  32. class WCMCLASS WOleApplicationObject : public WObject {
  33.     WDeclareSubclass( WOleApplicationObject, WObject );
  34.  
  35.     public:
  36.  
  37.         /**********************************************************
  38.          * Constructors and Destructors
  39.          *********************************************************/
  40.  
  41.         WOleApplicationObject( void );
  42.  
  43.         virtual ~WOleApplicationObject();
  44.  
  45.         /**************************************************************
  46.          * Properties
  47.          **************************************************************/
  48.  
  49.         WBool SetShowAutomationErrors( WBool set );
  50.         WBool GetShowAutomationErrors( void ) const;
  51.  
  52.         WBool SetUseServerBusyDialog( WBool set );
  53.         WBool GetUseServerBusyDialog( void ) const;
  54.  
  55.         WBool SetUseNotRespondingDialog( WBool set );
  56.         WBool GetUseNotRespondingDialog( void ) const;
  57.  
  58.         WBool SetApplicationTitle( const WString & title );
  59.         WString GetApplicationTitle( void ) const;
  60.  
  61.         WBool SetApplicationWindow( WWindow * win );
  62.         WWindow *GetApplicationWindow( void ) const;
  63.  
  64.         WBool SetServerBusyTimeout( WUInt timeout );
  65.         WUInt GetServerBusyTimeout( void ) const;
  66.  
  67.         WBool SetNotRespondingTimeout( WUInt timeout );
  68.         WUInt GetNotRespondingTimeout( void ) const;
  69.  
  70.         WWindowHandle GetBusyDialogHandle( void ) const;
  71.  
  72.         static WOleApplicationObject * GetOleApplicationObject( void );
  73.  
  74.         /**************************************************************
  75.          * Methods
  76.          **************************************************************/
  77.  
  78.         /**************************************************************
  79.          * Internal Methods
  80.          **************************************************************/
  81.  
  82.         WBool Initialize( void );
  83.         WBool Uninitialize( void );
  84.  
  85.         WBool AddContainer( WOleContainer *oleContainer );
  86.         WBool RemoveContainer( WOleContainer *oleContainer );
  87.  
  88.     protected:
  89.  
  90.         WBool InitMessageFilter( void );
  91.         void FiniMessageFilter( void );
  92.  
  93.         /**********************************************************
  94.          * Data Members
  95.          *********************************************************/
  96.     
  97.         WString         _appTitle;
  98.         WIMessageFilter *_pIMessageFilter;
  99.         wllist_header   *_handlerList;
  100.         WBool           _showAutomationErrors;
  101.  
  102. };
  103.  
  104. #ifndef _WNO_PRAGMA_PUSH
  105. #pragma enum pop;
  106. #pragma pack(pop);
  107. #endif
  108.  
  109. #endif // _WOLEAOBJ_HPP_INCLUDED
  110.  
  111.