I think you need the Alternative Find & Replace extension (“AltSearch”, below). Recently I was pointed to it for a different task, and it’s a very powerful tool. You will need to save it (from link above) locally, then Tools > Extension Manager… > Add > [browse to saved file, click, etc.] to install.
Once you’ve got it (for me, needed a LO restart; toolbar icon could be prettier! ) then … how to use it?! There is a help file (linked on the download page), and you can search AskLibo for other answers that explain it. (I had a very helpful reply about it recently which provides one good example.)
I just tried something akin to your question (I think!):
- Fire up AltSearch.
- In “Search for:” , choose Properties dropdown > Same format of characters (based on cursor) (= last option) > then FInd All.
-
Give it some time! (Or maybe it’s just that I have an antique laptop!)
- Once it announces the number of hits found, click in “Replace:” dropdown, choose “Paragraph style”. The list of available styles will pop up.
- Choose the one you want to apply (double click), and the line will populate.
- Then > Replace all.
-
Give it some time! (or maybe it’s my antique, etc.). That should do it.
I tried it with “Hanging indent” on a 15 page (single space) document. Worked a treat.
That might not be the precise set of steps for your use case, but it’s one approach that worked for me (on Linux Mint Xfce + LO 4.0.3). More expert users will hopefully be along shortly! Hope this helps in the meanwhile.
P.s. On macro recording, have you enabled it?