[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:
Родитель
6d039cb969
Коммит
e944b58206
|
@ -508,9 +508,13 @@ namespace PdfKit {
|
||||||
}
|
}
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
|
[DisableDefaultCtor]
|
||||||
[BaseType (typeof (PdfAction), Name = "PDFActionResetForm")]
|
[BaseType (typeof (PdfAction), Name = "PDFActionResetForm")]
|
||||||
interface PdfActionResetForm {
|
interface PdfActionResetForm {
|
||||||
//has a public Init ???
|
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||||
|
[Export ("init")]
|
||||||
|
[DesignatedInitializer]
|
||||||
|
IntPtr Constructor ();
|
||||||
|
|
||||||
//NSArray of NSString
|
//NSArray of NSString
|
||||||
[Export ("fields"), NullAllowed]
|
[Export ("fields"), NullAllowed]
|
||||||
|
@ -571,9 +575,12 @@ namespace PdfKit {
|
||||||
[Export ("userName")]
|
[Export ("userName")]
|
||||||
string UserName { get; set; }
|
string UserName { get; set; }
|
||||||
|
|
||||||
[NoiOS]
|
|
||||||
[Export ("popup")]
|
[Export ("popup")]
|
||||||
|
#if MONOMAC
|
||||||
PdfAnnotationPopup Popup { get; set; }
|
PdfAnnotationPopup Popup { get; set; }
|
||||||
|
#else
|
||||||
|
PdfAnnotation Popup { get; set; }
|
||||||
|
#endif
|
||||||
|
|
||||||
[Export ("shouldDisplay")]
|
[Export ("shouldDisplay")]
|
||||||
bool ShouldDisplay { get; set; }
|
bool ShouldDisplay { get; set; }
|
||||||
|
@ -1083,6 +1090,9 @@ namespace PdfKit {
|
||||||
[BaseType (typeof (NSObject), Name = "PDFDestination")]
|
[BaseType (typeof (NSObject), Name = "PDFDestination")]
|
||||||
interface PdfDestination : NSCopying {
|
interface PdfDestination : NSCopying {
|
||||||
|
|
||||||
|
[Field ("kPDFDestinationUnspecifiedValue")]
|
||||||
|
nfloat UnspecifiedValue { get; }
|
||||||
|
|
||||||
[DesignatedInitializer]
|
[DesignatedInitializer]
|
||||||
[Export ("initWithPage:atPoint:")]
|
[Export ("initWithPage:atPoint:")]
|
||||||
IntPtr Constructor (PdfPage page, CGPoint point);
|
IntPtr Constructor (PdfPage page, CGPoint point);
|
||||||
|
@ -1104,6 +1114,7 @@ namespace PdfKit {
|
||||||
|
|
||||||
//Add attributes for delegates/events
|
//Add attributes for delegates/events
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
|
[DisableDefaultCtor]
|
||||||
[BaseType (typeof (NSObject), Name = "PDFDocument", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PdfDocumentDelegate) })]
|
[BaseType (typeof (NSObject), Name = "PDFDocument", Delegates = new string [] { "WeakDelegate" }, Events = new Type [] { typeof (PdfDocumentDelegate) })]
|
||||||
interface PdfDocument : NSCopying {
|
interface PdfDocument : NSCopying {
|
||||||
|
|
||||||
|
@ -1147,6 +1158,11 @@ namespace PdfKit {
|
||||||
[Notification]
|
[Notification]
|
||||||
NSString DidEndPageWriteNotification { get; }
|
NSString DidEndPageWriteNotification { get; }
|
||||||
|
|
||||||
|
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||||
|
[Export ("init")]
|
||||||
|
[DesignatedInitializer]
|
||||||
|
IntPtr Constructor ();
|
||||||
|
|
||||||
[Export ("initWithURL:")]
|
[Export ("initWithURL:")]
|
||||||
[DesignatedInitializer]
|
[DesignatedInitializer]
|
||||||
IntPtr Constructor (NSUrl url);
|
IntPtr Constructor (NSUrl url);
|
||||||
|
@ -1398,9 +1414,15 @@ namespace PdfKit {
|
||||||
}
|
}
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
|
[DisableDefaultCtor]
|
||||||
[BaseType (typeof (NSObject), Name = "PDFOutline")]
|
[BaseType (typeof (NSObject), Name = "PDFOutline")]
|
||||||
interface PdfOutline {
|
interface PdfOutline {
|
||||||
|
|
||||||
|
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||||
|
[Export ("init")]
|
||||||
|
[DesignatedInitializer]
|
||||||
|
IntPtr Constructor ();
|
||||||
|
|
||||||
[Export ("document")]
|
[Export ("document")]
|
||||||
PdfDocument Document { get; }
|
PdfDocument Document { get; }
|
||||||
|
|
||||||
|
@ -1438,9 +1460,15 @@ namespace PdfKit {
|
||||||
}
|
}
|
||||||
|
|
||||||
[iOS (11,0)]
|
[iOS (11,0)]
|
||||||
|
[DisableDefaultCtor]
|
||||||
[BaseType (typeof (NSObject), Name = "PDFPage")]
|
[BaseType (typeof (NSObject), Name = "PDFPage")]
|
||||||
interface PdfPage : NSCopying {
|
interface PdfPage : NSCopying {
|
||||||
|
|
||||||
|
// - (instancetype)init NS_DESIGNATED_INITIALIZER;
|
||||||
|
[Export ("init")]
|
||||||
|
[DesignatedInitializer]
|
||||||
|
IntPtr Constructor ();
|
||||||
|
|
||||||
[DesignatedInitializer]
|
[DesignatedInitializer]
|
||||||
[Export ("initWithImage:")]
|
[Export ("initWithImage:")]
|
||||||
IntPtr Constructor (NSImage image);
|
IntPtr Constructor (NSImage image);
|
||||||
|
@ -1765,6 +1793,10 @@ namespace PdfKit {
|
||||||
[Export ("interpolationQuality", ArgumentSemantic.Assign)]
|
[Export ("interpolationQuality", ArgumentSemantic.Assign)]
|
||||||
PdfInterpolationQuality InterpolationQuality { get; set; }
|
PdfInterpolationQuality InterpolationQuality { get; set; }
|
||||||
|
|
||||||
|
[iOS (12,0), Mac (10,14, onlyOn64: true)]
|
||||||
|
[Export ("pageShadowsEnabled")]
|
||||||
|
bool PageShadowsEnabled { get; [Bind ("enablePageShadows:")] set; }
|
||||||
|
|
||||||
[NoMac]
|
[NoMac]
|
||||||
[Export ("usePageViewController:withViewOptions:")]
|
[Export ("usePageViewController:withViewOptions:")]
|
||||||
void UsePageViewController (bool enable, [NullAllowed] NSDictionary viewOptions);
|
void UsePageViewController (bool enable, [NullAllowed] NSDictionary viewOptions);
|
||||||
|
|
|
@ -219,6 +219,9 @@ namespace Introspection {
|
||||||
if (!TestRuntime.CheckXcodeVersion (9, 0))
|
if (!TestRuntime.CheckXcodeVersion (9, 0))
|
||||||
prefix = Path.Combine (Path.GetDirectoryName (prefix), "PrivateFrameworks");
|
prefix = Path.Combine (Path.GetDirectoryName (prefix), "PrivateFrameworks");
|
||||||
break;
|
break;
|
||||||
|
case "PdfKit":
|
||||||
|
libname = "PDFKit";
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
case "CoreAnimation":
|
case "CoreAnimation":
|
||||||
// generated code uses QuartzCore correctly - even if the [Field] property is wrong
|
// 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
|
# Field used in an EventArg based structure that are in documentation but not in headers
|
||||||
!unknown-field! PDFAnnotationHit bound
|
!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
|
|
Загрузка…
Ссылка в новой задаче