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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef EPPT_GROUP_TABLE
21 #define EPPT_GROUP_TABLE
23 #include <com/sun/star/container/XIndexAccess.hpp>
27 sal_uInt32 mnCurrentPos
;
29 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> mXIndexAccess
;
31 GroupEntry( ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> & rIndex
)
33 mXIndexAccess
= rIndex
;
34 mnCount
=mXIndexAccess
->getCount();
38 GroupEntry( sal_uInt32 nCount
)
52 sal_uInt32 mnCurrentGroupEntry
;
53 sal_uInt32 mnMaxGroupEntry
;
54 sal_uInt32 mnGroupsClosed
;
55 GroupEntry
** mpGroupEntry
;
57 void ImplResizeGroupTable( sal_uInt32 nEntrys
);
61 sal_uInt32
GetCurrentGroupIndex() const { return mnIndex
; };
62 sal_Int32
GetCurrentGroupLevel() const { return mnCurrentGroupEntry
- 1; };
63 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> &
64 GetCurrentGroupAccess() const { return mpGroupEntry
[ mnCurrentGroupEntry
- 1 ]->mXIndexAccess
; };
65 sal_uInt32
GetGroupsClosed();
66 void ResetGroupTable( sal_uInt32 nCount
);
67 void ClearGroupTable();
68 sal_Bool
EnterGroup( ::com::sun::star::uno::Reference
< ::com::sun::star::container::XIndexAccess
> & rIndex
);
69 sal_Bool
GetNextGroupEntry();
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */