Re: [api-dev] Resetting to default character style

2007-07-12 Thread ashok _
Have you thought of using the DispatchHelper api ? Something like (in basic): dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name = Template args(0).Value = Default args(1).Name = Family args(1).Value = 2 dispatcher.executeDispatch(document, .uno:StyleApply, , 0, args()) On

Re: [api-dev] Resetting to default character style

2007-07-12 Thread Fernand Vanrie
ashok _ wrote: Have you thought of using the DispatchHelper api ? Something like (in basic): dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name = Template args(0).Value = Default args(1).Name = Family args(1).Value = 2 dispatcher.executeDispatch(document, .uno:StyleApply, , 0,