This pull request introduces several enhancements and updates to the ooodev library, focusing on adding new functionalities to the CellObj class, updating version information, and adding new tests. The most important changes include the addition of a sheet_name property and a to_string method to CellObj, updates to version identifiers, and the inclusion of new tests to ensure the correctness of the new features.
Enhancements to CellObj and RangeObj:
Added to_string method to CellObj to provide a string representation that can optionally include the sheet name. (ooodev/utils/data_type/cell_obj.py)
Introduced a sheet_name property to CellObj to retrieve the sheet name associated with the cell. (ooodev/utils/data_type/cell_obj.py)
Updated copy method in CellObj to include the sheet_name attribute if it exists. (ooodev/utils/data_type/cell_obj.py)
Enhanced RangeObj to include the sheet_name attribute in the copy method and to correctly format the string representation in to_string. (ooodev/utils/data_type/range_obj.py) [1][2]
Version Updates:
Updated version number to 0.47.17 in __init__.py and pyproject.toml. (ooodev/__init__.py, pyproject.toml) [1][2]
Documented the new version and added details about the new sheet_name property and to_string method in the version history. (docs/version/version_hist.rst)
Testing Enhancements:
Added a new test test_cell_sheet_name to verify the functionality of the sheet_name property and the to_string method in CellObj. (tests/test_range/test_cell.py)
This pull request introduces several enhancements and updates to the
ooodev
library, focusing on adding new functionalities to theCellObj
class, updating version information, and adding new tests. The most important changes include the addition of asheet_name
property and ato_string
method toCellObj
, updates to version identifiers, and the inclusion of new tests to ensure the correctness of the new features.Enhancements to
CellObj
andRangeObj
:to_string
method toCellObj
to provide a string representation that can optionally include the sheet name. (ooodev/utils/data_type/cell_obj.py
)sheet_name
property toCellObj
to retrieve the sheet name associated with the cell. (ooodev/utils/data_type/cell_obj.py
)copy
method inCellObj
to include thesheet_name
attribute if it exists. (ooodev/utils/data_type/cell_obj.py
)RangeObj
to include thesheet_name
attribute in thecopy
method and to correctly format the string representation into_string
. (ooodev/utils/data_type/range_obj.py
) [1] [2]Version Updates:
0.47.17
in__init__.py
andpyproject.toml
. (ooodev/__init__.py
,pyproject.toml
) [1] [2]sheet_name
property andto_string
method in the version history. (docs/version/version_hist.rst
)Testing Enhancements:
test_cell_sheet_name
to verify the functionality of thesheet_name
property and theto_string
method inCellObj
. (tests/test_range/test_cell.py
)