Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportItemLine.h
Show All 35 Lines | |||||
36 | public: | 36 | public: | ||
37 | KReportItemLine(); | 37 | KReportItemLine(); | ||
38 | explicit KReportItemLine(const QDomNode & element); | 38 | explicit KReportItemLine(const QDomNode & element); | ||
39 | ~KReportItemLine(); | 39 | ~KReportItemLine(); | ||
40 | 40 | | |||
41 | virtual QString typeName() const; | 41 | virtual QString typeName() const; | ||
42 | virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script); | 42 | virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script); | ||
43 | 43 | | |||
44 | virtual void setUnit(const KReportUnit&); | 44 | void setUnit(const KReportUnit &u) override; | ||
45 | 45 | | |||
46 | QPointF startPosition() const; | 46 | QPointF startPosition() const; | ||
47 | void setStartPosition(const QPointF &ptPos); | ||||
47 | QPointF endPosition() const; | 48 | QPointF endPosition() const; | ||
49 | void setEndPosition(const QPointF &ptPos); | ||||
48 | 50 | | |||
49 | protected: | 51 | protected: | ||
50 | KProperty *m_start; | | |||
51 | KProperty *m_end; | | |||
52 | KProperty *m_lineColor; | 52 | KProperty *m_lineColor; | ||
53 | KProperty *m_lineWeight; | 53 | KProperty *m_lineWeight; | ||
54 | KProperty *m_lineStyle; | 54 | KProperty *m_lineStyle; | ||
55 | 55 | | |||
56 | KReportLineStyle lineStyle() const; | 56 | KReportLineStyle lineStyle() const; | ||
57 | qreal weight() const; | 57 | qreal weight() const; | ||
58 | void setWeight(qreal w); | 58 | void setWeight(qreal w); | ||
59 | 59 | | |||
60 | private: | 60 | private: | ||
61 | KProperty *m_start; | ||||
62 | KProperty *m_end; | ||||
61 | virtual void createProperties(); | 63 | virtual void createProperties(); | ||
62 | 64 | | |||
63 | friend class Scripting::Line; | 65 | friend class Scripting::Line; | ||
64 | }; | 66 | }; | ||
65 | 67 | | |||
66 | #endif | 68 | #endif |