LibreOffice Module reportdesign (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
rptui::DlgEdFunc Class Reference

#include <dlgedfunc.hxx>

Inheritance diagram for rptui::DlgEdFunc:
[legend]
Collaboration diagram for rptui::DlgEdFunc:
[legend]

Public Member Functions

 DlgEdFunc (OReportSection *pParent)
 
virtual ~DlgEdFunc ()
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt)
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt)
 
virtual bool MouseMove (const MouseEvent &rMEvt)
 
bool handleKeyEvent (const KeyEvent &_rEvent)
 checks if the keycode is known by the child windows More...
 
bool isOverlapping (const MouseEvent &rMEvt)
 returns <TRUE> if the mouse event is over an existing object More...
 
void setOverlappedControlColor (Color _nColor)
 
void stopScrollTimer ()
 
void deactivateOle (bool _bSelect=false)
 deactivate all ole object More...
 
bool isUiActive () const
 

Protected Member Functions

 DECL_LINK (ScrollTimeout, Timer *, void)
 
void ForceScroll (const Point &rPos)
 
void checkMovementAllowed (const MouseEvent &rMEvt)
 checks that no other object is overlapped. More...
 
bool setMovementPointer (const MouseEvent &rMEvt)
 sets the correct mouse pointer when moving an object More...
 
bool isRectangleHit (const MouseEvent &rMEvt)
 
bool isOnlyCustomShapeMarked () const
 returns true, as long as only customshapes in the marked list, custom shapes can drop every where More...
 
void activateOle (SdrObject *_pObj)
 activate object if it is of type OBJ_OLE2 More...
 
void checkTwoClicks (const MouseEvent &rMEvt)
 
void colorizeOverlappedObject (SdrObject *_pOverlappedObj)
 
void unColorizeOverlappedObj ()
 

Protected Attributes

VclPtr< OReportSectionm_pParent
 
OSectionViewm_rView
 
Timer aScrollTimer
 
Point m_aMDPos
 
css::uno::Reference< css::uno::XInterface > m_xOverlappingObj
 
SdrObjectm_pOverlappingObj
 
Color m_nOverlappedControlColor
 
Color m_nOldColor
 
bool m_bSelectionMode
 
bool m_bUiActive
 
bool m_bShowPropertyBrowser
 

Private Member Functions

 DlgEdFunc (const DlgEdFunc &)=delete
 
void operator= (const DlgEdFunc &)=delete
 

Detailed Description

Definition at line 42 of file dlgedfunc.hxx.

Constructor & Destructor Documentation

◆ DlgEdFunc() [1/2]

rptui::DlgEdFunc::DlgEdFunc ( const DlgEdFunc )
privatedelete

◆ DlgEdFunc() [2/2]

rptui::DlgEdFunc::DlgEdFunc ( OReportSection pParent)

◆ ~DlgEdFunc()

rptui::DlgEdFunc::~DlgEdFunc ( )
virtual

Definition at line 164 of file dlgedfunc.cxx.

References aScrollTimer, Task::Stop(), and unColorizeOverlappedObj().

Member Function Documentation

◆ activateOle()

void rptui::DlgEdFunc::activateOle ( SdrObject _pObj)
protected

◆ checkMovementAllowed()

void rptui::DlgEdFunc::checkMovementAllowed ( const MouseEvent rMEvt)
protected

◆ checkTwoClicks()

void rptui::DlgEdFunc::checkTwoClicks ( const MouseEvent rMEvt)
protected

◆ colorizeOverlappedObject()

void rptui::DlgEdFunc::colorizeOverlappedObject ( SdrObject _pOverlappedObj)
protected

◆ deactivateOle()

void rptui::DlgEdFunc::deactivateOle ( bool  _bSelect = false)

◆ DECL_LINK()

rptui::DlgEdFunc::DECL_LINK ( ScrollTimeout  ,
Timer ,
void   
)
protected

◆ ForceScroll()

void rptui::DlgEdFunc::ForceScroll ( const Point rPos)
protected

◆ handleKeyEvent()

bool rptui::DlgEdFunc::handleKeyEvent ( const KeyEvent _rEvent)

◆ isOnlyCustomShapeMarked()

bool rptui::DlgEdFunc::isOnlyCustomShapeMarked ( ) const
protected

returns true, as long as only customshapes in the marked list, custom shapes can drop every where

Definition at line 544 of file dlgedfunc.cxx.

References SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrObject::GetObjIdentifier(), i, and m_rView.

Referenced by isRectangleHit().

◆ isOverlapping()

bool rptui::DlgEdFunc::isOverlapping ( const MouseEvent rMEvt)

returns <TRUE> if the mouse event is over an existing object

Parameters
rMEvt
Returns
<TRUE> if overlapping, otherwise <FALSE>

Definition at line 488 of file dlgedfunc.cxx.

References colorizeOverlappedObject(), m_rView, SdrViewEvent::mpObj, SdrView::PickAnything(), and unColorizeOverlappedObj().

◆ isRectangleHit()

bool rptui::DlgEdFunc::isRectangleHit ( const MouseEvent rMEvt)
protected

◆ isUiActive()

bool rptui::DlgEdFunc::isUiActive ( ) const
inline

Definition at line 114 of file dlgedfunc.hxx.

References m_bUiActive.

◆ MouseButtonDown()

bool rptui::DlgEdFunc::MouseButtonDown ( const MouseEvent rMEvt)
virtual

◆ MouseButtonUp()

bool rptui::DlgEdFunc::MouseButtonUp ( const MouseEvent rMEvt)
virtual

◆ MouseMove()

bool rptui::DlgEdFunc::MouseMove ( const MouseEvent rMEvt)
virtual

◆ operator=()

void rptui::DlgEdFunc::operator= ( const DlgEdFunc )
privatedelete

◆ setMovementPointer()

bool rptui::DlgEdFunc::setMovementPointer ( const MouseEvent rMEvt)
protected

sets the correct mouse pointer when moving an object

Parameters
rMEvt
Returns
<TRUE> when the pointer was already set.

Definition at line 621 of file dlgedfunc.cxx.

References MouseEvent::IsMod1(), isRectangleHit(), and m_pParent.

Referenced by rptui::DlgEdFuncInsert::MouseMove(), and rptui::DlgEdFuncSelect::MouseMove().

◆ setOverlappedControlColor()

void rptui::DlgEdFunc::setOverlappedControlColor ( Color  _nColor)

Definition at line 137 of file dlgedfunc.cxx.

References m_nOverlappedControlColor.

◆ stopScrollTimer()

void rptui::DlgEdFunc::stopScrollTimer ( )

Definition at line 253 of file dlgedfunc.cxx.

References aScrollTimer, m_pParent, Task::Stop(), and unColorizeOverlappedObj().

◆ unColorizeOverlappedObj()

void rptui::DlgEdFunc::unColorizeOverlappedObj ( )
protected

Member Data Documentation

◆ aScrollTimer

Timer rptui::DlgEdFunc::aScrollTimer
protected

Definition at line 49 of file dlgedfunc.hxx.

Referenced by DlgEdFunc(), ForceScroll(), stopScrollTimer(), and ~DlgEdFunc().

◆ m_aMDPos

Point rptui::DlgEdFunc::m_aMDPos
protected

◆ m_bSelectionMode

bool rptui::DlgEdFunc::m_bSelectionMode
protected

◆ m_bShowPropertyBrowser

bool rptui::DlgEdFunc::m_bShowPropertyBrowser
protected

Definition at line 57 of file dlgedfunc.hxx.

Referenced by activateOle(), and deactivateOle().

◆ m_bUiActive

bool rptui::DlgEdFunc::m_bUiActive
protected

◆ m_nOldColor

Color rptui::DlgEdFunc::m_nOldColor
protected

Definition at line 54 of file dlgedfunc.hxx.

Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().

◆ m_nOverlappedControlColor

Color rptui::DlgEdFunc::m_nOverlappedControlColor
protected

Definition at line 53 of file dlgedfunc.hxx.

Referenced by colorizeOverlappedObject(), and setOverlappedControlColor().

◆ m_pOverlappingObj

SdrObject* rptui::DlgEdFunc::m_pOverlappingObj
protected

Definition at line 52 of file dlgedfunc.hxx.

Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().

◆ m_pParent

VclPtr<OReportSection> rptui::DlgEdFunc::m_pParent
protected

◆ m_rView

OSectionView& rptui::DlgEdFunc::m_rView
protected

◆ m_xOverlappingObj

css::uno::Reference<css::uno::XInterface> rptui::DlgEdFunc::m_xOverlappingObj
protected

Definition at line 51 of file dlgedfunc.hxx.

Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().


The documentation for this class was generated from the following files: