Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997
  5. //
  6. // File: wbclassf.hxx
  7. //
  8. // Contents: Word Breaker 'class factory'.
  9. //
  10. // History: weibz, 10-Nov-1997 created
  11. //
  12. // Notes: Copied from txtifilt.hxx and then modified.
  13. //
  14. //--------------------------------------------------------------------------
  15. #if !defined( __WBCLASSCF_HXX__ )
  16. #define __WBCLASSCF_HXX__
  17. //+-------------------------------------------------------------------------
  18. //
  19. // Class: CWordBreakerCF
  20. //
  21. // Purpose: Class factory for all Word Breakers
  22. //
  23. //
  24. //--------------------------------------------------------------------------
  25. class CWordBreakerCF : public IClassFactory
  26. {
  27. public:
  28. CWordBreakerCF( LCID lcid );
  29. //
  30. // From IUnknown
  31. //
  32. virtual SCODE STDMETHODCALLTYPE QueryInterface( REFIID riid,
  33. void ** ppvObject);
  34. virtual ULONG STDMETHODCALLTYPE AddRef();
  35. virtual ULONG STDMETHODCALLTYPE Release();
  36. //
  37. // From IClassFactory
  38. //
  39. virtual SCODE STDMETHODCALLTYPE CreateInstance( IUnknown * pUnkOuter,
  40. REFIID riid, void * * ppvObject );
  41. virtual SCODE STDMETHODCALLTYPE LockServer( BOOL fLock );
  42. protected:
  43. virtual ~CWordBreakerCF();
  44. long _cRefs;
  45. LCID _lcid;
  46. };
  47. #endif // __WBCLASSCF_HXX__