示例#1
0
 private LineBreaking.IUnjustifiedLine <Printing.IPrintableLine> CreateLine(LineBreaking.ILineConstraint constraint, StartOfParagraph from, EndOfParagraph to, InlineStyle style, out InlineStyle newStyle)
 {
     return(InlineLayoutEngine.Solve(constraint, from.Glue, _objectList, to.Glue, PenaltyValue(to), _heading, 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));
        }
示例#3
0
        private LineBreaking.IUnjustifiedLine <Printing.IPrintableLine> CreateLine(LineBreaking.ILineConstraint constraint, IInterletter from, EndOfParagraph to, InlineStyle style, out InlineStyle newStyle)
        {
            var fromIndex = Array.IndexOf(_objectList, from);

            if (fromIndex == -1)
            {
                throw new ArgumentException("from");
            }
            return(InlineLayoutEngine.Solve(
                       constraint,
                       new GlueProperty(from.IndentAfterBreak, 0, 0),
                       _objectList.Skip(fromIndex + 1), to.Glue, PenaltyValue(to), _heading, style, out newStyle));
        }
 private LineBreaking.IUnjustifiedLine CreateLine(StartOfParagraph from, EndOfParagraph to, InlineStyle style, out InlineStyle newStyle)
 {
     return(_lineBuilder.Build(from.Glue, _objectList, to.Glue, PenaltyValue(to), style, out newStyle));
 }