1/* Implementation of class NSPDFPanel
2   Copyright (C) 2019 Free Software Foundation, Inc.
3
4   By: Gregory Casamento <greg.casamento@gmail.com>
5   Date: Sat Nov 16 21:21:00 EST 2019
6
7   This file is part of the GNUstep Library.
8
9   This library is free software; you can redistribute it and/or
10   modify it under the terms of the GNU Lesser General Public
11   License as published by the Free Software Foundation; either
12   version 2 of the License, or (at your option) any later version.
13
14   This library is distributed in the hope that it will be useful,
15   but WITHOUT ANY WARRANTY; without even the implied warranty of
16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17   Lesser General Public License for more details.
18
19   You should have received a copy of the GNU Lesser General Public
20   License along with this library; if not, write to the Free
21   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22   Boston, MA 02110 USA.
23*/
24
25#import <AppKit/NSPDFPanel.h>
26#import <AppKit/NSPDFInfo.h>
27#import <AppKit/NSWindow.h>
28#import <AppKit/NSViewController.h>
29#import <Foundation/NSString.h>
30
31@implementation NSPDFPanel
32
33+ (NSPDFPanel *) panel
34{
35  return [[self class] alloc] ;
36}
37
38- init
39{
40  self = [super init];
41  if (self != nil)
42    {
43      _options = NSPDFPanelShowsPaperSize;
44      _defaultFileName = @"";
45    }
46  return self;
47}
48
49- (NSViewController *) accessoryController
50{
51  return _accessoryController;
52}
53
54- (void) setAccessoryController: (NSViewController *)accessoryController
55{
56  ASSIGN(_accessoryController, accessoryController);
57}
58
59- (NSPDFPanelOptions) options
60{
61  return _options;
62}
63
64- (void) setOptions: (NSPDFPanelOptions)opts
65{
66  _options = opts;
67}
68
69- (NSString *) defaultFileName
70{
71  return _defaultFileName;
72}
73
74- (void) setDefaultFileName: (NSString *)fileName
75{
76  ASSIGNCOPY(_defaultFileName, fileName);
77}
78
79- (void) beginSheetWithPDFInfo: (NSPDFInfo *)pdfInfo
80                modalForWindow: (NSWindow *)window
81             completionHandler: (GSPDFPanelCompletionHandler)handler
82{
83}
84
85@end
86
87