2017-10-19 05:04:13 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef nsPrintDialog_h__
|
|
|
|
#define nsPrintDialog_h__
|
|
|
|
|
|
|
|
#include "nsIPrintDialogService.h"
|
|
|
|
|
2017-10-19 05:04:30 +03:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsIWindowWatcher.h"
|
|
|
|
|
2017-10-19 05:04:13 +03:00
|
|
|
class nsIPrintSettings;
|
2017-10-19 05:04:30 +03:00
|
|
|
class nsIDialogParamBlock;
|
2017-10-19 05:04:13 +03:00
|
|
|
|
|
|
|
class nsPrintDialogServiceWin : public nsIPrintDialogService {
|
|
|
|
virtual ~nsPrintDialogServiceWin();
|
|
|
|
|
|
|
|
public:
|
|
|
|
nsPrintDialogServiceWin();
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
NS_IMETHOD Init() override;
|
2017-10-19 05:04:50 +03:00
|
|
|
NS_IMETHOD Show(nsPIDOMWindowOuter* aParent, nsIPrintSettings* aSettings,
|
|
|
|
nsIWebBrowserPrint* aWebBrowserPrint) override;
|
|
|
|
NS_IMETHOD ShowPageSetup(nsPIDOMWindowOuter* aParent,
|
|
|
|
nsIPrintSettings* aSettings) override;
|
2017-10-19 05:04:13 +03:00
|
|
|
|
2017-10-19 05:04:30 +03:00
|
|
|
private:
|
2017-10-19 05:04:50 +03:00
|
|
|
nsresult DoDialog(mozIDOMWindowProxy* aParent,
|
|
|
|
nsIDialogParamBlock* aParamBlock, nsIPrintSettings* aPS,
|
|
|
|
const char* aChromeURL);
|
2017-10-19 05:04:30 +03:00
|
|
|
|
2017-10-19 05:04:50 +03:00
|
|
|
HWND GetHWNDForDOMWindow(mozIDOMWindowProxy* aWindow);
|
2017-10-19 05:04:30 +03:00
|
|
|
|
|
|
|
nsCOMPtr<nsIWindowWatcher> mWatcher;
|
2017-10-19 05:04:13 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|