22#include <dlgedfunc.hxx>
44 static const Point aDefPoint;
55 if( rPos.
X() < aOutRect.
Left() )
57 else if( rPos.
X() <= aOutRect.
Right() )
60 if( rPos.
Y() < aOutRect.
Top() )
62 else if( rPos.
Y() <= aOutRect.
Bottom() )
80 rParent(rParent_), aScrollTimer(
"basctl DlgEdFunc aScrollTimer")
106 bool bReturn =
false;
112 sal_uInt16 nCode = aCode.
GetCode();
128 const_cast<SdrHdlList&
>(rHdlList).ResetFocusHdl();
153 else if ( aCode.
IsMod1() )
162 Point aHdlPosition( pHdl->GetPos() );
210 nX *= aPixelSize.
Width();
211 nY *= aPixelSize.
Height();
223 if ( pHdl ==
nullptr )
234 aMarkRect.
Move( nX, nY );
236 if ( !rWorkArea.
Contains( aMarkRect ) )
238 if ( aMarkRect.
Left() < rWorkArea.
Left() )
239 nX += rWorkArea.
Left() - aMarkRect.
Left();
244 if ( aMarkRect.
Top() < rWorkArea.
Top() )
245 nY += rWorkArea.
Top() - aMarkRect.
Top();
252 if ( nX != 0 || nY != 0 )
266 rView.
BegDragObj(aStartPoint,
nullptr, pHdl, 0);
270 bool const bWasNoSnap = rDragStat.
IsNoSnap();
284 const_cast<SdrDragStat&
>(rDragStat).SetNoSnap(bWasNoSnap);
303 if ( nThumbPos < nRangeMin )
304 nThumbPos = nRangeMin;
305 if ( nThumbPos > nRangeMax )
306 nThumbPos = nRangeMax;
348 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
358 if ( pHdl!=
nullptr || rView.
IsMarkedHit(aPos, nHitLog) )
359 rView.
BegDragObj(aPos,
nullptr, pHdl, nDrgLog);
392 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
414 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
441 sal_uInt16 nDrgLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
450 if ( pHdl!=
nullptr || rView.
IsMarkedHit(aMDPos, nHitLog) )
452 rView.
BegDragObj(aMDPos,
nullptr, pHdl, nDrgLog);
472 if ( rView.
MarkObj(aMDPos, nHitLog) )
476 rView.
BegDragObj(aMDPos,
nullptr, pHdl, nDrgLog);
503 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
532 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(rWindow.
PixelToLogic(
Size(3, 0)).Width());
const vcl::KeyCode & GetKeyCode() const
sal_uInt16 GetClicks() const
const Point & GetPosPixel() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
bool BegCreateObj(const Point &rPnt, OutputDevice *pOut=nullptr, short nMinMov=-3)
void SetEditMode(SdrViewEditMode eMode)
bool EndCreateObj(SdrCreateCmd eCmd)
virtual void MovAction(const Point &rPnt) override
void SetCreateMode(bool bOn=true)
virtual void BrkAction() override
virtual bool IsAction() const override
virtual void EndAction() override
bool EndDragObj(bool bCopy=false)
const tools::Rectangle & GetWorkArea() const
virtual bool BegDragObj(const Point &rPnt, OutputDevice *pOut, SdrHdl *pHdl, short nMinMov=-3, SdrDragMethod *pForcedMeth=nullptr)
bool IsMoveAllowed() const
void ForceMarkedToAnotherPage()
void MoveAllMarked(const Size &rSiz, bool bCopy=false)
SdrHdl * GetFocusHdl() const
const Point & GetPos() const
SdrHdl * PickHandle(const Point &rPnt) const
bool AreObjectsMarked() const
void BegMarkObj(const Point &rPnt, bool bUnmark=false)
const SdrHdlList & GetHdlList() const
SdrObject * PickObj(const Point &rPnt, short nTol, SdrPageView *&rpPV, SdrSearchOptions nOptions, SdrObject **ppRootObj, bool *pbHitPassDirect=nullptr) const
void UnmarkAllObj(SdrPageView const *pPV=nullptr)
const tools::Rectangle & GetMarkedObjRect() const
bool IsMarkedHit(const Point &rPnt, short nTol=-2) const
const tools::Rectangle & GetAllMarkedRect() const
bool MarkNextObj(bool bPrev=false)
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
virtual void MakeVisible(const tools::Rectangle &rRect, vcl::Window &rWin)
const SdrDragStat & GetDragStat() const
void SetSnapEnabled(bool bOn)
bool IsSnapEnabled() const
void SetActualWin(const OutputDevice *pWin)
PointerStyle GetPreferredPointer(const Point &rMousePos, const OutputDevice *pOut, sal_uInt16 nModifier=0, bool bLeftDown=false) const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
DlgEdFuncInsert(DlgEditor &rParent)
virtual void MouseMove(const MouseEvent &rMEvt) override
virtual ~DlgEdFuncInsert() override
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
virtual ~DlgEdFuncSelect() override
DlgEdFuncSelect(DlgEditor &rParent)
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual void MouseMove(const MouseEvent &rMEvt) override
bool KeyInput(const KeyEvent &rKEvt)
virtual bool MouseButtonUp(const MouseEvent &rMEvt)
virtual void MouseButtonDown(const MouseEvent &rMEvt)
DlgEdFunc(DlgEditor &rParent)
void ForceScroll(const Point &rPos)
virtual void MouseMove(const MouseEvent &rMEvt)
ScrollAdaptor * GetVScroll() const
ScrollAdaptor * GetHScroll() const
DlgEdView & GetView() const
vcl::Window & GetWindow() const
sal_uInt16 GetCode() const
::OutputDevice const * GetOutDev() const
Point PixelToLogic(const Point &rDevicePt) const
Size GetOutputSizePixel() const
Point GetPointerPosPixel()
virtual void SetPointer(PointerStyle)
Point ScreenToOutputPixel(const Point &rPos) const
constexpr sal_uInt16 KEY_ESCAPE
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_TAB
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(EditorWindow, SetSourceInBasicHdl, void *, void)
#define SELENG_AUTOREPEAT_INTERVAL