You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@openoffice.apache.org by "Rony G. Flatscher (Apache)" <ro...@apache.org> on 2012/10/30 22:14:02 UTC

How to individually format paragraphs in an OutlinerShape (impress) ? ( Re: Questions ad simpress infos/code examples ...

On 30.10.2012 20:58, Bernard Marcelly wrote:
> Message de Rony G. Flatscher  date 2012-10-30 18:59 :
>> On 30.10.2012 16:46, Andreas Säger wrote:
>> The problem is that from the API documentation (and MRI object inspector for that matter) one is (at
>> least I am) not able to figure out how to get access to:
>>
>>    * the available Master pages (as depicted in the Tasks pane),
>>    * the available Layouts (as depicted in the Tasks pane),
>>    * how to individually format paragraphs in an OutlinerShape.
>>
>
> Three different questions in the same message. The recipe for a long and unreadable thread.
Bernard, you are right, hence splitting up into three separate messages.

>
> Question 3
> Just like you format a text in Writer.
> The shape gives direct access to the TextRange, and to the method createTextCursor() and others.
> MRI should show you this.
Hmm,  even using MRI I cannot identify/see which properties or interfaces would allow me to use a
XTextCursor to step through the paragraphs and learn at which level they are indented, nor how I
could indent/outdent a specific paragraph in an XText of type OutlineShpae in impress.

Usually, I would expect to use a paragraph cursor to step through paragraphs and set the properties
accordingly, but simpress' XTextCursor does not have the other (optional) cursors defined/available.

As Impress is able to do that there must be a way. Maybe I am worn out for too much experiments to
overlook the obvious?

---rony