widget/cocoa/nsPrintDialogX.h

changeset 2
7e26c7da4463
equal deleted inserted replaced
-1:000000000000 0:43d76878073f
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/. */
5
6 #ifndef nsPrintDialog_h_
7 #define nsPrintDialog_h_
8
9 #include "nsIPrintDialogService.h"
10 #include "nsCOMPtr.h"
11 #include "nsCocoaUtils.h"
12
13 #import <Cocoa/Cocoa.h>
14
15 class nsIPrintSettings;
16 class nsIStringBundle;
17
18 class nsPrintDialogServiceX : public nsIPrintDialogService
19 {
20 public:
21 nsPrintDialogServiceX();
22 virtual ~nsPrintDialogServiceX();
23
24 NS_DECL_ISUPPORTS
25
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 };
32
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 }
51
52 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
53
54 - (void)exportSettings;
55
56 @end
57
58 @interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing>
59
60 - (id)initWithSettings:(nsIPrintSettings*)aSettings;
61
62 - (void)exportSettings;
63
64 @end
65
66 #endif // nsPrintDialog_h_

mercurial