示例#1
0
text_template mock_text_template_factory::make_complex_structure() const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_text_block_only_lines(3));
    auto& l(r.body().lines());
    l.splice(l.end(), make_standard_control_block_only_lines(4));
    l.splice(l.end(), make_mixed_content_lines(2));
    l.splice(l.end(), make_standard_control_block_only_lines());
    l.splice(l.end(), make_text_block_only_lines());
    return r;
}
text_template mock_text_template_factory::make_complex_structure() const {
    text_template r(make_text_template_with_trivial_settings());
    r.lines(make_text_block_only_lines(3));
    r.lines().splice(r.lines().end(),
        make_standard_control_block_only_lines(4));
    r.lines().splice(r.lines().end(), make_mixed_content_lines(2));
    r.lines().splice(r.lines().end(),
        make_standard_control_block_only_lines());
    r.lines().splice(r.lines().end(), make_text_block_only_lines());
    return r;
}
示例#3
0
text_template mock_text_template_factory::
make_mixed_content_multi_line(const unsigned int how_many) const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_mixed_content_lines(how_many));
    return r;
}
示例#4
0
text_template mock_text_template_factory::
make_mixed_content_single_line() const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_mixed_content_lines());
    return r;
}
text_template mock_text_template_factory::
make_mixed_content_single_line() const {
    text_template r(make_text_template_with_trivial_settings());
    r.lines(make_mixed_content_lines());
    return r;
}