trichview.support
Re: method to remove formatting? |
Author |
Message |
Kevin Regel |
Posted: 11/05/2003 22:38:35 Yes, we would want the user to be able to "Undo/Redo" the "Remove Formatting" menu item click. "Sergey Tkachenko" <[email protected]> wrote in message news:[email protected]... > Should this procedure be undone/redone? > > One of possible solutions: save the document as RVF stream, then assign > Style property to RVStyle with only one item in each of style collections, > and load this RVF stream as: > > rv.RVFParaStylesReadMode := rvf_sInsertMap; > rv.RVFTextStylesReadMode := rvf_sInsertMap; > rv.Clear; > rv.InsertRVFFromStream(Stream, 0); > rv.Format; > // restore RVFParaStylesReadMode and > // RVFTextStylesReadMode if necessary > > > I am looking for a way to remove formatting that was previously applied to > > RichView using TextStyles, ParaStyles, and ListStyles. When formatting is > > removed I want the text to go back to some plain default style for each of > > the 3 style types (Text, Para, and List). > > > > > > |
Powered by ABC Amber Outlook Express Converter