I found there's a function «getFlatParagraphIterator()», which result
in turn have functions like «getFirstPara()». That function returns a
type «XFlatParagraph», and I couldn't find in methods and properties
anything related to styles. Do anybody know anything about it?

2015-08-10 3:18 GMT+03:00 Hi-Angel <hiangel...@gmail.com>:
> Okay, to point what is confuses me with MRI — I tried to copy
> properties list when cursor is in the table of contents and somewhere
> in text. The *diff* utility then shows no difference.
>
> But supposing that there is indeed no difference, I still couldn't see
> how that could easily give me an idea for how to iterate through
> headings. I do understand that the only thing I need is just change
> style of particular paragraphs, and here I'm stuck.
>
> 2015-08-10 3:07 GMT+03:00 Hi-Angel <hiangel...@gmail.com>:
>> Thank you for suggestion. Unfortunately I didn't managed to understand
>> how to work with MRI. Could you show an example of MRI usage with this
>> particular case?
>>
>> I don't know if that relevant, but I am not writing macros, I am using
>> the API from a separate script with LO being run as a server.
>>
>> 2015-08-09 23:34 GMT+03:00 Andreas Säger <ville...@t-online.de>:
>>> Am 09.08.2015 um 16:52 schrieb Hi-Angel:
>>>> In python I have an opened document, and I need to change styles of
>>>> some «Heading 1»'s. (actually I need to do the thing like here
>>>> http://ask.libreoffice.org/en/question/53521/how-to-exclude-some-chapters-from-automatic-numbering-of-headings/
>>>> , but in script)
>>>>
>>>> I couldn't figure out, what is a function or property of an opened
>>>> with «loadComponentFromURL» document to iterate over these? I guess
>>>> that would be something like «getAllParagraphs», or
>>>> «getParagraphsByStyle»… Either way, I couldn't find anything relevant.
>>>>
>>>
>>> In the GUI you simply modify the paragraph style in order to change the
>>> appearance of all the paragraphs where the stye applies.
>>> Without MRI you should not even try to write any macros.
>>>
>>> [Tutorial] Introduction into object inspection with MRI
>>>> https://forum.openoffice.org/en/forum/viewtopic.php?f=74&t=49294
>>>
>>> It leads you to the StyleFamilies of your documents and the built-in
>>> ParagraphStyles which are accessible by their English names. On the fly
>>> it records macros in 4 langauges.
>>>
>>>
>>> --
>>> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
>>> Problems? 
>>> http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>>> Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
>>> List archive: http://listarchives.libreoffice.org/global/users/
>>> All messages sent to this list will be publicly archived and cannot be 
>>> deleted

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to