LibreOffice Module sc (master) 1
PivotLayoutTreeListData.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
14#include <vector>
15#include <memory>
16#include <scabstdlg.hxx>
17
19{
20private:
21 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
22 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
23
24public:
25 ScPivotLayoutTreeListData(std::unique_ptr<weld::TreeView> xControl);
26 virtual ~ScPivotLayoutTreeListData() override;
27
28 void FillDataField(ScPivotFieldVector& rDataFields);
29 void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
30 virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) override;
31
32private:
33 void InsertEntryForItem(ScItemValue* pItemValue, int nPosition);
34
35 void AdjustDuplicateCount(ScItemValue* pInputItemValue);
36
37 std::vector<std::unique_ptr<ScItemValue>> maDataItemValues;
38
40};
41
42/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void InsertEntryForSourceTarget(weld::TreeView &rSource, int nTarget) override
void FillDataField(ScPivotFieldVector &rDataFields)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void AdjustDuplicateCount(ScItemValue *pInputItemValue)
VclPtr< AbstractScDPFunctionDlg > mpFunctionDlg
ScPivotLayoutTreeListData(std::unique_ptr< weld::TreeView > xControl)
void PushDataFieldNames(std::vector< ScDPName > &rDataFieldNames)
std::vector< std::unique_ptr< ScItemValue > > maDataItemValues
virtual ~ScPivotLayoutTreeListData() override
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
void InsertEntryForItem(ScItemValue *pItemValue, int nPosition)
std::vector< ScPivotField > ScPivotFieldVector
Definition: pivot.hxx:129