Change-Id: I309ce0b4aade85a510836be0d04bf66c916a464a
Reviewed-on: https://gerrit.libreoffice.org/75507
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
This commit is contained in:
Andrea Gelmini
2019-07-12 17:56:42 +02:00
parent ca5f5d6c9f
commit 16e15bd404
19 changed files with 26 additions and 26 deletions

View File

@@ -629,7 +629,7 @@ class ItemsTable(object):
self.agenda.template, name, self.section) self.agenda.template, name, self.section)
self.agenda.textSectionHandler.breakLinkOfTextSection( self.agenda.textSectionHandler.breakLinkOfTextSection(
self.section) self.section)
# we need to get a instance after linking # we need to get an instance after linking
ItemsTable.table = self.agenda.getTable(name) ItemsTable.table = self.agenda.getTable(name)
self.section = self.agenda.getSection(name) self.section = self.agenda.getSection(name)

View File

@@ -25,7 +25,7 @@ class TemplateConsts:
''' '''
section name <b>prefix</b> for sections that contain items. section name <b>prefix</b> for sections that contain items.
this is also used as table name prefix, since each items section this is also used as table name prefix, since each items section
must contain a table whos name is identical name to the section's name. must contain a table whose name is identical name to the section's name.
''' '''
SECTION_ITEMS = "AGENDA_ITEMS" SECTION_ITEMS = "AGENDA_ITEMS"
''' '''

View File

@@ -152,7 +152,7 @@ public class NumberFormatter
} }
else else
{ {
// TODO: throws a exception in a try catch environment, very helpful? // TODO: throws an exception in a try catch environment, very helpful?
throw new Exception(); throw new Exception();
} }
} }

View File

@@ -133,7 +133,7 @@ public class PropertySetHelper
} }
catch (com.sun.star.lang.IllegalArgumentException e) catch (com.sun.star.lang.IllegalArgumentException e)
{ {
DebugHelper.writeInfo("can't convert a object to integer."); DebugHelper.writeInfo("can't convert an object to integer.");
} }
} }
return nValue; return nValue;
@@ -179,7 +179,7 @@ public class PropertySetHelper
} }
catch (com.sun.star.lang.IllegalArgumentException e) catch (com.sun.star.lang.IllegalArgumentException e)
{ {
DebugHelper.writeInfo("can't convert a object to integer."); DebugHelper.writeInfo("can't convert an object to integer.");
} }
} }
return nValue; return nValue;
@@ -221,7 +221,7 @@ public class PropertySetHelper
} }
catch (com.sun.star.lang.IllegalArgumentException e) catch (com.sun.star.lang.IllegalArgumentException e)
{ {
DebugHelper.writeInfo("can't convert a object to string."); DebugHelper.writeInfo("can't convert an object to string.");
} }
} }
return sValue; return sValue;

View File

@@ -34,7 +34,7 @@ from com.sun.star.ucb.TransferCommandOperation import COPY
# This class is used to copy the content of a folder to # This class is used to copy the content of a folder to
# another folder. # another folder.
# There is an incosistency with argument order. # There is an inconsistency with argument order.
# It should be always: dir,filename. # It should be always: dir,filename.
class UCB(object): class UCB(object):

View File

@@ -21,7 +21,7 @@ gettext.textdomain('wiz')
def NC_(context, string): def NC_(context, string):
# Contextual strings are stored with the concatenation of # Contextual strings are stored with the concatenation of
# the context, a EOT byte, and the original string, instead of the original string # the context, an EOT byte, and the original string, instead of the original string
# see https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html # see https://www.gnu.org/software/gettext/manual/html_node/MO-Files.html
ret = gettext.gettext(context + chr(4) + string) ret = gettext.gettext(context + chr(4) + string)
if ret.find(chr(4)) == -1: if ret.find(chr(4)) == -1:

View File

@@ -388,7 +388,7 @@ public class QueryWizard extends DatabaseObjectWizard
boolean bEnabled = NewItems.length > 0; boolean bEnabled = NewItems.length > 0;
setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, bEnabled); setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, bEnabled);
setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, bEnabled); setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, bEnabled);
enableRoadmapItems(bEnabled); // Note: Performancewise this could be improved enableRoadmapItems(bEnabled); // Note: Performance wise this could be improved
} }
private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener private class FieldSelectionListener implements com.sun.star.wizards.ui.XFieldSelectionListener

View File

