nsHTMLFormatConverter.h 983 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsHTMLFormatConverter_h__
  6. #define nsHTMLFormatConverter_h__
  7. #include "nsCOMPtr.h"
  8. #include "nsIFormatConverter.h"
  9. #include "nsString.h"
  10. class nsIMutableArray;
  11. class nsHTMLFormatConverter : public nsIFormatConverter
  12. {
  13. public:
  14. nsHTMLFormatConverter();
  15. // nsISupports
  16. NS_DECL_ISUPPORTS
  17. NS_DECL_NSIFORMATCONVERTER
  18. protected:
  19. virtual ~nsHTMLFormatConverter();
  20. nsresult AddFlavorToList ( nsCOMPtr<nsIMutableArray>& inList, const char* inFlavor ) ;
  21. NS_IMETHOD ConvertFromHTMLToUnicode(const nsAutoString & aFromStr, nsAutoString & aToStr);
  22. NS_IMETHOD ConvertFromHTMLToAOLMail(const nsAutoString & aFromStr, nsAutoString & aToStr);
  23. };
  24. #endif // nsHTMLFormatConverter_h__