1 /* 2 * Copyright 2006, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef ASSIGN_STYLE_COMMAND_H 10 #define ASSIGN_STYLE_COMMAND_H 11 12 #include <InterfaceDefs.h> 13 14 #include "Command.h" 15 16 class Shape; 17 class Style; 18 19 class AssignStyleCommand : public Command { 20 public: 21 AssignStyleCommand(Shape* shape, 22 Style* style); 23 virtual ~AssignStyleCommand(); 24 25 virtual status_t InitCheck(); 26 27 virtual status_t Perform(); 28 virtual status_t Undo(); 29 30 virtual void GetName(BString& name); 31 32 private: 33 Shape* fShape; 34 Style* fOldStyle; 35 Style* fNewStyle; 36 }; 37 38 #endif // ASSIGN_STYLE_COMMAND_H 39