@@ -36,7 +36,7 @@ public interface IReportDefinitionReadAccess
/** /**
* This ServiceFactory is the 'global' Service Factory, which knows all and every thing in the program. * This ServiceFactory is the 'global' Service Factory, which knows all and everything in the program.
* @return the global service factory of the program * @return the global service factory of the program
*/ */
XMultiServiceFactory getGlobalMSF(); XMultiServiceFactory getGlobalMSF();

View File

@@ -88,7 +88,7 @@ public interface IReportDocument
void setFieldTitles(final String[] sFieldTitles); void setFieldTitles(final String[] sFieldTitles);
/** /**
* Change a the name of the 'title' of one field. * Change the name of the 'title' of one field.
* It is possible to give all element names new names which are used as * It is possible to give all element names new names which are used as
* element title of a given element name. * element title of a given element name.
* This is only used as a preview * This is only used as a preview
@@ -194,7 +194,7 @@ public interface IReportDocument
void insertDatabaseDatatoReportDocument(XMultiServiceFactory xMSF); void insertDatabaseDatatoReportDocument(XMultiServiceFactory xMSF);
// ??? // ???
/** /**
* set a internal variable to stop a maybe longer DB access. * set an internal variable to stop a maybe longer DB access.
*/ */
void StopProcess(); // cancel void StopProcess(); // cancel

View File

@@ -590,7 +590,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener
boolean bEnabled = NewItems.length > 0; boolean bEnabled = NewItems.length > 0;
setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bEnabled)); setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bEnabled));
setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bEnabled)); setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(bEnabled));
enableRoadmapItems(bEnabled); // Note: Performancewise this could be improved enableRoadmapItems(bEnabled); // Note: Performance wise this could be improved
} }
public void textChanged(TextEvent xTextEvent) public void textChanged(TextEvent xTextEvent)

View File

@@ -141,7 +141,7 @@ public class DesignTemplate
if (a == null) if (a == null)
{ {
a = SectionEmptyObject.create(); a = SectionEmptyObject.create();
// a empty group has to use bold font // an empty group has to use bold font
a.setPropertyValue("CharWeight", new Float(com.sun.star.awt.FontWeight.BOLD)); a.setPropertyValue("CharWeight", new Float(com.sun.star.awt.FontWeight.BOLD));
} }
return a; return a;
@@ -259,7 +259,7 @@ public class DesignTemplate
} }
/** /**
* create a new DesignTemplate by try to load a otr file from the given path. * create a new DesignTemplate by try to load an otr file from the given path.
* Internally we store the loaded ReportDefinition. * Internally we store the loaded ReportDefinition.
*/ */
public static DesignTemplate create(XMultiServiceFactory _xMSF, String _sPath) public static DesignTemplate create(XMultiServiceFactory _xMSF, String _sPath)

View File

