private LineBreaking.IUnjustifiedLine CreateLine(StartOfParagraph from, JapaneseInterletterspace to, InlineStyle style, out InlineStyle newStyle) { var toIndex = Array.IndexOf(_objectList, to); if (toIndex == -1) { throw new ArgumentException("to"); } return(_lineBuilder.Build(from.Glue, _objectList.Take(toIndex), to.GlueBeforeBreak, PenaltyValue(to), style, out newStyle)); }
private LineBreaking.IUnjustifiedLine CreateLine(JapaneseInterletterspace from, EndOfParagraph to, InlineStyle style, out InlineStyle newStyle) { var fromIndex = Array.IndexOf(_objectList, from); if (fromIndex == -1) { throw new ArgumentException("from"); } return(_lineBuilder.Build( new GlueProperty(from.IndentAfterBreak, 0, 0), _objectList.Skip(fromIndex + 1), to.Glue, PenaltyValue(to), style, out newStyle)); }
void IFormatObjectVisitor.Visit(JapaneseInterletterspace @object) { PutGlue(@object.Glue); }