2001-09-26 04:47:52 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
1999-10-12 03:47:27 +04:00
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
#ifndef nsSaveAsCharset_h_
|
|
|
|
#define nsSaveAsCharset_h_
|
2010-08-18 14:17:12 +04:00
|
|
|
|
2013-09-27 20:45:04 +04:00
|
|
|
#include "nsStringFwd.h"
|
1999-10-12 03:47:27 +04:00
|
|
|
#include "nsISaveAsCharset.h"
|
2015-10-22 11:18:45 +03:00
|
|
|
#include "nsAutoPtr.h"
|
|
|
|
#include "nsNCRFallbackEncoderWrapper.h"
|
|
|
|
#include "nsString.h"
|
1999-10-12 03:47:27 +04:00
|
|
|
|
|
|
|
class nsSaveAsCharset : public nsISaveAsCharset
|
|
|
|
{
|
|
|
|
public:
|
2015-10-22 11:18:45 +03:00
|
|
|
|
1999-10-12 03:47:27 +04:00
|
|
|
nsSaveAsCharset();
|
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
NS_DECL_ISUPPORTS
|
1999-10-12 03:47:27 +04:00
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
NS_IMETHOD Init(const nsACString& aCharset, uint32_t aIgnored, uint32_t aAlsoIgnored) override;
|
1999-10-12 03:47:27 +04:00
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
NS_IMETHOD Convert(const nsAString& ain, nsACString& aOut) override;
|
1999-10-12 03:47:27 +04:00
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
NS_IMETHODIMP GetCharset(nsACString& aCharset) override;
|
2002-04-26 02:49:19 +04:00
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
private:
|
1999-10-12 03:47:27 +04:00
|
|
|
|
2014-06-24 02:40:02 +04:00
|
|
|
virtual ~nsSaveAsCharset();
|
|
|
|
|
2015-10-22 11:18:45 +03:00
|
|
|
nsAutoPtr<nsNCRFallbackEncoderWrapper> mEncoder;
|
|
|
|
nsCString mCharset;
|
1999-10-12 03:47:27 +04:00
|
|
|
};
|
|
|
|
|
2010-08-18 14:17:12 +04:00
|
|
|
#endif
|