From ed2be5e239ec6e1325aa4da6df631e836621de8d Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Sun, 29 Nov 2020 22:03:44 -0600 Subject: [PATCH] Copy with format in range --- source/diff.py | 9 --------- source/easymacro2.py | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/source/diff.py b/source/diff.py index aa2d291..8e0857f 100644 --- a/source/diff.py +++ b/source/diff.py @@ -311,10 +311,6 @@ class LOBase(object): class LOCellRange(object): - def copy(self, source): - self.sheet.obj.copyRange(self.address, source.range_address) - return - def transpose(self, formula=False): data = self.data if formula: @@ -401,11 +397,6 @@ class LOCellRange(object): export_csv(path, data, **kwargs) return - def create_chart(self, tipo): - chart = LOChart(None, tipo) - chart.cell = self - return chart - def search(self, options): descriptor = self.obj.Spreadsheet.createSearchDescriptor() descriptor.setSearchString(options.get('Search', '')) diff --git a/source/easymacro2.py b/source/easymacro2.py index 8775f3b..224184e 100644 --- a/source/easymacro2.py +++ b/source/easymacro2.py @@ -2352,6 +2352,10 @@ class LOCalcRange(object): cursor.collapseToSize(cols, rows) return LOCalcRange(self.sheet[cursor.AbsoluteName].obj) + def copy(self, source): + self.sheet.obj.copyRange(self.address, source.range_address) + return + def copy_to(self, cell, formula=False): rango = cell.to_size(self.rows, self.columns) if formula: