| 893 | } |
| 894 | |
| 895 | void print_image_htmlcode(ostream &out, HDRHTMLSet *hdrhtml_set, |
| 896 | const HDRHTMLImage &it) { |
| 897 | string obj_name("hdr_"); |
| 898 | obj_name.append(it.base_name); |
| 899 | |
| 900 | ostringstream img_dir; |
| 901 | if (hdrhtml_set->image_dir != NULL) |
| 902 | img_dir << hdrhtml_set->image_dir << "/"; |
| 903 | |
| 904 | ReplacePattern replace_list[] = { |
| 905 | ReplacePattern("hdr_img_width", it.width), |
| 906 | ReplacePattern("hdr_img_height", it.height), |
| 907 | ReplacePattern("img_dir", img_dir.str()), |
| 908 | ReplacePattern("hist_width", it.hist_width), |
| 909 | ReplacePattern("base_name", it.base_name), |
| 910 | ReplacePattern("help_mark_pos", it.hist_width - 12), |
| 911 | ReplacePattern("hdr_img_object", obj_name), |
| 912 | ReplacePattern("version", hdrhtml_version), |
| 913 | ReplacePattern()}; |
| 914 | |
| 915 | try { |
| 916 | create_from_template(out, hdrhtml_set->image_template, replace_list); |
| 917 | } catch (pfs::Exception &e) { |
| 918 | throw; |
| 919 | } |
| 920 | } |
| 921 | |
| 922 | void print_image_htmlcode(ostream &out, void *user_data, |
| 923 | const char *parameter) { |
no test coverage detected