/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include #include #include #include #include #include #include #include "officerestartmanager.hxx" using namespace ::com::sun::star; namespace comphelper { uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames_static() { uno::Sequence< OUString > aResult( 1 ); aResult[0] = getServiceName_static(); return aResult; } OUString SAL_CALL OOfficeRestartManager::getImplementationName_static() { return OUString( "com.sun.star.comp.task.OfficeRestartManager" ); } OUString SAL_CALL OOfficeRestartManager::getSingletonName_static() { return OUString( "com.sun.star.task.OfficeRestartManager" ); } OUString SAL_CALL OOfficeRestartManager::getServiceName_static() { return OUString( "com.sun.star.comp.task.OfficeRestartManager" ); } uno::Reference< uno::XInterface > SAL_CALL OOfficeRestartManager::Create( const uno::Reference< uno::XComponentContext >& rxContext ) { return static_cast< cppu::OWeakObject* >( new OOfficeRestartManager( rxContext ) ); } // XRestartManager void SAL_CALL OOfficeRestartManager::requestRestart( const uno::Reference< task::XInteractionHandler >& /* xInteractionHandler */ ) throw (uno::Exception, uno::RuntimeException, std::exception) { if ( !m_xContext.is() ) throw uno::RuntimeException(); { ::osl::MutexGuard aGuard( m_aMutex ); // if the restart already running there is no need to trigger it again if ( m_bRestartRequested ) return; m_bRestartRequested = true; // the office is still not initialized, no need to terminate, changing the state is enough if ( !m_bOfficeInitialized ) return; } // TODO: use InteractionHandler to report errors try { // register itself as a job that should be executed asynchronously uno::Reference< lang::XMultiComponentFactory > xFactory( m_xContext->getServiceManager(), uno::UNO_SET_THROW ); uno::Reference< awt::XRequestCallback > xRequestCallback( xFactory->createInstanceWithContext( OUString( "com.sun.star.awt.AsyncCallback" ), m_xContext ), uno::UNO_QUERY_THROW ); xRequestCallback->addCallback( this, uno::Any() ); } catch ( uno::Exception& ) { // the try to request restart has failed m_bRestartRequested = false; } } sal_Bool SAL_CALL OOfficeRestartManager::isRestartRequested( sal_Bool bOfficeInitialized ) throw (uno::Exception, uno::RuntimeException, std::exception) { ::osl::MutexGuard aGuard( m_aMutex ); if ( bOfficeInitialized && !m_bOfficeInitialized ) m_bOfficeInitialized = bOfficeInitialized; return m_bRestartRequested; } // XCallback void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ ) throw ( uno::RuntimeException, std::exception ) { try { bool bSuccess = false; if ( m_xContext.is() ) { uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create(m_xContext); // Turn Quickstarter veto off uno::Reference< beans::XPropertySet > xPropertySet( xDesktop, uno::UNO_QUERY_THROW ); OUString aVetoPropName( "SuspendQuickstartVeto" ); uno::Any aValue; aValue <<= true; xPropertySet->setPropertyValue( aVetoPropName, aValue ); try { bSuccess = xDesktop->terminate(); } catch( uno::Exception& ) {} if ( !bSuccess ) { aValue <<= false; xPropertySet->setPropertyValue( aVetoPropName, aValue ); } } if ( !bSuccess ) m_bRestartRequested = false; } catch( uno::Exception& ) { // the try to restart has failed m_bRestartRequested = false; } } // XServiceInfo OUString SAL_CALL OOfficeRestartManager::getImplementationName() throw (uno::RuntimeException, std::exception) { return getImplementationName_static(); } sal_Bool SAL_CALL OOfficeRestartManager::supportsService( const OUString& aServiceName ) throw (uno::RuntimeException, std::exception) { return cppu::supportsService(this, aServiceName); } uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames() throw (uno::RuntimeException, std::exception) { return getSupportedServiceNames_static(); } } // namespace comphelper void createRegistryInfo_OOfficeRestartManager() { static ::comphelper::module::OAutoRegistration< ::comphelper::OOfficeRestartManager > aAutoRegistration; static ::comphelper::module::OSingletonRegistration< ::comphelper::OOfficeRestartManager > aSingletonRegistration; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ office-3-4-1'>libreoffice-3-4-1 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2021-09-14 13:23:14 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2021-09-14 13:39:38 +0200
commit561c214c699f3b563ba2507fd1ad9a709cf16653 (patch)
tree9115b32cddb880b72ecb721e4d62643401f08073 /source/si/helpcontent2
parent4460c7babd574c5040a528d10fe51001c27680bc (diff)
update translations for master
and foce-fix errors using pocheck Change-Id: I12d26e666d46993fd4ff26616c09be9e5bf82fcd
Diffstat (limited to 'source/si/helpcontent2')
-rw-r--r--source/si/helpcontent2/source/auxiliary.po11
-rw-r--r--source/si/helpcontent2/source/text/sbasic/guide.po389
-rw-r--r--source/si/helpcontent2/source/text/sbasic/python.po160
-rw-r--r--source/si/helpcontent2/source/text/sbasic/shared.po376
-rw-r--r--source/si/helpcontent2/source/text/sbasic/shared/01.po71
-rw-r--r--source/si/helpcontent2/source/text/sbasic/shared/02.po172
-rw-r--r--source/si/helpcontent2/source/text/sbasic/shared/03.po3167
-rw-r--r--source/si/helpcontent2/source/text/scalc/00.po6
-rw-r--r--source/si/helpcontent2/source/text/scalc/01.po980
-rw-r--r--source/si/helpcontent2/source/text/scalc/04.po133
-rw-r--r--source/si/helpcontent2/source/text/scalc/06.po5
-rw-r--r--source/si/helpcontent2/source/text/scalc/guide.po547
-rw-r--r--source/si/helpcontent2/source/text/schart.po102
-rw-r--r--source/si/helpcontent2/source/text/schart/00.po62
-rw-r--r--source/si/helpcontent2/source/text/schart/01.po30
-rw-r--r--source/si/helpcontent2/source/text/schart/04.po38
-rw-r--r--source/si/helpcontent2/source/text/sdatabase.po904
-rw-r--r--source/si/helpcontent2/source/text/sdraw/04.po109
-rw-r--r--source/si/helpcontent2/source/text/sdraw/guide.po10
-rw-r--r--source/si/helpcontent2/source/text/shared.po76
-rw-r--r--source/si/helpcontent2/source/text/shared/00.po106
-rw-r--r--source/si/helpcontent2/source/text/shared/01.po447
-rw-r--r--source/si/helpcontent2/source/text/shared/02.po251
-rw-r--r--source/si/helpcontent2/source/text/shared/07.po13
-rw-r--r--source/si/helpcontent2/source/text/shared/autokorr.po54
-rw-r--r--source/si/helpcontent2/source/text/shared/explorer/database.po892
-rw-r--r--source/si/helpcontent2/source/text/shared/guide.po813
-rw-r--r--source/si/helpcontent2/source/text/shared/optionen.po205
-rw-r--r--source/si/helpcontent2/source/text/simpress/00.po14
-rw-r--r--source/si/helpcontent2/source/text/simpress/01.po19
-rw-r--r--source/si/helpcontent2/source/text/simpress/02.po85
-rw-r--r--source/si/helpcontent2/source/text/simpress/guide.po39
-rw-r--r--source/si/helpcontent2/source/text/smath/00.po68
-rw-r--r--source/si/helpcontent2/source/text/smath/02.po12
-rw-r--r--source/si/helpcontent2/source/text/smath/04.po32
-rw-r--r--source/si/helpcontent2/source/text/smath/06.po9
-rw-r--r--source/si/helpcontent2/source/text/smath/guide.po92
-rw-r--r--source/si/helpcontent2/source/text/swriter.po98
-rw-r--r--source/si/helpcontent2/source/text/swriter/00.po47
-rw-r--r--source/si/helpcontent2/source/text/swriter/01.po604
-rw-r--r--source/si/helpcontent2/source/text/swriter/04.po6
-rw-r--r--source/si/helpcontent2/source/text/swriter/guide.po46
42 files changed, 7642 insertions, 3658 deletions
diff --git a/source/si/helpcontent2/source/auxiliary.po b/source/si/helpcontent2/source/auxiliary.po
index 52450485964..823f1c3d5f9 100644
--- a/source/si/helpcontent2/source/auxiliary.po
+++ b/source/si/helpcontent2/source/auxiliary.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2021-06-24 12:51+0200\n"
+"POT-Creation-Date: 2021-09-10 23:11+0200\n"
"PO-Revision-Date: 2018-07-19 12:57+0000\n"
"Last-Translator: Anonymous Pootle User\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -124,6 +124,15 @@ msgctxt ""
msgid "Programming with Python"
msgstr ""
+#. JCHAg
+#: sbasic.tree
+msgctxt ""
+"sbasic.tree\n"
+"0703\n"
+"node.text"
+msgid "Script Development Tools"
+msgstr ""
+
#. KsAjT
#: scalc.tree
msgctxt ""
diff --git a/source/si/helpcontent2/source/text/sbasic/guide.po b/source/si/helpcontent2/source/text/sbasic/guide.po
index 99ea799ea91..78144f696b4 100644
--- a/source/si/helpcontent2/source/text/sbasic/guide.po
+++ b/source/si/helpcontent2/source/text/sbasic/guide.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2019-11-08 19:34+0100\n"
+"POT-Creation-Date: 2021-09-10 23:11+0200\n"
"PO-Revision-Date: 2018-04-25 12:41+0000\n"
"Last-Translator: Anonymous Pootle User\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -682,6 +682,393 @@ msgctxt ""
msgid "<variable id=\"basicexamplestit\"><link href=\"text/sbasic/guide/basic_examples.xhp\" name=\"Basic Programming Examples\">Basic Programming Examples</link></variable>"
msgstr ""
+#. GKzpN
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"tit\n"
+"help.text"
+msgid "Formatting Borders in Calc with Macros"
+msgstr ""
+
+#. gDaEd
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"hd_id461623364876507\n"
+"help.text"
+msgid "<variable id=\"title\"><link href=\"text/sbasic/guide/calc_borders.xhp\" name=\"Calc_Borders_h1\">Formatting Borders in Calc with Macros</link></variable>"
+msgstr ""
+
+#. JyRxe
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id461630536347127\n"
+"help.text"
+msgid "By using Basic or Python programming languages it is possible to write macros that apply formats to ranges of cells in Calc."
+msgstr ""
+
+#. 7FCuQ
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"hd_id81630536486560\n"
+"help.text"
+msgid "Formatting Borders in Ranges of Cells"
+msgstr ""
+
+#. jZniv
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id871630536518700\n"
+"help.text"
+msgid "The code snippet below creates a <literal>Sub</literal> called <literal>FormatCellBorder</literal> that applies new border formats to a given range address in the current Calc sheet."
+msgstr ""
+
+#. Xzm6Q
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id131630537785605\n"
+"help.text"
+msgid "' Creates the UNO struct that will store the new line format"
+msgstr ""
+
+#. qpADJ
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id971630537786724\n"
+"help.text"
+msgid "' Gets the target cell"
+msgstr ""
+
+#. jXfEv
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id791630537787373\n"
+"help.text"
+msgid "' Applies the new format to all borders"
+msgstr ""
+
+#. 3csnz
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id141630537941393\n"
+"help.text"
+msgid "The <literal>Sub</literal> described above takes in four arguments:"
+msgstr ""
+
+#. r5ThF
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id841630538209958\n"
+"help.text"
+msgid "<emph>cellAddress</emph> is a string such as denoting the range to be formatted in the format \"A1\"."
+msgstr ""
+
+#. dfuE6
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id821630538210271\n"
+"help.text"
+msgid "<emph>newStyle</emph> is an integer value that corresponds to the border line style (see <link href=\"text/sbasic/guide/calc_borders.xhp#LineStyles_h2\" name=\"LineStyles_link\">Line Styles</link> below)."
+msgstr ""
+
+#. gKaYD
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id191630538210607\n"
+"help.text"
+msgid "<emph>newWidth</emph> is an integer value that defines the line width."
+msgstr ""
+
+#. wVnmn
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id71630538211142\n"
+"help.text"
+msgid "<emph>newColor</emph> is an integer value corresponding to a color defined using the <link href=\"text/sbasic/shared/03010305.xhp\" name=\"RGB_link\">RGB</link> function."
+msgstr ""
+
+#. 3gYJs
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id201630538522838\n"
+"help.text"
+msgid "To call <literal>FormatCellBorder</literal> create a new macro and pass the desired arguments, as shown below:"
+msgstr ""
+
+#. XpcA7
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id651630603779228\n"
+"help.text"
+msgid "' Gives access to the line style constants"
+msgstr ""
+
+#. 44Cm4
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id321630538931144\n"
+"help.text"
+msgid "' Formats \"B5\" with solid blue borders"
+msgstr ""
+
+#. m5WA7
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id91630538931686\n"
+"help.text"
+msgid "' Formats all borders in the range \"D2:F6\" with red dotted borders"
+msgstr ""
+
+#. yt8qz
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id31630540159114\n"
+"help.text"
+msgid "It is possible to implement the same functionality in Python:"
+msgstr ""
+
+#. FEQGU
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"pyc_id411630540777672\n"
+"help.text"
+msgid "# Defines the new line format"
+msgstr ""
+
+#. cxBAF
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"pyc_id361630540778786\n"
+"help.text"
+msgid "# Scriptforge service to access cell ranges"
+msgstr ""
+
+#. hUVfn
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id931630541661889\n"
+"help.text"
+msgid "The code snippet below implements a macro named <literal>myMacro</literal> that calls <literal>formatCellBorder</literal>:"
+msgstr ""
+
+#. zmvzf
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id261630541889040\n"
+"help.text"
+msgid "The Python code presented above uses the <link href=\"text/sbasic/shared/03/lib_ScriptForge.xhp\" name=\"SF_link\">ScriptForge library</link> that is available since %PRODUCTNAME 7.2."
+msgstr ""
+
+#. FfECT
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"hd_id361630539136798\n"
+"help.text"
+msgid "Line Styles"
+msgstr ""
+
+#. Qt5gG
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id501630539147234\n"
+"help.text"
+msgid "Line styles are defined as integer constants. The table below lists the constants for the line styles available in <menuitem>Format - Cells - Borders</menuitem>:"
+msgstr ""
+
+#. X2WVp
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id651630604006712\n"
+"help.text"
+msgid "Constant name"
+msgstr ""
+
+#. JTgFF
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id501630539273987\n"
+"help.text"
+msgid "Integer value"
+msgstr ""
+
+#. GZPBL
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id191630539273987\n"
+"help.text"
+msgid "Line style name"
+msgstr ""
+
+#. cGhRo
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id691630539273987\n"
+"help.text"
+msgid "Solid"
+msgstr ""
+
+#. aFDHe
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id591630539325162\n"
+"help.text"
+msgid "Dotted"
+msgstr ""
+
+#. XJZxB
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id881630539433260\n"
+"help.text"
+msgid "Dashed"
+msgstr ""
+
+#. VeExq
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id111630539463634\n"
+"help.text"
+msgid "Fine dashed"
+msgstr ""
+
+#. n9ZFA
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id261630539471483\n"
+"help.text"
+msgid "Double thin"
+msgstr ""
+
+#. ydBcG
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id671630539478101\n"
+"help.text"
+msgid "Dash dot"
+msgstr ""
+
+#. a4wFd
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id701630539484498\n"
+"help.text"
+msgid "Dash dot dot"
+msgstr ""
+
+#. A9PVK
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id751630539680866\n"
+"help.text"
+msgid "Refer to the <link href=\"https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1table_1_1BorderLineStyle.html\" name=\"BorderLineStyle_link\">BorderLineStyle Constant Reference</link> in the LibreOffice API documentation to learn more about line style constants."
+msgstr ""
+
+#. aJTNw
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"hd_id31630542361666\n"
+"help.text"
+msgid "Formatting Borders Using TableBorder2"
+msgstr ""
+
+#. yQYnF
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id11630542436346\n"
+"help.text"
+msgid "Range objects have a property named <literal>TableBorder2</literal> that can be used to format range borders as it is done in the <menuitem>Format - Cells - Borders</menuitem> dialog in the <emph>Line Arrangement</emph> section."
+msgstr ""
+
+#. A25aA
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id641630542724480\n"
+"help.text"
+msgid "In addition to top, bottom, left and right borders, <literal>TableBorder2</literal> also defines vertical and horizontal borders. The macro below applies only the top and bottom borders to the range \"B2:E5\"."
+msgstr ""
+
+#. k7afV
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id191630543332073\n"
+"help.text"
+msgid "' Defines the new line format"
+msgstr ""
+
+#. hSdDm
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id281630543333061\n"
+"help.text"
+msgid "' Struct that stores the new TableBorder2 definition"
+msgstr ""
+
+#. SFrJL
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"bas_id11630543334395\n"
+"help.text"
+msgid "' Applies the table format to the range \"B2:E5\""
+msgstr ""
+
+#. cSa4U
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id401630544066231\n"
+"help.text"
+msgid "The macro can be implemented in Python as follows:"
+msgstr ""
+
+#. aipfb
+#: calc_borders.xhp
+msgctxt ""
+"calc_borders.xhp\n"
+"par_id751630539680102\n"
+"help.text"
+msgid "Refer to the <link href=\"https://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1table_1_1TableBorder2.html\" name=\"BorderLineStyle_link\">TableBorder2 Struct Reference</link> in the LibreOffice API documentation to learn more about its attributes."
+msgstr ""
+
#. YLjtF
#: control_properties.xhp
msgctxt ""
diff --git a/source/si/helpcontent2/source/text/sbasic/python.po b/source/si/helpcontent2/source/text/sbasic/python.po
index a70d84c63fc..61f4882a78b 100644
--- a/source/si/helpcontent2/source/text/sbasic/python.po
+++ b/source/si/helpcontent2/source/text/sbasic/python.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
-"POT-Creation-Date: 2021-06-11 17:08+0200\n"
+"POT-Creation-Date: 2021-09-10 23:11+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -490,13 +490,13 @@ msgctxt ""
msgid "Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples."
msgstr ""
-#. r6FEK
+#. zNyQB
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
"tit\n"
"help.text"
-msgid "Python : Monitoring Document Events"
+msgid "Monitoring Document Events"
msgstr ""
#. GyBAT
@@ -508,13 +508,58 @@ msgctxt ""
msgid "<bookmark_value>Basic;Monitoring Document Events</bookmark_value> <bookmark_value>Python;Monitoring Document Events</bookmark_value> <bookmark_value>Access2Base;Console</bookmark_value> <bookmark_value>Access2Base;Trace</bookmark_value> <bookmark_value>API;document.DocumentEvent: Monitoring Document Event</bookmark_value> <bookmark_value>API;document.XDocumentEventBroadcaster: Monitoring Document Event</bookmark_value> <bookmark_value>API;document.XDocumentEventListener: Monitoring Document Event</bookmark_value> <bookmark_value>API;lang.EventObject: Monitoring Document Event</bookmark_value>"
msgstr ""
-#. gsCNB
+#. D6i78
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
"N0527\n"
"help.text"
-msgid "<variable id=\"pythonmonitor\"><link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Monitoring Document Events</link></variable>"
+msgid "<variable id=\"pythonmonitor\"><link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Listening to Document Events</link></variable>"
+msgstr ""
+
+#. 9kSGW
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id641630582314861\n"
+"help.text"
+msgid "Listening to document events can help in the following situations:"
+msgstr ""
+
+#. NEQoZ
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id431630582396327\n"
+"help.text"
+msgid "Identify a new document at opening time, as opposed to existing ones, and perform a dedicated setup."
+msgstr ""
+
+#. Tror9
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id461630582396782\n"
+"help.text"
+msgid "Control the processing of document save, document copy, print or mailmerge requests."
+msgstr ""
+
+#. xrRHB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id631630582394790\n"
+"help.text"
+msgid "Recalculate table of contents, indexes or table entries of a Writer document when document is going to be closed"
+msgstr ""
+
+#. fCNvj
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id601630582398998\n"
+"help.text"
+msgid "Import math Python packages before opening a Calc document. Release these packages when the document closes."
msgstr ""
#. bXprs
@@ -526,13 +571,13 @@ msgctxt ""
msgid "Next to <link href=\"text/sbasic/shared/01040000.xhp\" name=\"assigning macros to events\">assigning macros to events</link>, one can monitor events raised by %PRODUCTNAME documents. Application Programming Interface (API) broadcasters are responsible for calling event scripts. Unlike listeners that require to define all supported methods, even if unused, document monitors require only two methods next to hooked event scripts."
msgstr ""
-#. HztRG
+#. 6j5Bu
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
"N0529\n"
"help.text"
-msgid "Listening to Document Events"
+msgid "Monitoring Document Events"
msgstr ""
#. SZGH4
@@ -859,31 +904,31 @@ msgctxt ""
msgid "<bookmark_value>API;GlobalScope.BasicLibraries</bookmark_value> <bookmark_value>Tools;Strings</bookmark_value>"
msgstr ""
-#. 3JWfM
+#. D5Lsi
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
"N0650\n"
"help.text"
-msgid "The <literal>Onload</literal> script is assigned to <emph>Open document</emph> event using <menuitem>Tools - Customize</menuitem> menu <menuitem>Events</menuitem> tab. Events monitoring starts from the moment a <literal>ConsoleLogger</literal> object is instantiated and ultimately stops when Basic engine releases it. <literal>OnLoad</literal> event loads necessary Basic libraries, while caught events are reported using <literal>Access2Base.Trace</literal> module."
+msgid "Using <menuitem>Tools - Customize</menuitem> menu <menuitem>Events</menuitem> tab, the <menuitem>Open document</menuitem> event fires a <literal>ConsoleLogger</literal> initialisation. <literal>_documentEventOccured</literal> routine - set by <literal>ConsoleLogger</literal> - serves as a unique entry point to trap all document events."
msgstr ""
-#. TAiMF
+#. gGpkW
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
-"N0651\n"
+"hd_id421630510141729\n"
"help.text"
-msgid "REM controller.Events module"
+msgid "controller.Events module"
msgstr ""
-#. kYy8A
+#. rJX92
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
-"N0653\n"
+"bas_id431630567378062\n"
"help.text"
-msgid "Private _obj As Object ' controller.ConsoleLogger instance"
+msgid "Global _obj As Object ' controller.ConsoleLogger instance"
msgstr ""
#. PfRq6
@@ -895,13 +940,31 @@ msgctxt ""
msgid "Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> Open Document <<"
msgstr ""
-#. BEVFV
+#. p8RfU
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
-"N0659\n"
+"bas_id371630509596674\n"
"help.text"
-msgid "REM controller.ConsoleLogger class module"
+msgid "''' ConsoleLogger unique entry point '''"
+msgstr ""
+
+#. upGWH
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"hd_id721630511986813\n"
+"help.text"
+msgid "controller.ConsoleLogger class module"
+msgstr ""
+
+#. AN8tn
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id901630509435225\n"
+"help.text"
+msgid "Events monitoring starts from the moment a <literal>ConsoleLogger</literal> object is instantiated and ultimately stops upon document closure. <literal>StartAdapter</literal> routine loads necessary Basic libraries, while caught events are reported using <literal>Access2Base.Trace</literal> module."
msgstr ""
#. 2jXHB
@@ -913,13 +976,13 @@ msgctxt ""
msgid "' ADAPTER design pattern object to be instantiated in the \"Open Document\" event"
msgstr ""
-#. 9ZNpG
+#. ueeGx
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
-"N0668\n"
+"N0666\n"
"help.text"
-msgid "' CONSTRUCTOR/DESTRUCTOR"
+msgid "Private Const UI_NOPROMPT = False ' Set it to True to visualise documents events"
msgstr ""
#. EQG8C
@@ -931,6 +994,24 @@ msgctxt ""
msgid "' MEMBERS"
msgstr ""
+#. r5AkD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bas_id131630510956418\n"
+"help.text"
+msgid "Private _txtMsg As String ' text message to log in console"
+msgstr ""
+
+#. JaEhY
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0677\n"
+"help.text"
+msgid "' PROPERTIES"
+msgstr ""
+
#. aGuEg
#: python_document_events.xhp
msgctxt ""
@@ -967,13 +1048,22 @@ msgctxt ""
msgid "''' Initialize document events logging '''"
msgstr ""
-#. A5RuU
+#. EERdL
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
-"N0706\n"
+"bas_id211630511166427\n"
"help.text"
-msgid "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Document events are being logged\", _"
+msgid "If IsMissing(evt) Then _txtMsg = \"\" Else _txtMsg = evt.EventName & \"-\""
+msgstr ""
+
+#. hxzE4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0705\n"
+"help.text"
+msgid "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Document events are being logged\", UI_PROMPT)"
msgstr ""
#. NkHa4
@@ -985,13 +1075,31 @@ msgctxt ""
msgid "''' Terminate document events logging '''"
msgstr ""
-#. np2xy
+#. JEve4
#: python_document_events.xhp
msgctxt ""
"python_document_events.xhp\n"
"N0717\n"
"help.text"
-msgid "IIf(IsMissing(evt),\"\",evt.EventName & \"-\") & \"Document events have been logged\", _"
+msgid "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Document events have been logged\", UI_PROMPT)"
+msgstr ""
+
+#. GAD2E
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0719\n"
+"help.text"
+msgid "Access2Base.Trace.TraceConsole() ' Captured events dialog"
+msgstr ""
+
+#. X8Kdh
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0722\n"
+"help.text"
+msgid "' EVENTS"
msgstr ""
#. uVpJf
diff --git a/source/si/helpcontent2/source/text/sbasic/shared.po b/source/si/helpcontent2/source/text/sbasic/shared.po
index 4b6de505ae7..4c3cb2ef3a2 100644
--- a/source/si/helpcontent2/source/text/sbasic/shared.po
+++ b/source/si/helpcontent2/source/text/sbasic/shared.po