LibreOffice Module chart2 (master)
1
chart2
source
controller
main
DragMethod_Base.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
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
#pragma once
20
21
#include <
svx/ActionDescriptionProvider.hxx
>
22
#include <
svx/svddrgmt.hxx
>
23
#include <
unotools/weakref.hxx
>
24
25
namespace
chart
{
class
DrawViewWrapper; }
26
namespace
com::sun::star::frame
{
class
XModel; }
27
28
namespace
chart
29
{
30
class
ChartModel;
31
32
class
DragMethod_Base
:
public
SdrDragMethod
33
{
34
public
:
35
DragMethod_Base
(
DrawViewWrapper
& rDrawViewWrapper, OUString aObjectCID
36
,
const
rtl::Reference<::chart::ChartModel>
& xChartModel
37
,
ActionDescriptionProvider::ActionType
eActionType =
ActionDescriptionProvider::ActionType::Move
);
38
virtual
~DragMethod_Base
()
override
;
39
40
OUString
getUndoDescription
()
const
;
41
42
virtual
OUString
GetSdrDragComment
()
const override
;
43
virtual
PointerStyle
GetSdrDragPointer
()
const override
;
44
45
protected
:
46
rtl::Reference<::chart::ChartModel>
getChartModel
()
const
;
47
48
protected
:
49
DrawViewWrapper
&
m_rDrawViewWrapper
;
50
OUString
m_aObjectCID
;
51
ActionDescriptionProvider::ActionType
m_eActionType
;
52
53
private
:
54
unotools::WeakReference<::chart::ChartModel>
m_xChartModel
;
55
};
56
57
}
// namespace chart
58
59
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ActionDescriptionProvider.hxx
ActionDescriptionProvider::ActionType
ActionType
ActionDescriptionProvider::ActionType::Move
@ Move
SdrDragMethod
chart::DragMethod_Base
Definition:
DragMethod_Base.hxx:33
chart::DragMethod_Base::m_xChartModel
unotools::WeakReference<::chart::ChartModel > m_xChartModel
Definition:
DragMethod_Base.hxx:54
chart::DragMethod_Base::getUndoDescription
OUString getUndoDescription() const
Definition:
DragMethod_Base.cxx:56
chart::DragMethod_Base::m_rDrawViewWrapper
DrawViewWrapper & m_rDrawViewWrapper
Definition:
DragMethod_Base.hxx:49
chart::DragMethod_Base::GetSdrDragPointer
virtual PointerStyle GetSdrDragPointer() const override
Definition:
DragMethod_Base.cxx:66
chart::DragMethod_Base::GetSdrDragComment
virtual OUString GetSdrDragComment() const override
Definition:
DragMethod_Base.cxx:62
chart::DragMethod_Base::DragMethod_Base
DragMethod_Base(DrawViewWrapper &rDrawViewWrapper, OUString aObjectCID, const rtl::Reference<::chart::ChartModel > &xChartModel, ActionDescriptionProvider::ActionType eActionType=ActionDescriptionProvider::ActionType::Move)
Definition:
DragMethod_Base.cxx:35
chart::DragMethod_Base::m_eActionType
ActionDescriptionProvider::ActionType m_eActionType
Definition:
DragMethod_Base.hxx:51
chart::DragMethod_Base::getChartModel
rtl::Reference<::chart::ChartModel > getChartModel() const
Definition:
DragMethod_Base.cxx:51
chart::DragMethod_Base::m_aObjectCID
OUString m_aObjectCID
Definition:
DragMethod_Base.hxx:50
chart::DragMethod_Base::~DragMethod_Base
virtual ~DragMethod_Base() override
Definition:
DragMethod_Base.cxx:47
chart::DrawViewWrapper
Definition:
DrawViewWrapper.hxx:47
rtl::Reference<::chart::ChartModel >
unotools::WeakReference<::chart::ChartModel >
chart
Definition:
AccessibleBase.cxx:63
com::sun::star::frame
PointerStyle
PointerStyle
svddrgmt.hxx
weakref.hxx
Generated on Sun Jul 30 2023 04:39:30 for LibreOffice Module chart2 (master) by
1.9.3