#include <rs_document.h>
Inheritance diagram for RS_Document:

Public Member Functions | |
| RS_Document (RS_EntityContainer *parent=NULL) | |
| Constructor. | |
| virtual RS_LayerList * | getLayerList ()=0 |
| virtual RS_BlockList * | getBlockList ()=0 |
| virtual void | newDoc ()=0 |
| virtual bool | save ()=0 |
| virtual bool | saveAs (const RS_String &filename, RS2::FormatType type)=0 |
| virtual bool | open (const RS_String &filename, RS2::FormatType type)=0 |
| virtual bool | isDocument () const |
| virtual void | removeUndoable (RS_Undoable *u) |
| Removes an entity from the entiy container. | |
| RS_Pen | getActivePen () const |
| void | setActivePen (RS_Pen p) |
| Sets the currently active drawing pen to p. | |
| RS_String | getFilename () const |
| void | setFilename (const RS_String &fn) |
| Sets file name for the document currently loaded. | |
| virtual void | setModified (bool m) |
| Sets the documents modified status to 'm'. | |
| virtual bool | isModified () const |
| virtual void | startUndoCycle () |
| Overwritten to set modified flag before starting an undo cycle. | |
Protected Attributes | |
| bool | modified |
| Flag set if the document was modified and not yet saved. | |
| RS_Pen | activePen |
| Active pen. | |
| RS_String | filename |
| File name of the document or empty for a new document. | |
| RS2::FormatType | formatType |
| Format type. | |
Documents can be either graphics or blocks and are typically shown in graphic views. Documents hold an active pen for drawing in the Document, a file name and they know whether they have been modified or not.
|
|
Constructor.
|
|
|
|
|
|
|
|
|
Reimplemented from RS_Entity. |
|
|
Reimplemented in RS_Graphic. |
|
|
Removes an entity from the entiy container. Implementation from RS_Undo. Implements RS_Undo. |
1.4.4