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_symbol.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_SYMBOL_H 23 #define PAGEITEM_SYMBOL_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 34 class SCRIBUS_API PageItem_Symbol : public PageItem 35 { 36 Q_OBJECT 37 38 public: 39 PageItem_Symbol(ScribusDoc *pa, double x, double y, double w, double h, double w2, const QString& fill, const QString& outline); PageItem_Symbol(const PageItem & p)40 PageItem_Symbol(const PageItem & p) : PageItem(p) {} ~PageItem_Symbol()41 ~PageItem_Symbol() {}; 42 asSymbol()43 PageItem_Symbol* asSymbol() override { return this; } isSymbol()44 bool isSymbol() const override { return true; } realItemType()45 ItemType realItemType() const override { return PageItem::Symbol; } 46 void applicableActions(QStringList& actionList) override; 47 QString infoDescription() const override; 48 49 protected: 50 void DrawObj_Item(ScPainter *p, QRectF e) override; 51 52 }; 53 54 #endif 55