rvico TRichView Reference | TRVStyle | TRVStyleTemplate

TRVStyleTemplate.UpdateModifiedTextStyleProperties, UpdateModifiedParaStyleProperties

Top  Previous  Next

The methods fill the list of properties having different values in ATextStyle/AParaStyle and in this style template.

procedure UpdateModifiedTextStyleProperties(ATextStyle: TFontInfo;

  ParaStyleTemplate: TRVStyleTemplate);

procedure UpdateModifiedParaStyleProperties(AParaStyle: TParaInfo);

UpdateModifiedTextStyleProperties compares values of properties of ATextStyle and properties of this style template (i.e. properties of TextStyle listed in ValidTextProperties and properties inherited from Parent). Properties undefined in this style template (and its parents) are compared with properties of ParaStyleTemplate (if ParaStyleTemplate<>nil). Properties having different values are added in ATextStyle.ModifiedProperties.

UpdateModifiedParaStyleProperties compares values of properties of AParaStyle and properties of this style template (i.e. properties of ParaStyle listed in ValidParaProperties and properties inherited from Parent). Properties having different values are added in AParaStyle.ModifiedProperties.

These methods may be called for nil- style templates. In this case, properties of ATextStyle/AParaStyle are compared with default values.

The results are used in ApplyToTextStyle and ApplyToParaStyle methods.


TRichView © trichview.com