widget/nsHTMLFormatConverter.h
author Dorel Luca <dluca@mozilla.com>
Sun, 25 Aug 2019 00:51:13 +0300
changeset 489765 1125aad05d5c39c2453c04ca6d037afaef16c296
parent 448947 6f3709b3878117466168c40affa7bca0b60cf75b
permissions -rw-r--r--
Merge mozilla-inbound to mozilla-central. a=merge

/* -*- 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();

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

#endif  // nsHTMLFormatConverter_h__