In order for AbiWord to interact with the plug-in, the plug-in needs to implement this protocol. More...
#import <xap_CocoaPlugin.h>
Public Member Functions | |
(BOOL) | - pluginCanRegisterForAbiWord:version:interface: |
This will be called immediately after initialization;. | |
(BOOL) | - pluginIsActive |
Returns whether the plug-in is active or not. | |
(void) | - pluginActivate |
This is a request for the plug-in to activate. | |
(void) | - pluginDeactivate |
This is a request for the plug-in to deactivate. | |
(BOOL) | - pluginCanDeactivate |
The plug-in should attempt to save all files, etc., since it is about to be asked to deactivate. | |
(void) | - pluginCurrentDocumentHasChanged |
AbiWord will call this if the focus changes to a different document, or different window or panel, or if the current document is closed. | |
(NSString *) | - pluginName |
The name of the plug-in. | |
(NSString *) | - pluginAuthor |
The name(s) of the plug-in author(s). | |
(NSString *) | - pluginVersion |
The version of the plug-in. | |
(NSString *) | - pluginDescription |
A short description of what the plug-in does. | |
(NSString *) | - pluginUsage |
A short description of how to use the plug-in. |
In order for AbiWord to interact with the plug-in, the plug-in needs to implement this protocol.
As a minimum, the bundle's principal class must implement the NSObject protocol and the XAP_CocoaPluginDelegate's pluginCanRegisterForAbiWord:version:interface: method.
- (void) pluginActivate |
This is a request for the plug-in to activate.
- (NSString *) pluginAuthor |
The name(s) of the plug-in author(s).
- (BOOL) pluginCanDeactivate |
The plug-in should attempt to save all files, etc., since it is about to be asked to deactivate.
Returning NO will not necessarily prevent the request to deactivate.
- (BOOL) pluginCanRegisterForAbiWord: | (XAP_CocoaPlugin *) | AbiWord | ||
version: | (NSString *) | version | ||
interface: | (unsigned long) | interface | ||
This will be called immediately after initialization;.
If the bundle's principal class implements *only* this method, it must immediately set the real XAP_CocoaPluginDelegate object as AbiWord's delegate using XAP_CocoaPlugin's setDelegate: method.
The plug-in should not activate - wait for XAP_CocoaPluginDelegate's pluginActivate: method to be called.
AbiWord | The main interface to AbiWord. | |
version | This is the AbiWord version string (e.g., "2.2.5"). | |
interface | This is the date (YYYYMMDD) that the CocoaPlugin API was last changed. |
- (void) pluginCurrentDocumentHasChanged |
AbiWord will call this if the focus changes to a different document, or different window or panel, or if the current document is closed.
- (void) pluginDeactivate |
This is a request for the plug-in to deactivate.
The plug-in *must* comply.
- (NSString *) pluginDescription |
A short description of what the plug-in does.
- (BOOL) pluginIsActive |
Returns whether the plug-in is active or not.
- (NSString *) pluginName |
The name of the plug-in.
- (NSString *) pluginUsage |
A short description of how to use the plug-in.
- (NSString *) pluginVersion |
The version of the plug-in.