NSDocumentController.inc 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. { Parsed from Appkit.framework NSDocumentController.h }
  2. { Version: 2.1.5 - Fri Feb 11 21:45:55 CET 2011 }
  3. {$ifdef TYPES}
  4. {$ifndef NSDOCUMENTCONTROLLER_PAS_T}
  5. {$define NSDOCUMENTCONTROLLER_PAS_T}
  6. {$endif}
  7. {$endif}
  8. {$ifdef RECORDS}
  9. {$ifndef NSDOCUMENTCONTROLLER_PAS_R}
  10. {$define NSDOCUMENTCONTROLLER_PAS_R}
  11. {$endif}
  12. {$endif}
  13. {$ifdef FUNCTIONS}
  14. {$ifndef NSDOCUMENTCONTROLLER_PAS_F}
  15. {$define NSDOCUMENTCONTROLLER_PAS_F}
  16. {$endif}
  17. {$endif}
  18. {$ifdef EXTERNAL_SYMBOLS}
  19. {$ifndef NSDOCUMENTCONTROLLER_PAS_S}
  20. {$define NSDOCUMENTCONTROLLER_PAS_S}
  21. {$endif}
  22. {$endif}
  23. {$ifdef FORWARD}
  24. NSDocumentController = objcclass;
  25. NSDocumentControllerPointer = ^NSDocumentController;
  26. NSDocumentControllerPtr = NSDocumentControllerPointer;
  27. {$endif}
  28. {$ifdef CLASSES}
  29. {$ifndef NSDOCUMENTCONTROLLER_PAS_C}
  30. {$define NSDOCUMENTCONTROLLER_PAS_C}
  31. { NSDocumentController }
  32. NSDocumentController = objcclass external (NSObject, NSCodingProtocol, NSUserInterfaceValidationsProtocol)
  33. private
  34. _documents: id;
  35. _moreVars: id;
  36. _cachedTypeDescriptions: NSArray;
  37. _recents: NSMutableDictionary;
  38. _recentsLimit: cint;
  39. public
  40. class function sharedDocumentController: id; message 'sharedDocumentController';
  41. function init: id; message 'init';
  42. function documents: NSArray; message 'documents';
  43. function currentDocument: id; message 'currentDocument';
  44. function currentDirectory: NSString; message 'currentDirectory';
  45. function documentForURL(absoluteURL: NSURL): id; message 'documentForURL:';
  46. function documentForWindow(window: NSWindow): id; message 'documentForWindow:';
  47. procedure addDocument(document: NSDocument); message 'addDocument:';
  48. procedure removeDocument(document: NSDocument); message 'removeDocument:';
  49. procedure newDocument(sender: id); message 'newDocument:';
  50. function openUntitledDocumentAndDisplay_error(displayDocument: Boolean; outError: NSErrorPointer): id; message 'openUntitledDocumentAndDisplay:error:';
  51. function makeUntitledDocumentOfType_error(typeName: NSString; outError: NSErrorPointer): id; message 'makeUntitledDocumentOfType:error:';
  52. procedure openDocument(sender: id); message 'openDocument:';
  53. function URLsFromRunningOpenPanel: NSArray; message 'URLsFromRunningOpenPanel';
  54. function runModalOpenPanel_forTypes(openPanel: NSOpenPanel; types: NSArray): NSInteger; message 'runModalOpenPanel:forTypes:';
  55. function openDocumentWithContentsOfURL_display_error(absoluteURL: NSURL; displayDocument: Boolean; outError: NSErrorPointer): id; message 'openDocumentWithContentsOfURL:display:error:';
  56. function makeDocumentWithContentsOfURL_ofType_error(absoluteURL: NSURL; typeName: NSString; outError: NSErrorPointer): id; message 'makeDocumentWithContentsOfURL:ofType:error:';
  57. function reopenDocumentForURL_withContentsOfURL_error(absoluteDocumentURL: NSURL; absoluteDocumentContentsURL: NSURL; outError: NSErrorPointer): Boolean; message 'reopenDocumentForURL:withContentsOfURL:error:';
  58. function makeDocumentForURL_withContentsOfURL_ofType_error(absoluteDocumentURL: NSURL; absoluteDocumentContentsURL: NSURL; typeName: NSString; outError: NSErrorPointer): id; message 'makeDocumentForURL:withContentsOfURL:ofType:error:';
  59. procedure setAutosavingDelay(autosavingDelay_: NSTimeInterval); message 'setAutosavingDelay:';
  60. function autosavingDelay: NSTimeInterval; message 'autosavingDelay';
  61. procedure saveAllDocuments(sender: id); message 'saveAllDocuments:';
  62. function hasEditedDocuments: Boolean; message 'hasEditedDocuments';
  63. procedure reviewUnsavedDocumentsWithAlertTitle_cancellable_delegate_didReviewAllSelector_contextInfo(title: NSString; cancellable: Boolean; delegate: id; didReviewAllSelector: SEL; contextInfo: Pointer); message 'reviewUnsavedDocumentsWithAlertTitle:cancellable:delegate:didReviewAllSelector:contextInfo:';
  64. procedure closeAllDocumentsWithDelegate_didCloseAllSelector_contextInfo(delegate: id; didCloseAllSelector: SEL; contextInfo: Pointer); message 'closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:';
  65. procedure presentError_modalForWindow_delegate_didPresentSelector_contextInfo(error: NSError; window: NSWindow; delegate: id; didPresentSelector: SEL; contextInfo: Pointer); message 'presentError:modalForWindow:delegate:didPresentSelector:contextInfo:';
  66. function presentError(error: NSError): Boolean; message 'presentError:';
  67. function willPresentError(error: NSError): NSError; message 'willPresentError:';
  68. function maximumRecentDocumentCount: NSUInteger; message 'maximumRecentDocumentCount';
  69. procedure clearRecentDocuments(sender: id); message 'clearRecentDocuments:';
  70. procedure noteNewRecentDocument(document: NSDocument); message 'noteNewRecentDocument:';
  71. procedure noteNewRecentDocumentURL(absoluteURL: NSURL); message 'noteNewRecentDocumentURL:';
  72. function recentDocumentURLs: NSArray; message 'recentDocumentURLs';
  73. function defaultType: NSString; message 'defaultType';
  74. function typeForContentsOfURL_error(inAbsoluteURL: NSURL; outError: NSErrorPointer): NSString; message 'typeForContentsOfURL:error:';
  75. function documentClassNames: NSArray; message 'documentClassNames';
  76. function documentClassForType(typeName: NSString): Pobjc_class; message 'documentClassForType:';
  77. function displayNameForType(typeName: NSString): NSString; message 'displayNameForType:';
  78. function validateUserInterfaceItem(anItem: NSValidatedUserInterfaceItemProtocol): Boolean; message 'validateUserInterfaceItem:';
  79. { Adopted Protocols }
  80. procedure encodeWithCoder(aCoder: NSCoder);
  81. function initWithCoder(aDecoder: NSCoder): id;
  82. end;
  83. { NSDeprecated_NSDocumentControllerCategory }
  84. NSDeprecated_NSDocumentControllerCategory = objccategory external name 'NSDeprecated' (NSDocumentController)
  85. function fileExtensionsFromType(typeName: NSString): NSArray; message 'fileExtensionsFromType:'; deprecated 'in Mac OS X 10.5 and later';
  86. function typeFromFileExtension(fileNameExtensionOrHFSFileType: NSString): NSString; message 'typeFromFileExtension:'; deprecated 'in Mac OS X 10.5 and later';
  87. function documentForFileName(fileName: NSString): id; message 'documentForFileName:'; deprecated 'in Mac OS X 10.4 and later';
  88. function fileNamesFromRunningOpenPanel: NSArray; message 'fileNamesFromRunningOpenPanel'; deprecated 'in Mac OS X 10.4 and later';
  89. function makeDocumentWithContentsOfFile_ofType(fileName: NSString; type_: NSString): id; message 'makeDocumentWithContentsOfFile:ofType:'; deprecated 'in Mac OS X 10.4 and later';
  90. function makeDocumentWithContentsOfURL_ofType(url: NSURL; type_: NSString): id; message 'makeDocumentWithContentsOfURL:ofType:'; deprecated 'in Mac OS X 10.4 and later';
  91. function makeUntitledDocumentOfType(type_: NSString): id; message 'makeUntitledDocumentOfType:'; deprecated 'in Mac OS X 10.4 and later';
  92. function openDocumentWithContentsOfFile_display(fileName: NSString; display: Boolean): id; message 'openDocumentWithContentsOfFile:display:'; deprecated 'in Mac OS X 10.4 and later';
  93. function openDocumentWithContentsOfURL_display(url: NSURL; display: Boolean): id; message 'openDocumentWithContentsOfURL:display:'; deprecated 'in Mac OS X 10.4 and later';
  94. function openUntitledDocumentOfType_display(type_: NSString; display: Boolean): id; message 'openUntitledDocumentOfType:display:'; deprecated 'in Mac OS X 10.4 and later';
  95. procedure setShouldCreateUI(flag: Boolean); message 'setShouldCreateUI:'; deprecated 'in Mac OS X 10.4 and later';
  96. function shouldCreateUI: Boolean; message 'shouldCreateUI'; deprecated 'in Mac OS X 10.4 and later';
  97. end;
  98. {$endif}
  99. {$endif}