mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 19:01:15 +00:00
* Source/NSPrintOperation.m (-_print): Remove locale change (now
handled correctly in backend stream context. * Source/NSScrollView.m (-initWithFrame:): Change default border to none. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16020 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3abfc263a0
commit
1b0e112697
5 changed files with 17 additions and 30 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-02-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSPrintOperation.m (-_print): Remove locale change (now
|
||||
handled correctly in backend stream context.
|
||||
|
||||
* Source/NSScrollView.m (-initWithFrame:): Change default border
|
||||
to none.
|
||||
|
||||
2003-02-19 15:06 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Headers/gnustep/gui/GSLayoutManager_internal.h,
|
||||
|
|
|
@ -60,6 +60,7 @@
|
|||
<item><uref url="NSCustomImageRep.html">NSCustomImageRep</uref></item>
|
||||
<item><uref url="NSDocument.html">NSDocument</uref></item>
|
||||
<item><uref url="NSDocumentController.html">NSDocumentController</uref></item>
|
||||
<item><uref url="NSDrawer.html">NSDrawer</uref></item>
|
||||
<item><uref url="NSEPSImageRep.html">NSEPSImageRep</uref></item>
|
||||
<item><uref url="NSEvent.html">NSEvent</uref></item>
|
||||
<item><uref url="NSFileWrapper.html">NSFileWrapper</uref></item>
|
||||
|
@ -85,6 +86,7 @@
|
|||
<item><uref url="NSMutableAttributedStringAdditions.html">NSMutableAttributedStringAdditions</uref></item>
|
||||
<item><uref url="NSMutableParagraphStyle.html">NSMutableParagraphStyle</uref></item>
|
||||
<item><uref url="NSOpenPanel.html">NSOpenPanel</uref></item>
|
||||
<item><uref url="NSOutlineView.html">NSOutlineView</uref></item>
|
||||
<item><uref url="NSPICTImageRep.html">NSPICTImageRep</uref></item>
|
||||
<item><uref url="NSPageLayout.html">NSPageLayout</uref></item>
|
||||
<item><uref url="NSPanel.html">NSPanel</uref></item>
|
||||
|
@ -111,6 +113,9 @@
|
|||
<item><uref url="NSSpellChecker.html">NSSpellChecker</uref></item>
|
||||
<item><uref url="NSSpellServer.html">NSSpellServer</uref></item>
|
||||
<item><uref url="NSSplitView.html">NSSplitView</uref></item>
|
||||
<item><uref url="NSSound.html">NSSound</uref></item>
|
||||
<item><uref url="NSStepper.html">NSStepper</uref></item>
|
||||
<item><uref url="NSStepperCell.html">NSStepperCell</uref></item>
|
||||
<item><uref url="NSStringAdditions.html">NSStringAdditions</uref></item>
|
||||
<item><uref url="NSTabView.html">NSTabView</uref></item>
|
||||
<item><uref url="NSTabViewItem.html">NSTabViewItem</uref></item>
|
||||
|
@ -127,6 +132,8 @@
|
|||
<item><uref url="NSTextStorage.html">NSTextStorage</uref></item>
|
||||
<item><uref url="NSTextTab.html">NSTextTab</uref></item>
|
||||
<item><uref url="NSTextView.html">NSTextView</uref></item>
|
||||
<item><uref url="NSToolbar.html">NSToolbar</uref></item>
|
||||
<item><uref url="NSToolbarItem.html">NSToolbarItem</uref></item>
|
||||
<item><uref url="NSView.html">NSView</uref></item>
|
||||
<item><uref url="NSWindow.html">NSWindow</uref></item>
|
||||
<item><uref url="NSWindowController.html">NSWindowController</uref></item>
|
||||
|
|
|
@ -453,6 +453,7 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
nc = [unarchiver decodeIntWithName:@"numberOfColumns"];
|
||||
cell_array = [unarchiver decodeObjectWithName:@"cells"];
|
||||
[self renewRows:nr columns:nc];
|
||||
_selectedRow = _selectedColumn = 0;
|
||||
for (i = 0; (i < [cell_array count]) && (i < nr*nc); i++)
|
||||
{
|
||||
id cell = [cell_array objectAtIndex:i];
|
||||
|
|
|
@ -53,9 +53,6 @@
|
|||
#include <AppKit/NSWorkspace.h>
|
||||
#include <AppKit/PSOperators.h>
|
||||
|
||||
#include <gnustep/base/GSLocale.h>
|
||||
#include <locale.h>
|
||||
|
||||
#define NSNUMBER(a) [NSNumber numberWithInt: (a)]
|
||||
#define NSFNUMBER(a) [NSNumber numberWithFloat: (a)]
|
||||
|
||||
|
@ -880,7 +877,6 @@ scaleRect(NSRect rect, double scale)
|
|||
int i, dir;
|
||||
BOOL knowsPageRange, allPages;
|
||||
NSRange viewPageRange;
|
||||
NSString *clocale;
|
||||
NSMutableDictionary *dict;
|
||||
page_info_t info;
|
||||
|
||||
|
@ -941,12 +937,6 @@ scaleRect(NSRect rect, double scale)
|
|||
info: &info];
|
||||
}
|
||||
|
||||
/* Reset the current locale to a generic C locale so numbers
|
||||
get printed correctly for PostScriptl
|
||||
Save the current locale for later. */
|
||||
clocale = GSSetLocale(LC_NUMERIC, nil);
|
||||
GSSetLocale(LC_NUMERIC, @"C");
|
||||
|
||||
/* Print the header information */
|
||||
[_view beginDocument];
|
||||
|
||||
|
@ -1013,7 +1003,6 @@ scaleRect(NSRect rect, double scale)
|
|||
[_view _endSheet];
|
||||
}
|
||||
[_view endDocument];
|
||||
GSSetLocale(LC_NUMERIC, clocale);
|
||||
|
||||
/* Setup/reset for next time */
|
||||
[dict setObject: NSNUMBER(info.last) forKey: NSPrintLastPage];
|
||||
|
@ -1286,13 +1275,6 @@ scaleRect(NSRect rect, double scale)
|
|||
|
||||
- (void) _print
|
||||
{
|
||||
NSString *clocale;
|
||||
/* Reset the current locale to a generic C locale so numbers
|
||||
get printed correctly for PostScript (maybe we should only
|
||||
set the numeric locale?). Save the current locale for later. */
|
||||
clocale = GSSetLocale(LC_NUMERIC, nil);
|
||||
GSSetLocale(LC_NUMERIC, @"C");
|
||||
|
||||
/* Save this for the view to look at. Seems like there should
|
||||
be a better way to pass it to beginDocument */
|
||||
[[_printInfo dictionary] setObject: [NSValue valueWithRect: _rect]
|
||||
|
@ -1301,8 +1283,6 @@ scaleRect(NSRect rect, double scale)
|
|||
[_view beginPageInRect: _rect atPlacement: NSMakePoint(0,0)];
|
||||
[_view displayRectIgnoringOpacity: _rect];
|
||||
[_view endDocument];
|
||||
|
||||
GSSetLocale(LC_NUMERIC, clocale);
|
||||
}
|
||||
|
||||
- (BOOL)isEPSOperation
|
||||
|
@ -1382,16 +1362,7 @@ scaleRect(NSRect rect, double scale)
|
|||
|
||||
- (void) _print
|
||||
{
|
||||
NSString *clocale;
|
||||
/* Reset the current locale to a generic C locale so numbers
|
||||
get printed correctly for PostScript (maybe we should only
|
||||
set the numeric locale?). Save the current locale for later. */
|
||||
clocale = GSSetLocale(LC_NUMERIC, nil);
|
||||
GSSetLocale(LC_NUMERIC, @"C");
|
||||
|
||||
[_view displayRectIgnoringOpacity: _rect];
|
||||
|
||||
GSSetLocale(LC_NUMERIC, clocale);
|
||||
}
|
||||
|
||||
- (BOOL)deliverResult
|
||||
|
|
|
@ -141,7 +141,7 @@ static float scrollerWidth;
|
|||
_hPageScroll = 10;
|
||||
_vLineScroll = 10;
|
||||
_vPageScroll = 10;
|
||||
_borderType = NSBezelBorder;
|
||||
_borderType = NSNoBorder;
|
||||
_scrollsDynamically = YES;
|
||||
[self tile];
|
||||
|
||||
|
|
Loading…
Reference in a new issue