/* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ /* CarbonToolbar / Cocoa front-end / AbiWord Plug-in * Copyright (C) 2005 Francis James Franklin * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef COCOAPLUGIN_ABICARBONTOOLBAR_EDITORCONTROLLER_H #define COCOAPLUGIN_ABICARBONTOOLBAR_EDITORCONTROLLER_H #import @class XAP_CocoaPlugin; @class AbiCarbonToolbar_Configuration; @class AbiCarbonToolbar_LogController; @interface AbiCarbonToolbar_ProviderView : NSOutlineView { // ... } - (unsigned int)draggingSourceOperationMaskForLocal:(BOOL)isLocal; - (BOOL)ignoreModifierKeysWhileDragging; @end @interface AbiCarbonToolbar_EditorController : NSWindowController { IBOutlet AbiCarbonToolbar_ProviderView * oProviders; IBOutlet NSOutlineView * oToolbars; IBOutlet NSButton * oNew; IBOutlet NSButton * oRemove; IBOutlet NSButton * oCancel; IBOutlet NSButton * oOkay; XAP_CocoaPlugin * m_AbiWord; AbiCarbonToolbar_LogController * m_Controller; AbiCarbonToolbar_Configuration * m_Configuration; NSMutableArray * m_EditData; BOOL m_bCancelled; } - (id)initWithAbiWord:(XAP_CocoaPlugin *)AbiWord controller:(AbiCarbonToolbar_LogController *)controller; - (void)dealloc; - (void)windowDidLoad; - (void)windowWillClose:(NSNotification *)aNotification; - (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item; - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item; - (id)outlineView:(NSOutlineView *)outlineView child:(int)index ofItem:(id)item; - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item; - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item; - (BOOL)outlineView:(NSOutlineView *)outlineView shouldSelectItem:(id)item; - (BOOL)outlineView:(NSOutlineView *)outlineView writeItems:(NSArray *)items toPasteboard:(NSPasteboard *)pboard; - (IBAction)aNew:(id)sender; - (IBAction)aRemove:(id)sender; - (IBAction)aCancel:(id)sender; - (IBAction)aOkay:(id)sender; - (BOOL)editorWasCancelled; @end #endif /* ! COCOAPLUGIN_ABICARBONTOOLBAR_EDITORCONTROLLER_H */