33#include <drawview.hxx>
37#include <document.hxx>
48 rDoc(
pData->GetDocument() ),
49 nTab(
pData->GetTabNo() ),
50 pDropMarkObj( nullptr ),
120 bool bCellResize =
false;
137 if( bPage && !bCell && !bCellResize )
139 if( !bPage && bCell && !bCellResize )
141 if( !bPage && !bCell && bCellResize )
152 if (std::abs(rRectA.
Left() - rRectB.
Left()) > 1)
154 if (std::abs(rRectA.
Top() - rRectB.
Top()) > 1)
156 if (std::abs(rRectA.
Right() - rRectB.
Right()) > 1)
169 if (rHint.
GetKind() != SdrHintKind::ObjectChange && rHint.
GetKind() != SdrHintKind::ObjectInserted)
204 if (rHint.
GetId() == SfxHintId::ThisIsAnSdrHint)
207 adjustAnchoredPosition(*pSdrHint,
rDoc,
nTab);
212 SCTAB nDelTab = pDeletedHint->GetTab();
216 if ( nDelTab ==
nTab )
222 if (
nTab == pChangedHint->GetTab() )
233 pObj && (
dynamic_cast<const SdrGrafObj*
>( pObj) !=
nullptr ||
dynamic_cast<const SdrOle2Obj*
>( pObj) !=
nullptr )) )
239 const ImageMap* pImageMap =
nullptr;
247 if (
auto pGrafObj =
dynamic_cast<SdrGrafObj*
>( pObj) )
248 aGraphic = pGrafObj->GetGraphic();
253 aGraphic = *pGraphic;
256 ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj );
bool ValidTab(SCTAB nTab)
void SetDrawModified()
SetDrawModified - without Formula update.
SC_DLLPUBLIC bool IsLayoutRTL(SCTAB nTab) const
static ScDrawObjData * GetObjData(SdrObject *pObj, bool bCreate=false)
static void SetCellAnchoredFromPosition(SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab, bool bResizeWithCell)
static void SetPageAnchored(SdrObject &)
static ScAnchorType GetAnchorType(const SdrObject &)
static ScDrawObjData * GetNonRotatedObjData(SdrObject *pObj, bool bCreate=false)
const tools::Rectangle & getShapeRect() const
void SetCellAnchored(bool bResizeWithCell)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
void UpdateIMap(SdrObject *pObj)
ScDrawView(OutputDevice *pOut, ScViewData *pData)
ScDocument & rDoc
needed ?
virtual void AddCustomHdl() override
ScAnchorType GetAnchorType() const
ScDocShell * GetDocShell() const
ScTabViewShell * GetViewShell() const
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
void RemoveAllByKind(SdrHdlKind eKind)
SdrHintKind GetKind() const
const SdrObject * GetObject() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
const SdrMarkList & GetMarkedObjectList() const
bool AreObjectsMarked() const
void SetNegativeX(bool bOn)
SdrObject * GetMarkedSdrObj() const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual const tools::Rectangle & GetSnapRect() const
virtual const tools::Rectangle & GetLogicRect() const
void SetBufferedOverlayAllowed(bool bNew)
void SetBufferedOutputAllowed(bool bNew)
static void GetTargetList(TargetList &rList)
bool HasChildWindow(sal_uInt16)
SfxViewFrame & GetViewFrame() const
static SvxIMapInfo * GetIMapInfo(const SdrObject *pObject)
const ImageMap & GetImageMap() const
::std::vector< OUString > TargetList
void ScIMapDlgSet(const Graphic &rGraphic, const ImageMap *pImageMap, const TargetList *pTargetList, void *pEditingObj)
sal_uInt16 ScIMapChildWindowId()
std::unique_ptr< sal_Int32[]> pData
bool IsOverlayBuffer_Calc()
bool IsPaintBuffer_Calc()
OUString ScResId(TranslateId aId)