widget/qt/nsPrintSettingsQt.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef nsPrintSettingsQt_h_
michael@0 8 #define nsPrintSettingsQt_h_
michael@0 9
michael@0 10 #include <QSharedPointer>
michael@0 11 #include "nsPrintSettingsImpl.h"
michael@0 12 #define NS_PRINTSETTINGSQT_IID \
michael@0 13 {0x5bc4c746, 0x8970, 0x43a3, {0xbf, 0xb1, 0x5d, 0xe1, 0x74, 0xaf, 0x7c, 0xea}}
michael@0 14
michael@0 15 class QPrinter;
michael@0 16 class nsPrintSettingsQt : public nsPrintSettings
michael@0 17 {
michael@0 18 public:
michael@0 19 NS_DECL_ISUPPORTS_INHERITED
michael@0 20 NS_DECLARE_STATIC_IID_ACCESSOR(NS_PRINTSETTINGSQT_IID)
michael@0 21
michael@0 22 nsPrintSettingsQt();
michael@0 23 virtual ~nsPrintSettingsQt();
michael@0 24
michael@0 25 NS_IMETHOD GetPrintRange(int16_t* aPrintRange);
michael@0 26 NS_IMETHOD SetPrintRange(int16_t aPrintRange);
michael@0 27
michael@0 28 NS_IMETHOD GetStartPageRange(int32_t* aStartPageRange);
michael@0 29 NS_IMETHOD SetStartPageRange(int32_t aStartPageRange);
michael@0 30 NS_IMETHOD GetEndPageRange(int32_t* aEndPageRange);
michael@0 31 NS_IMETHOD SetEndPageRange(int32_t aEndPageRange);
michael@0 32
michael@0 33 NS_IMETHOD GetPrintReversed(bool* aPrintReversed);
michael@0 34 NS_IMETHOD SetPrintReversed(bool aPrintReversed);
michael@0 35
michael@0 36 NS_IMETHOD GetPrintInColor(bool* aPrintInColor);
michael@0 37 NS_IMETHOD SetPrintInColor(bool aPrintInColor);
michael@0 38
michael@0 39 NS_IMETHOD GetOrientation(int32_t* aOrientation);
michael@0 40 NS_IMETHOD SetOrientation(int32_t aOrientation);
michael@0 41
michael@0 42 NS_IMETHOD GetToFileName(char16_t** aToFileName);
michael@0 43 NS_IMETHOD SetToFileName(const char16_t* aToFileName);
michael@0 44
michael@0 45 NS_IMETHOD GetPrinterName(char16_t** aPrinter);
michael@0 46 NS_IMETHOD SetPrinterName(const char16_t* aPrinter);
michael@0 47
michael@0 48 NS_IMETHOD GetNumCopies(int32_t* aNumCopies);
michael@0 49 NS_IMETHOD SetNumCopies(int32_t aNumCopies);
michael@0 50
michael@0 51 NS_IMETHOD GetScaling(double* aScaling);
michael@0 52 NS_IMETHOD SetScaling(double aScaling);
michael@0 53
michael@0 54 NS_IMETHOD GetPaperName(char16_t** aPaperName);
michael@0 55 NS_IMETHOD SetPaperName(const char16_t* aPaperName);
michael@0 56
michael@0 57 NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin& aUnwriteableMargin);
michael@0 58 NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop);
michael@0 59 NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
michael@0 60 NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
michael@0 61 NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight);
michael@0 62
michael@0 63 NS_IMETHOD GetPaperWidth(double* aPaperWidth);
michael@0 64 NS_IMETHOD SetPaperWidth(double aPaperWidth);
michael@0 65
michael@0 66 NS_IMETHOD GetPaperHeight(double* aPaperHeight);
michael@0 67 NS_IMETHOD SetPaperHeight(double aPaperHeight);
michael@0 68
michael@0 69 NS_IMETHOD SetPaperSizeUnit(int16_t aPaperSizeUnit);
michael@0 70
michael@0 71 NS_IMETHOD GetEffectivePageSize(double* aWidth, double* aHeight);
michael@0 72
michael@0 73 protected:
michael@0 74 nsPrintSettingsQt(const nsPrintSettingsQt& src);
michael@0 75 nsPrintSettingsQt& operator=(const nsPrintSettingsQt& rhs);
michael@0 76
michael@0 77 virtual nsresult _Clone(nsIPrintSettings** _retval);
michael@0 78 virtual nsresult _Assign(nsIPrintSettings* aPS);
michael@0 79
michael@0 80 QSharedPointer<QPrinter> mQPrinter;
michael@0 81 };
michael@0 82
michael@0 83 NS_DEFINE_STATIC_IID_ACCESSOR(nsPrintSettingsQt, NS_PRINTSETTINGSQT_IID)
michael@0 84 #endif // nsPrintSettingsQt_h_

mercurial