trichview.support
TRVListType enum for NONE, no bullets or numbers |
Author |
Message |
Kevin Regel |
Posted: 11/05/2003 23:32:43 We are interested in a way to keep our application's concept of Styles maintained by a Style Manager in sync with TRichView's concept of styles held in TextStyles, ParaStyles, and ListStyles. The problem is that TRVListType for levels does not have a NONE type to represent no bullet/numbering as a list option for paragraphs. For each named Style created in our Style Manager we create 3 corresponding styles in Richview (TextStyle, ParaStyle, and ListStyle) all with the same name.When the style created has NONE for the level for the list style, we have no way to correspondingly create a ListStyle and add a level to the TRVListLevelCollection collection. The reason we would like to do this is that if we have multiple paragraphs in the document with the same named style and that style changes from bullet lists to number lists we want to be able to just update the corresponding ListStyles with that same name and have all occurrences of that ListStyle be updated in the Richview. Also if the Style changes from bullets to NONE we want to be able to update all occurrences of that style to not have bullets. The RemoveLists(false) method only works on the Selected paragraph and we want to update all ListStyles with that name to have a NONE ListStyle Level type, but we don't want to delete the ListStyle because the user may want to change it back from NONE to Bullets later. We use the ApplyListStyles, ApplyTextStyles, ApplyParaStyles, and RemoveLists methods when we want to update only the currently selected text or paragraph, but we want the concept of Styles to apply to multiple paragraphs throughout the Richview document, and when a styles changes we want it to change everywhere, not just in the selected paragraph(s). |
Powered by ABC Amber Outlook Express Converter