michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsPrintDialog_h_ michael@0: #define nsPrintDialog_h_ michael@0: michael@0: #include "nsIPrintDialogService.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsCocoaUtils.h" michael@0: michael@0: #import michael@0: michael@0: class nsIPrintSettings; michael@0: class nsIStringBundle; michael@0: michael@0: class nsPrintDialogServiceX : public nsIPrintDialogService michael@0: { michael@0: public: michael@0: nsPrintDialogServiceX(); michael@0: virtual ~nsPrintDialogServiceX(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: NS_IMETHODIMP Init(); michael@0: NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings, michael@0: nsIWebBrowserPrint *aWebBrowserPrint); michael@0: NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent, michael@0: nsIPrintSettings *aSettings); michael@0: }; michael@0: michael@0: @interface PrintPanelAccessoryView : NSView michael@0: { michael@0: nsIPrintSettings* mSettings; michael@0: nsIStringBundle* mPrintBundle; michael@0: NSButton* mPrintSelectionOnlyCheckbox; michael@0: NSButton* mShrinkToFitCheckbox; michael@0: NSButton* mPrintBGColorsCheckbox; michael@0: NSButton* mPrintBGImagesCheckbox; michael@0: NSButtonCell* mAsLaidOutRadio; michael@0: NSButtonCell* mSelectedFrameRadio; michael@0: NSButtonCell* mSeparateFramesRadio; michael@0: NSPopUpButton* mHeaderLeftList; michael@0: NSPopUpButton* mHeaderCenterList; michael@0: NSPopUpButton* mHeaderRightList; michael@0: NSPopUpButton* mFooterLeftList; michael@0: NSPopUpButton* mFooterCenterList; michael@0: NSPopUpButton* mFooterRightList; michael@0: } michael@0: michael@0: - (id)initWithSettings:(nsIPrintSettings*)aSettings; michael@0: michael@0: - (void)exportSettings; michael@0: michael@0: @end michael@0: michael@0: @interface PrintPanelAccessoryController : NSViewController michael@0: michael@0: - (id)initWithSettings:(nsIPrintSettings*)aSettings; michael@0: michael@0: - (void)exportSettings; michael@0: michael@0: @end michael@0: michael@0: #endif // nsPrintDialog_h_