LibreOffice Module sc (master) 1
edittextiterator.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#pragma once
11
12#include "types.hxx"
13#include "mtvelements.hxx"
14
15class ScTable;
16class ScDocument;
17class EditTextObject;
18
19namespace sc
20{
28{
32 CellStoreType::const_position_type maPos;
33 CellStoreType::const_iterator miEnd;
34
39 const EditTextObject* seek();
40
41 void incBlock();
45 void init();
46
47public:
48 EditTextIterator(const ScDocument& rDoc, SCTAB nTab);
49
50 const EditTextObject* first();
51 const EditTextObject* next();
52};
53}
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Iterate through all edit text cells in a given sheet.
void init()
Initialize members w.r.t the dynamic column container in the given table.
const CellStoreType * mpCells
const EditTextObject * next()
const EditTextObject * first()
CellStoreType::const_iterator miEnd
CellStoreType::const_position_type maPos
EditTextIterator(const ScDocument &rDoc, SCTAB nTab)
const ScTable & mrTable
const EditTextObject * seek()
Move to the next edit text cell position if the current position is not an edit text.
CAUTION! The following defines must be in the same namespace as the respective type.
Definition: broadcast.cxx:15
mdds::mtv::soa::multi_type_vector< CellStoreTraits > CellStoreType
Cell container.
sal_Int16 SCTAB
Definition: types.hxx:22
sal_Int16 SCCOL
Definition: types.hxx:21