Removed dbcells writing

This commit is contained in:
Viktor Andreev
2025-07-11 20:55:32 +06:00
parent 738583d0d4
commit d49789ea19
5 changed files with 0 additions and 35 deletions

View File

@ -61,9 +61,6 @@ bool XlsWriter::WriteWorkbook(XLS::BaseObjectPtr streamObject)
//bof of worksheet
BookStream->seekFromBegin(sheet.BoundSheetPos);
BookStream->write(&sheet.StreamPos, 4);
//def col width
BookStream->seekFromBegin(sheet.indexPos + 15);// skip other fields
BookStream->write(&sheet.defColWidthPos, 4);
}
BookStream->seekFromBegin(filePos);
}

View File

@ -153,16 +153,6 @@ const bool CELL_GROUP::saveContent(BinProcessor& proc)
for(auto i : m_arCells)
if(i != nullptr)
proc.mandatory(*i);
{
DBCell dbcell;
for(auto i: m_arRows)
{
FileOffsetPtr element(new FileOffset);
dbcell.rgdb.push_back(element);
}
proc.mandatory(dbcell);
}
/*for(auto i : m_DBCells)
if(i != nullptr)
proc.mandatory(*i);*/

View File

@ -94,9 +94,6 @@ const bool COLUMNS::loadContent(BinProcessor& proc)
}
const bool COLUMNS::saveContent(BinProcessor& proc)
{
global_info_ = proc.getGlobalWorkbookInfo();
if(global_info_->sheets_info.size() > global_info_->current_sheet)
global_info_->sheets_info.at(global_info_->current_sheet).defColWidthPos = proc.GetRecordPosition() + 1;
if(m_DefColWidth != nullptr)
proc.mandatory(*m_DefColWidth);
else

View File

@ -185,9 +185,6 @@ public:
std::map<int, _row_info> mapRows;
size_t StreamPos = 0; // pose in stream for writing
size_t BoundSheetPos = 0; // pose of related BoundSheet8's lbPlyPos field
size_t indexPos = 0; // pose in stream for writing
size_t defColWidthPos = 0; // pose of related BoundSheet8's lbPlyPos field
};
std::vector<_sheet_info> sheets_info;
std::vector<std::wstring> external_sheets_info; //current

View File

@ -740,22 +740,6 @@ const bool WorksheetSubstream::saveContent(BinProcessor& proc)
bof.dt= 0x0010;
proc.mandatory(bof);
}
{
Index sheetIndex;
if(m_CELLTABLE != nullptr)
{
CELLTABLE *cellTable = dynamic_cast<CELLTABLE*>(m_CELLTABLE.get());
auto blocks = cellTable->m_arCellGroups.size();
for(auto i = 0; i < blocks; i ++)
{
FilePointerPtr CellBlockPointer(new FilePointer);
sheetIndex.rgibRw.push_back(CellBlockPointer);
}
}
if(globInfo->sheets_info.size() > globInfo->current_sheet)
globInfo->sheets_info.at(globInfo->current_sheet).indexPos = proc.GetRecordPosition() + 1;
proc.mandatory(sheetIndex);
}
if(m_GLOBALS != nullptr)
proc.mandatory(*m_GLOBALS);
else