public void checkAndReplaceOldPropertyNames(LinkProperties props){
  checkAndReplaceOldPropertyName(props,LPC_OLD_LINECOLOR,LPC_LINECOLOR);
  checkAndReplaceOldPropertyName(props,LPC_OLD_LINESTYLE,LPC_LINESTYLE);
  checkAndReplaceOldPropertyName(props,LPC_OLD_HIGHLIGHTCOLOR,LPC_HIGHLIGHTCOLOR);
  checkAndReplaceOldPropertyName(props,LPC_OLD_FILLCOLOR,LPC_FILLCOLOR);
  checkAndReplaceOldPropertyName(props,LPC_OLD_FILLPATTERN,LPC_FILLPATTERN);
  checkAndReplaceOldPropertyName(props,LPC_OLD_LINEWIDTH,LPC_LINEWIDTH);
  checkAndReplaceOldPropertyName(props,LPC_OLD_LINKTEXTSTRING,LPC_LINKTEXTSTRING);
  checkAndReplaceOldPropertyName(props,LPC_OLD_LINKTEXTFONT,LPC_LINKTEXTFONT);
}

public void checkAndReplaceOldPropertyNames ( LinkProperties props ) { checkAndReplaceOldPropertyName ( props , LPC_OLD_LINECOLOR , LPC_LINECOLOR ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_LINESTYLE , LPC_LINESTYLE ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_HIGHLIGHTCOLOR , LPC_HIGHLIGHTCOLOR ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_FILLCOLOR , LPC_FILLCOLOR ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_FILLPATTERN , LPC_FILLPATTERN ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_LINEWIDTH , LPC_LINEWIDTH ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_LINKTEXTSTRING , LPC_LINKTEXTSTRING ) ; checkAndReplaceOldPropertyName ( props , LPC_OLD_LINKTEXTFONT , LPC_LINKTEXTFONT ) ; }
the linkpropertiesconstants have changed in linkprotocol version . 6 , to much small strings that don ' t match up with the drawingattributes properties . we need to check for the old property names and replace them with the new property names .
