Hi all,
asked this question in German, longer ago, never got an answer. Let’s try in English
I’ve a longer Writer doc, some sort of FAQ, written and updated by me regularly. Heading “Heading 1” start always like “: …”, so it would be cool to get the whole doc sorted by these topics, by “Heading 1”. Concretely: Each sort item should be a “Heading 1” paragraph and all other subsequent paragraphs, until the next “Heading 1” (or EOF, of course).
Based on what I’ve found, I strongly believe that there’e no existing LO Writer functionality doing this, the built in “Sort” command is greyed out if I try to mark the whole doc. And throws an error if marking some paragraphs only.
So I guess I must do this with some sort of (basic ?) macro, but to be honest I’ve no real clue where and how to start. Found several docs about functions, the API etc… But no “beginners” guide, does anyone maybe have a small example of a macro “looping through a whole document, doing this and that”, as a starting point?
Any hints appreciated!
Thanks in advance,
Michael
As requested by JohnSUN: WissenswertesOpenSuseEtc.odt