diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-06-30 17:07:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-06-30 17:07:47 +0200 |
commit | 5e0ec00b02cc95341ef3c08f10aab4d9e46a9923 (patch) | |
tree | 13ddaa086c2b0bf132d94f65137767638d4d3308 /sc/source/filter/oox/worksheetfragment.cxx | |
parent | 25ad5cbb5bdd7815593f347e2e9a4a5f5b20302f (diff) |
set the data table info to the modelfeature/calc-data-table
Change-Id: I11c941ada1a5b9f23bfed2604f2a4f495e795b29
Diffstat (limited to 'sc/source/filter/oox/worksheetfragment.cxx')
-rw-r--r-- | sc/source/filter/oox/worksheetfragment.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/filter/oox/worksheetfragment.cxx b/sc/source/filter/oox/worksheetfragment.cxx index 51e401337e53..70f6a5756565 100644 --- a/sc/source/filter/oox/worksheetfragment.cxx +++ b/sc/source/filter/oox/worksheetfragment.cxx @@ -44,6 +44,9 @@ #include "worksheetsettings.hxx" #include "datatablefragment.hxx" +#include "dbdata.hxx" +#include "document.hxx" + namespace oox { namespace xls { @@ -518,6 +521,12 @@ void WorksheetFragment::importDataTable(const AttributeList& rAttribs) { OUString aId = rAttribs.getXString(R_TOKEN(id), OUString()); SAL_INFO("sc.oox", aId); + ScTableData& rTableData = getTableDataBuffer().getTable(aId); + ScDBData* pDBData = new ScDBData(rTableData.maName, rTableData.maRange); + pDBData->SetTableData(rTableData); + bool bOk = getScDocument().GetDBCollection()->getNamedDBs().insert(pDBData); + if(!bOk) + delete pDBData; } void WorksheetFragment::importSheetFormatPr( const AttributeList& rAttribs ) |