Scribus
Open source desktop publishing at your fingertips
pageitem_imageframe.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8  pageitem.h - description
9  -------------------
10  copyright : Scribus Team
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 
22 #ifndef PAGEITEM_IMAGEFRAME_H
23 #define PAGEITEM_IMAGEFRAME_H
24 
25 #include <QString>
26 #include <QRectF>
27 #include <QKeyEvent>
28 
29 #include "scribusapi.h"
30 #include "pageitem.h"
31 class ScPainter;
32 class ScribusDoc;
33 
34 class SCRIBUS_API PageItem_ImageFrame : public PageItem
35 {
36  Q_OBJECT
37 
38 public:
39  PageItem_ImageFrame(ScribusDoc *pa, double x, double y, double w, double h, double w2, QString fill, QString outline);
40  PageItem_ImageFrame(const PageItem & p) : PageItem(p) {}
42 
43  virtual PageItem_ImageFrame * asImageFrame() { return this; }
44  virtual bool isImageFrame() const { return true; }
45 
46  virtual void handleModeEditKey(QKeyEvent *k, bool& keyRepeat);
47  virtual void clearContents();
48 
49  virtual bool createInfoGroup(QFrame *, QGridLayout *);
50  virtual void applicableActions(QStringList& actionList);
51  virtual QString infoDescription();
52 
53 protected:
54  virtual void DrawObj_Item(ScPainter *p, QRectF e);
55 
56 };
57 
58 #endif
virtual bool isImageFrame() const
Return true if Image item, otherwise false.
Definition: pageitem_imageframe.h:44
Definition: pageitem_imageframe.h:34
virtual PageItem_ImageFrame * asImageFrame()
Return self if Image item, otherwise null.
Definition: pageitem_imageframe.h:43
the Document Class
Definition: scribusdoc.h:90
Definition: scpainter.h:33
virtual void clearContents()
Clear the contents of a frame. WARNING: Currently they do not check if the user wants this...
Definition: pageitem.h:308
Definition: pageitem.h:92