1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 NS_IMPL_ISUPPORTS(nsPaper
, nsIPaper
);
11 nsPaper::GetName(nsAString
& aName
) {
17 nsPaper::GetWidth(double* aWidth
) {
18 NS_ENSURE_ARG_POINTER(aWidth
);
24 nsPaper::GetHeight(double* aHeight
) {
25 NS_ENSURE_ARG_POINTER(aHeight
);
31 nsPaper::GetUnwriteableMarginTop(double* aUnwriteableMarginTop
) {
32 NS_ENSURE_ARG_POINTER(aUnwriteableMarginTop
);
33 *aUnwriteableMarginTop
= mUnwriteableMarginTop
;
38 nsPaper::GetUnwriteableMarginBottom(double* aUnwriteableMarginBottom
) {
39 NS_ENSURE_ARG_POINTER(aUnwriteableMarginBottom
);
40 *aUnwriteableMarginBottom
= mUnwriteableMarginBottom
;
45 nsPaper::GetUnwriteableMarginLeft(double* aUnwriteableMarginLeft
) {
46 NS_ENSURE_ARG_POINTER(aUnwriteableMarginLeft
);
47 *aUnwriteableMarginLeft
= mUnwriteableMarginLeft
;
52 nsPaper::GetUnwriteableMarginRight(double* aUnwriteableMarginRight
) {
53 NS_ENSURE_ARG_POINTER(aUnwriteableMarginRight
);
54 *aUnwriteableMarginRight
= mUnwriteableMarginRight
;