1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SC_INC_COLUMNITERATOR_HXX
11 #define INCLUDED_SC_INC_COLUMNITERATOR_HXX
15 class ScColumnTextWidthIterator
17 sc::CellTextAttrStoreType
& mrCellTextAttrs
;
20 sc::CellTextAttrStoreType::iterator miBlockCur
;
21 sc::CellTextAttrStoreType::iterator miBlockEnd
;
22 sc::celltextattr_block::iterator miDataCur
;
23 sc::celltextattr_block::iterator miDataEnd
;
26 ScColumnTextWidthIterator(const ScColumnTextWidthIterator
&) = delete;
27 const ScColumnTextWidthIterator
& operator=(const ScColumnTextWidthIterator
&) = delete;
28 ScColumnTextWidthIterator(ScColumn
& rCol
, SCROW nStartRow
, SCROW nEndRow
);
31 * @param rDoc document instance.
32 * @param rStartPos position of the first cell from which to start
33 * iteration. Note that the caller must ensure that this
34 * position is valid; the constructor does not check its
36 * @param nEndRow end row position.
38 ScColumnTextWidthIterator(ScDocument
& rDoc
, const ScAddress
& rStartPos
, SCROW nEndRow
);
43 sal_uInt16
getValue() const;
44 void setValue(sal_uInt16 nVal
);
47 void init(SCROW nStartRow
, SCROW nEndRow
);
48 void getDataIterators(size_t nOffsetInBlock
);
55 * This iterator lets you iterate over cells over specified range in a
56 * single column. It does not modify the state of the cells, and therefore
61 CellStoreType::const_position_type maPos
;
62 CellStoreType::const_position_type maPosEnd
;
65 ColumnIterator( const CellStoreType
& rCells
, SCROW nRow1
, SCROW nRow2
);
74 mdds::mtv::element_t
getType() const;
76 ScRefCellValue
getCell() const;
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */