LibreOffice Module sc (master)  1
PivotLayoutTreeList.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_PIVOTLAYOUTTREELIST_HXX
12 #define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELIST_HXX
13 
14 #include <memory>
15 #include <tools/solar.h>
17 
19 {
20 private:
21  std::vector<std::unique_ptr<ScItemValue>> maItemValues;
22 
23  DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
24  DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
25 
26 public:
27  ScPivotLayoutTreeList(std::unique_ptr<weld::TreeView> xControl);
28  virtual ~ScPivotLayoutTreeList() override;
29 
30  void Setup(ScPivotLayoutDialog* pParent, SvPivotTreeListType eType);
31  void FillFields(ScPivotFieldVector& rFieldVector);
32 
33  virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) override;
34 
35 protected:
36  void InsertEntryForItem(const ScItemValue* pItemValue, int nPosition);
37 };
38 
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
40 
41 #endif
void InsertEntryForItem(const ScItemValue *pItemValue, int nPosition)
virtual ~ScPivotLayoutTreeList() override
void Setup(ScPivotLayoutDialog *pParent, SvPivotTreeListType eType)
std::vector< ScPivotField > ScPivotFieldVector
Definition: pivot.hxx:129
void FillFields(ScPivotFieldVector &rFieldVector)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
virtual void InsertEntryForSourceTarget(weld::TreeView &rSource, int nTarget) override
std::vector< std::unique_ptr< ScItemValue > > maItemValues
ScPivotLayoutTreeList(std::unique_ptr< weld::TreeView > xControl)