widget/nsHTMLFormatConverter.h
author Andreas Pehrson <pehrsons@gmail.com>
Tue, 03 Jan 2017 17:10:41 +0100
changeset 377345 cd5f8d67b620278cab7d009466858cc3b9de748c
parent 363275 bd7461a1ed09447f4d38b4911f0e83933f9d875b
child 499071 55588bdd2ee8f5bcd66c6af0b340d5b02bf0411e
permissions -rw-r--r--
Bug 1328142 - Unify macros in MediaPipeline. r=pkerr MozReview-Commit-ID: 6ePBKzxZndB

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef nsHTMLFormatConverter_h__
#define nsHTMLFormatConverter_h__

#include "nsCOMPtr.h"
#include "nsIFormatConverter.h"
#include "nsString.h"

class nsIMutableArray;

class nsHTMLFormatConverter : public nsIFormatConverter
{
public:

  nsHTMLFormatConverter();

  // nsISupports
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFORMATCONVERTER

protected:
  virtual ~nsHTMLFormatConverter();

  nsresult AddFlavorToList ( nsCOMPtr<nsIMutableArray>& inList, const char* inFlavor ) ;

  NS_IMETHOD ConvertFromHTMLToUnicode(const nsAutoString & aFromStr, nsAutoString & aToStr);
  NS_IMETHOD ConvertFromHTMLToAOLMail(const nsAutoString & aFromStr, nsAutoString & aToStr);

};

#endif // nsHTMLFormatConverter_h__