1 /*******************************************************************
2 
3 Part of the Fritzing project - http://fritzing.org
4 Copyright (c) 2007-2014 Fachhochschule Potsdam - http://fh-potsdam.de
5 
6 Fritzing is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10 
11 Fritzing is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with Fritzing.  If not, see <http://www.gnu.org/licenses/>.
18 
19 ********************************************************************
20 
21 $Revision: 6904 $:
22 $Author: irascibl@gmail.com $:
23 $Date: 2013-02-26 16:26:03 +0100 (Di, 26. Feb 2013) $
24 
25 ********************************************************************/
26 
27 #ifndef X2SVG_H
28 #define X2SVG_H
29 
30 #include <QString>
31 
32 class X2Svg
33 {
34 
35 public:
36 	X2Svg();
37 
38 	void checkXLimit(double x);
39 	void checkYLimit(double y);
40 
41 protected:
42 	QString offsetMin(const QString & svg);
43 	void initLimits();
44 	QString unquote(const QString &);
45 
46 protected:
47 	double m_maxX;
48 	double m_maxY;
49 	double m_minX;
50 	double m_minY;
51 	QString m_attribute;
52 	QString m_comment;
53 };
54 
55 #endif // X2SVG_H
56