[PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3 (#4439)

* [PDFKit] Update bindings to Xcode 10 Beta 1, 2 & 3

* Removes redundant availability attrib and fixes PDFKit library mapping case in xtro
This commit is contained in:
Alex Soto 2018-07-13 14:14:05 -05:00 коммит произвёл GitHub
Родитель 6d039cb969
Коммит e944b58206
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 76 добавлений и 55 удалений

Просмотреть файл

@ -508,9 +508,13 @@ namespace PdfKit {
}
[iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof (PdfAction), Name = "PDFActionResetForm")]
interface PdfActionResetForm {
//has a public Init ???
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
[Export ("init")]
[DesignatedInitializer]
IntPtr Constructor ();
//NSArray of NSString
[Export ("fields"), NullAllowed]
@ -571,9 +575,12 @@ namespace PdfKit {
[Export ("userName")]
string UserName { get; set; }
[NoiOS]
[Export ("popup")]
#if MONOMAC
PdfAnnotationPopup Popup { get; set; }
#else
PdfAnnotation Popup { get; set; }
#endif
[Export ("shouldDisplay")]
bool ShouldDisplay { get; set; }
@ -1083,6 +1090,9 @@ namespace PdfKit {
[BaseType (typeof (NSObject), Name = "PDFDestination")]
interface PdfDestination : NSCopying {
[Field ("kPDFDestinationUnspecifiedValue")]
nfloat UnspecifiedValue { get; }
[DesignatedInitializer]
[Export ("initWithPage:atPoint:")]
IntPtr Constructor (PdfPage page, CGPoint point);
@ -1104,6 +1114,7 @@ namespace PdfKit {
//Add attributes for delegates/events
[iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "PDFDocument", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PdfDocumentDelegate) })]
interface PdfDocument : NSCopying {
@ -1147,6 +1158,11 @@ namespace PdfKit {
[Notification]
NSString DidEndPageWriteNotification { get; }
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
[Export ("init")]
[DesignatedInitializer]
IntPtr Constructor ();
[Export ("initWithURL:")]
[DesignatedInitializer]
IntPtr Constructor (NSUrl url);
@ -1398,9 +1414,15 @@ namespace PdfKit {
}
[iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "PDFOutline")]
interface PdfOutline {
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
[Export ("init")]
[DesignatedInitializer]
IntPtr Constructor ();
[Export ("document")]
PdfDocument Document { get; }
@ -1438,9 +1460,15 @@ namespace PdfKit {
}
[iOS (11,0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject), Name = "PDFPage")]
interface PdfPage : NSCopying {
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
[Export ("init")]
[DesignatedInitializer]
IntPtr Constructor ();
[DesignatedInitializer]
[Export ("initWithImage:")]
IntPtr Constructor (NSImage image);
@ -1765,6 +1793,10 @@ namespace PdfKit {
[Export ("interpolationQuality", ArgumentSemantic.Assign)]
PdfInterpolationQuality InterpolationQuality { get; set; }
[iOS (12,0), Mac (10,14, onlyOn64: true)]
[Export ("pageShadowsEnabled")]
bool PageShadowsEnabled { get; [Bind ("enablePageShadows:")] set; }
[NoMac]
[Export ("usePageViewController:withViewOptions:")]
void UsePageViewController (bool enable, [NullAllowed] NSDictionary viewOptions);

Просмотреть файл

@ -219,6 +219,9 @@ namespace Introspection {
if (!TestRuntime.CheckXcodeVersion (9, 0))
prefix = Path.Combine (Path.GetDirectoryName (prefix), "PrivateFrameworks");
break;
case "PdfKit":
libname = "PDFKit";
break;
#endif
case "CoreAnimation":
// generated code uses QuartzCore correctly - even if the [Field] property is wrong

Просмотреть файл

@ -1,2 +1,41 @@
# Field used in an EventArg based structure that are in documentation but not in headers
!unknown-field! PDFAnnotationHit bound
# Deprecated
!missing-selector! PDFAnnotation::initWithDictionary:forPage: not bound
!missing-field! kPDFAnnotationKey_Action not bound
!missing-field! kPDFAnnotationKey_AdditionalActions not bound
!missing-field! kPDFAnnotationKey_AppearanceDictionary not bound
!missing-field! kPDFAnnotationKey_AppearanceState not bound
!missing-field! kPDFAnnotationKey_Border not bound
!missing-field! kPDFAnnotationKey_BorderStyle not bound
!missing-field! kPDFAnnotationKey_Color not bound
!missing-field! kPDFAnnotationKey_Contents not bound
!missing-field! kPDFAnnotationKey_Date not bound
!missing-field! kPDFAnnotationKey_DefaultAppearance not bound
!missing-field! kPDFAnnotationKey_Destination not bound
!missing-field! kPDFAnnotationKey_Flags not bound
!missing-field! kPDFAnnotationKey_HighlightingMode not bound
!missing-field! kPDFAnnotationKey_IconName not bound
!missing-field! kPDFAnnotationKey_Inklist not bound
!missing-field! kPDFAnnotationKey_InteriorColor not bound
!missing-field! kPDFAnnotationKey_LineEndingStyles not bound
!missing-field! kPDFAnnotationKey_LinePoints not bound
!missing-field! kPDFAnnotationKey_Name not bound
!missing-field! kPDFAnnotationKey_Open not bound
!missing-field! kPDFAnnotationKey_Page not bound
!missing-field! kPDFAnnotationKey_Parent not bound
!missing-field! kPDFAnnotationKey_Popup not bound
!missing-field! kPDFAnnotationKey_Quadding not bound
!missing-field! kPDFAnnotationKey_QuadPoints not bound
!missing-field! kPDFAnnotationKey_Rect not bound
!missing-field! kPDFAnnotationKey_Subtype not bound
!missing-field! kPDFAnnotationKey_TextLabel not bound
!missing-field! kPDFAnnotationKey_WidgetAppearanceDictionary not bound
!missing-field! kPDFAnnotationKey_WidgetDefaultValue not bound
!missing-field! kPDFAnnotationKey_WidgetFieldFlags not bound
!missing-field! kPDFAnnotationKey_WidgetFieldType not bound
!missing-field! kPDFAnnotationKey_WidgetMaxLen not bound
!missing-field! kPDFAnnotationKey_WidgetOptions not bound
!missing-field! kPDFAnnotationKey_WidgetTextLabelUI not bound
!missing-field! kPDFAnnotationKey_WidgetValue not bound

Просмотреть файл

@ -1,9 +0,0 @@
!missing-designated-initializer! PDFActionResetForm::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFDocument::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFOutline::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFPage::init is missing an [DesignatedInitializer] attribute
!missing-field! kPDFDestinationUnspecifiedValue not bound
!missing-selector! PDFAnnotation::popup not bound
!missing-selector! PDFAnnotation::setPopup: not bound
!missing-selector! PDFView::enablePageShadows: not bound
!missing-selector! PDFView::pageShadowsEnabled not bound

Просмотреть файл

@ -1,44 +0,0 @@
!missing-designated-initializer! PDFActionResetForm::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFDocument::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFOutline::init is missing an [DesignatedInitializer] attribute
!missing-designated-initializer! PDFPage::init is missing an [DesignatedInitializer] attribute
!missing-field! kPDFDestinationUnspecifiedValue not bound
!missing-selector! PDFAnnotation::initWithDictionary:forPage: not bound
!missing-selector! PDFView::enablePageShadows: not bound
!missing-selector! PDFView::pageShadowsEnabled not bound
!missing-field! kPDFAnnotationKey_Action not bound
!missing-field! kPDFAnnotationKey_AdditionalActions not bound
!missing-field! kPDFAnnotationKey_AppearanceDictionary not bound
!missing-field! kPDFAnnotationKey_AppearanceState not bound
!missing-field! kPDFAnnotationKey_Border not bound
!missing-field! kPDFAnnotationKey_BorderStyle not bound
!missing-field! kPDFAnnotationKey_Color not bound
!missing-field! kPDFAnnotationKey_Contents not bound
!missing-field! kPDFAnnotationKey_Date not bound
!missing-field! kPDFAnnotationKey_DefaultAppearance not bound
!missing-field! kPDFAnnotationKey_Destination not bound
!missing-field! kPDFAnnotationKey_Flags not bound
!missing-field! kPDFAnnotationKey_HighlightingMode not bound
!missing-field! kPDFAnnotationKey_IconName not bound
!missing-field! kPDFAnnotationKey_Inklist not bound
!missing-field! kPDFAnnotationKey_InteriorColor not bound
!missing-field! kPDFAnnotationKey_LineEndingStyles not bound
!missing-field! kPDFAnnotationKey_LinePoints not bound
!missing-field! kPDFAnnotationKey_Name not bound
!missing-field! kPDFAnnotationKey_Open not bound
!missing-field! kPDFAnnotationKey_Page not bound
!missing-field! kPDFAnnotationKey_Parent not bound
!missing-field! kPDFAnnotationKey_Popup not bound
!missing-field! kPDFAnnotationKey_Quadding not bound
!missing-field! kPDFAnnotationKey_QuadPoints not bound
!missing-field! kPDFAnnotationKey_Rect not bound
!missing-field! kPDFAnnotationKey_Subtype not bound
!missing-field! kPDFAnnotationKey_TextLabel not bound
!missing-field! kPDFAnnotationKey_WidgetAppearanceDictionary not bound
!missing-field! kPDFAnnotationKey_WidgetDefaultValue not bound
!missing-field! kPDFAnnotationKey_WidgetFieldFlags not bound
!missing-field! kPDFAnnotationKey_WidgetFieldType not bound
!missing-field! kPDFAnnotationKey_WidgetMaxLen not bound
!missing-field! kPDFAnnotationKey_WidgetOptions not bound
!missing-field! kPDFAnnotationKey_WidgetTextLabelUI not bound
!missing-field! kPDFAnnotationKey_WidgetValue not bound