-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSVGDocument.h
More file actions
executable file
·80 lines (66 loc) · 2.66 KB
/
SVGDocument.h
File metadata and controls
executable file
·80 lines (66 loc) · 2.66 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//------------------------------------------------------------------------------
/// Filename: SVGDocument.h
/// Description: Header for Class SVGDocument
/// Authors:
/// Robin Ankele(0931951)
/// Tutor: Manuel Weber
/// Group: 24
/// Created: 08.09.2011
/// Last change: 08.09.2011
//------------------------------------------------------------------------------
#ifndef SVGDOCUMENT_H_INCLUDED
#define SVGDOCUMENT_H_INCLUDED
#include <string>
class UserInterface;
class Error;
class Database;
class SVGHandler;
class SVGDocument
{
private:
//----------------------------------------------------------------------------
/// Error handle
Error *error_;
//----------------------------------------------------------------------------
/// Database handle
Database *db_;
//----------------------------------------------------------------------------
/// SVGHandler handle
SVGHandler *svgh_;
//----------------------------------------------------------------------------
/// UserInterface handle
UserInterface *ui_;
public:
//----------------------------------------------------------------------------
/// Constructor
/// @param db Connection to Database
/// @param svgh Connection to SVGHandler
SVGDocument(Database *db,
SVGHandler *svgh);
//----------------------------------------------------------------------------
/// Destructor
virtual ~SVGDocument() throw();
//----------------------------------------------------------------------------
/// getSVGHeader Method: writes the Header of the SVGDocument
/// @return returns the header of a SVG File
std::string getSVGHeader();
//----------------------------------------------------------------------------
/// getSVGFooter Method: writes the Footer of the SVGDocument
/// @return returns the Footer of a SVG File
std::string getSVGFooter();
//----------------------------------------------------------------------------
/// writeSVG Method: writes the content in the SVG File
/// @return returns true if write to SVG file works
bool writeSVG();
//----------------------------------------------------------------------------
/// setUI() setterMethod: sets the UserInterface handle
/// @param ui is the UserInterface handle
/// @return returns void
void setUI(UserInterface *ui) { ui_ = ui;}
//----------------------------------------------------------------------------
/// checkOpen() Method: checks if the SVG file is already open
/// @param filename the filename of the svg file which should be checked
/// @return returns true if svg file is already open
bool checkOpen(std::string filename);
};
#endif // SVGDOCUMENT_H_INCLUDED