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