/src/libreoffice/include/vcl/weld/TreeIter.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
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 <sal/config.h> |
13 | | |
14 | | #include <vcl/dllapi.h> |
15 | | |
16 | | namespace weld |
17 | | { |
18 | | class ItemView; |
19 | | |
20 | | class VCL_DLLPUBLIC TreeIter |
21 | | { |
22 | | private: |
23 | | const ItemView& m_rItemView; |
24 | | |
25 | | TreeIter(const TreeIter&) = delete; |
26 | | TreeIter& operator=(const TreeIter&) = delete; |
27 | | |
28 | | protected: |
29 | | explicit TreeIter(const ItemView& rItemView) |
30 | 0 | : m_rItemView(rItemView) |
31 | 0 | { |
32 | 0 | } |
33 | | |
34 | | public: |
35 | 0 | virtual ~TreeIter() {} |
36 | | |
37 | | virtual bool equal(const TreeIter& rOther) const = 0; |
38 | 0 | const weld::ItemView& getItemView() const { return m_rItemView; } |
39 | | }; |
40 | | } |
41 | | |
42 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |