29 #include <strings.hrc>
31 #include <drawview.hxx>
35 #include <document.hxx>
43 :
FmFormView(*pData->GetDocument().GetDrawLayer(), pOut),
46 rDoc( pData->GetDocument() ),
47 nTab( pData->GetTabNo() ),
48 pDropMarkObj( nullptr ),
71 for(
size_t i=0;
i<nCount; ++
i )
96 for(
size_t i=0;
i<nCount; ++
i )
117 bool bCellResize =
false;
122 for(
size_t i=0;
i<nCount; ++
i )
134 if( bPage && !bCell && !bCellResize )
136 if( !bPage && bCell && !bCellResize )
138 if( !bPage && !bCell && bCellResize )
149 if (std::abs(rRectA.
Left() - rRectB.
Left()) > 1)
151 if (std::abs(rRectA.
Top() - rRectB.
Top()) > 1)
153 if (std::abs(rRectA.
Right() - rRectB.
Right()) > 1)
166 if (rHint.
GetKind() != SdrHintKind::ObjectChange && rHint.
GetKind() != SdrHintKind::ObjectInserted)
195 if (rHint.
GetId() == SfxHintId::ThisIsAnSdrHint)
198 adjustAnchoredPosition(*pSdrHint, rDoc, nTab);
201 else if (
auto pDeletedHint = dynamic_cast<const ScTabDeletedHint*>(&rHint))
203 SCTAB nDelTab = pDeletedHint->GetTab();
207 if ( nDelTab == nTab )
211 else if (
auto pChangedHint = dynamic_cast<const ScTabSizeChangedHint*>(&rHint))
213 if ( nTab == pChangedHint->GetTab() )
224 pObj && (
dynamic_cast<const SdrGrafObj*
>( pObj) !=
nullptr || dynamic_cast<const SdrOle2Obj*>( pObj) != nullptr )) )
230 const ImageMap* pImageMap =
nullptr;
238 if (
auto pGrafObj = dynamic_cast<SdrGrafObj*>( pObj) )
239 aGraphic = pGrafObj->GetGraphic();
244 aGraphic = *pGraphic;
247 ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj );
SfxViewFrame * GetViewFrame() const
ScDocShell * GetDocShell() const
SdrHintKind GetKind() const
size_t GetMarkCount() const
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)
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)
OUString ScResId(const char *pId)
const SvtOptionsDrawinglayer & getOptionsDrawinglayer() const
bool HasChildWindow(sal_uInt16)
ScAnchorType GetAnchorType() const
ScDocument & rDoc
needed ?
const ImageMap & GetImageMap() const
void SetDrawModified()
SetDrawModified - without Formula update.
::std::vector< OUString > TargetList
bool ValidTab(SCTAB nTab)
static SvxIMapInfo * GetIMapInfo(const SdrObject *pObject)
const SdrObject * GetObject() const
sal_uInt16 ScIMapChildWindowId()