@@ -87,7 +87,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
} }
/** /**
* The Constructor is protected, this is a abstract class, use Tabular or other to create an instance. * The Constructor is protected, this is an abstract class, use Tabular or other to create an instance.
* @param _xDefinitionAccess * @param _xDefinitionAccess
* @param _aResource * @param _aResource
*/ */
@@ -707,7 +707,7 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter
/** /**
* Insert a already formatted field name into a given section * Insert an already formatted field name into a given section
* *
* Use 'convertToFieldName(dbfield)' to convert a dbfield name in the right. * Use 'convertToFieldName(dbfield)' to convert a dbfield name in the right.
* *

View File

@@ -169,7 +169,7 @@ class TextDocument(object):
''' '''
This method sets the Author of a Wizard-generated template correctly This method sets the Author of a Wizard-generated template correctly
and adds a explanatory sentence to the template description. and adds an explanatory sentence to the template description.
@param WizardName The name of the Wizard. @param WizardName The name of the Wizard.
@param TemplateDescription The old Description which is being @param TemplateDescription The old Description which is being
appended with another sentence. appended with another sentence.

View File

@@ -209,7 +209,7 @@ End Function &apos; CStr V0.9.5
REM ----------------------------------------------------------------------------------------------------------------------- REM -----------------------------------------------------------------------------------------------------------------------
Public Function _CVar(ByRef psArg As String, ByVal Optional pbStrDate As Boolean) As Variant Public Function _CVar(ByRef psArg As String, ByVal Optional pbStrDate As Boolean) As Variant
&apos; psArg is presumed an output of _CStr (stored in the mean time in a text file f.i.) &apos; psArg is presumed an output of _CStr (stored in the meantime in a text file f.i.)
&apos; _CVar returns the corresponding original variant variable or Null/Nothing if not possible &apos; _CVar returns the corresponding original variant variable or Null/Nothing if not possible
&apos; Return values may of types Array, Long, Double, Date, Boolean, String, Null or Empty &apos; Return values may of types Array, Long, Double, Date, Boolean, String, Null or Empty
&apos; pbStrDate = True keeps dates as strings &apos; pbStrDate = True keeps dates as strings
@@ -1027,7 +1027,7 @@ Dim oEvents As Object, sEvent As String, sEventName As String, oEvent As Object
_RegisterDialogEventScript = False _RegisterDialogEventScript = False
If Not _hasUNOMethod(poObject, &quot;getEvents&quot;) Then Exit Function If Not _hasUNOMethod(poObject, &quot;getEvents&quot;) Then Exit Function
&apos; Remove existing event, if any, than store new script code &apos; Remove existing event, if any, then store new script code
Set oEvents = poObject.getEvents() Set oEvents = poObject.getEvents()
sEvent = Utils._GetEventName(psEvent) sEvent = Utils._GetEventName(psEvent)
sEventName = &quot;com.sun.star.awt.&quot; &amp; psListener &amp; &quot;::&quot; &amp; sEvent sEventName = &quot;com.sun.star.awt.&quot; &amp; psListener &amp; &quot;::&quot; &amp; sEvent

View File

@@ -31,7 +31,7 @@ Dim oCell as Object
While oParagraphs.HasMoreElements While oParagraphs.HasMoreElements
oPara = oParagraphs.NextElement oPara = oParagraphs.NextElement
If NOT oPara.supportsService(&quot;com.sun.star.text.Paragraph&quot;) Then If NOT oPara.supportsService(&quot;com.sun.star.text.Paragraph&quot;) Then
&apos; Note: As cells might be splitted or merged &apos; Note: As cells might be split or merged
&apos; you cannot refer to them via their indices &apos; you cannot refer to them via their indices
sCellNames = oPara.CellNames sCellNames = oPara.CellNames
For i = 0 To Ubound(sCellNames) For i = 0 To Ubound(sCellNames)

View File

@@ -25,7 +25,7 @@
<dlg:button dlg:id="CommandButton" dlg:tab-index="3" dlg:left="232" dlg:top="4" dlg:width="13" dlg:height="13" dlg:value="C"> <dlg:button dlg:id="CommandButton" dlg:tab-index="3" dlg:left="232" dlg:top="4" dlg:width="13" dlg:height="13" dlg:value="C">
<script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Tutorials.Functions.Minimize?language=Basic&amp;location=application" script:language="Script"/> <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Tutorials.Functions.Minimize?language=Basic&amp;location=application" script:language="Script"/>
</dlg:button> </dlg:button>
<dlg:text dlg:id="myText" dlg:tab-index="4" dlg:left="91" dlg:top="26" dlg:width="153" dlg:height="145" dlg:value="This text explains all the action items that the user can do to follow the current step highlighted in the road map at the left side of the tutorial window.&#x0a;&#x0a;1. Open the Format menu&#x0a;2. Choose the Paragraph command&#x0a;3. Click the Numbering tab&#x0a;&#x0a;The first step will always explain what the current tutorial is about.&#x0a;&#x0a;The last step - it is higjlighted currently in the road map - will summarize what the user now has seen or learned." dlg:multiline="true"/> <dlg:text dlg:id="myText" dlg:tab-index="4" dlg:left="91" dlg:top="26" dlg:width="153" dlg:height="145" dlg:value="This text explains all the action items that the user can do to follow the current step highlighted in the road map at the left side of the tutorial window.&#x0a;&#x0a;1. Open the Format menu&#x0a;2. Choose the Paragraph command&#x0a;3. Click the Numbering tab&#x0a;&#x0a;The first step will always explain what the current tutorial is about.&#x0a;&#x0a;The last step - it is highlighted currently in the road map - will summarize what the user now has seen or learned." dlg:multiline="true"/>
<dlg:button dlg:id="show" dlg:tab-index="1" dlg:left="142" dlg:top="180" dlg:width="50" dlg:height="14" dlg:value="Show me"> <dlg:button dlg:id="show" dlg:tab-index="1" dlg:left="142" dlg:top="180" dlg:width="50" dlg:height="14" dlg:value="Show me">
<script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Tutorials.Functions.Show?language=Basic&amp;location=application" script:language="Script"/> <script:event script:event-name="on-performaction" script:macro-name="vnd.sun.star.script:Tutorials.Functions.Show?language=Basic&amp;location=application" script:language="Script"/>
</dlg:button> </dlg:button>