Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / sc / source / ui / inc / PivotLayoutTreeListLabel.hxx
blob03f42ea50532bb971341ce195c38d2c51b9234ab
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_PIVOTLAYOUTTREELISTLABEL_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTLABEL_HXX
14 #include "PivotLayoutTreeListBase.hxx"
15 #include <vector>
16 #include <memory>
18 class ScPivotLayoutTreeListLabel : public ScPivotLayoutTreeListBase
20 private:
21 std::vector<std::unique_ptr<ScItemValue> > maItemValues;
22 SCCOL maDataItem;
24 public:
25 ScPivotLayoutTreeListLabel(vcl::Window* pParent, WinBits nBits);
26 virtual ~ScPivotLayoutTreeListLabel();
27 void FillLabelFields(ScDPLabelDataVector& rLabelVector);
28 ScItemValue* GetItem(SCCOL nColumn);
29 bool IsDataElement(SCCOL nColumn);
31 protected:
32 virtual void InsertEntryForSourceTarget(SvTreeListEntry* pSource, SvTreeListEntry* pTarget) override;
33 virtual void KeyInput(const KeyEvent& rKeyEvent) override;
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
38 #endif