mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Clean build
This commit is contained in:
parent
bd8d45d9ff
commit
10a81f89f3
6 changed files with 29 additions and 7 deletions
|
@ -97,6 +97,10 @@
|
|||
#import <AppKit/NSPanel.h>
|
||||
#import <AppKit/NSPasteboard.h>
|
||||
#import <AppKit/NSPasteboardItem.h>
|
||||
#import <AppKit/NSPDFInfo.h>
|
||||
#import <AppKit/NSPDFImageRep.h>
|
||||
#import <AppKit/NSPDFPanel.h>
|
||||
#import <AppKit/NSPICTImageRep.h>
|
||||
#import <AppKit/NSPopover.h>
|
||||
#import <AppKit/NSPopUpButton.h>
|
||||
#import <AppKit/NSPopUpButtonCell.h>
|
||||
|
|
|
@ -35,9 +35,10 @@ extern "C" {
|
|||
|
||||
@interface NSPDFImageRep : NSImageRep
|
||||
{
|
||||
NSData *_data;
|
||||
NSData *_imageData;
|
||||
NSRect _bounds;
|
||||
NSInteger _pageCount;
|
||||
NSInteger _currentPage;
|
||||
NSData *_pdfRepresentation;
|
||||
}
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _NSPDFInfo_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSPDFInfo_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#include <AppKit/NSObject.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _NSPDFPanel_h_GNUSTEP_GUI_INCLUDE
|
||||
#define _NSPDFPanel_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#include <AppKit/NSPanel.h>
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
|
||||
|
@ -33,7 +33,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
@interface NSPDFPanel : NSPanel
|
||||
@interface NSPDFPanel : NSObject
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -138,6 +138,10 @@ NSPageLayout.m \
|
|||
NSPanel.m \
|
||||
NSParagraphStyle.m \
|
||||
NSPasteboardItem.m \
|
||||
NSPDFInfo.m \
|
||||
NSPDFImageRep.m \
|
||||
NSPDFPanel.m \
|
||||
NSPICTImageRep.m \
|
||||
NSPopover.m \
|
||||
NSPopUpButton.m \
|
||||
NSPopUpButtonCell.m \
|
||||
|
@ -370,6 +374,10 @@ NSPanel.h \
|
|||
NSParagraphStyle.h \
|
||||
NSPasteboard.h \
|
||||
NSPasteboardItem.h \
|
||||
NSPDFInfo.h \
|
||||
NSPDFImageRep.h \
|
||||
NSPDFPanel.h \
|
||||
NSPICTImageRep.h \
|
||||
NSPopover.h \
|
||||
NSPopUpButton.h \
|
||||
NSPopUpButtonCell.h \
|
||||
|
|
|
@ -32,33 +32,42 @@
|
|||
|
||||
- (instancetype) initWithData: (NSData *)imageData
|
||||
{
|
||||
self = [super init];
|
||||
if(self != nil)
|
||||
{
|
||||
ASSIGNCOPY(_imageData, imageData);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSRect) bounds
|
||||
{
|
||||
return _bounds;
|
||||
}
|
||||
|
||||
- (void) setBounds: (NSRect)bounds
|
||||
{
|
||||
_bounds = bounds;
|
||||
}
|
||||
|
||||
- (NSInteger) currentPage
|
||||
{
|
||||
return 0;
|
||||
return _currentPage;
|
||||
}
|
||||
|
||||
- (void) setCurrentPage: (NSInteger)currentPage
|
||||
{
|
||||
_currentPage = currentPage;
|
||||
}
|
||||
|
||||
- (NSInteger) pageCount
|
||||
{
|
||||
return 0;
|
||||
return _pageCount;
|
||||
}
|
||||
|
||||
- (NSData *) PDFRepresentation
|
||||
{
|
||||
return nil;
|
||||
return _pdfRepresentation;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue