Bug 167852 - Libreoffice can't create a macro to set Format > Pargraph > Indent > FirstLine = 1 cm
Summary: Libreoffice can't create a macro to set Format > Pargraph > Indent > FirstLin...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-07 15:58 UTC by Andrea Ventura
Modified: 2026-01-17 14:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ventura 2025-08-07 15:58:37 UTC
Description:
The same in setting Line spacing = Single

Note:
In safe mode I can't create a Macro.

Actual Results:
Nothing happens

Expected Results:
Macro to work!


Reproducible: Always


User Profile Reset: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: it
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
-------------
Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: en-US
Calc: default
Comment 1 Jesus Solis 2025-08-22 21:55:23 UTC
Can't reproduce; I am able to set indentation for first line to 1cm.

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: fb4792146257752f54eab576deb869869b108571
CPU threads: 12; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL
Comment 2 Andrea Ventura 2025-08-24 08:41:50 UTC
I'm sorry: it doesn't work on my PC.

The macro is copied below.

(I have updated LO version to 25.2.5.2)

Thank you, Andrea Ventura.

------------------------------------

REM  *****  BASIC  *****

...

sub Prova
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 -------------------------------------------------------------------
dim args1(2) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FirstLineParaMargin.FirstLineIndent"
args1(0).Value = 1000
args1(1).Name = "FirstLineParaMargin.FirstLineRelIdent"
args1(1).Value = 100
args1(2).Name = "FirstLineParaMargin.AutoFirst"
args1(2).Value = false

dispatcher.executeDispatch(document, ".uno:FirstLineParaMargin", "", 0, args1())

rem -------------------------------------------------------------------
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "NumberingStart"
args2(0).Value = false

dispatcher.executeDispatch(document, ".uno:NumberingStart", "", 0, args2())

rem -------------------------------------------------------------------
dim args3(0) as new com.sun.star.beans.PropertyValue
args3(0).Name = "NumNewStartAt"
args3(0).Value = 65535

dispatcher.executeDispatch(document, ".uno:NumNewStartAt", "", 0, args3())

end sub
Comment 3 Buovjaga 2026-01-17 14:22:58 UTC
Please ask for people on https://ask.libreoffice.org/ to review your macro code. If it is found to be correct, we can continue with this report.