- m_pen = pen ;
-
- m_graphics_changed = TRUE ;
- wxASSERT_MSG(!wxSVG_DEBUG, wxT("wxSVGFileDC::SetPen Call executed")) ;
-}
-
-void wxSVGFileDC::NewGraphics ()
-{
-
- int w = m_pen.GetWidth ();
- wxColour c = m_pen.GetColour () ;
-
- wxString s, sBrush, sPenCap, sPenJoin, sPenStyle, sLast, sWarn;
-
- sBrush = wxT("</g>\n<g style=\"") + wxBrushString ( m_brush.GetColour (), m_brush.GetStyle () )
- + wxT(" stroke:#") + wxColStr (c) + wxT("; ") ;
-
- switch ( m_pen.GetCap () )
- {
- case wxCAP_PROJECTING :
- sPenCap = wxT("stroke-linecap:square; ") ;
- break ;
- case wxCAP_BUTT :
- sPenCap = wxT("stroke-linecap:butt; ") ;
- break ;
- case wxCAP_ROUND :
- default :
- sPenCap = wxT("stroke-linecap:round; ") ;
- };
- switch ( m_pen.GetJoin () )
- {
- case wxJOIN_BEVEL :
- sPenJoin = wxT("stroke-linejoin:bevel; ") ;
- break ;
- case wxJOIN_MITER :
- sPenJoin = wxT("stroke-linejoin:miter; ") ;
- break ;
- case wxJOIN_ROUND :
- default :
- sPenJoin = wxT("stroke-linejoin:round; ") ;
- };