1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/cocoa/nsPrintDialogX.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsPrintDialog_h_ 1.10 +#define nsPrintDialog_h_ 1.11 + 1.12 +#include "nsIPrintDialogService.h" 1.13 +#include "nsCOMPtr.h" 1.14 +#include "nsCocoaUtils.h" 1.15 + 1.16 +#import <Cocoa/Cocoa.h> 1.17 + 1.18 +class nsIPrintSettings; 1.19 +class nsIStringBundle; 1.20 + 1.21 +class nsPrintDialogServiceX : public nsIPrintDialogService 1.22 +{ 1.23 +public: 1.24 + nsPrintDialogServiceX(); 1.25 + virtual ~nsPrintDialogServiceX(); 1.26 + 1.27 + NS_DECL_ISUPPORTS 1.28 + 1.29 + NS_IMETHODIMP Init(); 1.30 + NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings, 1.31 + nsIWebBrowserPrint *aWebBrowserPrint); 1.32 + NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent, 1.33 + nsIPrintSettings *aSettings); 1.34 +}; 1.35 + 1.36 +@interface PrintPanelAccessoryView : NSView 1.37 +{ 1.38 + nsIPrintSettings* mSettings; 1.39 + nsIStringBundle* mPrintBundle; 1.40 + NSButton* mPrintSelectionOnlyCheckbox; 1.41 + NSButton* mShrinkToFitCheckbox; 1.42 + NSButton* mPrintBGColorsCheckbox; 1.43 + NSButton* mPrintBGImagesCheckbox; 1.44 + NSButtonCell* mAsLaidOutRadio; 1.45 + NSButtonCell* mSelectedFrameRadio; 1.46 + NSButtonCell* mSeparateFramesRadio; 1.47 + NSPopUpButton* mHeaderLeftList; 1.48 + NSPopUpButton* mHeaderCenterList; 1.49 + NSPopUpButton* mHeaderRightList; 1.50 + NSPopUpButton* mFooterLeftList; 1.51 + NSPopUpButton* mFooterCenterList; 1.52 + NSPopUpButton* mFooterRightList; 1.53 +} 1.54 + 1.55 +- (id)initWithSettings:(nsIPrintSettings*)aSettings; 1.56 + 1.57 +- (void)exportSettings; 1.58 + 1.59 +@end 1.60 + 1.61 +@interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing> 1.62 + 1.63 +- (id)initWithSettings:(nsIPrintSettings*)aSettings; 1.64 + 1.65 +- (void)exportSettings; 1.66 + 1.67 +@end 1.68 + 1.69 +#endif // nsPrintDialog_h_