mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Removed dbcells writing
This commit is contained in:
@ -61,9 +61,6 @@ bool XlsWriter::WriteWorkbook(XLS::BaseObjectPtr streamObject)
|
|||||||
//bof of worksheet
|
//bof of worksheet
|
||||||
BookStream->seekFromBegin(sheet.BoundSheetPos);
|
BookStream->seekFromBegin(sheet.BoundSheetPos);
|
||||||
BookStream->write(&sheet.StreamPos, 4);
|
BookStream->write(&sheet.StreamPos, 4);
|
||||||
//def col width
|
|
||||||
BookStream->seekFromBegin(sheet.indexPos + 15);// skip other fields
|
|
||||||
BookStream->write(&sheet.defColWidthPos, 4);
|
|
||||||
}
|
}
|
||||||
BookStream->seekFromBegin(filePos);
|
BookStream->seekFromBegin(filePos);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -153,16 +153,6 @@ const bool CELL_GROUP::saveContent(BinProcessor& proc)
|
|||||||
for(auto i : m_arCells)
|
for(auto i : m_arCells)
|
||||||
if(i != nullptr)
|
if(i != nullptr)
|
||||||
proc.mandatory(*i);
|
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)
|
/*for(auto i : m_DBCells)
|
||||||
if(i != nullptr)
|
if(i != nullptr)
|
||||||
proc.mandatory(*i);*/
|
proc.mandatory(*i);*/
|
||||||
|
|||||||
@ -94,9 +94,6 @@ const bool COLUMNS::loadContent(BinProcessor& proc)
|
|||||||
}
|
}
|
||||||
const bool COLUMNS::saveContent(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)
|
if(m_DefColWidth != nullptr)
|
||||||
proc.mandatory(*m_DefColWidth);
|
proc.mandatory(*m_DefColWidth);
|
||||||
else
|
else
|
||||||
|
|||||||
@ -185,9 +185,6 @@ public:
|
|||||||
std::map<int, _row_info> mapRows;
|
std::map<int, _row_info> mapRows;
|
||||||
size_t StreamPos = 0; // pose in stream for writing
|
size_t StreamPos = 0; // pose in stream for writing
|
||||||
size_t BoundSheetPos = 0; // pose of related BoundSheet8's lbPlyPos field
|
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<_sheet_info> sheets_info;
|
||||||
std::vector<std::wstring> external_sheets_info; //current
|
std::vector<std::wstring> external_sheets_info; //current
|
||||||
|
|||||||
@ -740,22 +740,6 @@ const bool WorksheetSubstream::saveContent(BinProcessor& proc)
|
|||||||
bof.dt= 0x0010;
|
bof.dt= 0x0010;
|
||||||
proc.mandatory(bof);
|
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)
|
if(m_GLOBALS != nullptr)
|
||||||
proc.mandatory(*m_GLOBALS);
|
proc.mandatory(*m_GLOBALS);
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user