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
|
|
|
{
|
2014-06-24 09:36:44 -07:00
|
|
|
virtual ~nsPrintDialogServiceGTK();
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
public:
|
2008-01-20 19:47:25 -08:00
|
|
|
nsPrintDialogServiceGTK();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-01-20 19:47:25 -08:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
NS_IMETHODIMP Init() override;
|
2016-01-30 09:05:36 -08:00
|
|
|
NS_IMETHODIMP Show(nsPIDOMWindowOuter *aParent, nsIPrintSettings *aSettings,
|
2015-03-21 09:28:04 -07:00
|
|
|
nsIWebBrowserPrint *aWebBrowserPrint) override;
|
2016-01-30 09:05:36 -08:00
|
|
|
NS_IMETHODIMP ShowPageSetup(nsPIDOMWindowOuter *aParent,
|
2015-03-21 09:28:04 -07:00
|
|
|
nsIPrintSettings *aSettings) override;
|
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
|