mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
add constructor
This commit is contained in:
parent
a8b631bcbb
commit
6987c1f233
|
@ -144,9 +144,13 @@ struct workbook_impl
|
|||
struct file_version_t
|
||||
{
|
||||
std::string app_name;
|
||||
std::size_t last_edited = 0;
|
||||
std::size_t lowest_edited = 0;
|
||||
std::size_t rup_build = 0;
|
||||
std::size_t last_edited;
|
||||
std::size_t lowest_edited;
|
||||
std::size_t rup_build;
|
||||
|
||||
file_version_t(): last_edited(0), lowest_edited(0), rup_build(0) {
|
||||
|
||||
}
|
||||
|
||||
bool operator==(const file_version_t& rhs) const
|
||||
{
|
||||
|
|
|
@ -414,7 +414,11 @@ workbook workbook::empty()
|
|||
wb.extended_property(xlnt::extended_property::hyperlinks_changed, false);
|
||||
wb.extended_property(xlnt::extended_property::app_version, "15.0300");
|
||||
|
||||
auto file_version = detail::workbook_impl::file_version_t{"xl", 6, 6, 26709};
|
||||
detail::workbook_impl::file_version_t file_version;
|
||||
file_version.app_name = "xl";
|
||||
file_version.last_edited = 6;
|
||||
file_version.lowest_edited = 6;
|
||||
file_version.rup_build = 26709;
|
||||
wb.d_->file_version_ = file_version;
|
||||
|
||||
xlnt::workbook_view wb_view;
|
||||
|
|
Loading…
Reference in New Issue
Block a user