/******************************************************************/
/* KPresenter - (c) by Reginald Stadlbauer 1997-1998              */
/* Version: 0.1.0                                                 */
/* Author: Reginald Stadlbauer                                    */
/* E-Mail: reggie@kde.org                                         */
/* Homepage: http://boch35.kfunigraz.ac.at/~rs                    */
/* needs c++ library Qt (http://www.troll.no)                     */
/* needs mico (http://diamant.vsb.cs.uni-frankfurt.de/~mico/)     */
/* needs OpenParts and Kom (weis@kde.org)                         */
/* written for KDE (http://www.kde.org)                           */
/* License: GNU GPL                                               */
/******************************************************************/
/* Module: Resize Command (header)                                */
/******************************************************************/

#ifndef resizecmd_h
#define resizecmd_h

#include <kpoint.h>
#include <krect.h>
#include <ksize.h>

#include "command.h"
#include "kpobject.h"

class KPresenterDoc;

/******************************************************************/
/* Class: ResizeCmd                                               */
/******************************************************************/

class ResizeCmd : public Command
{
  Q_OBJECT

public:
  ResizeCmd(QString _name,KPoint _m_diff,KSize _r_diff,KPObject *_object,KPresenterDoc *_doc);
  ~ResizeCmd();
  
  virtual void execute();
  virtual void unexecute();
  virtual void unexecute(bool _repaint);

protected:
  ResizeCmd()
    {;}

  KPoint m_diff;
  KSize r_diff;
  KPObject *object;
  KPresenterDoc *doc;

};

#endif
