| 47 | const string TeXFormulaSettingParser::RESOURCE_NAME = "TeXFormulaSettings"; |
| 48 | |
| 49 | TeXFormulaSettingParser::TeXFormulaSettingParser(const string& file) throw(ex_res_parse) |
| 50 | : _doc(true, COLLAPSE_WHITESPACE) { |
| 51 | int err = _doc.LoadFile(file.c_str()); |
| 52 | if (err != XML_NO_ERROR) throw ex_xml_parse(file + " not found!"); |
| 53 | _root = _doc.RootElement(); |
| 54 | } |
| 55 | |
| 56 | int TeXFormulaSettingParser::getUtf(const XMLElement* e, const char* attr) throw(ex_res_parse) { |
| 57 | const char* val = e->Attribute(attr); |
nothing calls this directly
no test coverage detected