//
//  BIAbstractSlipTemplateSubcard.h
//  BIViews
//
//  Created by Eric Hochmeister on 17/06/05.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <MCApplication/MCNibLoadingView.h>

@class BISlipTemplate;

@interface BIAbstractSlipTemplateSubcard : MCNibLoadingView {

	NSArray* _slipTypes;
	id _slipTemplate;
	NSArray* _sortedUsers;
	
	IBOutlet NSButton* tax1NameField;
	IBOutlet NSButton* tax2NameField;
	IBOutlet NSObjectController* slipTemplateController;
    IBOutlet NSArrayController* taxesController;
	
	BOOL isBeingCreated;
	
}

- (NSArray *)slipTypes;
- (void)setSlipTypes:(NSArray *)aSlipTypes;
- (id)slipTemplate;
- (void)setSlipTemplate:(id)aSlipTemplate;
- (BOOL)isBeingCreated;
- (void)setIsBeingCreated:(BOOL)flag;

- (void)setupWithSlipTemplate:(BISlipTemplate*)aTemplate slipTypes:(NSArray*)theTypes;

- (IBAction)changeSlipType:(id)sender;

- (NSArray*)slipCategories;

- (NSArray*)sortedUsers;
- (void)setSortedUsers:(NSArray *)values;

- (void)setupTaxesController;

@end
