Back to index

scribus-ng  1.3.4.dfsg+svn20071115
pageitem_imageframe.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 /***************************************************************************
00008                           pageitem.h  -  description
00009                              -------------------
00010     copyright            : Scribus Team
00011  ***************************************************************************/
00012 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
00019  *                                                                         *
00020  ***************************************************************************/
00021 
00022 #ifndef PAGEITEM_IMAGEFRAME_H
00023 #define PAGEITEM_IMAGEFRAME_H
00024 
00025 #include <qobject.h>
00026 #include <qwidget.h>
00027 #include <qpointarray.h>
00028 #include <qptrlist.h>
00029 #include <qpixmap.h>
00030 #include <qvaluestack.h>
00031 #include <qvaluelist.h>
00032 
00033 #include <qstring.h>
00034 #include <qrect.h>
00035 
00036 #include "scribusapi.h"
00037 #include "undoobject.h"
00038 #include "scimage.h"
00039 #include "pagestructs.h"
00040 #include "pageitem.h"
00041 class ScPainter;
00042 class ScribusDoc;
00043 class UndoManager;
00044 class UndoState;
00045 struct CopyPasteBuffer;
00046 
00047 class SCRIBUS_API PageItem_ImageFrame : public PageItem
00048 {
00049        Q_OBJECT
00050 
00051 public:
00052        PageItem_ImageFrame(ScribusDoc *pa, double x, double y, double w, double h, double w2, QString fill, QString outline);
00053        PageItem_ImageFrame(const PageItem & p) : PageItem(p) {}
00054        ~PageItem_ImageFrame() {};
00055 
00056        virtual PageItem_ImageFrame * asImageFrame() { return this; }
00057        virtual void handleModeEditKey(QKeyEvent *k, bool& keyRepeat);
00058        virtual void clearContents();
00059        
00060 protected:
00061        virtual void DrawObj_Item(ScPainter *p, QRect e, double sc);
00062 
00063 };
00064 
00065 #endif