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"
11 #include "nsCocoaUtils.h"
13 #import <Cocoa/Cocoa.h>
15 class nsIPrintSettings
;
16 class nsIStringBundle
;
18 class nsPrintDialogServiceX final
: public nsIPrintDialogService
{
19 virtual ~nsPrintDialogServiceX();
22 nsPrintDialogServiceX();
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
;
49 @interface PrintPanelAccessoryController
: NSViewController
<NSPrintPanelAccessorizing
>
51 - (id
)initWithSettings
:(nsIPrintSettings
*)aSettings haveSelection
:(bool)aHaveSelection
;
53 - (void)exportSettings
;
57 NS_DEFINE_STATIC_IID_ACCESSOR(nsPrintDialogServiceX
, NS_IPRINTDIALOGSERVICE_IID
)
59 #endif // nsPrintDialog_h_