LibreOffice Module reportdesign (master) 1
|
#include <dlgedfunc.hxx>
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< OReportSection > | m_pParent |
OSectionView & | m_rView |
Timer | aScrollTimer |
Point | m_aMDPos |
css::uno::Reference< css::uno::XInterface > | m_xOverlappingObj |
SdrObject * | m_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 |
Definition at line 42 of file dlgedfunc.hxx.
|
privatedelete |
rptui::DlgEdFunc::DlgEdFunc | ( | OReportSection * | pParent | ) |
Definition at line 121 of file dlgedfunc.cxx.
References aScrollTimer, LINK, m_pParent, m_rView, SELENG_AUTOREPEAT_INTERVAL, SdrSnapView::SetActualWin(), Timer::SetInvokeHandler(), and Timer::SetTimeout().
|
virtual |
Definition at line 164 of file dlgedfunc.cxx.
References aScrollTimer, Task::Stop(), and unColorizeOverlappedObj().
|
protected |
activate object if it is of type OBJ_OLE2
Definition at line 385 of file dlgedfunc.cxx.
References SdrOle2Obj::AddOwnLightClient(), DBG_UNHANDLED_EXCEPTION, VCLUnoHelper::GetInterface(), SdrObject::GetObjIdentifier(), SdrOle2Obj::GetObjRef(), SdrObjEditView::IsTextEdit(), m_bShowPropertyBrowser, m_bUiActive, m_pParent, m_rView, SdrObjEditView::SdrEndTextEdit(), and SdrOle2Obj::SetWindow().
Referenced by checkTwoClicks(), and handleKeyEvent().
|
protected |
checks that no other object is overlapped.
rMEvt |
Definition at line 504 of file dlgedfunc.cxx.
References MouseEvent::GetPosPixel(), rptui::OSectionView::IsDragResize(), MouseEvent::IsMod1(), isRectangleHit(), m_bSelectionMode, m_pParent, m_rView, Point::setY(), and Point::Y().
Referenced by rptui::DlgEdFuncInsert::MouseButtonUp(), and rptui::DlgEdFuncSelect::MouseButtonUp().
|
protected |
Definition at line 233 of file dlgedfunc.cxx.
References activateOle(), SdrMarkView::AreObjectsMarked(), deactivateOle(), MouseEvent::GetClicks(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), MouseEvent::IsLeft(), and m_rView.
Referenced by rptui::DlgEdFuncInsert::MouseButtonUp(), and rptui::DlgEdFuncSelect::MouseButtonUp().
|
protected |
Definition at line 453 of file dlgedfunc.cxx.
References SdrObject::getSdrModelFromSdrObject(), rptui::OReportModel::GetUndoEnv(), rptui::lcl_setColorOfObject(), m_nOldColor, m_nOverlappedControlColor, m_pOverlappingObj, m_xOverlappingObj, and unColorizeOverlappedObj().
Referenced by isOverlapping(), and isRectangleHit().
void rptui::DlgEdFunc::deactivateOle | ( | bool | _bSelect = false | ) |
deactivate all ole object
Definition at line 423 of file dlgedfunc.cxx.
References SdrOle2Obj::GetObjRef(), SdrGlobalData::GetOLEObjCache(), GetSdrGlobalData(), SdrObject::getSdrPageFromSdrObject(), SdrPaintView::GetSdrPageView(), i, m_bShowPropertyBrowser, m_bUiActive, m_pParent, m_rView, SdrMarkView::MarkObj(), nCount, and OLEObjCache::size().
Referenced by checkTwoClicks(), handleKeyEvent(), and rptui::DlgEdFuncInsert::MouseButtonDown().
|
protected |
|
protected |
Definition at line 64 of file dlgedfunc.cxx.
References tools::Rectangle::AdjustRight(), Size::AdjustWidth(), aScrollTimer, tools::Rectangle::Bottom(), tools::Rectangle::Contains(), ScrollAdaptor::DoScroll(), rptui::OScrollWindowHelper::GetHScroll(), ScrollAdaptor::GetLineSize(), vcl::Window::GetOutputSizePixel(), rptui::OReportWindow::getScrollWindow(), rptui::OScrollWindowHelper::getThumbPos(), ScrollAdaptor::GetThumbPos(), rptui::OScrollWindowHelper::getTotalSize(), rptui::OScrollWindowHelper::GetVScroll(), tools::Rectangle::Left(), m_pParent, vcl::Window::PixelToLogic(), REPORT_STARTMARKER_WIDTH, tools::Rectangle::Right(), Size::setHeight(), Point::setX(), Point::setY(), Timer::Start(), Task::Stop(), tools::Rectangle::Top(), Point::X(), and Point::Y().
Referenced by rptui::DlgEdFuncInsert::MouseMove(), and rptui::DlgEdFuncSelect::MouseMove().
bool rptui::DlgEdFunc::handleKeyEvent | ( | const KeyEvent & | _rEvent | ) |
checks if the keycode is known by the child windows
_rCode | the keycode |
Definition at line 267 of file dlgedfunc.cxx.
References activateOle(), SdrMarkView::AreObjectsMarked(), deactivateOle(), DEFAUL_MOVE_SIZE, SdrMarkView::GetAllMarkedRect(), vcl::KeyCode::GetCode(), SdrHdlList::GetFocusHdl(), SdrMarkView::GetHdlList(), KeyEvent::GetKeyCode(), SdrMarkList::GetMark(), SdrMarkList::GetMarkCount(), SdrMarkView::GetMarkedObjectList(), SdrMark::GetMarkedSdrObj(), SdrHdl::GetPos(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), SdrObjEditView::IsTextEdit(), KEY_DELETE, KEY_DOWN, KEY_ESCAPE, KEY_LEFT, KEY_RETURN, KEY_RIGHT, KEY_TAB, KEY_UP, SdrView::KeyInput(), m_bUiActive, m_pParent, m_rView, rptui::OSectionView::MakeVisible(), SdrMarkView::MarkNextObj(), SdrObjEditView::SdrEndTextEdit(), and SdrMarkView::UnmarkAllObj().
|
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().
bool rptui::DlgEdFunc::isOverlapping | ( | const MouseEvent & | rMEvt | ) |
returns <TRUE> if the mouse event is over an existing object
rMEvt |
Definition at line 488 of file dlgedfunc.cxx.
References colorizeOverlappedObject(), m_rView, SdrViewEvent::mpObj, SdrView::PickAnything(), and unColorizeOverlappedObj().
|
protected |
Definition at line 562 of file dlgedfunc.cxx.
References colorizeOverlappedObject(), SdrDragStat::GetDragMethod(), SdrPaintView::GetDragStat(), SdrDragStat::GetDX(), SdrDragStat::GetDY(), SdrObject::GetLastBoundRect(), SdrDragMethod::getMoveOnly(), SdrObject::GetObjIdentifier(), SdrDragStat::GetRef1(), SdrDragStat::GetXFact(), SdrDragStat::GetYFact(), SdrDragStat::IsHorFixed(), SdrMarkView::IsObjMarked(), isOnlyCustomShapeMarked(), rptui::isOver(), rptui::ISOVER_IGNORE_CUSTOMSHAPES, SdrDragStat::IsVerFixed(), tools::Rectangle::Left(), m_bSelectionMode, m_pParent, m_rView, tools::Rectangle::Move(), SdrViewEvent::mpObj, SdrObjListIter::Next(), SdrView::PickAnything(), and tools::Rectangle::Top().
Referenced by checkMovementAllowed(), and setMovementPointer().
|
inline |
Definition at line 114 of file dlgedfunc.hxx.
References m_bUiActive.
|
virtual |
Reimplemented in rptui::DlgEdFuncInsert, and rptui::DlgEdFuncSelect.
Definition at line 171 of file dlgedfunc.cxx.
References MouseEvent::GetClicks(), MouseEvent::GetPosPixel(), SdrPaintView::GetSdrPageView(), comphelper::InitPropertySequence(), MouseEvent::IsLeft(), SdrMarkView::IsMarkedHit(), MouseEvent::IsRight(), MouseEvent::IsShift(), m_aMDPos, m_pParent, m_rView, SdrMarkView::MarkObj(), SdrViewEvent::mpRootObj, SdrView::PickAnything(), and SdrMarkView::PickHandle().
Referenced by rptui::DlgEdFuncInsert::MouseButtonDown(), and rptui::DlgEdFuncSelect::MouseButtonDown().
|
virtual |
Reimplemented in rptui::DlgEdFuncInsert, and rptui::DlgEdFuncSelect.
Definition at line 227 of file dlgedfunc.cxx.
References m_pParent.
Referenced by rptui::DlgEdFuncInsert::MouseButtonUp(), and rptui::DlgEdFuncSelect::MouseButtonUp().
|
virtual |
Reimplemented in rptui::DlgEdFuncInsert, and rptui::DlgEdFuncSelect.
Definition at line 262 of file dlgedfunc.cxx.
Referenced by rptui::DlgEdFuncInsert::MouseMove(), and rptui::DlgEdFuncSelect::MouseMove().
|
privatedelete |
|
protected |
sets the correct mouse pointer when moving an object
rMEvt |
Definition at line 621 of file dlgedfunc.cxx.
References MouseEvent::IsMod1(), isRectangleHit(), and m_pParent.
Referenced by rptui::DlgEdFuncInsert::MouseMove(), and rptui::DlgEdFuncSelect::MouseMove().
void rptui::DlgEdFunc::setOverlappedControlColor | ( | Color | _nColor | ) |
Definition at line 137 of file dlgedfunc.cxx.
References m_nOverlappedControlColor.
void rptui::DlgEdFunc::stopScrollTimer | ( | ) |
Definition at line 253 of file dlgedfunc.cxx.
References aScrollTimer, m_pParent, Task::Stop(), and unColorizeOverlappedObj().
|
protected |
Definition at line 474 of file dlgedfunc.cxx.
References SdrObject::getSdrModelFromSdrObject(), rptui::OReportModel::GetUndoEnv(), rptui::lcl_setColorOfObject(), m_nOldColor, m_pOverlappingObj, and m_xOverlappingObj.
Referenced by colorizeOverlappedObject(), isOverlapping(), rptui::DlgEdFuncSelect::MouseMove(), stopScrollTimer(), and ~DlgEdFunc().
|
protected |
Definition at line 49 of file dlgedfunc.hxx.
Referenced by DlgEdFunc(), ForceScroll(), stopScrollTimer(), and ~DlgEdFunc().
|
protected |
Definition at line 50 of file dlgedfunc.hxx.
Referenced by MouseButtonDown(), rptui::DlgEdFuncInsert::MouseButtonDown(), rptui::DlgEdFuncSelect::MouseButtonDown(), and rptui::DlgEdFuncInsert::MouseButtonUp().
|
protected |
Definition at line 55 of file dlgedfunc.hxx.
Referenced by checkMovementAllowed(), isRectangleHit(), rptui::DlgEdFuncSelect::MouseButtonDown(), and rptui::DlgEdFuncSelect::MouseButtonUp().
|
protected |
Definition at line 57 of file dlgedfunc.hxx.
Referenced by activateOle(), and deactivateOle().
|
protected |
Definition at line 56 of file dlgedfunc.hxx.
Referenced by activateOle(), deactivateOle(), handleKeyEvent(), isUiActive(), and rptui::DlgEdFuncSelect::MouseButtonUp().
|
protected |
Definition at line 54 of file dlgedfunc.hxx.
Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().
|
protected |
Definition at line 53 of file dlgedfunc.hxx.
Referenced by colorizeOverlappedObject(), and setOverlappedControlColor().
|
protected |
Definition at line 52 of file dlgedfunc.hxx.
Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().
|
protected |
Definition at line 47 of file dlgedfunc.hxx.
Referenced by activateOle(), checkMovementAllowed(), deactivateOle(), DlgEdFunc(), ForceScroll(), handleKeyEvent(), isRectangleHit(), MouseButtonDown(), rptui::DlgEdFuncInsert::MouseButtonDown(), rptui::DlgEdFuncSelect::MouseButtonDown(), MouseButtonUp(), rptui::DlgEdFuncInsert::MouseButtonUp(), rptui::DlgEdFuncSelect::MouseButtonUp(), rptui::DlgEdFuncInsert::MouseMove(), rptui::DlgEdFuncSelect::MouseMove(), setMovementPointer(), and stopScrollTimer().
|
protected |
Definition at line 48 of file dlgedfunc.hxx.
Referenced by activateOle(), checkMovementAllowed(), checkTwoClicks(), deactivateOle(), DlgEdFunc(), rptui::DlgEdFuncInsert::DlgEdFuncInsert(), handleKeyEvent(), isOnlyCustomShapeMarked(), isOverlapping(), isRectangleHit(), MouseButtonDown(), rptui::DlgEdFuncInsert::MouseButtonDown(), rptui::DlgEdFuncSelect::MouseButtonDown(), rptui::DlgEdFuncInsert::MouseButtonUp(), rptui::DlgEdFuncSelect::MouseButtonUp(), rptui::DlgEdFuncInsert::MouseMove(), rptui::DlgEdFuncSelect::MouseMove(), and rptui::DlgEdFuncInsert::~DlgEdFuncInsert().
|
protected |
Definition at line 51 of file dlgedfunc.hxx.
Referenced by colorizeOverlappedObject(), and unColorizeOverlappedObj().