void DvisvgmSpecialHandler::preprocessRawDef (InputReader &ir) {
    if (_currentMacro == _macros.end())
        return;
    string str = ir.getLine();
    if (!str.empty())
        _currentMacro->second.push_back(string("D")+str);
}
void DvisvgmSpecialHandler::processRawDef (InputReader &ir, SpecialActions *actions) {
    if (_nestingLevel == 0) {
        string str = ir.getLine();
        if (!str.empty()) {
            expand_constants(str, actions);
            actions->appendToDefs(new XMLTextNode(str));
        }
    }
}
Ejemplo n.º 3
0
void DvisvgmSpecialHandler::processRawDef (InputReader &ir, SpecialActions &actions) {
	if (_nestingLevel == 0) {
		string xml = ir.getLine();
		if (!xml.empty()) {
			expand_constants(xml, actions);
			_defsParser.parse(xml, actions);
		}
	}
}