1 /* 2 ** EditWindowToolbar.h 3 ** 4 ** Copyright (c) 2002-2006 Ludovic Marcotte 5 ** 6 ** Author: Ludovic Marcotte <ludovic@Sophos.ca> 7 ** 8 ** This program is free software; you can redistribute it and/or modify 9 ** it under the terms of the GNU General Public License as published by 10 ** the Free Software Foundation; either version 2 of the License, or 11 ** (at your option) any later version. 12 ** 13 ** This program is distributed in the hope that it will be useful, 14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ** GNU General Public License for more details. 17 ** 18 ** You should have received a copy of the GNU General Public License 19 ** along with this program. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef _GNUMail_H_EditWindowToolbar 23 #define _GNUMail_H_EditWindowToolbar 24 25 #import <AppKit/AppKit.h> 26 27 #include "EditWindowController.h" 28 29 @interface EditWindowController (EditWindowToolbar) 30 31 // 32 // NSToolbar delegate methods 33 // 34 - (NSToolbarItem *) toolbar: (NSToolbar *) toolbar 35 itemForItemIdentifier: (NSString *) itemIdentifier 36 willBeInsertedIntoToolbar: (BOOL) flag; 37 38 - (NSArray *) toolbarAllowedItemIdentifiers: (NSToolbar*) toolbar; 39 40 - (NSArray *) toolbarDefaultItemIdentifiers: (NSToolbar*) toolbar; 41 42 43 // 44 // NSToolbarItemValidation protocol 45 // 46 - (BOOL) validateToolbarItem: (NSToolbarItem *) theItem; 47 48 @end 49 50 #endif // _GNUMail_H_EditWindowToolbar 51