Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsPrintDialog_h_
7 #define nsPrintDialog_h_
9 #include "nsIPrintDialogService.h"
10 #include "nsCOMPtr.h"
11 #include "nsCocoaUtils.h"
13 #import <Cocoa/Cocoa.h>
15 class nsIPrintSettings;
16 class nsIStringBundle;
18 class nsPrintDialogServiceX : public nsIPrintDialogService
19 {
20 public:
21 nsPrintDialogServiceX();
22 virtual ~nsPrintDialogServiceX();
24 NS_DECL_ISUPPORTS
26 NS_IMETHODIMP Init();
27 NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings,
28 nsIWebBrowserPrint *aWebBrowserPrint);
29 NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent,
30 nsIPrintSettings *aSettings);
31 };
33 @interface PrintPanelAccessoryView : NSView
34 {
35 nsIPrintSettings* mSettings;
36 nsIStringBundle* mPrintBundle;
37 NSButton* mPrintSelectionOnlyCheckbox;
38 NSButton* mShrinkToFitCheckbox;
39 NSButton* mPrintBGColorsCheckbox;
40 NSButton* mPrintBGImagesCheckbox;
41 NSButtonCell* mAsLaidOutRadio;
42 NSButtonCell* mSelectedFrameRadio;
43 NSButtonCell* mSeparateFramesRadio;
44 NSPopUpButton* mHeaderLeftList;
45 NSPopUpButton* mHeaderCenterList;
46 NSPopUpButton* mHeaderRightList;
47 NSPopUpButton* mFooterLeftList;
48 NSPopUpButton* mFooterCenterList;
49 NSPopUpButton* mFooterRightList;
50 }
52 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
54 - (void)exportSettings;
56 @end
58 @interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing>
60 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
62 - (void)exportSettings;
64 @end
66 #endif // nsPrintDialog_h_