private void chainInit() { font = new FontRTB(true, false, false); boldChangeHandler = new BoldChangeHandler(); italicsChangeHandler = new ItalicsChangeHandler(); underlineChangeHandler = new UnderlineChangeHandler(); boldChangeHandler.Successor = italicsChangeHandler; italicsChangeHandler.Successor = underlineChangeHandler; }
public override void Handle(FontRTB font) { if (font.UnderlineChange) { font.tFont = new Font(font.tFont.FontFamily.Name, font.tFont.Size, FontStyle.Underline); } else if (Successor != null) { Successor.Handle(font); } }
public abstract void Handle(FontRTB font);
public void handleWorker(bool bc, bool ic, bool uc) { font = new FontRTB(bc, ic, uc); boldChangeHandler.Handle(font); }