forked from amazingfate/help
Replacement done with
find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'
(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)
translation files will be prepped with:
find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
$'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'
(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)
Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
64 lines
4.2 KiB
XML
64 lines
4.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
-->
|
|
<meta>
|
|
<topic id="text/sbasic/shared/ClassModule">
|
|
<title id="tit" localize="false" xml-lang="en-US">Option ClassModule</title>
|
|
<filename>/text/sbasic/shared/classmodule.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark branch="index" id="N0082" localize="false">
|
|
<bookmark_value>Option ClassModule</bookmark_value>
|
|
</bookmark>
|
|
|
|
<section id="classmodulefunction">
|
|
<h1 id="N0083"><variable id="classmodulestatement"><link href="text/sbasic/shared/classmodule.xhp">Option ClassModule Statement</link></variable></h1>
|
|
<paragraph role="paragraph" id="N0084">Specifies that the module is a class module that contains members, properties, procedures and functions.</paragraph>
|
|
</section>
|
|
<embed href="text/sbasic/shared/00000003.xhp#beforeexecutable"/>
|
|
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
|
|
<paragraph role="paragraph" id="N0089">This statement must be used jointly with <literal>Option Compatible</literal> statement or <literal>Option VBASupport 1</literal>, the former is enabling VBA compatibility mode, while the latter is enforcing VBA support on top of compatibility.</paragraph>
|
|
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
|
|
<paragraph role="code" localize="false" id="N0086">Option ClassModule</paragraph>
|
|
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
|
|
<bascode>
|
|
<paragraph role="bascode" localize="false" id="N0092">Option Compatible</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0093">Option ClassModule</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0094"> </paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0095">' Optional members go here</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0096"> </paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0097">Private Sub Class_Initialize()</paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0098"> ' Optional construction code goes here</paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0099">End Sub ' Constructor</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0100">Private Sub Class_Terminate()</paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0101"> ' Optional destruction code goes here</paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0102">End Sub ' Destructor</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0103"> </paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0104">' Properties go here.</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0105"> </paragraph>
|
|
<paragraph role="bascode" xml-lang="en-US" id="N0106">' Procedures & functions go here.</paragraph>
|
|
<paragraph role="bascode" localize="false" id="N0107"> </paragraph>
|
|
</bascode>
|
|
<section id="relatedtopics" >
|
|
<paragraph role="paragraph" id="N0108">
|
|
Refer to <link href="text/sbasic/python/python_platform.xhp">Identifying the Operating System</link> and <link href="text/sbasic/python/python_session.xhp">Getting Session Information</link> for class module simple examples.
|
|
</paragraph>
|
|
<paragraph role="paragraph" id="N0109">
|
|
Multiple thorough class examples are available from <link href="text/sbasic/guide/access2base.xhp">Access2Base shared Basic library</link>.
|
|
</paragraph>
|
|
<embed href="text/sbasic/shared/03103200.xhp#optionbasestatement"/>
|
|
<embed href="text/sbasic/shared/03103300.xhp#explicitstatement"/>
|
|
<embed href="text/sbasic/shared/03103350.xhp#vbasupportstatement"/>
|
|
<embed href="text/sbasic/shared/compatible.xhp#compatiblestatement"/>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|