1 #ifndef __CLIPBOARD_H__
2 #define __CLIPBOARD_H__
7 #define CLIPBOARD Clipboard::instance()
14 * QCad internal clipboard. We don't use the system clipboard for
15 * better portability. Implemented as singleton.
17 * @author James Hammons
18 * @author Andrew Mustun
26 static Clipboard * instance();
29 void addBlock(Block * b);
30 bool hasBlock(const QString & name);
32 Block * blockAt(int i);
33 void addLayer(Layer* l);
34 bool hasLayer(const QString & name);
36 Layer * layerAt(int i);
37 void addEntity(Entity * e);
39 Entity * entityAt(uint i);
40 Entity * firstEntity();
41 Entity * nextEntity();
42 Drawing * getGraphic();
44 friend std::ostream & operator<<(std::ostream & os, Clipboard & cb);
47 static Clipboard * uniqueInstance;