////////////////////////////////////////////////////////////////////////////// // Name: SVGLengthList.cpp // Author: Alex Thuering // Copyright: (c) 2005 Alex Thuering // Licence: wxWindows licence // Notes: generated by genList.py ////////////////////////////////////////////////////////////////////////////// #include "SVGLengthList.h" #include #include WX_DEFINE_OBJARRAY(wxSVGLengthListBase); wxString wxSVGLengthList::GetValueAsString() const { wxString value; for (int i=0; i<(int)GetCount(); i++) value += (i==0 ? wxT("") : wxT(",")) + Item(i).GetValueAsString(); return value; } void wxSVGLengthList::SetValueAsString(const wxString& value) { wxStringTokenizer tkz(value, wxT(", \t")); while (tkz.HasMoreTokens()) { wxString token = tkz.GetNextToken(); if (!token.length()) continue; wxSVGLength* length = new wxSVGLength(); length->SetValueAsString(token); Add(length); } }