embedding/components/printingui/src/mac/nsPrintProgressParams.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/components/printingui/src/mac/nsPrintProgressParams.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsPrintProgressParams.h"
    1.10 +#include "nsReadableUtils.h"
    1.11 +
    1.12 +
    1.13 +NS_IMPL_ISUPPORTS(nsPrintProgressParams, nsIPrintProgressParams)
    1.14 +
    1.15 +nsPrintProgressParams::nsPrintProgressParams()
    1.16 +{
    1.17 +}
    1.18 +
    1.19 +nsPrintProgressParams::~nsPrintProgressParams()
    1.20 +{
    1.21 +}
    1.22 +
    1.23 +/* attribute wstring docTitle; */
    1.24 +NS_IMETHODIMP nsPrintProgressParams::GetDocTitle(char16_t * *aDocTitle)
    1.25 +{
    1.26 +  NS_ENSURE_ARG(aDocTitle);
    1.27 +  
    1.28 +  *aDocTitle = ToNewUnicode(mDocTitle);
    1.29 +  return NS_OK;
    1.30 +}
    1.31 +
    1.32 +NS_IMETHODIMP nsPrintProgressParams::SetDocTitle(const char16_t * aDocTitle)
    1.33 +{
    1.34 +  mDocTitle = aDocTitle;
    1.35 +  return NS_OK;
    1.36 +}
    1.37 +
    1.38 +/* attribute wstring docURL; */
    1.39 +NS_IMETHODIMP nsPrintProgressParams::GetDocURL(char16_t * *aDocURL)
    1.40 +{
    1.41 +  NS_ENSURE_ARG(aDocURL);
    1.42 +  
    1.43 +  *aDocURL = ToNewUnicode(mDocURL);
    1.44 +  return NS_OK;
    1.45 +}
    1.46 +
    1.47 +NS_IMETHODIMP nsPrintProgressParams::SetDocURL(const char16_t * aDocURL)
    1.48 +{
    1.49 +  mDocURL = aDocURL;
    1.50 +  return NS_OK;
    1.51 +}
    1.52 +

mercurial