summaryrefslogtreecommitdiffstats
path: root/kbarcode/lineitem.h
blob: 0843a427b7d2e1db3ffb7202d6314ae11cd571d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/***************************************************************************
                         lineitem.h  -  description
                             -------------------
    begin                : Do Sep 2 2004
    copyright            : (C) 2004 by Dominik Seichter
    email                : domseichter@web.de
 ***************************************************************************/

/***************************************************************************
                                                                          
    This program is free software; you can redistribute it and/or modify  
    it under the terms of the GNU General Public License as published by  
    the Free Software Foundation; either version 2 of the License, or     
    (at your option) any later version.                                   
                                                                          
 ***************************************************************************/

#ifndef LINEITEM_H
#define LINEITEM_H
#include <qstring.h>
#include "documentitem.h"
#include "qcolor.h"

/**
 * Class LineItem
 * Implements a line on screen or printer
 */
class LineItem : public DocumentItem {
public:
    LineItem ();
    
    virtual int rtti() const { return eRtti_Line; }
    virtual void draw(QPainter* painter);
    virtual void drawZpl( QTextStream* stream );
    virtual void drawIpl( QTextStream* stream, IPLUtils* utils );
    virtual void drawEPcl( QTextStream* stream );
    virtual void loadXML(QDomElement* element);
    virtual void saveXML(QDomElement* element);
    
private:
    void init();
};
#endif //LINEITEM_H