diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-13 22:53:14 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-08-13 23:01:21 -0400 |
commit | c4d26f327605b77c8395bdb512d8ddcd8c11bfd1 (patch) | |
tree | a86a61a45d24aef8c8b6e0346ef5c3cee4819da5 /sc/inc/columnset.hxx | |
parent | f110e4190e575915a584e60cd2fb58dcb5eb5eaa (diff) |
Regroup formula cells later in columns where references are updated.
Change-Id: I4dd6ade18e72d8f57583180463f9dda3603be4c2
Diffstat (limited to 'sc/inc/columnset.hxx')
-rw-r--r-- | sc/inc/columnset.hxx | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sc/inc/columnset.hxx b/sc/inc/columnset.hxx new file mode 100644 index 000000000000..fb56303c1049 --- /dev/null +++ b/sc/inc/columnset.hxx @@ -0,0 +1,40 @@ +/* -*- 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/. + */ + +#ifndef SC_COLUMNSET_HXX +#define SC_COLUMNSET_HXX + +#include "address.hxx" + +#include <vector> +#include <boost/unordered_set.hpp> +#include <boost/unordered_map.hpp> + +namespace sc { + +/** + * Simple container to keep track of sheet - column pair. + */ +class ColumnSet +{ + typedef boost::unordered_set<SCCOL> ColsType; + typedef boost::unordered_map<SCTAB, ColsType> TabsType; + TabsType maTabs; + +public: + void set(SCTAB nTab, SCCOL nCol); + bool has(SCTAB nTab, SCCOL nCol) const; + void getColumns(SCTAB nTab, std::vector<SCCOL>& rCols) const; +}; + +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |