#import <xap_CocoaToolProvider.h>
Public Member Functions | |
| (id) | - initWithName: |
| (void) | - dealloc |
| (NSString *) | - name |
| Get the name of the provider. | |
| (void) | - addTool: |
| Add a tool to the provider's list of tools. | |
| (void) | - removeToolWithIdentifier: |
| Remove a tool from the provider's list of tools. | |
| (id< NSObject, XAP_CocoaPlugin_Tool >) | - toolWithIdentifier: |
| Get the tool with the specified identifier. | |
| (NSArray *) | - toolIdentifiers |
| Get the identifiers of the tools provided. | |
| (NSString *) | - toolDescription: |
| See whether the provider provides a specific tool, and get the description (tooltip). | |
Static Public Member Functions | |
| (XAP_CocoaToolProvider *) | + AbiWordToolProvider |
Protected Attributes | |
| NSString * | m_name |
| NSMutableArray * | m_identifiers |
| NSMutableDictionary * | m_tools |
| + (XAP_CocoaToolProvider *) AbiWordToolProvider |
References AP_CocoaTool::addStandardToolsToProvider:.
Referenced by XAP_CocoaAppController::applicationDidFinishLaunching:.
| - (void) addTool: | (id <NSObject, XAP_CocoaPlugin_Tool>) | tool |
Add a tool to the provider's list of tools.
The provider will send the tool a setProvider: message.
| tool | An object which implements the XAP_CocoaPlugin_Tool protocol. |
References <XAP_CocoaPlugin_Tool>::identifier, m_identifiers, m_tools, and <XAP_CocoaPlugin_Tool>::setProvider:.
| - (void) dealloc |
References m_identifiers, m_name, and m_tools.
| - (id) initWithName: | (NSString *) | name |
References m_identifiers, m_name, m_tools, name, and UT_ASSERT.
| - (NSString *) name |
Get the name of the provider.
Reimplemented from <XAP_CocoaPlugin_ToolProvider>.
References m_name.
Referenced by initWithName:.
| - (void) removeToolWithIdentifier: | (NSString *) | identifier |
Remove a tool from the provider's list of tools.
The provider will send the tool a setProvider:nil message.
| identifier | The identifier of the tool which is to be removed. |
References m_identifiers, and m_tools.
| - (NSString *) toolDescription: | (NSString *) | identifier |
See whether the provider provides a specific tool, and get the description (tooltip).
| identifier | The internal identifier of the desired tool. |
Reimplemented from <XAP_CocoaPlugin_ToolProvider>.
References <XAP_CocoaPlugin_Tool>::description, and m_tools.
| - (NSArray *) toolIdentifiers |
Get the identifiers of the tools provided.
Reimplemented from <XAP_CocoaPlugin_ToolProvider>.
References m_identifiers.
| - (id< NSObject, XAP_CocoaPlugin_Tool >) toolWithIdentifier: | (NSString *) | identifier |
Get the tool with the specified identifier.
| identifier | The identifier of the tool which is desired. |
Reimplemented from <XAP_CocoaPlugin_ToolProvider>.
References m_tools.
- (NSMutableArray*) m_identifiers [protected] |
Referenced by addTool:, dealloc, initWithName:, removeToolWithIdentifier:, and toolIdentifiers.
- (NSString*) m_name [protected] |
Referenced by dealloc, initWithName:, and name.
- (NSMutableDictionary*) m_tools [protected] |
Referenced by addTool:, dealloc, initWithName:, removeToolWithIdentifier:, toolDescription:, and toolWithIdentifier:.
1.7.1