Subversion Repositories Scribus

Rev

Rev 10934 | Rev 11052 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
3614 cbradney 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
 
10220 cbradney 25
#include <QString>
26
#include <QRect>
8501 cbradney 27
#include <QKeyEvent>
3614 cbradney 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);
3625 avox 40
        PageItem_ImageFrame(const PageItem & p) : PageItem(p) {}
3614 cbradney 41
        ~PageItem_ImageFrame() {};
3622 avox 42
 
43
        virtual PageItem_ImageFrame * asImageFrame() { return this; }
5226 cbradney 44
        virtual void handleModeEditKey(QKeyEvent *k, bool& keyRepeat);
3627 cbradney 45
        virtual void clearContents();
46
 
10601 mrdocs 47
        virtual bool createInfoGroup(QFrame *, QGridLayout *);
48
        virtual bool createContextMenu(QMenu *, int);
10934 cbradney 49
        virtual void applicableActions(QStringList& actionList);
10941 cbradney 50
        virtual QString infoDescription();
10601 mrdocs 51
 
3614 cbradney 52
protected:
5350 avox 53
        virtual void DrawObj_Item(ScPainter *p, QRect e, double sc);
3614 cbradney 54
 
55
};
56
 
57
#endif