trichview.support
Re: Detecting whether list style is used |
Author |
Message |
Martin Holmes |
Posted: 10/20/2004 15:12:19 I tried this but it doesn't seem to work. After calling: DeleteUnusedStyles(True, True, True); in a document containing no lists, I find the following list styles (converted to CSS): .ls_0_0{ list-style-type: disc; } .ls_0_1{ list-style-type: disc; } .ls_0_2{ list-style-type: disc; } .ls_0_3{ list-style-type: disc; } .ls_0_4{ list-style-type: disc; } .ls_0_5{ list-style-type: disc; } .ls_0_6{ list-style-type: disc; } .ls_0_7{ list-style-type: disc; } .ls_0_8{ list-style-type: disc; } .ls_1_0{ list-style-type: disc; } .ls_1_1{ list-style-type: disc; } .ls_1_2{ list-style-type: disc; } .ls_1_3{ list-style-type: disc; } .ls_1_4{ list-style-type: disc; } .ls_1_5{ list-style-type: disc; } .ls_1_6{ list-style-type: disc; } .ls_1_7{ list-style-type: disc; } .ls_1_8{ list-style-type: disc; } .ls_2_0{ list-style-type: disc; } .ls_2_1{ list-style-type: disc; } .ls_2_2{ list-style-type: disc; } .ls_2_3{ list-style-type: disc; } .ls_2_4{ list-style-type: disc; } .ls_2_5{ list-style-type: disc; } .ls_2_6{ list-style-type: disc; } .ls_2_7{ list-style-type: disc; } .ls_2_8{ list-style-type: disc; } .ls_3_0{ list-style-type: decimal; } .ls_3_1{ list-style-type: lower-alpha; } .ls_3_2{ list-style-type: lower-roman; } .ls_3_3{ list-style-type: decimal; } .ls_3_4{ list-style-type: lower-alpha; } .ls_3_5{ list-style-type: lower-roman; } .ls_3_6{ list-style-type: decimal; } .ls_3_7{ list-style-type: lower-alpha; } .ls_3_8{ list-style-type: lower-roman; } Where are they coming from? Cheers, Martin Sergey Tkachenko wrote: > May be you can simply delete them by DeleteUnusedStyles? > > >>Hi there, >> >>Is there a way to detect whether any given list style level is used in >>the document? There seem to be a lot of list styles included by default, >>even if they're not used in the document; I'm doing some processing of >>styles, and I'd like to ignore the ones that aren't used. >> >>Cheers, >>Martin > > > |
Powered by ABC Amber Outlook Express Converter