How to mix default styles with user custom styles?
Posted: Mon Oct 16, 2017 12:21 pm
Hello,
I use the style templates capabilities of TRichView to support standard styles, loaded from rvst file.
I need to save the richview document with references to template styles, when they are used, and user customized styles (for exemple, when the user apply bullets to a paragraph, previously formatted with a template style), but I'm unuable to find a suitable configuration of the TRichView component to do so.
Here is how my RichView components are setup:
ARichView.UseStyleTemplates := True;
ARichView.RVFParaStylesReadMode := rvf_sInsertMap;
ARichView.RVFTextStylesReadMode := rvf_sInsertMap;
ARichView.RVFOptions := [
rvfoConvUnknownStylesToZero,
rvfoSaveBinary,
// rvfoSaveParaStyles,
// rvfoSaveTextStyles,
rvfoSaveDocProperties,
rvfoSavePicturesBody
];
With this setup, bullets are not saved.
If I activate rvfoSaveParaStyle, bullets are saved but when I update the standard template style, it is not automatically applied to the document.
I'd like to save bullets, but still inherit for template styles directly.
Do you have any clue on how I could achieve that?
Many thanks,
Laurent
I use the style templates capabilities of TRichView to support standard styles, loaded from rvst file.
I need to save the richview document with references to template styles, when they are used, and user customized styles (for exemple, when the user apply bullets to a paragraph, previously formatted with a template style), but I'm unuable to find a suitable configuration of the TRichView component to do so.
Here is how my RichView components are setup:
ARichView.UseStyleTemplates := True;
ARichView.RVFParaStylesReadMode := rvf_sInsertMap;
ARichView.RVFTextStylesReadMode := rvf_sInsertMap;
ARichView.RVFOptions := [
rvfoConvUnknownStylesToZero,
rvfoSaveBinary,
// rvfoSaveParaStyles,
// rvfoSaveTextStyles,
rvfoSaveDocProperties,
rvfoSavePicturesBody
];
With this setup, bullets are not saved.
If I activate rvfoSaveParaStyle, bullets are saved but when I update the standard template style, it is not automatically applied to the document.
I'd like to save bullets, but still inherit for template styles directly.
Do you have any clue on how I could achieve that?
Many thanks,
Laurent