| View previous topic :: View next topic |
| Author |
Message |
PatrickUlmer Guest
|
Posted: Tue Oct 14, 2003 5:58 am Post subject: Set defaultfont |
|
|
Hi,
how can I set the default fontname to Arial using the API?
[ DeveloperGuide ]
Creating Default Settings
The com.sun.star.lang.XMultiServiceFactory implemented at the model provides the service
com.sun.star.text.Defaults. Use this service to find out default values to set paragraph and
character properties of the document to default.
[ End ]
I don't now how. Can somebody help me?
Tanks...Patrick |
|
| Back to top |
|
 |
PatrickUlmer Guest
|
Posted: Wed Oct 15, 2003 2:12 am Post subject: Set defaultfont - SOLVED |
|
|
Ok, I have solved the problem. It's so easy:
oMyStyle := doc.createInstance('com.sun.star.text.Defaults');
oMyStyle.CharFontName := 'Arial';
Ciao...Patrick |
|
| Back to top |
|
 |
|