karbon

valigncmd.h

00001 /* This file is part of the KDE project          é
00002    Copyright (C) 2001, The Karbon Developers
00003    Copyright (C) 2002, The Karbon Developers
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __VALIGNCMD_H__
00022 #define __VALIGNCMD_H__
00023 
00024 #include "vcommand.h"
00025 
00026 class VTranslateCmd;
00027 
00028 // Align objects...
00029 
00030 class VAlignCmd : public VCommand
00031 {
00032 public:
00033     enum Align
00034     {
00035         ALIGN_HORIZONTAL_LEFT,
00036         ALIGN_HORIZONTAL_CENTER,
00037         ALIGN_HORIZONTAL_RIGHT,
00038         ALIGN_VERTICAL_BOTTOM,
00039         ALIGN_VERTICAL_CENTER,
00040         ALIGN_VERTICAL_TOP
00041     };
00042     VAlignCmd( VDocument *doc, Align align );
00043     virtual ~VAlignCmd();
00044 
00045     virtual void execute();
00046     virtual void unexecute();
00047 
00048 protected:
00049     Align                   m_align;
00050     QPtrList<VTranslateCmd> m_trafoCmds;
00051 };
00052 
00053 #endif
00054 
KDE Home | KDE Accessibility Home | Description of Access Keys