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 
15 class ScTable;
16 class ScDocument;
17 class EditTextObject;
18 
19 namespace sc
20 {
28 {
29  const ScTable& mrTable;
32  CellStoreType::const_position_type maPos;
33  CellStoreType::const_iterator miEnd;
34 
39  const EditTextObject* seek();
40 
41  void incBlock();
45  void init();
46 
47 public:
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: */
EditTextIterator(const ScDocument &rDoc, SCTAB nTab)
const CellStoreType * mpCells
const EditTextObject * first()
sal_Int16 SCCOL
Definition: types.hxx:21
CellStoreType::const_position_type maPos
const ScTable & mrTable
Iterate through all edit text cells in a given sheet.
mdds::mtv::soa::multi_type_vector< CellFunc, CellStoreTrait > CellStoreType
const EditTextObject * next()
const EditTextObject * seek()
Move to the next edit text cell position if the current position is not an edit text.
CellStoreType::const_iterator miEnd
sal_Int16 SCTAB
Definition: types.hxx:22
void init()
Initialize members w.r.t the dynamic column container in the given table.