mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add print panels to theme.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38318 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c238b7c774
commit
e53b5e2e46
6 changed files with 86 additions and 12 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,4 +1,15 @@
|
|||
2015-01-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
2015-02-01 Gregory Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSPrinting.m: Add call to GSTheme code to get the
|
||||
class for the layout and print panels. Printing bundle can
|
||||
still overide if needed.
|
||||
* Source/GSThemePrintPanels.m: Add implementation of category
|
||||
for handling print / layout panels.
|
||||
* Headers/Additions/GNUstepGUI/GSTheme.h: Add category
|
||||
for print/layout panels.
|
||||
* Printing/GSWIN32/GSWIN32PrincipalClass.m: Minor cleanup.
|
||||
|
||||
2015-01-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSTextStorage.m
|
||||
* Source/NSSpellChecker.m
|
||||
|
|
|
@ -1434,5 +1434,19 @@ withRepeatedImage: (NSImage*)image
|
|||
- (Class) savePanelClass;
|
||||
@end
|
||||
|
||||
@interface GSTheme (PrintPanels)
|
||||
/**
|
||||
* This method returns the print panel class needed by the
|
||||
* native environment.
|
||||
*/
|
||||
- (Class) printPanelClass;
|
||||
|
||||
/**
|
||||
* This method returns the page layout class needed by the
|
||||
* native environment.
|
||||
*/
|
||||
- (Class) pageLayoutClass;
|
||||
@end
|
||||
|
||||
#endif /* OS_API_VERSION */
|
||||
#endif /* _GNUstep_H_GSTheme */
|
||||
|
|
|
@ -55,19 +55,16 @@
|
|||
return [GSWIN32PrintOperation class];
|
||||
}
|
||||
|
||||
|
||||
+(Class) printPanelClass
|
||||
{
|
||||
return [GSWIN32PrintPanel class];
|
||||
}
|
||||
|
||||
|
||||
+(Class) printerClass
|
||||
{
|
||||
return [GSWIN32Printer class];
|
||||
}
|
||||
|
||||
|
||||
+(Class) gsPrintOperationClass
|
||||
{
|
||||
return [GSWIN32PrintOperation class];
|
||||
|
|
|
@ -232,6 +232,7 @@ GSThemeInspector.m \
|
|||
GSThemeMenu.m \
|
||||
GSThemeOpenSavePanels.m \
|
||||
GSThemePanel.m \
|
||||
GSThemePrintPanels.m \
|
||||
GSThemeTools.m \
|
||||
GSTitleView.m \
|
||||
GSToolTips.m \
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#import <Foundation/NSUserDefaults.h>
|
||||
#import "AppKit/NSPanel.h"
|
||||
#import "GNUstepGUI/GSPrinting.h"
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
|
||||
static NSBundle *printingBundle = nil;
|
||||
|
||||
|
@ -227,34 +228,32 @@ static NSBundle *printingBundle = nil;
|
|||
|
||||
+(Class) pageLayoutClass
|
||||
{
|
||||
return Nil;
|
||||
return [[GSTheme theme] pageLayoutClass];
|
||||
}
|
||||
|
||||
+(Class) printInfoClass
|
||||
{
|
||||
return Nil;
|
||||
return Nil;
|
||||
}
|
||||
|
||||
|
||||
+(Class) printOperationClass
|
||||
{
|
||||
return Nil;
|
||||
return Nil;
|
||||
}
|
||||
|
||||
+(Class) printPanelClass
|
||||
{
|
||||
return Nil;
|
||||
return [[GSTheme theme] printPanelClass];
|
||||
}
|
||||
|
||||
|
||||
+(Class) printerClass
|
||||
{
|
||||
return Nil;
|
||||
return Nil;
|
||||
}
|
||||
|
||||
+(Class) gsPrintOperationClass
|
||||
{
|
||||
return Nil;
|
||||
return Nil;
|
||||
}
|
||||
|
||||
|
||||
|
|
52
Source/GSThemePrintPanels.m
Normal file
52
Source/GSThemePrintPanels.m
Normal file
|
@ -0,0 +1,52 @@
|
|||
/** <title>GSThemeOpenSavePanels</title>
|
||||
|
||||
<abstract>Methods for themes using open and save panels.</abstract>
|
||||
|
||||
Copyright (C) 2015 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gregory Casamento <greg.casamento@gmail.com>
|
||||
Date: 2015
|
||||
|
||||
This file is part of the GNU Objective C User interface library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; see the file COPYING.LIB.
|
||||
If not, see <http://www.gnu.org/licenses/> or write to the
|
||||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#import "AppKit/NSPrintPanel.h"
|
||||
#import "AppKit/NSPageLayout.h"
|
||||
#import "GNUstepGUI/GSTheme.h"
|
||||
|
||||
@implementation GSTheme (PrintPanels)
|
||||
/**
|
||||
* This method returns the print panel class needed by the
|
||||
* native environment.
|
||||
*/
|
||||
- (Class) printPanelClass
|
||||
{
|
||||
return [NSPrintPanel class];
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns the page layout class needed by the
|
||||
* native environment.
|
||||
*/
|
||||
- (Class) pageLayoutClass
|
||||
{
|
||||
return [NSPageLayout class];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in a new issue