Part1: Type some incorrect text to the Sheet. Run the macro in Basic Editor (menu Run/ Run) and in Calc it doesn't funct - Automatic Spell Checking will not be activate/deactivate. But if you run macro from the Calc menu (Tools/ Macros/ Run macro) then it runs. For Writer it runs from the Basic Editor and also from the Writer menu. It is problem in all tested versions - 7.0.4.2/7.1.1.1/7.2.0.0.alpha0+ Windows7/10x64 Macro is edited (add msgbox) Macro Record from version 7.0.4.2: Sub AutomaticSpellCheckingOnOff 'activate or deactivate Automatic Spell Checking dim document as object, dispatcher as object dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name="SpellOnline" if msgbox("Yes = Activate Automatic Spell Checking" & chr(13) & "No = Deactivate it",4)=6 then 'Activate/Deactivate Automatic Spell Checking args1(0).Value=true 'non-functional for Run in Basic Editor else args1(0).Value=false 'non-functional for Run in Basic Editor end if document=ThisComponent.CurrentController.Frame dispatcher=createUnoService("com.sun.star.frame.DispatchHelper") dispatcher.executeDispatch(document, ".uno:SpellOnline", "", 0, args1()) 'Macro Record in 7.0.4.2 saves parameter args1() End Sub -------------------------- Part2: In 7.1.1.1/7.2.0.0.alpha0+ it ignores the parameter args1() in the command dispatcher.executeDispatch(document, ".uno:SpellOnline", "", 0, args1()) in the upper macro, so it is possible only to flip ON/OFF, but not to set only ON or to set only OFF. In these versions, the Tools/ Macros/ Record Macro saves on/off Automatic Spell Checking with the empty parameter Array() -> dispatcher.executeDispatch(document, ".uno:SpellOnline", "", 0, Array()). Macro Record from 7.1.1.1: sub RecordSpellCheckOnOff rem ---------------------------------------------------------------------- rem define variables dim document as object dim dispatcher as object rem ---------------------------------------------------------------------- rem get access to the document document = ThisComponent.CurrentController.Frame dispatcher = createUnoService("com.sun.star.frame.DispatchHelper") rem ---------------------------------------------------------------------- dispatcher.executeDispatch(document, ".uno:SpellOnline", "", 0, Array()) 'Macro Record in 7.1.1.1 saves empty parameter Array() end sub Version: 7.0.4.2 (x64) Build ID: dcf040e67528d9187c66b2379df5ea4407429775 CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: en-GB Calc: CL Version: 7.1.1.1 (x64) / LibreOffice Community Build ID: 575c5867c4cc13d7ae78f9ce39a54a52ed38c769 CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community Build ID: 576c6054d8d445cc977fc3789c572cfc2a3ccd83 CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL
I can confirm part 1 with Version: 7.2.0.0.alpha0+ / LibreOffice Community Build ID: 7b649f835cc00ed76927c6821a135605609bed4e CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded and Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) part2 looks like different bug, please create new one and add me to CC (regression, it worked in 7.0.4.2).
Created attachment 170015 [details] test file
Part1 is one clean bug - it is not possible to turn on/off Automatic Spell Checking by macro in Basic Editor in versions 7.0/7.1/7.2 (and maybe also in older versions) But there are maybe 2 bugs in Part2 2a) no accepting the parameter args1() in versions 7.1/7.2 2b) Macro Record in versions 7.1/7.2 saves empty parameter Array() instead args1() in version 7.0 I'm not sure if to do one or two new threads for Part2.
(In reply to Kamil Landa from comment #3) > Part1 is one clean bug - it is not possible to turn on/off Automatic Spell > Checking by macro in Basic Editor in versions 7.0/7.1/7.2 (and maybe also in > older versions) > > But there are maybe 2 bugs in Part2 > 2a) no accepting the parameter args1() in versions 7.1/7.2 > 2b) Macro Record in versions 7.1/7.2 saves empty parameter Array() instead > args1() in version 7.0 > > I'm not sure if to do one or two new threads for Part2. Looks like two bugs.
Dear Kamil Landa, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Part1: bug is still present Version: 7.5.1.1 (X86_64) / LibreOffice Community Build ID: bd819218336a5be54a11b986ea4dd2db2efb120e CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win Locale: cs-CZ (cs_CZ); UI: cs-CZ Calc: CL threaded