Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xssfcolumn to upstream #63

Closed
wants to merge 41 commits into from
Closed

Conversation

artem-iron
Copy link

No description provided.

Artem Koloskov added 30 commits February 8, 2024 15:29
This is needed for ease of column shifting.
…r class

These update formulas according to the new positions of the columns. Simillar to UpdateRowFormulas and  ShiftFormula for IRow.
Add SheetUtil.CopyColumn method
Simillar to SheetUtil.CopyRow.

Implement column related methods in XSSFSheet
…ncluded in the column

And delete it from there too.
… fields into individual "CT_Col"s

This drastically hinders performance if used with ColumnHelper in its current state, so it needs to be deprecated and it;s functionality replaced with XSSFColumn.
XSSFColumn is changing it's cell storage to a dynamically generated from rows, so there is no more need for a double check.
…edSpecifiedField to false.

Doesnt make any sense for them to be true by default. OOXLM XSD specifies collapsed attribute as false by default too.
It used to hold all cells in its own list. Now it just looks them up from rows.
These methods now use XSSFColumn to perform their tasks.
…and collapsed properites into their fields, to not trigger setters.
…larity before writing CT_Cols node.

This will make sure the CT_Cols follow the excel's rules of storing these objects, where adjscent columns with equal attributes will be combines into CT_Col spans.
Tests are specifically designed to check that the merged regions are treated correctly during shift
Bug was that lastCol was almost always 0, thus the check for the removal of the merged region will return false and regions will stay in place
… area when dealing with merged regions.

Overwritten area is the one where the row/column will be, once moved
Artem Koloskov added 11 commits February 8, 2024 15:59
add first row/column of numbers to see what row/column moved where and where from
it was unneseccarily creating all columns, not just the ones that need clearing
these test would have fail in cultures with different decimal delimiters etc
it was moving cells to the columns that were then also shifted, shifting these cells extra times
…ber of columns. Only init columns that have data
@artem-iron artem-iron closed this Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant