• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_CocoaToolProvider.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource Application Framework
00004  * Copyright (C) 2005 Francis James Franklin
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
00020  */
00021 
00022 #ifndef XAP_COCOATOOLPROVIDER_H
00023 #define XAP_COCOATOOLPROVIDER_H
00024 
00025 #import <Cocoa/Cocoa.h>
00026 
00027 #include "xap_CocoaPlugin.h"
00028 
00029 @interface XAP_CocoaToolProvider : NSObject <XAP_CocoaPlugin_ToolProvider>
00030 {
00031     NSString *  m_name;
00032 
00033     NSMutableArray *        m_identifiers;
00034     NSMutableDictionary *   m_tools;
00035 }
00036 + (XAP_CocoaToolProvider *)AbiWordToolProvider; // don't use this method; use XAP_CocoaAppController's toolProvider:@"AbiWord"
00037 
00038 - (id)initWithName:(NSString *)name;
00039 - (void)dealloc;
00040 
00046 - (NSString *)name;
00047 
00053 - (void)addTool:(id <NSObject, XAP_CocoaPlugin_Tool>)tool;
00054 
00060 - (void)removeToolWithIdentifier:(NSString *)identifier;
00061 
00069 - (id <NSObject, XAP_CocoaPlugin_Tool>)toolWithIdentifier:(NSString *)identifier;
00070 
00076 - (NSArray *)toolIdentifiers;
00077 
00085 - (NSString *)toolDescription:(NSString *)identifier;
00086 
00087 @end
00088 
00089 #endif /* ! XAP_COCOATOOLPROVIDER_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1