31 #include <strings.hrc>
33 #include <drawview.hxx>
37 #include <document.hxx>
45 :
FmFormView(*pData->GetDocument().GetDrawLayer(), pOut),
48 rDoc( pData->GetDocument() ),
49 nTab( pData->GetTabNo() ),
50 pDropMarkObj( nullptr ),
74 for(
size_t i=0;
i<nCount; ++
i )
99 for(
size_t i=0;
i<nCount; ++
i )
120 bool bCellResize =
false;
125 for(
size_t i=0;
i<nCount; ++
i )
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);
210 else if (
auto pDeletedHint = dynamic_cast<const ScTabDeletedHint*>(&rHint))
212 SCTAB nDelTab = pDeletedHint->GetTab();
216 if ( nDelTab == nTab )
220 else if (
auto pChangedHint = dynamic_cast<const ScTabSizeChangedHint*>(&rHint))
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 );
SfxViewFrame * GetViewFrame() const
ScDocShell * GetDocShell() const
SdrHintKind GetKind() const
size_t GetMarkCount() const
OUString ScResId(TranslateId aId)
void UpdateIMap(SdrObject *pObj)
static void SetPageAnchored(SdrObject &)
bool AreObjectsMarked() const
static void GetTargetList(TargetList &rList)
static ScDrawObjData * GetObjData(SdrObject *pObj, bool bCreate=false)
SdrMark * GetMark(size_t nNum) const
virtual void AddCustomHdl() override
virtual const tools::Rectangle & GetSnapRect() const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
void SetBufferedOutputAllowed(bool bNew)
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
ScTabViewShell * GetViewShell() const
SdrObject * GetMarkedSdrObj() const
const tools::Rectangle & getShapeRect() const
void AddUndo(std::unique_ptr< SdrUndoAction > pUndo)
void SetBufferedOverlayAllowed(bool bNew)
void SetCellAnchored(bool bResizeWithCell)
static ScAnchorType GetAnchorType(const SdrObject &)
static void SetCellAnchoredFromPosition(SdrObject &rObj, const ScDocument &rDoc, SCTAB nTab, bool bResizeWithCell)
bool IsPaintBuffer_Calc()
const SdrMarkList & GetMarkedObjectList() const
void RemoveAllByKind(SdrHdlKind eKind)
void ScIMapDlgSet(const Graphic &rGraphic, const ImageMap *pImageMap, const TargetList *pTargetList, void *pEditingObj)
ScDrawView(OutputDevice *pOut, ScViewData *pData)
bool HasChildWindow(sal_uInt16)
ScAnchorType GetAnchorType() const
static ScDrawObjData * GetNonRotatedObjData(SdrObject *pObj, bool bCreate=false)
void SetNegativeX(bool bOn)
ScDocument & rDoc
needed ?
SC_DLLPUBLIC bool IsLayoutRTL(SCTAB nTab) const
const ImageMap & GetImageMap() const
void SetDrawModified()
SetDrawModified - without Formula update.
virtual const tools::Rectangle & GetLogicRect() const
bool IsOverlayBuffer_Calc()
::std::vector< OUString > TargetList
bool ValidTab(SCTAB nTab)
static SvxIMapInfo * GetIMapInfo(const SdrObject *pObject)
const SdrObject * GetObject() const
sal_uInt16 ScIMapChildWindowId()