public PageGridGeometry(NewspaperPage p) : base(p) { var fullWidth = (PAPER_WIDTH - left - right + gap); var fullHeight = (PAPER_HEIGHT - top - bottom + gap); cellWidth = fullWidth / p.Grid.ColumnsCount; cellHeight = fullHeight / p.Grid.RowCount; }
public PageGeometry(NewspaperPage p) { gap = p.Grid.Gap; top = p.Grid.MarginTop; bottom = p.Grid.MarginBottom; if (p.Number % 2 == 0) { left = p.Grid.MarginOutside; right = p.Grid.MarginInside; } else { left = p.Grid.MarginInside; right = p.Grid.MarginOutside; } }
public PageClassifiedGeometry(NewspaperPage p) : base(p) { frameHeight = PAPER_HEIGHT - top - bottom; clasColumnWidth = (PAPER_WIDTH - left - right - gap * (p.Grid.ColumnsCount - 1)) / p.Grid.ColumnsCount; }