2008-01-20 19:47:25 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
#ifndef nsPrintDialog_h__
|
|
|
|
#define nsPrintDialog_h__
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
#include "nsIPrintDialogService.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
class nsIPrintSettings;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-02-11 14:39:33 -08:00
|
|
|
// Copy the print pages enum here because not all versions
|
|
|
|
// have SELECTION, which we will use
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
_GTK_PRINT_PAGES_ALL,
|
|
|
|
_GTK_PRINT_PAGES_CURRENT,
|
|
|
|
_GTK_PRINT_PAGES_RANGES,
|
|
|
|
_GTK_PRINT_PAGES_SELECTION
|
|
|
|
} _GtkPrintPages;
|
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
class nsPrintDialogServiceGTK : public nsIPrintDialogService
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2008-01-20 19:47:25 -08:00
|
|
|
nsPrintDialogServiceGTK();
|
|
|
|
virtual ~nsPrintDialogServiceGTK();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
NS_IMETHODIMP Init();
|
2009-11-02 11:23:53 -08:00
|
|
|
NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings,
|
|
|
|
nsIWebBrowserPrint *aWebBrowserPrint);
|
2008-04-30 23:43:04 -07:00
|
|
|
NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent,
|
|
|
|
nsIPrintSettings *aSettings);
|
2008-01-20 19:47:25 -08:00
|
|
|
};
|
2008-01-17 02:11:00 -08:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
#endif
|