forked from amazingfate/help
Fix bookmarks in Collection help page
Also fixes an extra "." in sf_session. Change-Id: I59aa5542e72b17658f494ee41b30f5475fa45872 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124690 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
15deec972f
commit
03457ee108
@ -314,7 +314,7 @@
|
||||
<listitem><paragraph id="par_id301613061123849" role="listitem">module.py: The Python module.</paragraph></listitem>
|
||||
<listitem><paragraph id="par_id241613061044560" role="listitem">method: The Python function.</paragraph></listitem>
|
||||
</list>
|
||||
<paragraph role="paragraph" id="par_id711582818023247"><emph>args</emph>: The arguments to be passed to the called script..</paragraph>
|
||||
<paragraph role="paragraph" id="par_id711582818023247"><emph>args</emph>: The arguments to be passed to the called script.</paragraph>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
|
||||
<paragraph role="paragraph" id="par_id701626817164878">Consider the Python function <literal>odd_integers</literal> defined below that creates a list with odd integer values between <literal>v1</literal> and <literal>v2</literal>. Suppose this function is stored in a file named <emph>my_macros.py</emph> in your user scripts folder.</paragraph>
|
||||
<pycode>
|
||||
|
||||
@ -28,6 +28,8 @@
|
||||
<section id="collection_desc">
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id3149205">
|
||||
<bookmark_value>Collection Object</bookmark_value>
|
||||
</bookmark>
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id3149225890">
|
||||
<bookmark_value>Collection;Count</bookmark_value>
|
||||
</bookmark>
|
||||
<h1 id="hd_id791633472607429"><variable id="Collection_h1"><link href="text/sbasic/shared/collection.xhp" name="New_Operator">Collection Object</link></variable></h1>
|
||||
@ -61,7 +63,7 @@
|
||||
</bascode>
|
||||
|
||||
<h2 id="hd_id421633962742512">Adding Items</h2>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id591633974561425">
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id591633974561425">
|
||||
<bookmark_value>Collection;Add</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph role="paragraph" id="par_id261633962766238">The <literal>Add</literal> method can be used to add new items into the <literal>Collection</literal> object.</paragraph>
|
||||
@ -101,7 +103,7 @@
|
||||
<note id="par_id121633976325472">Items in a <literal>Collection</literal> object are assigned an integer index value that starts at 1 and corresponds to the order in which they were added.</note>
|
||||
|
||||
<h2 id="hd_id141633977141797">Accessing Items</h2>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id481633977601834">
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id481633977601834">
|
||||
<bookmark_value>Collection;Item</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph role="paragraph" id="par_id431633977156315">Use the <literal>Item</literal> method to access a given item by its index or key.</paragraph>
|
||||
@ -125,7 +127,7 @@
|
||||
</bascode>
|
||||
|
||||
<h2 id="hd_id651633976030220">Removing Items</h2>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id311633977567197">
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id311633977567197">
|
||||
<bookmark_value>Collection;Remove</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph role="paragraph" id="par_id391633976125206">Use the <literal>Remove</literal> method to delete items from a <literal>Collection</literal> object.</paragraph>
|
||||
|
||||
Reference in New Issue
Block a user