tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / PivotLayoutTreeList.hxx
blob14faa13d04ef10fc534284cf1140d055d5aec8a8
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 */
11 #pragma once
13 #include <memory>
14 #include "PivotLayoutTreeListBase.hxx"
15 #include <scabstdlg.hxx>
17 class ScPivotLayoutTreeList : public ScPivotLayoutTreeListBase
19 private:
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);
28 public:
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;
37 protected:
38 void InsertEntryForItem(const ScItemValue* pItemValue, int nPosition);
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */