src\Framework\MS\Internal\PtsHost\CellParaClient.cs (20)
119_rect.du = TextDpi.ToTextDpi(durCellWidth);
120_rect.dv = TextDpi.ToTextDpi(_arrangeHeight);
192rectCell.du = TextDpi.ToTextDpi(subpageSize.Width);
193rectCell.dv = TextDpi.ToTextDpi(subpageSize.Height);
260fswdir, 0, TextDpi.ToTextDpi(width),
313TextDpi.ToTextDpi(width),
360transform = new TranslateTransform(-TextDpi.FromTextDpi(ContentRect.u), -TextDpi.FromTextDpi(ContentRect.v));
370Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(ContentRect.du), TextDpi.FromTextDpi(ContentRect.dv));
373transform = new TranslateTransform(TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v));
477_rectTable = new Rect(TextDpi.FromTextDpi(tpc.Rect.u),
478TextDpi.FromTextDpi(tpc.Rect.v),
479TextDpi.FromTextDpi(tpc.Rect.du),
480TextDpi.FromTextDpi(tpc.Rect.dv));
482_rectCell = new Rect(TextDpi.FromTextDpi(cpc.Rect.u),
483TextDpi.FromTextDpi(cpc.Rect.v),
484TextDpi.FromTextDpi(cpc.Rect.du),
485TextDpi.FromTextDpi(cpc.Rect.dv));
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (15)
104_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
106_contentRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
109_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
111_paddingRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
379rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v));
498sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties);
826geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect);
830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (15)
230_contentRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BPRight - mbp.BPLeft);
232_contentRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BPBottom - mbp.BPTop);
235_paddingRect.du = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.du - mbp.BorderRight - mbp.BorderLeft);
237_paddingRect.dv = Math.Max(TextDpi.ToTextDpi(TextDpi.MinWidth), _rect.dv - mbp.BorderBottom - mbp.BorderTop);
381rectangles = PtsHelper.OffsetRectangleList(rectangles, TextDpi.FromTextDpi(ContentRect.u), TextDpi.FromTextDpi(ContentRect.v));
502sectionVisual.DrawColumnRules(ref arrayColumnDesc, TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.v), TextDpi.FromTextDpi(subpageDetails.u.complex.fsrc.dv), columnProperties);
832geometry = TextDocumentView.GetTightBoundingGeometryFromTextPositionsHelper(paragraphs, floatingElements, startPosition, endPosition, TextDpi.FromTextDpi(_dvrTopSpace), visibleRect);
836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (12)
227cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false);
231PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false);
235StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)),
413cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false);
417PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false);
422StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
582cColumns = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, false);
586PtsHelper.GetColumnsInfo(columnProperties, lineHeight, TextDpi.FromTextDpi(subpageWidth), pageFontSize, pageFontFamily, cColumns, rgColumnInfo, false);
589StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (51)
157PtsHelper.UpdateMirroringTransform(PageFlowDirection, ThisFlowDirection, lineContainerVisual, TextDpi.FromTextDpi(2 * pageRect.u + pageRect.du));
871transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, TextDpi.FromTextDpi(2 * _pageContext.PageRect.u + _pageContext.PageRect.du), 0.0);
1124int urDistance = TextDpi.ToTextDpi(distance);
1603offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
1664lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
1679offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
1729TextDpi.FromTextDpi(lineDesc.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart),
1730TextDpi.FromTextDpi(lineDesc.durBBox), TextDpi.FromTextDpi(lineDesc.dvrAscent + lineDesc.dvrDescent));
1742lbox, TextDpi.FromTextDpi(lineDesc.dvrAscent)));
1797Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart),
1798TextDpi.FromTextDpi(element.durBBox), TextDpi.FromTextDpi(element.dvrAscent + element.dvrDescent));
1810lbox, TextDpi.FromTextDpi(element.dvrAscent)));
1882rect.X += TextDpi.FromTextDpi(lineDesc.urStart);
1883rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart);
1984rect.X += TextDpi.FromTextDpi(element.urStart);
1985rect.Y += TextDpi.FromTextDpi(lineDesc.vrStart);
2332double duOffset = TextDpi.FromTextDpi(lineDesc.urStart);
2333double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart);
2353duOffset + TextDpi.FromTextDpi(line.Start + line.Width),
2356TextDpi.FromTextDpi(line.Height) + lineTopSpace
2442double duOffset = TextDpi.FromTextDpi(elemDesc.urStart);
2443double dvOffset = TextDpi.FromTextDpi(lineDesc.vrStart);
2463duOffset + TextDpi.FromTextDpi(line.Start + line.Width),
2466TextDpi.FromTextDpi(line.Height) + lineTopSpace
3512lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3527offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
3557lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3568offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
3717lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3738lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3777lineVisual.Offset = new Vector(TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3924lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
3940offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
3993lineVisual.Offset = new Vector(TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
4005offset.Y += TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
4235rectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(lineDesc.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
4448List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));