-#ifndef __DCSVG_H
-#define __DCSVG_H
-#include <wx/wfstream.h>
-#include <wx/string.h>
-
-#ifdef WXMAKINGDLL_SVG
- #define WXDLLIMPEXP_SVG WXEXPORT
-#elif defined(WXUSINGDLL)
- #define WXDLLIMPEXP_SVG WXIMPORT
-#else // not making nor using DLL
- #define WXDLLIMPEXP_SVG
-#endif
-
-#define wxSVGVersion wxT("v0100")
-#ifdef __BORLANDC__
-#pragma warn -rch
-#pragma warn -ccc
-#endif
-
-//-----------------------------------------------------------------------------
-// constants
-//-----------------------------------------------------------------------------
-
-#define mm2inches 0.0393700787402
-#define inches2mm 25.4
-#define mm2twips 56.6929133859
-#define twips2mm 0.0176388888889
-#define mm2pt 2.83464566929
-#define pt2mm 0.352777777778
-
-class WXDLLIMPEXP_SVG wxSVGFileDC : public wxDC
-{
-
- private:
- wxFileOutputStream * m_outfile ;
- wxString m_filename ;
- //holds number of png format images we have
- int m_sub_images ;
- bool m_OK, m_graphics_changed ;
- int m_width, m_height ;
-
- double
- m_logicalScaleX,
- m_logicalScaleY,
- m_userScaleX,
- m_userScaleY,
- m_scaleX,
- m_scaleY,
- m_OriginX,
- m_OriginY,
- m_mm_to_pix_x,
- m_mm_to_pix_y;
-
- bool
- m_needComputeScaleX,
- m_needComputeScaleY; // not yet used
-
-
- bool DoGetPixel(wxCoord, wxCoord, class wxColour *) const
- { wxASSERT_MSG (false, wxT("wxSVGFILEDC::DoGetPixel Call not implemented")); return true; };
-
- virtual bool DoBlit(wxCoord, wxCoord, wxCoord, wxCoord, class wxDC *,
- wxCoord, wxCoord, int = wxCOPY, bool = 0, int = -1, int = -1) ;
-
- void DoCrossHair(wxCoord, wxCoord)
- { wxASSERT_MSG (false, wxT("wxSVGFILEDC::CrossHair Call not implemented")); return ; };
-
- void DoDrawArc(wxCoord, wxCoord, wxCoord, wxCoord, wxCoord, wxCoord);
-
- void DoDrawBitmap(const class wxBitmap &, wxCoord, wxCoord, bool = 0) ;
-
- void DoDrawCheckMark(wxCoord x, wxCoord y, wxCoord width, wxCoord height) ;
-
- void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height) ;
-
- void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea) ;
-
- void DoDrawIcon(const class wxIcon &, wxCoord, wxCoord) ;
-
- void DoDrawLine (wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) ;
-
- void DoDrawPoint(wxCoord, wxCoord) ;
-
- void DoDrawPolygon(int n, wxPoint points[], wxCoord xoffset, wxCoord yoffset,int fillStyle) ;
-
- void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) ;