michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * 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: #ifndef nsPrintSettingsQt_h_ michael@0: #define nsPrintSettingsQt_h_ michael@0: michael@0: #include michael@0: #include "nsPrintSettingsImpl.h" michael@0: #define NS_PRINTSETTINGSQT_IID \ michael@0: {0x5bc4c746, 0x8970, 0x43a3, {0xbf, 0xb1, 0x5d, 0xe1, 0x74, 0xaf, 0x7c, 0xea}} michael@0: michael@0: class QPrinter; michael@0: class nsPrintSettingsQt : public nsPrintSettings michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS_INHERITED michael@0: NS_DECLARE_STATIC_IID_ACCESSOR(NS_PRINTSETTINGSQT_IID) michael@0: michael@0: nsPrintSettingsQt(); michael@0: virtual ~nsPrintSettingsQt(); michael@0: michael@0: NS_IMETHOD GetPrintRange(int16_t* aPrintRange); michael@0: NS_IMETHOD SetPrintRange(int16_t aPrintRange); michael@0: michael@0: NS_IMETHOD GetStartPageRange(int32_t* aStartPageRange); michael@0: NS_IMETHOD SetStartPageRange(int32_t aStartPageRange); michael@0: NS_IMETHOD GetEndPageRange(int32_t* aEndPageRange); michael@0: NS_IMETHOD SetEndPageRange(int32_t aEndPageRange); michael@0: michael@0: NS_IMETHOD GetPrintReversed(bool* aPrintReversed); michael@0: NS_IMETHOD SetPrintReversed(bool aPrintReversed); michael@0: michael@0: NS_IMETHOD GetPrintInColor(bool* aPrintInColor); michael@0: NS_IMETHOD SetPrintInColor(bool aPrintInColor); michael@0: michael@0: NS_IMETHOD GetOrientation(int32_t* aOrientation); michael@0: NS_IMETHOD SetOrientation(int32_t aOrientation); michael@0: michael@0: NS_IMETHOD GetToFileName(char16_t** aToFileName); michael@0: NS_IMETHOD SetToFileName(const char16_t* aToFileName); michael@0: michael@0: NS_IMETHOD GetPrinterName(char16_t** aPrinter); michael@0: NS_IMETHOD SetPrinterName(const char16_t* aPrinter); michael@0: michael@0: NS_IMETHOD GetNumCopies(int32_t* aNumCopies); michael@0: NS_IMETHOD SetNumCopies(int32_t aNumCopies); michael@0: michael@0: NS_IMETHOD GetScaling(double* aScaling); michael@0: NS_IMETHOD SetScaling(double aScaling); michael@0: michael@0: NS_IMETHOD GetPaperName(char16_t** aPaperName); michael@0: NS_IMETHOD SetPaperName(const char16_t* aPaperName); michael@0: michael@0: NS_IMETHOD SetUnwriteableMarginInTwips(nsIntMargin& aUnwriteableMargin); michael@0: NS_IMETHOD SetUnwriteableMarginTop(double aUnwriteableMarginTop); michael@0: NS_IMETHOD SetUnwriteableMarginLeft(double aUnwriteableMarginLeft); michael@0: NS_IMETHOD SetUnwriteableMarginBottom(double aUnwriteableMarginBottom); michael@0: NS_IMETHOD SetUnwriteableMarginRight(double aUnwriteableMarginRight); michael@0: michael@0: NS_IMETHOD GetPaperWidth(double* aPaperWidth); michael@0: NS_IMETHOD SetPaperWidth(double aPaperWidth); michael@0: michael@0: NS_IMETHOD GetPaperHeight(double* aPaperHeight); michael@0: NS_IMETHOD SetPaperHeight(double aPaperHeight); michael@0: michael@0: NS_IMETHOD SetPaperSizeUnit(int16_t aPaperSizeUnit); michael@0: michael@0: NS_IMETHOD GetEffectivePageSize(double* aWidth, double* aHeight); michael@0: michael@0: protected: michael@0: nsPrintSettingsQt(const nsPrintSettingsQt& src); michael@0: nsPrintSettingsQt& operator=(const nsPrintSettingsQt& rhs); michael@0: michael@0: virtual nsresult _Clone(nsIPrintSettings** _retval); michael@0: virtual nsresult _Assign(nsIPrintSettings* aPS); michael@0: michael@0: QSharedPointer mQPrinter; michael@0: }; michael@0: michael@0: NS_DEFINE_STATIC_IID_ACCESSOR(nsPrintSettingsQt, NS_PRINTSETTINGSQT_IID) michael@0: #endif // nsPrintSettingsQt_h_