Bumping manifests a=b2g-bump
[gecko.git] / widget / cocoa / nsPrintDialogX.h
blob99c5b00e6816463c048cf1ce316d46223230ba6f
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
20 public:
21 nsPrintDialogServiceX();
23 NS_DECL_ISUPPORTS
25 NS_IMETHODIMP Init() MOZ_OVERRIDE;
26 NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings,
27 nsIWebBrowserPrint *aWebBrowserPrint) MOZ_OVERRIDE;
28 NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent,
29 nsIPrintSettings *aSettings) MOZ_OVERRIDE;
31 protected:
32 virtual ~nsPrintDialogServiceX();
35 @interface PrintPanelAccessoryView : NSView
37 nsIPrintSettings* mSettings;
38 nsIStringBundle* mPrintBundle;
39 NSButton* mPrintSelectionOnlyCheckbox;
40 NSButton* mShrinkToFitCheckbox;
41 NSButton* mPrintBGColorsCheckbox;
42 NSButton* mPrintBGImagesCheckbox;
43 NSButtonCell* mAsLaidOutRadio;
44 NSButtonCell* mSelectedFrameRadio;
45 NSButtonCell* mSeparateFramesRadio;
46 NSPopUpButton* mHeaderLeftList;
47 NSPopUpButton* mHeaderCenterList;
48 NSPopUpButton* mHeaderRightList;
49 NSPopUpButton* mFooterLeftList;
50 NSPopUpButton* mFooterCenterList;
51 NSPopUpButton* mFooterRightList;
54 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
56 - (void)exportSettings;
58 @end
60 @interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing>
62 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
64 - (void)exportSettings;
66 @end
68 #endif // nsPrintDialog_h_