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/.
14 #include "PivotLayoutTreeListBase.hxx"
15 #include <scabstdlg.hxx>
17 class ScPivotLayoutTreeList
: public ScPivotLayoutTreeListBase
20 std::vector
<std::unique_ptr
<ScItemValue
>> maItemValues
;
21 std::vector
<ScDPName
> maDataFieldNames
;
23 VclPtr
<AbstractScDPSubtotalDlg
> mpSubtotalDlg
;
25 DECL_LINK(KeyInputHdl
, const KeyEvent
&, bool);
26 DECL_LINK(DoubleClickHdl
, weld::TreeView
&, bool);
29 ScPivotLayoutTreeList(std::unique_ptr
<weld::TreeView
> xControl
);
30 virtual ~ScPivotLayoutTreeList() override
;
32 void Setup(ScPivotLayoutDialog
* pParent
, SvPivotTreeListType eType
);
33 void FillFields(ScPivotFieldVector
& rFieldVector
);
35 virtual void InsertEntryForSourceTarget(weld::TreeView
& rSource
, int nTarget
) override
;
38 void InsertEntryForItem(const ScItemValue
* pItemValue
, int nPosition
);
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */