trichview.support
Re: TRVListType enum for NONE, no bullets or numbers |
Author |
Message |
Mark Finkle |
Posted: 11/06/2003 22:04:45 Think of how MS Word uses styles. Assume I apply "Heading 1" to 3 different paragraphs and that "Heading 1" has bullets. If I modify "Heading 1" to not have bullets, all 3 paragraphs should change their appearance. ApplyListStyle(-1, -1, ...) would only change the currently selected paragraph. If we were talking about the FontName (TFontInfo), and I modified "Heading 1" to be Arial (for example), I would find the "Heading 1" style in the TFontInfos collection and change its font name. All "Heading 1" paragraphs would be changed to Arial. The problem with TListInfo is that there seems to be no way to set the TListInfo to be "not a list". Imagine a style dialog box that had a tab page for "Bullets and Numbering". One of the options would be NONE, just like in MS Word. I could loop through the collection of TListInfo's to find the one that is named "Heading 1", but I can't set it to turn off bullets (and or numbers). Does this help any? Mark Finkle "Sergey Tkachenko" <svt@trichview.com> wrote in message news:3faa73c9$1@support.torry.net... > What does NONE means? > > I can imagine 2 possible options: > > 1) List presents, all list level indents are applied, but list marker is not > shown. You can do it for example, by setting ListType to bullet, and > FormatString to empty string. > 2) List presents, but does not affect view. This can be done with -1, -1, as > I told. > > > > What we need is a way to associate a ListStyle with one of our defined, > > named Styles. Whenever the user modifies our Style we want to be able to > > update the corresponding ListStyle with that name and change it from NONE > to > > BULLETS to NUMBERS to NONE, etc.. When the style changes we want all > > occurrences throughout the document to be updated to reflect the new style > > change. This kind of synchronization works great for FontStyles and > > ParaStyles, but not for ListStyles. How can we make it work for > ListStyles? > > > > "Sergey Tkachenko" <svt@trichview.com> wrote in message > > news:3faa0b00$3@support.torry.net... > > > You can call ApplyListStyle(-1, -1, ...) > > > > > > > > > > > > |
Powered by ABC Amber Outlook Express Converter