diff options
Diffstat (limited to 'sc/source/core/data/columnblockcontext.cxx')
-rw-r--r-- | sc/source/core/data/columnblockcontext.cxx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sc/source/core/data/columnblockcontext.cxx b/sc/source/core/data/columnblockcontext.cxx new file mode 100644 index 000000000000..8ae8f1df8dba --- /dev/null +++ b/sc/source/core/data/columnblockcontext.cxx @@ -0,0 +1,36 @@ +/* -*- 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 <columnblockcontext.hxx> +#include <mtvelements.hxx> + +namespace sc { + +ColumnBlockContext::ColumnBlockContext(ScDocument& rDoc) : + mrDoc(rDoc), mpSet(new ColumnBlockPositionSet(rDoc)) {} + +ColumnBlockContext::ColumnBlockContext( + ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet) : + mrDoc(rDoc), mpSet(pSet) {} + +ColumnBlockContext::~ColumnBlockContext() {} + +ScDocument& ColumnBlockContext::getDoc() +{ + return mrDoc; +} + +ColumnBlockPosition* ColumnBlockContext::getBlockPosition(SCTAB nTab, SCCOL nCol) +{ + return mpSet->getBlockPosition(nTab, nCol); +} + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |