Clean build

This commit is contained in:
Gregory John Casamento 2019-11-22 02:16:05 -05:00
parent bd8d45d9ff
commit 10a81f89f3
6 changed files with 29 additions and 7 deletions

View file

@ -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>

View file

@ -35,9 +35,10 @@ extern "C" {
@interface NSPDFImageRep : NSImageRep
{
NSData *_data;
NSData *_imageData;
NSRect _bounds;
NSInteger _pageCount;
NSInteger _currentPage;
NSData *_pdfRepresentation;
}

View file

@ -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)

View file

@ -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

View file

@ -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 \

View file

@ -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