|
Fix issues with copying worksheets across workbooks (#839)
* Tests for copying worksheets added * Add tests for pictures and data validation rules * Fix test for styles copying * Extract copying logic into dedicated classes (XLPicture, XLTable, XLNamedRange). Implement copying of conditional formats. * Implement failing scenario for existing test * Fixed copying conditional formats * Fixed copying of merged ranges * Tests simplified as saving issues must be addressed separately * Fixed saving the row heights on copied worksheets * Add tests for copying tables and selected ranges. Fix copying selected ranges. * Fix copying page setup * Removed debugging code * CopyTo and WithoutWorksheet method removed from public API. A new constructor for XLConditionalFormat added. Formatting issues fixed. * Copying table with or without data implemented. Tests added. * Revert removing public methods * Copying pictures within a worksheet implemented. Tests added. * Tests for named ranges copying added. * Implement XLPicture.Duplicate method. * Update doctext * Fix IXLPicture.CopyTo signature |
|---|
|
|
| ClosedXML/Excel/Cells/XLCell.cs |
|---|
| ClosedXML/Excel/ConditionalFormats/IXLConditionalFormat.cs |
|---|
| ClosedXML/Excel/ConditionalFormats/XLConditionalFormat.cs |
|---|
| ClosedXML/Excel/Coordinates/XLAddress.cs |
|---|
| ClosedXML/Excel/Drawings/IXLPicture.cs |
|---|
| ClosedXML/Excel/Drawings/XLPicture.cs |
|---|
| ClosedXML/Excel/NamedRanges/IXLNamedRange.cs |
|---|
| ClosedXML/Excel/NamedRanges/XLNamedRange.cs |
|---|
| ClosedXML/Excel/PageSetup/XLPageSetup.cs |
|---|
| ClosedXML/Excel/Ranges/XLRangeAddress.cs |
|---|
| ClosedXML/Excel/Ranges/XLRangeBase.cs |
|---|
| ClosedXML/Excel/Rows/XLRow.cs |
|---|
| ClosedXML/Excel/Tables/IXLTable.cs |
|---|
| ClosedXML/Excel/Tables/XLTable.cs |
|---|
| ClosedXML/Excel/XLWorksheet.cs |
|---|
| ClosedXML_Tests/Excel/ConditionalFormats/ConditionalFormatCopyTests.cs |
|---|
| ClosedXML_Tests/Excel/ImageHandling/PictureTests.cs |
|---|
| ClosedXML_Tests/Excel/NamedRanges/NamedRangesTests.cs |
|---|
| ClosedXML_Tests/Excel/Saving/SavingTests.cs |
|---|
| ClosedXML_Tests/Excel/Tables/TablesTests.cs |
|---|
| ClosedXML_Tests/Excel/Worksheets/XLWorksheetTests.cs |
|---|