diff options
author | LibreOfficiant <LibreOfficiant@sfr.fr> | 2020-04-10 11:03:49 +0100 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2020-04-10 16:54:41 +0200 |
commit | 540bcbb9a74671246975ece908a8bc9c34d1da9b (patch) | |
tree | dbbee49517dd7574bbec39bb1244ef10750ae0bc /source/media | |
parent | f4753fb3ec81fa4069a024dcd3030e740ccdfdca (diff) |
3 Basic syntax diagrams
- For statement variations
- On Error
Change-Id: Ic4b25b9d44adeb0c80fc2e24cc60301b9325c1a3
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/92010
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/media')
-rw-r--r-- | source/media/helpimg/sbasic/For-Each_statement.svg | 43 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/For-Next_statement.svg | 52 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/On-Error_statement.svg | 45 |
3 files changed, 140 insertions, 0 deletions
diff --git a/source/media/helpimg/sbasic/For-Each_statement.svg b/source/media/helpimg/sbasic/For-Each_statement.svg new file mode 100644 index 0000000000..f12e794fa9 --- /dev/null +++ b/source/media/helpimg/sbasic/For-Each_statement.svg @@ -0,0 +1,43 @@ +<svg class="railroad-diagram" height="124" viewBox="0 0 746.0 124" width="746.0" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 41v20m10 -20v20m-10 -10h20"></path></g><path d="M40 51h10"></path><g> +<path d="M50 51h0.0"></path><path d="M696.0 51h0.0"></path><g class="terminal"> +<path d="M50.0 51h0.0"></path><path d="M138.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="88.0" x="50.0" y="40"></rect><text x="94.0" y="55">For Each</text></g><path d="M138.0 51h10"></path><path d="M148.0 51h10"></path><g class="terminal"> +<path d="M158.0 51h0.0"></path><path d="M212.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="158.0" y="40"></rect><text x="185.0" y="55">item</text></g><path d="M212.0 51h10"></path><path d="M222.0 51h10"></path><g class="terminal"> +<path d="M232.0 51h0.0"></path><path d="M269.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="37.0" x="232.0" y="40"></rect><text x="250.5" y="55">In</text></g><path d="M269.0 51h10"></path><path d="M279.0 51h10"></path><g class="terminal"> +<path d="M289.0 51h0.0"></path><path d="M343.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="289.0" y="40"></rect><text x="316.0" y="55">list</text></g><path d="M343.0 51h10"></path><path d="M353.0 51h10"></path><g> +<path d="M363.0 51h0.0"></path><path d="M498.0 51h0.0"></path><path d="M363.0 51h15"></path><g class="non-terminal"> +<path d="M378.0 51h0.0"></path><path d="M483.0 51h0.0"></path><rect height="22" width="105.0" x="378.0" y="40"></rect><text x="430.5" y="55">statements</text></g><path d="M483.0 51h15"></path><path d="M378.0 51a15 15 0 0 0 -15 15v12a15 15 0 0 0 15 15"></path><g class="terminal"> +<path d="M378.0 93h8.5"></path><path d="M474.5 93h8.5"></path><rect height="22" rx="10" ry="10" width="88.0" x="386.5" y="82"></rect><text x="430.5" y="97">Exit For</text></g><path d="M483.0 93a15 15 0 0 0 15 -15v-12a15 15 0 0 0 -15 -15"></path></g><path d="M498.0 51h10"></path><path d="M508.0 51h10"></path><g class="terminal"> +<path d="M518.0 51h0.0"></path><path d="M572.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="518.0" y="40"></rect><text x="545.0" y="55">Next</text></g><path d="M572.0 51h10"></path><g> +<path d="M582.0 51h0.0"></path><path d="M696.0 51h0.0"></path><path d="M582.0 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g> +<path d="M612.0 20h54.0"></path></g><path d="M666.0 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M582.0 51h30"></path><g class="terminal"> +<path d="M612.0 51h0.0"></path><path d="M666.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="612.0" y="40"></rect><text x="639.0" y="55">item</text></g><path d="M666.0 51h30"></path></g></g><path d="M696.0 51h10"></path><path d="M 706.0 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/For-Next_statement.svg b/source/media/helpimg/sbasic/For-Next_statement.svg new file mode 100644 index 0000000000..0f268f1015 --- /dev/null +++ b/source/media/helpimg/sbasic/For-Next_statement.svg @@ -0,0 +1,52 @@ +<svg class="railroad-diagram" height="124" viewBox="0 0 1115.0 124" width="1115.0" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 41v20m10 -20v20m-10 -10h20"></path></g><path d="M40 51h10"></path><g> +<path d="M50 51h0.0"></path><path d="M1065.0 51h0.0"></path><g class="terminal"> +<path d="M50.0 51h0.0"></path><path d="M95.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="45.5" x="50.0" y="40"></rect><text x="72.75" y="55">For</text></g><path d="M95.5 51h10"></path><path d="M105.5 51h10"></path><g class="terminal"> +<path d="M115.5 51h0.0"></path><path d="M195.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="79.5" x="115.5" y="40"></rect><text x="155.25" y="55">counter</text></g><path d="M195.0 51h10"></path><path d="M205.0 51h10"></path><g class="terminal"> +<path d="M215.0 51h0.0"></path><path d="M243.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="28.5" x="215.0" y="40"></rect><text x="229.25" y="55">=</text></g><path d="M243.5 51h10"></path><path d="M253.5 51h10"></path><g class="terminal"> +<path d="M263.5 51h0.0"></path><path d="M326.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="263.5" y="40"></rect><text x="294.75" y="55">start</text></g><path d="M326.0 51h10"></path><path d="M336.0 51h10"></path><g class="terminal"> +<path d="M346.0 51h0.0"></path><path d="M383.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="37.0" x="346.0" y="40"></rect><text x="364.5" y="55">To</text></g><path d="M383.0 51h10"></path><path d="M393.0 51h10"></path><g class="terminal"> +<path d="M403.0 51h0.0"></path><path d="M448.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="45.5" x="403.0" y="40"></rect><text x="425.75" y="55">end</text></g><path d="M448.5 51h10"></path><g> +<path d="M458.5 51h0.0"></path><path d="M696.5 51h0.0"></path><path d="M458.5 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g> +<path d="M488.5 20h178.0"></path></g><path d="M666.5 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M458.5 51h30"></path><g> +<path d="M488.5 51h0.0"></path><path d="M666.5 51h0.0"></path><g class="terminal"> +<path d="M488.5 51h0.0"></path><path d="M542.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="488.5" y="40"></rect><text x="515.5" y="55">Step</text></g><path d="M542.5 51h10"></path><g> +<path d="M552.5 51h0.0"></path><path d="M666.5 51h0.0"></path><path d="M552.5 51h30"></path><g class="terminal"> +<path d="M582.5 51h12.75"></path><path d="M623.75 51h12.75"></path><rect height="22" rx="10" ry="10" width="28.5" x="595.25" y="40"></rect><text x="609.5" y="55">1</text></g><path d="M636.5 51h30"></path><path d="M552.5 51a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal"> +<path d="M582.5 93h0.0"></path><path d="M636.5 93h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="582.5" y="82"></rect><text x="609.5" y="97">step</text></g><path d="M636.5 93a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path></g></g><path d="M666.5 51h30"></path></g><path d="M696.5 51h10"></path><g> +<path d="M706.5 51h0.0"></path><path d="M841.5 51h0.0"></path><path d="M706.5 51h15"></path><g class="non-terminal"> +<path d="M721.5 51h0.0"></path><path d="M826.5 51h0.0"></path><rect height="22" width="105.0" x="721.5" y="40"></rect><text x="774.0" y="55">statements</text></g><path d="M826.5 51h15"></path><path d="M721.5 51a15 15 0 0 0 -15 15v12a15 15 0 0 0 15 15"></path><g class="terminal"> +<path d="M721.5 93h8.5"></path><path d="M818.0 93h8.5"></path><rect height="22" rx="10" ry="10" width="88.0" x="730.0" y="82"></rect><text x="774.0" y="97">Exit For</text></g><path d="M826.5 93a15 15 0 0 0 15 -15v-12a15 15 0 0 0 -15 -15"></path></g><path d="M841.5 51h10"></path><path d="M851.5 51h10"></path><g class="terminal"> +<path d="M861.5 51h0.0"></path><path d="M915.5 51h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="861.5" y="40"></rect><text x="888.5" y="55">Next</text></g><path d="M915.5 51h10"></path><g> +<path d="M925.5 51h0.0"></path><path d="M1065.0 51h0.0"></path><path d="M925.5 51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g> +<path d="M955.5 20h79.5"></path></g><path d="M1035.0 20a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><path d="M925.5 51h30"></path><g class="terminal"> +<path d="M955.5 51h0.0"></path><path d="M1035.0 51h0.0"></path><rect height="22" rx="10" ry="10" width="79.5" x="955.5" y="40"></rect><text x="995.25" y="55">counter</text></g><path d="M1035.0 51h30"></path></g></g><path d="M1065.0 51h10"></path><path d="M 1075.0 51 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/On-Error_statement.svg b/source/media/helpimg/sbasic/On-Error_statement.svg new file mode 100644 index 0000000000..69fb8df63f --- /dev/null +++ b/source/media/helpimg/sbasic/On-Error_statement.svg @@ -0,0 +1,45 @@ +<svg class="railroad-diagram" height="146" viewBox="0 0 598.5 146" width="598.5" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g> +<path d="M50 31h0.0"></path><path d="M548.5 31h0.0"></path><g class="terminal"> +<path d="M50.0 31h0.0"></path><path d="M87.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="37.0" x="50.0" y="20"></rect><text x="68.5" y="35">On</text></g><path d="M87.0 31h10"></path><g> +<path d="M97.0 31h0.0"></path><path d="M219.5 31h0.0"></path><path d="M97.0 31h30"></path><g> +<path d="M127.0 31h62.5"></path></g><path d="M189.5 31h30"></path><path d="M97.0 31a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g class="terminal"> +<path d="M127.0 62h0.0"></path><path d="M189.5 62h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="127.0" y="51"></rect><text x="158.25" y="66">Local</text></g><path d="M189.5 62a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path></g><path d="M219.5 31h10"></path><g class="terminal"> +<path d="M229.5 31h0.0"></path><path d="M292.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="229.5" y="20"></rect><text x="260.75" y="35">Error</text></g><path d="M292.0 31h10"></path><g> +<path d="M302.0 31h0.0"></path><path d="M548.5 31h0.0"></path><path d="M302.0 31h30"></path><g> +<path d="M332.0 31h0.0"></path><path d="M518.5 31h0.0"></path><g class="terminal"> +<path d="M332.0 31h0.0"></path><path d="M386.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="332.0" y="20"></rect><text x="359.0" y="35">GoTo</text></g><path d="M386.0 31h10"></path><g> +<path d="M396.0 31h0.0"></path><path d="M518.5 31h0.0"></path><path d="M396.0 31h30"></path><g class="terminal"> +<path d="M426.0 31h0.0"></path><path d="M488.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="426.0" y="20"></rect><text x="457.25" y="35">label</text></g><path d="M488.5 31h30"></path><path d="M396.0 31a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal"> +<path d="M426.0 73h17.0"></path><path d="M471.5 73h17.0"></path><rect height="22" rx="10" ry="10" width="28.5" x="443.0" y="62"></rect><text x="457.25" y="77">0</text></g><path d="M488.5 73a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path></g></g><path d="M518.5 31h30"></path><path d="M302.0 31a15 15 0 0 1 15 15v54a15 15 0 0 0 15 15"></path><g> +<path d="M332.0 115h36.5"></path><path d="M482.0 115h36.5"></path><g class="terminal"> +<path d="M368.5 115h0.0"></path><path d="M482.0 115h0.0"></path><rect height="22" rx="10" ry="10" width="113.5" x="368.5" y="104"></rect><text x="425.25" y="119">Resume Next</text></g></g><path d="M518.5 115a15 15 0 0 0 15 -15v-54a15 15 0 0 1 15 -15"></path></g></g><path d="M548.5 31h10"></path><path d="M 558.5 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file |