Hi Sergey,
When I insert a break (horizontal line) I have to add an ApplyStyleTemplate(0) call after every InsertBreak call to keep the correct style name in the styles combo (otherwise it's blank when it should say "Normal"). It does this if I use the HLine rv action as well.
But, the ActionTestUni demo app does not seem to have this issue. How are you getting it to do that? I've looked through the code and components and I can't find how you keep the style combo working when inserting a break.
Thanks
Stan
Horizontal Line and Style
-
Sergey Tkachenko
- Site Admin
- Posts: 18068
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Horizontal Line and Style
Horizontal lines are inserted with the 0-th paragraph style.
When RichViewActions create a new document, they create the 0-th paragraph style linked with "Normal" styletemplate.
When RichViewActions create a new document, they create the 0-th paragraph style linked with "Normal" styletemplate.