LibreOffice Module sc (master) 1
PivotLayoutTreeList.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
11#pragma once
12
13#include <memory>
15#include <scabstdlg.hxx>
16
18{
19private:
20 std::vector<std::unique_ptr<ScItemValue>> maItemValues;
21 std::vector<ScDPName> maDataFieldNames;
22
24
25 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
26 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
27
28public:
29 ScPivotLayoutTreeList(std::unique_ptr<weld::TreeView> xControl);
30 virtual ~ScPivotLayoutTreeList() override;
31
32 void Setup(ScPivotLayoutDialog* pParent, SvPivotTreeListType eType);
33 void FillFields(ScPivotFieldVector& rFieldVector);
34
35 virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) override;
36
37protected:
38 void InsertEntryForItem(const ScItemValue* pItemValue, int nPosition);
39};
40
41/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScPivotLayoutTreeList(std::unique_ptr< weld::TreeView > xControl)
std::vector< std::unique_ptr< ScItemValue > > maItemValues
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
VclPtr< AbstractScDPSubtotalDlg > mpSubtotalDlg
void Setup(ScPivotLayoutDialog *pParent, SvPivotTreeListType eType)
std::vector< ScDPName > maDataFieldNames
virtual void InsertEntryForSourceTarget(weld::TreeView &rSource, int nTarget) override
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
virtual ~ScPivotLayoutTreeList() override
void FillFields(ScPivotFieldVector &rFieldVector)
void InsertEntryForItem(const ScItemValue *pItemValue, int nPosition)
std::vector< ScPivotField > ScPivotFieldVector
Definition: pivot.hxx:129