Subversion Repositories Scribus

Rev

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

Rev Author Line No. Line
3614 cbradney 1
/***************************************************************************
2
                          pageitem.h  -  description
3
                             -------------------
4
    copyright            : Scribus Team
5
 ***************************************************************************/
6
 
7
/***************************************************************************
8
 *                                                                         *
9
 *   This program is free software; you can redistribute it and/or modify  *
10
 *   it under the terms of the GNU General Public License as published by  *
11
 *   the Free Software Foundation; either version 2 of the License, or     *
12
 *   (at your option) any later version.                                   *
13
 *                                                                         *
14
 ***************************************************************************/
15
 
16
#ifndef PAGEITEMTEXTFRAME_H
17
#define PAGEITEMTEXTFRAME_H
18
 
3829 cbradney 19
#include <qevent.h>
3614 cbradney 20
#include <qobject.h>
3829 cbradney 21
 
3614 cbradney 22
#include <qpointarray.h>
23
#include <qptrlist.h>
24
#include <qpixmap.h>
3829 cbradney 25
#include <qrect.h>
26
#include <qstring.h>
3614 cbradney 27
#include <qvaluestack.h>
28
#include <qvaluelist.h>
3829 cbradney 29
#include <qwidget.h>
3614 cbradney 30
 
31
#include "scribusapi.h"
32
#include "undoobject.h"
33
#include "scimage.h"
34
#include "pagestructs.h"
35
#include "pageitem.h"
36
class ScPainter;
37
class ScribusDoc;
38
class UndoManager;
39
class UndoState;
40
class Foi;
41
struct CopyPasteBuffer;
42
 
43
class SCRIBUS_API PageItem_TextFrame : public PageItem
44
{
45
        Q_OBJECT
46
 
47
public:
48
        PageItem_TextFrame(ScribusDoc *pa, double x, double y, double w, double h, double w2, QString fill, QString outline);
3625 avox 49
        PageItem_TextFrame(const PageItem & p) : PageItem(p) {}
3614 cbradney 50
        ~PageItem_TextFrame() {};
3622 avox 51
 
52
        virtual PageItem_TextFrame * asTextFrame() { return this; }
3627 cbradney 53
 
54
        virtual void clearContents();
3829 cbradney 55
 
56
        virtual void handleModeEditKey(QKeyEvent *k, bool& keyRepeat);
57
        void deleteSelectedTextFromFrame();
58
 
3614 cbradney 59
protected:
60
        virtual void DrawObj_Item(ScPainter *p, QRect e, double sc);
3829 cbradney 61
 
62
        bool unicodeTextEditMode;
63
        int unicodeInputCount;
64
        QString unicodeInputString;
3614 cbradney 65
 
66
};
67
 
68
#endif