Backed out changeset b4a0f8afc02e (bug 1857946) for causing bc failures at browser...
[gecko.git] / widget / cocoa / nsPrintDialogX.h
blobed8c7dbb05bd862e8e3cf86aee647650d79c8d7a
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 final : public nsIPrintDialogService {
19 virtual ~nsPrintDialogServiceX();
21 public:
22 nsPrintDialogServiceX();
24 NS_DECL_ISUPPORTS
25 NS_DECL_NSIPRINTDIALOGSERVICE
28 @interface PrintPanelAccessoryView : NSView {
29 nsIPrintSettings* mSettings;
30 nsIStringBundle* mPrintBundle;
31 NSButton* mPrintSelectionOnlyCheckbox;
32 NSButton* mShrinkToFitCheckbox;
33 NSButton* mPrintBGColorsCheckbox;
34 NSButton* mPrintBGImagesCheckbox;
35 NSPopUpButton* mHeaderLeftList;
36 NSPopUpButton* mHeaderCenterList;
37 NSPopUpButton* mHeaderRightList;
38 NSPopUpButton* mFooterLeftList;
39 NSPopUpButton* mFooterCenterList;
40 NSPopUpButton* mFooterRightList;
43 - (id)initWithSettings:(nsIPrintSettings*)aSettings haveSelection:(bool)aHaveSelection;
45 - (void)exportSettings;
47 @end
49 @interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing>
51 - (id)initWithSettings:(nsIPrintSettings*)aSettings haveSelection:(bool)aHaveSelection;
53 - (void)exportSettings;
55 @end
57 NS_DEFINE_STATIC_IID_ACCESSOR(nsPrintDialogServiceX, NS_IPRINTDIALOGSERVICE_IID)
59 #endif // nsPrintDialog_h_