Hi Ariel! I had a look at the BaseIndex service and I tried to add it to the code. But I don't know how I set the style to another font or font size.
Can you give me an example how I can use the BaseIndex? Regards Nicole -------- Original-Nachricht -------- > Datum: Fri, 29 Aug 2008 01:01:34 -0300 > Von: Ariel Constenla-Haile <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: [api-dev] change font of the table of content > Nicole Scholz escribió: > > Hi! > > > > I created a table of content in Writer. But the font in the toc is > different to the font I use in the rest of my document. > > > > Does someone know how to change the font that I have the same font for > the whole document? > > Hi Nicole, > > a content index is a com.sun.star.text.BaseIndex. Look at > http://api.openoffice.org/docs/common/ref/com/sun/star/text/BaseIndex.html > You'll see among others, the properties: > > ParaStyleHeading for the heading > ParaStyleLevel1 ... ParaStyleLevel10 for the 10 levels > > they correspond to what you see in the tab page "Styles" when you edit > the index styles in the GUI. > > To change the style, just use css.beans.XPropertySet.setPropertyValue() > with the name of the property (ParaStyleHeading, ParaStyleLevel1 ... > ParaStyleLevel10) and the name of a paragraph style, and finally update > the index. > You can also create a new paragraph style, or edit an existing one. > > Regards > Ariel. > > > -- > Ariel Constenla-Haile > La Plata, Argentina > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > http://www.ArielConstenlaHaile.com.ar/ooo/ > > > > "Aus der Kriegsschule des Lebens > - Was mich nicht umbringt, > macht mich härter." > Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
