Package com._1c.g5.v8.dt.moxel.ui.editor
Class ClipboardCopyUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.ClipboardCopyUtil
-
public final class ClipboardCopyUtil extends Object
Utils for copying to the clipboard
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClipboardCopyUtil.DrawingZOrderComparator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyDrawing(Drawing drawing, SheetAccessor srcSheet, SheetAccessor dstSheet, int horizontalCorrection, int verticalCorrection)
static SpreadsheetDocument
copySelectedDrawings(SheetAccessor sheet, List<Drawing> selectedDrawings, PositionHolder positionHolder)
Copy selected drawings of spreadsheetstatic SpreadsheetDocument
copySheet(SheetAccessor srcSheet, Selection selection, boolean forBackUp)
Copy selected area as spreadsheet documentstatic SpreadsheetPoint
getMinimumPoint(List<Drawing> drawings)
Get top left point of drawings liststatic SpreadsheetDocument
makeDocumentCopy(SpreadsheetDocument spreadsheet)
Make a copy of spreadsheet document.static MoxelDescriptor
makeDocumentDescriptor(Selection selection, SpreadsheetDocument srcSheet)
Make descriptor for spreadsheet documentstatic MoxelDescriptor
makeDrawingDescriptor()
Make descriptor for spreadsheet document with drawings selectionstatic void
postUpdateCellsValues(SheetAccessor sheet)
Update cells values
-
-
-
Method Detail
-
makeDocumentCopy
public static SpreadsheetDocument makeDocumentCopy(SpreadsheetDocument spreadsheet)
Make a copy of spreadsheet document.- Parameters:
spreadsheet
-SpreadsheetDocument
to copy, must not benull
- Returns:
SpreadsheetDocument
, nevernull
-
copySheet
public static SpreadsheetDocument copySheet(SheetAccessor srcSheet, Selection selection, boolean forBackUp)
Copy selected area as spreadsheet document- Parameters:
srcSheet
-selection
-- Returns:
-
copySelectedDrawings
public static SpreadsheetDocument copySelectedDrawings(SheetAccessor sheet, List<Drawing> selectedDrawings, PositionHolder positionHolder)
Copy selected drawings of spreadsheet- Parameters:
sheet
-selectedDrawings
-positionHolder
-- Returns:
-
getMinimumPoint
public static SpreadsheetPoint getMinimumPoint(List<Drawing> drawings)
Get top left point of drawings list- Parameters:
drawings
-- Returns:
-
makeDocumentDescriptor
public static MoxelDescriptor makeDocumentDescriptor(Selection selection, SpreadsheetDocument srcSheet)
Make descriptor for spreadsheet document- Parameters:
selection
-srcSheet
-- Returns:
-
makeDrawingDescriptor
public static MoxelDescriptor makeDrawingDescriptor()
Make descriptor for spreadsheet document with drawings selection- Returns:
-
copyDrawing
public void copyDrawing(Drawing drawing, SheetAccessor srcSheet, SheetAccessor dstSheet, int horizontalCorrection, int verticalCorrection)
-
postUpdateCellsValues
public static void postUpdateCellsValues(SheetAccessor sheet)
Update cells values- Parameters:
sheet
- -SheetAccessor
-
-