karbon

valigncmd.h
1/* This file is part of the KDE project é
2 Copyright (C) 2001, The Karbon Developers
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __VALIGNCMD_H__
22#define __VALIGNCMD_H__
23
24#include "vcommand.h"
25
26class VTranslateCmd;
27
28// Align objects...
29
30class VAlignCmd : public VCommand
31{
32public:
33 enum Align
34 {
35 ALIGN_HORIZONTAL_LEFT,
36 ALIGN_HORIZONTAL_CENTER,
37 ALIGN_HORIZONTAL_RIGHT,
38 ALIGN_VERTICAL_BOTTOM,
39 ALIGN_VERTICAL_CENTER,
40 ALIGN_VERTICAL_TOP
41 };
42 VAlignCmd( VDocument *doc, Align align );
43 virtual ~VAlignCmd();
44
45 virtual void execute();
46 virtual void unexecute();
47
48protected:
49 Align m_align;
50 TQPtrList<VTranslateCmd> m_trafoCmds;
51};
52
53#endif
54
The base class for all karbon commands.
Definition vcommand.h:42
virtual void unexecute()
Unexecutes the command.
Definition vcommand.h:75
virtual void execute()=0
Executes the command.