fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / filter / eppt / grouptable.hxx
blobcbf5a8d502b000c505ee1d889efcf64b0ced5e56
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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>
25 struct GroupEntry
27 sal_uInt32 mnCurrentPos;
28 sal_uInt32 mnCount;
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();
35 mnCurrentPos = 0;
38 GroupEntry( sal_uInt32 nCount )
40 mnCount = nCount;
41 mnCurrentPos = 0;
44 ~GroupEntry(){};
47 class GroupTable
49 protected:
51 sal_uInt32 mnIndex;
52 sal_uInt32 mnCurrentGroupEntry;
53 sal_uInt32 mnMaxGroupEntry;
54 sal_uInt32 mnGroupsClosed;
55 GroupEntry** mpGroupEntry;
57 void ImplResizeGroupTable( sal_uInt32 nEntrys );
59 public:
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();
70 GroupTable();
71 ~GroupTable();
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */