stubbed export plugin interface

This commit is contained in:
Michael Starke
2018-05-08 15:16:06 +02:00
parent 11244297df
commit 535a06ff5a

View File

@@ -25,9 +25,9 @@
NS_ASSUME_NONNULL_BEGIN
@class MPPluginHost;
@class MPAutotypeCommand;
@class KPKEntry;
@class KPKAttribute;
@class KPKTree;
@interface MPPlugin : NSObject
@@ -85,6 +85,21 @@ NS_ASSUME_NONNULL_BEGIN
- (NSString *)initialValueForAttributeWithKey:(NSString *)key;
@end
@protocol MPExportPluginViewController <NSObject>
@required
@property (nonatomic, copy) NSDictionary *exportOptions;
@end
@protocol MPExportPlugin <NSObject>
@required
/* Ideally supply a list of Formats supported. This format specifier is used when being called */
@property (nonatomic, copy) NSDictionary<NSString *, NSString *>* localizedSuportedFormats;
- (NSData *)dataForTree:(KPKTree *)tree withFormat:(NSString *)format options:(NSDictionary *)options;
@optional
- (NSViewController<MPExportPluginViewController> *)exportViewControllerForTree:(KPKTree *)tree withFormat:(NSString *)format;
@end
@interface MPPlugin (Deprecated)
- (instancetype)initWithPluginManager:(id)manager;