Scribus
Open source desktop publishing at your fingertips
pageitem_pathtext.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_pathtext.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_PATHTEXT_H
23 #define PAGEITEM_PATHTEXT_H
24 
25 #include <QString>
26 #include <QRectF>
27 
28 #include "scribusapi.h"
29 #include "pageitem.h"
30 class ScPainter;
31 class ScribusDoc;
32 
33 class SCRIBUS_API PageItem_PathText : public PageItem
34 {
35  Q_OBJECT
36 
37 public:
38  PageItem_PathText(ScribusDoc *pa, double x, double y, double w, double h, double w2, QString fill, QString outline);
39  PageItem_PathText(const PageItem & p) : PageItem(p) {}
40  ~PageItem_PathText() {};
41 
42  virtual PageItem_PathText * asPathText() { return this; }
43  virtual bool isPathText() const { return true; }
44 
45  virtual void layout();
46  virtual bool createInfoGroup(QFrame *, QGridLayout *);
47  virtual void applicableActions(QStringList& actionList);
48  virtual QString infoDescription();
49  StoryText itemRenderText;
50 
51  virtual void getVisualBoundingRect(double *x1, double *y1, double *x2, double *y2) const;
52 
53 protected:
54  virtual void DrawObj_Item(ScPainter *p, QRectF e);
55 
56 };
57 
58 #endif
Definition: storytext.h:71
Definition: pageitem_pathtext.h:33
virtual bool isPathText() const
Return true if Text Path Text, otherwise false.
Definition: pageitem_pathtext.h:43
virtual PageItem_PathText * asPathText()
Return self if Path Text item, otherwise null.
Definition: pageitem_pathtext.h:42
virtual void layout()
creates valid layout information
Definition: pageitem.h:383
the Document Class
Definition: scribusdoc.h:90
Definition: scpainter.h:33
Definition: pageitem.h:92