25#include <document.hxx>
32#include <drawview.hxx>
67 aPixel =
pWindow->LogicToPixel( aLineEnd );
73 bool bStart = (
Diff( rPos,aLineStart ) >
Diff( rPos,aLineEnd ) );
74 if ( nCurX == nStartCol && nCurY == nStartRow )
76 else if ( nCurX == nEndCol && nCurY == nEndRow )
83 nDifX = nStartCol - nCurX;
84 nDifY = nStartRow - nCurY;
88 nDifX = nEndCol - nCurX;
89 nDifY = nEndRow - nCurY;
131 if( pObj->GetLogicRect().Contains( rPos ) )
135 const ScAddress& rNotePos = pCaptData->maStart;
139 if( !bProtectAttr || !bProtectDoc )
css::chart::ChartAxisLabelPosition ePos
ScTabViewShell & rViewShell
VclPtr< vcl::Window > pWindow
bool TestDetective(const SdrPageView *pPV, const Point &rPos)
bool IsNoteCaptionClicked(const Point &rPos) const
bool IsNoteCaptionMarked() const
constexpr tools::Long Y() const
constexpr tools::Long X() 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.
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
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, const basegfx::B2DVector &rHitTolerance, const SdrPageView &rSdrPageView, const SdrLayerIDSet *pVisiLayer, bool bTextOnly, drawinglayer::primitive2d::Primitive2DContainer *pHitContainer=nullptr)