embedding/components/printingui/src/win/nsPrintingPromptService.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef __nsPrintingPromptService_h
michael@0 7 #define __nsPrintingPromptService_h
michael@0 8
michael@0 9 #include <windows.h>
michael@0 10
michael@0 11 // {E042570C-62DE-4bb6-A6E0-798E3C07B4DF}
michael@0 12 #define NS_PRINTINGPROMPTSERVICE_CID \
michael@0 13 {0xe042570c, 0x62de, 0x4bb6, { 0xa6, 0xe0, 0x79, 0x8e, 0x3c, 0x7, 0xb4, 0xdf}}
michael@0 14 #define NS_PRINTINGPROMPTSERVICE_CONTRACTID \
michael@0 15 "@mozilla.org/embedcomp/printingprompt-service;1"
michael@0 16
michael@0 17 #include "nsCOMPtr.h"
michael@0 18 #include "nsIPrintingPromptService.h"
michael@0 19 #include "nsPIPromptService.h"
michael@0 20 #include "nsIWindowWatcher.h"
michael@0 21
michael@0 22 // Printing Progress Includes
michael@0 23 #include "nsPrintProgress.h"
michael@0 24 #include "nsPrintProgressParams.h"
michael@0 25 #include "nsIWebProgressListener.h"
michael@0 26
michael@0 27 class nsIDOMWindow;
michael@0 28 class nsIDialogParamBlock;
michael@0 29
michael@0 30 class nsPrintingPromptService: public nsIPrintingPromptService,
michael@0 31 public nsIWebProgressListener
michael@0 32 {
michael@0 33 public:
michael@0 34 nsPrintingPromptService();
michael@0 35 virtual ~nsPrintingPromptService();
michael@0 36
michael@0 37 nsresult Init();
michael@0 38
michael@0 39 NS_DECL_ISUPPORTS
michael@0 40 NS_DECL_NSIPRINTINGPROMPTSERVICE
michael@0 41 NS_DECL_NSIWEBPROGRESSLISTENER
michael@0 42
michael@0 43 private:
michael@0 44 HWND GetHWNDForDOMWindow(nsIDOMWindow *parent);
michael@0 45 nsresult DoDialog(nsIDOMWindow *aParent,
michael@0 46 nsIDialogParamBlock *aParamBlock,
michael@0 47 nsIPrintSettings* aPS,
michael@0 48 const char *aChromeURL);
michael@0 49
michael@0 50 nsCOMPtr<nsIWindowWatcher> mWatcher;
michael@0 51 nsCOMPtr<nsIPrintProgress> mPrintProgress;
michael@0 52 nsCOMPtr<nsIWebProgressListener> mWebProgressListener;
michael@0 53
michael@0 54 };
michael@0 55
michael@0 56 #endif
michael@0 57

mercurial