Added rudimentary export plugin support

This commit is contained in:
Michael Starke
2019-08-26 17:25:25 +02:00
parent 3b7bf0d77b
commit 2103eb8875
8 changed files with 75 additions and 14 deletions

View File

@@ -141,9 +141,20 @@ FOUNDATION_EXPORT NSString *const MPPluginDescriptionInfoDictionaryKey;
@param panel The open panel used for selecting what file(s) to import
@return The KPKTree constructed from the selected input file(s)
*/
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
- (nullable KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel;
@end
@protocol MPExportPlugin <NSObject>
@required
- (void)prepareExportMenuItem:(NSMenuItem *)item;
- (void)prepareSavePanel:(NSSavePanel *)panel;
- (void)exportTree:(KPKTree *)tree forRunningSavePanel:(NSSavePanel *)panel;
@end
#pragma mark Deprecated
@interface MPPlugin (Deprecated)