2009-10-09 09:20:37 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-10-09 09:20:37 +04:00
|
|
|
|
2010-02-23 23:04:05 +03:00
|
|
|
#ifndef nsPrintDialog_h_
|
|
|
|
#define nsPrintDialog_h_
|
2009-10-09 09:20:37 +04:00
|
|
|
|
|
|
|
#include "nsIPrintDialogService.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
#include "nsCocoaUtils.h"
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
class nsIPrintSettings;
|
|
|
|
class nsIStringBundle;
|
|
|
|
|
|
|
|
class nsPrintDialogServiceX : public nsIPrintDialogService
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsPrintDialogServiceX();
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
|
|
|
|
NS_IMETHODIMP Init();
|
2009-11-02 22:23:53 +03:00
|
|
|
NS_IMETHODIMP Show(nsIDOMWindow *aParent, nsIPrintSettings *aSettings,
|
|
|
|
nsIWebBrowserPrint *aWebBrowserPrint);
|
2009-10-09 09:20:37 +04:00
|
|
|
NS_IMETHODIMP ShowPageSetup(nsIDOMWindow *aParent,
|
|
|
|
nsIPrintSettings *aSettings);
|
2014-07-06 19:25:31 +04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~nsPrintDialogServiceX();
|
2009-10-09 09:20:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
@interface PrintPanelAccessoryView : NSView
|
|
|
|
{
|
|
|
|
nsIPrintSettings* mSettings;
|
|
|
|
nsIStringBundle* mPrintBundle;
|
|
|
|
NSButton* mPrintSelectionOnlyCheckbox;
|
|
|
|
NSButton* mShrinkToFitCheckbox;
|
|
|
|
NSButton* mPrintBGColorsCheckbox;
|
|
|
|
NSButton* mPrintBGImagesCheckbox;
|
|
|
|
NSButtonCell* mAsLaidOutRadio;
|
|
|
|
NSButtonCell* mSelectedFrameRadio;
|
|
|
|
NSButtonCell* mSeparateFramesRadio;
|
|
|
|
NSPopUpButton* mHeaderLeftList;
|
|
|
|
NSPopUpButton* mHeaderCenterList;
|
|
|
|
NSPopUpButton* mHeaderRightList;
|
|
|
|
NSPopUpButton* mFooterLeftList;
|
|
|
|
NSPopUpButton* mFooterCenterList;
|
|
|
|
NSPopUpButton* mFooterRightList;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id)initWithSettings:(nsIPrintSettings*)aSettings;
|
|
|
|
|
|
|
|
- (void)exportSettings;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface PrintPanelAccessoryController : NSViewController <NSPrintPanelAccessorizing>
|
|
|
|
|
|
|
|
- (id)initWithSettings:(nsIPrintSettings*)aSettings;
|
|
|
|
|
|
|
|
- (void)exportSettings;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-02-23 23:04:05 +03:00
|
|
|
#endif // nsPrintDialog_h_
|