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/.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PIVOTLAYOUTTREELISTDATA_HXX
|
|
|
|
#define PIVOTLAYOUTTREELISTDATA_HXX
|
|
|
|
|
|
|
|
#include "PivotLayoutTreeListBase.hxx"
|
|
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
|
|
|
|
|
|
|
class ScPivotLayoutTreeListData : public ScPivotLayoutTreeListBase
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
boost::ptr_vector<ScItemValue> maDataItemValues;
|
|
|
|
|
|
|
|
public:
|
|
|
|
ScPivotLayoutTreeListData(Window* pParent, WinBits nBits);
|
2014-03-31 10:10:25 +02:00
|
|
|
virtual ~ScPivotLayoutTreeListData();
|
2014-03-30 21:12:27 +02:00
|
|
|
virtual bool DoubleClickHdl() SAL_OVERRIDE;
|
|
|
|
|
|
|
|
void FillDataField(ScPivotFieldVector& rDataFields);
|
2014-04-03 11:33:04 +02:00
|
|
|
void PushDataFieldNames(std::vector<ScDPName>& rDataFieldNames);
|
|
|
|
|
2014-03-30 21:12:27 +02:00
|
|
|
protected:
|
|
|
|
virtual void InsertEntryForSourceTarget(SvTreeListEntry* pSource, SvTreeListEntry* pTarget) SAL_OVERRIDE;
|
|
|
|
virtual void InsertEntryForItem(ScItemValue* pItemValue, sal_uLong nPosition) SAL_OVERRIDE;
|
|
|
|
|
2014-04-03 21:38:48 +02:00
|
|
|
void AdjustDuplicateCount(ScItemValue* pInputItemValue);
|
|
|
|
|
2014-03-30 21:12:27 +02:00
|
|
|
virtual void KeyInput(const KeyEvent& rKeyEvent) SAL_OVERRIDE;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
|
|
|
|
|
|
|
#endif
|