25#include <document.hxx>
32#include <drawview.hxx>
56 sal_uInt16 nHitLog =
static_cast<sal_uInt16
>(
pWindow->PixelToLogic(
68 aPixel =
pWindow->LogicToPixel( aLineEnd );
74 bool bStart = (
Diff( rPos,aLineStart ) >
Diff( rPos,aLineEnd ) );
75 if ( nCurX == nStartCol && nCurY == nStartRow )
77 else if ( nCurX == nEndCol && nCurY == nEndRow )
84 nDifX = nStartCol - nCurX;
85 nDifY = nStartRow - nCurY;
89 nDifX = nEndCol - nCurX;
90 nDifY = nEndRow - nCurY;
132 if( pObj->GetLogicRect().Contains( rPos ) )
136 const ScAddress& rNotePos = pCaptData->maStart;
140 if( !bProtectAttr || !bProtectDoc )
css::chart::ChartAxisLabelPosition ePos
ScTabViewShell & rViewShell
VclPtr< vcl::Window > pWindow
void ActivateNoteHandles(SdrObject *pObj)
bool TestDetective(const SdrPageView *pPV, const Point &rPos)
bool IsNoteCaptionClicked(const Point &rPos) const
bool IsNoteCaptionMarked() const
static bool IsNonAlienArrow(const SdrObject *pObject)
SC_DLLPUBLIC bool IsTabProtected(SCTAB nTab) const
SC_DLLPUBLIC const SfxPoolItem * GetAttr(SCCOL nCol, SCROW nRow, SCTAB nTab, sal_uInt16 nWhich) const
static bool IsNoteCaption(SdrObject *pObj)
Returns true, if the passed object is the caption of a cell note.
static ScDrawObjData * GetNoteCaptionData(SdrObject *pObj, SCTAB nTab)
Returns the object data, if the passed object is a cell note caption.
void UnlockInternalLayer()
Unlocks the internal layer that contains caption objects of cell notes.
bool GetProtection() const
ScSplitPos FindWindow(const vcl::Window *pWindow) const
void MoveCursorRel(SCCOL nMovX, SCROW nMovY, ScFollowMode eMode, bool bShift, bool bKeepSel=false)
ScViewData & GetViewData()
ScDocument & GetDocument() const
ScDocShell * GetDocShell() const
void GetPosFromPixel(tools::Long nClickX, tools::Long nClickY, ScSplitPos eWhich, SCCOL &rPosX, SCROW &rPosY, bool bTestMerge=true, bool bRepair=false, SCTAB nForTab=-1)
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
SdrObject * GetMarkedSdrObj() const
SdrObjList * GetObjList() const
sal_uInt16 GetHitTolerancePixel() const
SdrPageView * GetSdrPageView() const
EmbeddedObjectRef * pObject
static tools::Long Diff(const Point &rP1, const Point &rP2)
constexpr TypedWhichId< ScProtectionAttr > ATTR_PROTECTION(149)
SVXCORE_DLLPUBLIC SdrObject * SdrObjectPrimitiveHit(const SdrObject &rObject, const Point &rPnt, sal_uInt16 nTol, const SdrPageView &rSdrPageView, const SdrLayerIDSet *pVisiLayer, bool bTextOnly, drawinglayer::primitive2d::Primitive2DContainer *pHitContainer=nullptr)