2014-03-30 21:12:27 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-03-06 09:49:30 +01:00
|
|
|
#pragma once
|
2014-03-30 21:12:27 +02:00
|
|
|
|
|
|
|
#include "PivotLayoutTreeListBase.hxx"
|
2015-11-12 09:39:59 +02:00
|
|
|
#include <vector>
|
|
|
|
#include <memory>
|
2020-12-16 15:59:00 +01:00
|
|
|
#include <scabstdlg.hxx>
|
2014-03-30 21:12:27 +02:00
|
|
|
|
2017-10-26 14:55:54 +02:00
|
|
|
class ScPivotLayoutTreeListData final : public ScPivotLayoutTreeListBase
|
2014-03-30 21:12:27 +02:00
|
|
|
{
|
2019-04-29 13:13:23 +01:00
|
|
|
private:
|
|
|
|
DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
|
2019-10-05 18:36:38 +01:00
|
|
|
DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
|
2019-04-29 13:13:23 +01:00
|
|
|
|
2014-03-30 21:12:27 +02:00
|
|
|
public:
|
2019-04-29 13:13:23 +01:00
|
|
|
ScPivotLayoutTreeListData(std::unique_ptr<weld::TreeView> xControl);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~ScPivotLayoutTreeListData() override;
|
2014-03-30 21:12:27 +02:00
|
|
|
|
|
|
|
void FillDataField(ScPivotFieldVector& rDataFields);
|
2014-04-03 11:33:04 +02:00
|
|
|
void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
|
2019-04-29 13:13:23 +01:00
|
|
|
virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) override;
|
2014-04-03 11:33:04 +02:00
|
|
|
|
2017-10-26 14:55:54 +02:00
|
|
|
private:
|
2019-04-29 13:13:23 +01:00
|
|
|
void InsertEntryForItem(ScItemValue* pItemValue, int nPosition);
|
2014-03-30 21:12:27 +02:00
|
|
|
|
2014-04-03 21:38:48 +02:00
|
|
|
void AdjustDuplicateCount(ScItemValue* pInputItemValue);
|
|
|
|
|
2020-05-24 03:03:37 +03:00
|
|
|
std::vector<std::unique_ptr<ScItemValue>> maDataItemValues;
|
2020-12-16 15:59:00 +01:00
|
|
|
|
|
|
|
VclPtr<AbstractScDPFunctionDlg> mpFunctionDlg;
|
2014-03-30 21:12:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|