Age | Commit message (Collapse) | Author |
|
- 'Locale' returns a la-CO (language-COUNTRY) string
derived from com.sun.star.lang.Locale
- 'PythonVersion' returns Python major.minor.patchlevel
supplied by ScriptForgeHelper.py platform class
Change-Id: I2b8495c03253b17c5e4ba14765b1f359eee67813
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111284
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
So far IsADate checked the format of the date only,
not the validity vs. leap years, days in month, etc.
Corrected with an error check on the DateSerial() builtin function
Change-Id: I3fc53ea83e0a1472b2861f256266c4422cce2580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110590
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Duplicate the array
A simple assignment copies the reference, not the data
In code like:
Dim a, b
a = Array(1, 2, 3)
b = a
a(2) = 30
MsgBox b(2) ' Displays 30
Replace by
b = SF_Array.Copy(a)
to get a real duplication of the initial array
Change-Id: I62b931b92995c6607a3b354c60f0ebafb042b88a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110591
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
List was incomplete: trre control properties were missing
Additionally, comments wre reread thanks to writing of help files
Typos or approximations were reviewed
Change-Id: I799011f27d89d93278027f5f3cf9853d3d2371cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110575
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I30743ea4caf9702f26005567d293f076ff7f78fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110517
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
|
|
The SetFocus() method simply applies the setFocus() UNO method
for usual controls.
However controls belonging to a table control require,
to receive the focus, the columns to be scanned from left to right
up to the targeted column.
Change-Id: Idbb1ca4b4b29bff889daa83cfa895501c466bb26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110485
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
- separate error message vs corresponding message for dialogs
- more precision on form naming: form document.form name
- add new error message in SF_Exception and SF_Root messages lists
- add new message in po files
Change-Id: I1f7f2dc7b5627d12a8c5ecf238e6cbd3aa1505fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110380
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I322b1176c02b33336e4e393e565ad66f43eb42a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110343
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
In statements like:
DebugPrint(,a)
the first missing argument gives an error 448
The error is now intercepted and replaced by a zero-length string
in the console display
Change-Id: Id41f2c786ef935e062815f8cf1e80b0a1fec5857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110327
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
The whole set of properties is created including
- updatable OnXxx event properties
- the Value property as a shortcut to the control content
for all the control types
Controls events management is included
Access to the subcontrols of table controls is included as well
Addition of the new file in the SFDocuments make file
Change-Id: I6308a71e3dd499d729cee1565002b6a9d84f7743
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110289
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
The DefaultDate was read correctly but not returned to the calling program
Change-Id: Ie15a48a6366c1575f4914a2b60c836890fe53a43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109921
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I0ce46927730cef961bbefd12551b2d56e8fe357d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109240
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
The g_exportedScripts variable contains the list of the methods
in the script that may be made visible in LO IDE's
(APSO and alike)
Currently that list (in fact, a tuple) must be empty
Change-Id: I86abc0bb55be524a3f9d39da7c6bd248abec8668
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109435
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
MoveFirst, MoveLast, MoveNew, MoveNext, MovePrevious
Requery
Change-Id: I7d4962e16652c6ef6e0b5400a8b4beae0b15d20b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109298
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Includes a bunch of OnXxx event properties
Change-Id: Ie2cbb91bb29288a17eb835e8abeeeaa6e8ef6d2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109177
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Since 54f0ae24173a69d145e2ffc3aaa2f6bd29e39611
Change-Id: I556bea5e62819f6b6f375e868d212e45c6786064
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108669
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Subforms are controls in UNO
They are considered as form objects in ScriptForge
Additional error message in po files
SF_Form._IsStillAlive() has been simplified
SF_Form._GetParents() has been reviewed to incorporate subforms
Change-Id: I89306d5c65e34ae1596f84b674ed338e070957f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108475
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Strategy for management of Form and FormControl events:
At the contrary of Dialogs and DialogControls, which are always started from some code,
Forms and FormControls will be initiated most often by the user, even if the SFDocuments library
allows to start forms programmatically
For Forms started programmatically, the corresponding objects are built top-down
Event management of forms and their controls requires to being able to rebuild Form
and FormControl objects bottom-up
To avoid multiple rebuilds requested by multiple events,
1. The active form objects are cached in a global array of _FormCache types
2. FormControl objects are cached in Form objects
3. The bottom-up rebuild is executed only once, at instance creation
Change-Id: I76ebb8064a900397427554ca47464c99266e0e5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108325
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: If3f35326cef033593b69f6f1e3496dd5c283b29d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108053
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
|
|
Only when form instance is inside a Base form document
Change-Id: I6fd0cf1d77588b9720efb2c45384371a122dbd4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108048
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Event management of forms requires to being able
to rebuild a Form object from its
com.sun.star.form.XForm or com.sun.star.comp.forms.ODatabaseForm
UNO instance
For that purpose, the active forms are buffered
in a global array of _FormCache types
Change-Id: I004934f4b9d24ec035cc4adc798df1a2ac01d227
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108047
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
OpenFormDocument has 2 arguments
- the form document hierarchical name
- the mode: normal or design
If the form document is already open, the focus is set on it
Change-Id: I6fb055cde2e856d7dad17af99b11bc2fd15060c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108023
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
When the console is first started in non-modal mode
and the launching macro stops normally,
when the console is then requested to restart in modal mode,
it does not start
This patch forces a reinit of the console dialog when it is
started in modal mode, whatever its status
Change-Id: Ia687661e60259c235f2b45decf9bb6e342d3f26b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107973
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Activate
- the parent document if Writer
- the parent sheet if Calc
- the parent form document if Base
Change-Id: Idf2af0184111467d0a94fb27709fd6bb289c6414
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107888
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: Ibbf592ba80afbe174662e1cc2dd992e7a16f67e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107876
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
New SF_Form class in SFDocuments library
Support for Writer, Calc and Base forms
Skeleton of Form class module
Forms() methods in Calc, Base and Document modules
to create a new instance
New error messages in po file
Change-Id: Id78a4604caf61901d87750026be45cef8f74f110
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107848
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I637cd4a9a074c1907f3547f69999dea13c8d9f4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107441
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
Change-Id: I04ef80a7aee2a3244fc1b69967e2a4e855fd4a72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107497
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
The editable character of OnEvent properties is removed
Structures in memory were updated correctly but without
effect on behaviour of the dialog
Feature is not essential
NB OnNodeExpanded and OnNodeSelected remain editable: the
mechanism is not via the Basic IDE and the functionality
is correct
Change-Id: If697120850efcc21ecf1f9004e2b64a5a69bf346
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107426
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
OnNodeSelected and OnNodeExpanded cannot be defined thru the Basic IDE
Those editable new properties are used to set up the relevant
listeners on the control's view
The listener Subs are garthered in a new module, SF_DialogListener
The need to preserve these 2 properties required the existence of
a cache of all control objects in the parent dialog instance
This technique with listeners can be reused (mutatis mutandis)
in other contexts to introduce additional event types
Change-Id: I243808590e0534901e041a5f5abad64eb5e118d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107420
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: Ie6559dc9691741e7daa224aa876a48b60519d469
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107314
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
FindNode() traverses a tree recursively and stops at the 1st node
meeting either:
- DisplayValue is like a given string pattern
- DataValue is equal to a given scalar value
The returned node can easily be made current
The commit includes a check on the control type
of all methods reserved for tree controls
This has a minor impact on po files
The version number of the po files is incremented
Change-Id: I9f418df35bd4e58e0bfccc0606f5e0a5e7ac955e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107288
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
RootNode returns the root node
CurrentNode is for getting or setting a unique selected node
Change-Id: Ie92761f57fe18b188769870ed7d2e0340a9e146c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107227
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I26d4878c4e555c3760aec442d0a27b753ba2fc90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107184
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
A new dialog control is is introduced: the tree control
The proposed methods let create a root node
and build a tree, either branch by branch
or many branches at once when they are issued from a sorted array
Change-Id: I4265fd6e413be383a7b6df3b9cd754d657066c19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107154
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Applied on DialogControl class:
Assign the triggered script as a string to the OnXxx properties
or as a zero-length string to remove any trigger
Check of control type is included
Change-Id: I199fbfb565740f7ca4576c39bebf7dc9e4052289
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106807
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Applied on DialogControl class:
OnXxx properties return the triggered script as a string
or a zero-length string when not defined
Change-Id: I832f4f5ee0fcddfecd877bc710cce276bfb5b951
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106803
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Applied on Dialog class:
Assign the triggered script as a string to the OnXxx properties
or as a zero-length string to remove any trigger
Change-Id: I91169a761ece7bf464f58bd3f3415d1b023c71a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106775
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Applied on Dialog class:
OnXxx properties return the triggered script as a string
or a zero-length string when not defined
Change-Id: I85b6b80811e09f921f993c707002263235f70c9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106604
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Start 7.2
Change-Id: Ic09246b985038730a96c870226e2d4ce25ff24d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106530
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
The scope can be expressed as "document" or "application"
but also as "Document" or "DOCUMENT"
Change-Id: Id70407cc1167cfcac727d63f1ab29fbba4fc6645
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106054
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
When an argument is absent in a varying list of
arguments, it is not missing, it is EMPTY
Change-Id: Ib46a692292886739e69f38a9a12c6ea4a9922a41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105948
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Avoid "Object variable not set" Basic runtime error
on line
Set oLibraries = oComp.DialogLibraries
when pvArgs(0) is a XComponent object
Change-Id: Id35a492905c47d81ef02d433c98d83b4c81eafeb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105921
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I937743f8d1789c68ed960c6a5aede0508dfa7bcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105282
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
|
|
Change-Id: I79d8cd8f66ee83c2af42a828596e852248d51138
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105439
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
Change-Id: Idc0bbdd37023f010c8fdb70356f9b55c132e4065
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105433
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: I7ba612d8880833057269290212bcd9d864bb7395
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105399
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
modified: Repository.mk
modified: desktop/CppunitTest_desktop_lib.mk
modified: scp2/source/ooo/directory_ooo.scp
modified: wizards/Module_wizards.mk
modified: wizards/source/configshare/dialog.xlc
modified: wizards/source/configshare/script.xlc
Change-Id: Ia2c905179f3c1784a1bd31fcca7340e65c5ce27a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105410
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
|
|
Change-Id: Ied10667ec70293267b6a7010f0e40ed345b6cb9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105400
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|
|
Change-Id: I2647dc84fe4618cf5b1ba1d443e850b4a3ea6de9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105403
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
|