From 31351a93cd3f0728e668a169dbf0d6f2ab72fb34 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Fri, 6 Sep 2002 00:34:26 +0000 Subject: [PATCH] Moved the method [NSApplication runPageLayout:] to here. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14404 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/gui/NSPageLayout.h | 5 +++++ Source/NSPageLayout.m | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/Headers/gnustep/gui/NSPageLayout.h b/Headers/gnustep/gui/NSPageLayout.h index 4524c12ec..019a88507 100644 --- a/Headers/gnustep/gui/NSPageLayout.h +++ b/Headers/gnustep/gui/NSPageLayout.h @@ -28,6 +28,7 @@ #ifndef _GNUstep_H_NSPageLayout #define _GNUstep_H_NSPageLayout +#include #include @class NSPrintInfo; @@ -45,6 +46,10 @@ enum { NSPLOKButton }; +@interface NSApplication (NSPageLayout) +- (void) runPageLayout: (id)sender; +@end + @interface NSPageLayout : NSPanel { NSSize _size; diff --git a/Source/NSPageLayout.m b/Source/NSPageLayout.m index cb13754ce..0e02f503d 100644 --- a/Source/NSPageLayout.m +++ b/Source/NSPageLayout.m @@ -49,6 +49,15 @@ static NSPageLayout *shared_instance; #define CONTROL(panel, name) [[panel contentView] viewWithTag: name] +@implementation NSApplication (NSPageLayout) + +- (void) runPageLayout: sender +{ + [[NSPageLayout pageLayout] runModal]; +} + +@end + /** NSPageLayout