Package com._1c.g5.v8.dt.moxel.ui.editor
Class MoxelRepaginator
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.MoxelRepaginator
-
public class MoxelRepaginator extends Object
Repaginator for moxel
-
-
Constructor Summary
Constructors Constructor Description MoxelRepaginator(SheetAccessor sheet, PositionHolder positionHolder)
Moxel repaginator constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateScaleToFitPageWidth()
Calculate scale to fit page widthList<Integer>
getBreaksCol()
Get list of vertical page breaksList<Integer>
getBreaksRow()
Get list of horizontal page breaksint
getCurrentCopiesPerPage()
Get count of pages to place per sheetColumns
getLongestRowColumns()
GetColumns
of longest row in document, must not returnnull
int
getPagesCount()
Get page countorg.eclipse.swt.graphics.Rectangle
getPrintRect()
Get print rectangle area.int
repaginateInternal(boolean fullPage)
Repaginate moxel spreadsheetvoid
setPagesPerSheet(int pagesPerSheet)
Set count of pages to place per sheet
-
-
-
Constructor Detail
-
MoxelRepaginator
public MoxelRepaginator(SheetAccessor sheet, PositionHolder positionHolder)
Moxel repaginator constructor- Parameters:
sheet
- - spreadsheet documentpositionHolder
- - position holder
-
-
Method Detail
-
setPagesPerSheet
public void setPagesPerSheet(int pagesPerSheet)
Set count of pages to place per sheet- Parameters:
pagesPerSheet
- - count of pages to place per sheet
-
getCurrentCopiesPerPage
public int getCurrentCopiesPerPage()
Get count of pages to place per sheet- Returns:
- count of pages to place per sheet
-
calculateScaleToFitPageWidth
public int calculateScaleToFitPageWidth()
Calculate scale to fit page width- Returns:
- appropriate scale
-
getBreaksCol
public List<Integer> getBreaksCol()
Get list of vertical page breaks- Returns:
- list of vertical page breaks
-
getBreaksRow
public List<Integer> getBreaksRow()
Get list of horizontal page breaks- Returns:
- list of horizontal page breaks
-
getPagesCount
public int getPagesCount()
Get page count- Returns:
- page count
-
getPrintRect
public org.eclipse.swt.graphics.Rectangle getPrintRect()
Get print rectangle area.- Returns:
-
repaginateInternal
public int repaginateInternal(boolean fullPage)
Repaginate moxel spreadsheet- Parameters:
fullPage
- - need to repaginate full page- Returns:
- page count
-
-