void generate_stylesheet_instance(random_gen& x, ostream& out, int min_len, int max_len) { out << "1011\n"; out << "3\n"; x.random_string(out, 15, 15); // name x.random_string(out, min_len, max_len); // sheet1 x.random_string(out, min_len, max_len); // sheet2 }
void generate_graphic_instance(info_base* b_ptr, random_gen& x, ostream& out, int min_len, int max_len) { out << "1009\n"; out << "6\n"; x.random_string(out, 15, 15); // locator x.random_string(out, 0, 0); // x.random_string(out, 2, 2); // version x.random_string(out, 10, 30); // misc info handler * y = (b_ptr -> get_obj_dict()).get_handler( form("%s.%s", b_ptr -> get_base_name(), "sgml.dict") ); x.random_string_to_be_compressed(out, min_len, max_len, y -> its_oid()); // graphic x.random_string(out, 10, 30); // title }