LibreOffice Module sc (master) 1
PivotLayoutTreeListBase.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#pragma once
12
13#include <vcl/transfer.hxx>
14#include <vcl/weld.hxx>
15#include <pivot.hxx>
16
19class ScItemValue;
20
21class ScPivotLayoutTreeDropTarget : public DropTargetHelper
22{
23private:
25
26 virtual sal_Int8 AcceptDrop(const AcceptDropEvent& rEvt) override;
27 virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent& rEvt) override;
28
29public:
31};
32
34{
35public:
37 {
43 };
44
45protected:
46 std::unique_ptr<weld::TreeView> mxControl;
50
51 DECL_LINK(GetFocusHdl, weld::Widget&, void);
52 DECL_LINK(MnemonicActivateHdl, weld::Widget&, bool);
53 DECL_LINK(LoseFocusHdl, weld::Widget&, void);
54
55public:
56 void Setup(ScPivotLayoutDialog* pParent);
57
58 ScPivotLayoutTreeListBase(std::unique_ptr<weld::TreeView> xControl,
62
64
65 void RemoveEntryForItem(const ScItemValue* pItemValue);
66
67 virtual void InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget);
68};
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
ScPivotLayoutTreeDropTarget(ScPivotLayoutTreeListBase &rTreeView)
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
ScPivotLayoutTreeListBase & m_rTreeView
ScPivotLayoutTreeListBase(std::unique_ptr< weld::TreeView > xControl, SvPivotTreeListType eType=UNDEFINED)
void Setup(ScPivotLayoutDialog *pParent)
void PushEntriesToPivotFieldVector(ScPivotFieldVector &rVector)
DECL_LINK(MnemonicActivateHdl, weld::Widget &, bool)
std::unique_ptr< weld::TreeView > mxControl
virtual void InsertEntryForSourceTarget(weld::TreeView &rSource, int nTarget)
void RemoveEntryForItem(const ScItemValue *pItemValue)
DECL_LINK(LoseFocusHdl, weld::Widget &, void)
DECL_LINK(GetFocusHdl, weld::Widget &, void)
ScPivotLayoutTreeDropTarget maDropTargetHelper
std::vector< ScPivotField > ScPivotFieldVector
Definition: pivot.hxx:129
signed char sal_Int8