michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsPrintProgressParams.h" michael@0: #include "nsReadableUtils.h" michael@0: michael@0: michael@0: NS_IMPL_ISUPPORTS(nsPrintProgressParams, nsIPrintProgressParams) michael@0: michael@0: nsPrintProgressParams::nsPrintProgressParams() michael@0: { michael@0: } michael@0: michael@0: nsPrintProgressParams::~nsPrintProgressParams() michael@0: { michael@0: } michael@0: michael@0: /* attribute wstring docTitle; */ michael@0: NS_IMETHODIMP nsPrintProgressParams::GetDocTitle(char16_t * *aDocTitle) michael@0: { michael@0: NS_ENSURE_ARG(aDocTitle); michael@0: michael@0: *aDocTitle = ToNewUnicode(mDocTitle); michael@0: return NS_OK; michael@0: } michael@0: michael@0: NS_IMETHODIMP nsPrintProgressParams::SetDocTitle(const char16_t * aDocTitle) michael@0: { michael@0: mDocTitle = aDocTitle; michael@0: return NS_OK; michael@0: } michael@0: michael@0: /* attribute wstring docURL; */ michael@0: NS_IMETHODIMP nsPrintProgressParams::GetDocURL(char16_t * *aDocURL) michael@0: { michael@0: NS_ENSURE_ARG(aDocURL); michael@0: michael@0: *aDocURL = ToNewUnicode(mDocURL); michael@0: return NS_OK; michael@0: } michael@0: michael@0: NS_IMETHODIMP nsPrintProgressParams::SetDocURL(const char16_t * aDocURL) michael@0: { michael@0: mDocURL = aDocURL; michael@0: return NS_OK; michael@0: } michael@0: