1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/components/printingui/src/unixshared/nsPrintingPromptService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,56 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef __nsPrintingPromptService_h 1.10 +#define __nsPrintingPromptService_h 1.11 + 1.12 +// {E042570C-62DE-4bb6-A6E0-798E3C07B4DF} 1.13 +#define NS_PRINTINGPROMPTSERVICE_CID \ 1.14 + {0xe042570c, 0x62de, 0x4bb6, { 0xa6, 0xe0, 0x79, 0x8e, 0x3c, 0x7, 0xb4, 0xdf}} 1.15 +#define NS_PRINTINGPROMPTSERVICE_CONTRACTID \ 1.16 + "@mozilla.org/embedcomp/printingprompt-service;1" 1.17 + 1.18 +#include "nsCOMPtr.h" 1.19 +#include "nsIPrintingPromptService.h" 1.20 +#include "nsPIPromptService.h" 1.21 +#include "nsIWindowWatcher.h" 1.22 + 1.23 +// Printing Progress Includes 1.24 +#include "nsPrintProgress.h" 1.25 +#include "nsPrintProgressParams.h" 1.26 +#include "nsIWebProgressListener.h" 1.27 + 1.28 +class nsIDOMWindow; 1.29 +class nsIDialogParamBlock; 1.30 + 1.31 +class nsPrintingPromptService: public nsIPrintingPromptService, 1.32 + public nsIWebProgressListener 1.33 +{ 1.34 + 1.35 +public: 1.36 + 1.37 + nsPrintingPromptService(); 1.38 + virtual ~nsPrintingPromptService(); 1.39 + 1.40 + nsresult Init(); 1.41 + 1.42 + NS_DECL_NSIPRINTINGPROMPTSERVICE 1.43 + NS_DECL_NSIWEBPROGRESSLISTENER 1.44 + NS_DECL_ISUPPORTS 1.45 + 1.46 +private: 1.47 + nsresult DoDialog(nsIDOMWindow *aParent, 1.48 + nsIDialogParamBlock *aParamBlock, 1.49 + nsIWebBrowserPrint *aWebBrowserPrint, 1.50 + nsIPrintSettings* aPS, 1.51 + const char *aChromeURL); 1.52 + 1.53 + nsCOMPtr<nsIWindowWatcher> mWatcher; 1.54 + nsCOMPtr<nsIPrintProgress> mPrintProgress; 1.55 + nsCOMPtr<nsIWebProgressListener> mWebProgressListener; 1.56 +}; 1.57 + 1.58 +#endif 1.59 +