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 #ifndef INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTDATA_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTDATA_HXX
13 
15 #include <tools/solar.h>
16 #include <vector>
17 #include <memory>
18 
20 {
21 private:
22  DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
23  DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
24 
25 public:
26  ScPivotLayoutTreeListData(std::unique_ptr<weld::TreeView> xControl);
27  virtual ~ScPivotLayoutTreeListData() override;
28 
29  void FillDataField(ScPivotFieldVector& rDataFields);
30  void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
31  virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) override;
32 
33 private:
34  void InsertEntryForItem(ScItemValue* pItemValue, int nPosition);
35 
36  void AdjustDuplicateCount(ScItemValue* pInputItemValue);
37 
38  std::vector<std::unique_ptr<ScItemValue>> maDataItemValues;
39 };
40 
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
42 
43 #endif
void AdjustDuplicateCount(ScItemValue *pInputItemValue)
std::vector< std::unique_ptr< ScItemValue > > maDataItemValues
void InsertEntryForItem(ScItemValue *pItemValue, int nPosition)
void PushDataFieldNames(std::vector< ScDPName > &rDataFieldNames)
std::vector< ScPivotField > ScPivotFieldVector
Definition: pivot.hxx:130
void FillDataField(ScPivotFieldVector &rDataFields)
ScPivotLayoutTreeListData(std::unique_ptr< weld::TreeView > xControl)
virtual void InsertEntryForSourceTarget(weld::TreeView &rSource, int nTarget) override
virtual ~ScPivotLayoutTreeListData() override
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)