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.

39 lines
1.1 KiB

  1. //////////////////////////////////////////////////////////////////////
  2. // TextRules.h: interface for the CTextRules class.
  3. //
  4. // Created by JOEM 04-2000
  5. // Copyright (C) 2000 Microsoft Corporation
  6. // All Rights Reserved
  7. //
  8. /////////////////////////////////////////////////////// JOEM 4-2000 //
  9. #if !defined(AFX_TEXTRULES_H__2A4E2D03_6982_478E_B09A_8994C91E573C__INCLUDED_)
  10. #define AFX_TEXTRULES_H__2A4E2D03_6982_478E_B09A_8994C91E573C__INCLUDED_
  11. #if _MSC_VER > 1000
  12. #pragma once
  13. #endif // _MSC_VER > 1000
  14. #include "msscpctl.h"
  15. class CTextRules
  16. {
  17. public:
  18. CTextRules();
  19. ~CTextRules();
  20. HRESULT ApplyRule(const WCHAR* pszRuleName, const WCHAR* pszOriginalText, WCHAR** ppszNewText);
  21. HRESULT ReadRules(const WCHAR* pszScriptLanguage, const WCHAR *pszPath);
  22. public:
  23. private:
  24. HRESULT SetInputParam(const WCHAR* pswzTextParam, LPSAFEARRAY *psaScriptPar);
  25. private:
  26. IScriptControl* m_pIScriptInterp; // interface pointer to ScriptControl object
  27. char* m_pszRuleScript;
  28. WCHAR* m_pszScriptLanguage;
  29. bool m_fActive;
  30. };
  31. #endif // !defined(AFX_TEXTRULES_H__2A4E2D03_6982_478E_B09A_8994C91E573C__INCLUDED_)