Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / PivotLayoutTreeListData.hxx
blob331967f923fcb93b70163ac02102b96c417d7f68
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 #ifndef INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTDATA_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTDATA_HXX
14 #include "PivotLayoutTreeListBase.hxx"
15 #include <vector>
16 #include <memory>
18 class ScPivotLayoutTreeListData : public ScPivotLayoutTreeListBase
20 private:
21 std::vector<std::unique_ptr<ScItemValue> > maDataItemValues;
23 public:
24 ScPivotLayoutTreeListData(vcl::Window* pParent, WinBits nBits);
25 virtual ~ScPivotLayoutTreeListData();
26 virtual bool DoubleClickHdl() override;
28 void FillDataField(ScPivotFieldVector& rDataFields);
29 void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
31 protected:
32 virtual void InsertEntryForSourceTarget(SvTreeListEntry* pSource, SvTreeListEntry* pTarget) override;
33 virtual void InsertEntryForItem(ScItemValue* pItemValue, sal_uLong nPosition) override;
35 void AdjustDuplicateCount(ScItemValue* pInputItemValue);
37 virtual void KeyInput(const KeyEvent& rKeyEvent) override;
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
42 #endif