diff options
Diffstat (limited to 'sc/source/filter/oox/datatablebuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/datatablebuffer.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sc/source/filter/oox/datatablebuffer.cxx b/sc/source/filter/oox/datatablebuffer.cxx new file mode 100644 index 000000000000..843fb4488613 --- /dev/null +++ b/sc/source/filter/oox/datatablebuffer.cxx @@ -0,0 +1,25 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include "datatablebuffer.hxx" + +namespace oox { +namespace xls { + +ScTableData& TableDataBuffer::createDataTable(const OUString& rId) +{ + std::pair<std::map<OUString, ScTableData>::iterator, bool> aData = + maTableData.insert(std::pair<OUString, ScTableData>(rId, ScTableData())); + return aData.first->second; +} + +} +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |