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: #ifndef nsPrintDialog_h__ michael@0: #define nsPrintDialog_h__ michael@0: michael@0: #include "nsIPrintDialogService.h" michael@0: michael@0: class nsIPrintSettings; michael@0: michael@0: // Copy the print pages enum here because not all versions michael@0: // have SELECTION, which we will use michael@0: typedef enum michael@0: { michael@0: _GTK_PRINT_PAGES_ALL, michael@0: _GTK_PRINT_PAGES_CURRENT, michael@0: _GTK_PRINT_PAGES_RANGES, michael@0: _GTK_PRINT_PAGES_SELECTION michael@0: } _GtkPrintPages; michael@0: michael@0: class nsPrintDialogServiceGTK : public nsIPrintDialogService michael@0: { michael@0: public: michael@0: nsPrintDialogServiceGTK(); michael@0: virtual ~nsPrintDialogServiceGTK(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_IMETHODIMP Init(); michael@0: NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings, michael@0: nsIWebBrowserPrint *aWebBrowserPrint); michael@0: NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent, michael@0: nsIPrintSettings *aSettings); michael@0: }; michael@0: michael@0: #endif