Ejemplo n.º 1
0
void
KML_Style::scan( xml_node<>* node, KMLContext& cx )
{
    Style style( getValue(node, "id") );

    KML_IconStyle icon;
    icon.scan( node->first_node("iconstyle", 0, false), style, cx );

    KML_LabelStyle label;
    label.scan( node->first_node("labelstyle", 0, false), style, cx );

    KML_LineStyle line;
    line.scan( node->first_node("linestyle", 0, false), style, cx );

    KML_PolyStyle poly;
    poly.scan( node->first_node("polystyle", 0, false), style, cx );

    cx._sheet->addStyle( style );

    cx._activeStyle = style;
}
Ejemplo n.º 2
0
void
KML_Style::scan( const Config& conf, KMLContext& cx )
{
    Style style( conf.value("id") );

    KML_IconStyle icon;
    icon.scan( conf.child("iconstyle"), style, cx );

    KML_LabelStyle label;
    label.scan( conf.child("labelstyle"), style, cx );

    KML_LineStyle line;
    line.scan( conf.child("linestyle"), style, cx );

    KML_PolyStyle poly;
    poly.scan( conf.child("polystyle"), style, cx );

    cx._sheet->addStyle( style );

    cx._activeStyle = style;
}