コード例 #1
0
text_template mock_text_template_factory::
make_standard_control_text_standard_control_single_line() const {
    text_template r(make_text_template_with_trivial_settings());
    r.lines(make_standard_control_block_only_lines());
    r.lines().splice(r.lines().end(), make_text_block_only_lines());
    r.lines().splice(r.lines().end(), make_standard_control_block_only_lines());
    return r;
}
コード例 #2
0
text_template mock_text_template_factory::
make_standard_control_text_standard_control_single_line() const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_standard_control_block_only_lines());
    auto& l(r.body().lines());
    l.splice(l.end(), make_text_block_only_lines());
    l.splice(l.end(), make_standard_control_block_only_lines());
    return r;
}
コード例 #3
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;
}
コード例 #4
0
text_template mock_text_template_factory::
make_standard_control_text_standard_control_multi_line(
    const unsigned int how_many) const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_standard_control_block_only_lines(how_many));
    auto& l(r.body().lines());
    l.splice(l.end(), make_text_block_only_lines(how_many));
    l.splice(l.end(), make_standard_control_block_only_lines(how_many));
    return r;
}
コード例 #5
0
text_template mock_text_template_factory::
make_standard_control_text_standard_control_multi_line(
    const unsigned int how_many) const {
    text_template r(make_text_template_with_trivial_settings());
    r.lines(make_standard_control_block_only_lines(how_many));
    r.lines().splice(r.lines().end(), make_text_block_only_lines(how_many));
    r.lines().splice(r.lines().end(),
        make_standard_control_block_only_lines(how_many));
    return r;
}
コード例 #6
0
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;
}
コード例 #7
0
text_template mock_text_template_factory::
make_multiple_standard_control_block_lines(const unsigned int how_many) const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_standard_control_block_only_lines(how_many));
    return r;
}
コード例 #8
0
text_template mock_text_template_factory::
make_single_standard_control_block_line() const {
    text_template r(make_text_template_with_trivial_properties());
    r.body().lines(make_standard_control_block_only_lines());
    return r;
}