xref: /haiku/src/apps/icon-o-matic/style/AddStylesCommand.h (revision 9d6d3fcf5fe8308cd020cecf89dede440346f8c4)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef ADD_STYLES_COMMAND_H
10 #define ADD_STYLES_COMMAND_H
11 
12 #include "Command.h"
13 
14 class Style;
15 class StyleContainer;
16 
17 class AddStylesCommand : public Command {
18  public:
19 								AddStylesCommand(
20 									StyleContainer* container,
21 									Style** const styles,
22 									int32 count,
23 									int32 index);
24 	virtual						~AddStylesCommand();
25 
26 	virtual	status_t			InitCheck();
27 
28 	virtual	status_t			Perform();
29 	virtual status_t			Undo();
30 
31 	virtual void				GetName(BString& name);
32 
33  private:
34 			StyleContainer*		fContainer;
35 			Style**				fStyles;
36 			int32				fCount;
37 			int32				fIndex;
38 			bool				fStylesAdded;
39 };
40 
41 #endif // ADD_STYLES_COMMAND_H
42