Translation

sf_writer.xhp par_id141609955500101 help.text
English YFLf6
Context English Estonian Actions
sf_unittest.xhp
par_id751656449718279
help.text
Executing the optional <literal>Setup</literal> method present in the module.
sf_unittest.xhp
par_id611656449718505
help.text
Executing once each test case, in no specific order.
sf_unittest.xhp
par_id461656449718687
help.text
Executing the optional <literal>TearDown</literal> method present in the module.
sf_unittest.xhp
par_id751656448521144
help.text
The argument <literal>testcasepattern</literal> specifies a pattern composed of "?" and "*" wildcards to select which test cases will be run. The comparison is not case-sensitive.
sf_unittest.xhp
par_id81656448858455
help.text
If a <literal>message</literal> is provided, it is written to the console when the test starts.
sf_unittest.xhp
par_id71621894064311
help.text
Interrupts the running test suite without calling the <literal>TearDown</literal> method.
sf_unittest.xhp
par_id781656450313544
help.text
Skipping a test is usually meaningful during the <literal>Setup</literal> method when not all conditions to run the test are met.
sf_unittest.xhp
par_id531656450405799
help.text
It is up to the <literal>Setup</literal> method to exit the <literal>Sub</literal> shortly after the <literal>SkipTest</literal> call.
sf_unittest.xhp
par_id581656450504005
help.text
If <literal>SkipTest</literal> is called from within a test case, the execution of the test suite is interrupted and the remaining test cases are not run. Keep in mind that the order in which test cases are run is arbitrary within a test suite.
sf_unittest.xhp
par_id81656449618455
help.text
If a <literal>message</literal> is provided, it is written to the console.
sf_writer.xhp
tit
help.text
SFDocuments.Writer service
sf_writer.xhp
hd_id731582733781114
help.text
<variable id="WriterService"><link href="text/sbasic/shared/03/sf_writer.xhp"><literal>SFDocuments</literal>.<literal>Writer</literal> service</link></variable>
sf_writer.xhp
par_id381589189355849
help.text
The <literal>SFDocuments</literal> shared library provides a number of methods and properties to facilitate the management and handling of %PRODUCTNAME documents.
sf_writer.xhp
par_id351591014177269
help.text
Some methods are generic for all types of documents and are inherited from the <literal>SF_Document</literal> module, whereas other methods that are specific for Writer documents are defined in the <literal>SF_Writer</literal> module.
sf_writer.xhp
hd_id581582885621841
help.text
Service invocation
sf_writer.xhp
par_id141609955500101
help.text
Before using the <literal>Writer</literal> service the <literal>ScriptForge</literal> library needs to be loaded or imported:
sf_writer.xhp
par_id591589191059889
help.text
The <literal>Writer</literal> service is closely related to the <literal>UI</literal> service of the <literal>ScriptForge</literal> library. Below are a few examples of how the <literal>Writer</literal> service can be invoked.
sf_writer.xhp
par_id551621623999947
help.text
The code snippet below creates a <literal>Writer</literal> service instance that corresponds to the currently active Writer document.
sf_writer.xhp
par_id341621467500466
help.text
Another way to create an instance of the <literal>Writer</literal> service is using the <literal>UI</literal> service. In the following example, a new Writer document is created and <literal>oDoc</literal> is a <literal>Writer</literal> service instance:
sf_writer.xhp
par_id921621467621019
help.text
Or using the <literal>OpenDocument</literal> method from the <literal>UI</literal> service:
sf_writer.xhp
par_id741621467697967
help.text
It is also possible to instantiate the <literal>Writer</literal> service using the <literal>CreateScriptService</literal> method:
sf_writer.xhp
par_id271621467810774
help.text
In the example above, "MyFile.odt" is the name of an open document window. If this argument is not provided, the active window is considered.
sf_writer.xhp
par_id71158288562139
help.text
It is recommended to free resources after use:
sf_writer.xhp
par_id231611610666018
help.text
However, if the document was closed using the <literal>CloseDocument</literal> method, it becomes unnecessary to free resources using the command described above.
sf_writer.xhp
par_id71611090922315
help.text
The use of the prefix "<literal>SFDocuments.</literal>" while calling the service is optional.
sf_writer.xhp
hd_id291631196803182
help.text
Definitions
sf_writer.xhp
hd_id351582885195476
help.text
Properties
sf_writer.xhp
hd_id501582887473754
help.text
Methods
sf_writer.xhp
par_id891611613601554
help.text
List of Methods in the Writer Service
sf_writer.xhp
par_id501623063693649
help.text
Depending on the parameters provided this method will return:
sf_writer.xhp
par_id611623063742045
help.text
A zero-based Array (or a tuple in Python) with the names of all the forms contained in the document (if the <literal>form</literal> argument is absent)

Loading…

User avatar None

String updated in the repository

LibreOffice Help - master / text/sbasic/shared/03Estonian

 
8 months ago
Browse all component changes

Glossary

English Estonian
No related strings found in the glossary.

String information

Context
sf_writer.xhp
par_id141609955500101
help.text
Source string description
YFLf6
Source string location
sf_writer.xhp
String age
8 months ago
Source string age
8 months ago
Translation file
et/helpcontent2/source/text/sbasic/shared/03.po, string 3374