1/** <title>GSThemeOpenSavePanels</title>
2
3   <abstract>Methods for themes using open and save panels.</abstract>
4
5   Copyright (C) 2015 Free Software Foundation, Inc.
6
7   Author: Gregory Casamento <greg.casamento@gmail.com>
8   Date: 2015
9
10   This file is part of the GNU Objective C User interface library.
11
12   This library is free software; you can redistribute it and/or
13   modify it under the terms of the GNU Lesser General Public
14   License as published by the Free Software Foundation; either
15   version 2 of the License, or (at your option) any later version.
16
17   This library is distributed in the hope that it will be useful,
18   but WITHOUT ANY WARRANTY; without even the implied warranty of
19   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
20   Lesser General Public License for more details.
21
22   You should have received a copy of the GNU Lesser General Public
23   License along with this library; see the file COPYING.LIB.
24   If not, see <http://www.gnu.org/licenses/> or write to the
25   Free Software Foundation, 51 Franklin Street, Fifth Floor,
26   Boston, MA 02110-1301, USA.
27*/
28
29#import "AppKit/NSPrintPanel.h"
30#import "AppKit/NSPageLayout.h"
31#import "GNUstepGUI/GSTheme.h"
32
33@implementation GSPrintPanel
34
35+ (id) allocWithZone: (NSZone*)zone
36{
37  return NSAllocateObject(self, 0, zone);
38}
39
40@end
41
42@implementation GSPageLayout
43
44+ (id) allocWithZone: (NSZone*)zone
45{
46  return NSAllocateObject(self, 0, zone);
47}
48
49@end
50
51
52@implementation GSTheme (PrintPanels)
53/**
54 * This method returns the print panel class needed by the
55 * native environment.
56 */
57- (Class) printPanelClass
58{
59  return [GSPrintPanel class];
60}
61
62/**
63 * This method returns the page layout class needed by the
64 * native environment.
65 */
66- (Class) pageLayoutClass
67{
68  return [GSPageLayout class];
69}
70
71@end
72