30 OReportModel& _rModel,
31 const uno::Reference< report::XSection >& _xSection)
34 ,m_xSection(_xSection)
35 ,m_bSpecialInsertMode(
false)
45 OReportModel& rOReportModel(static_cast< OReportModel& >(rTargetModel));
50 pClonedOReportPage->SdrPage::lateInit(*
this);
51 return pClonedOReportPage;
59 for (; i < nCount; ++i)
62 OSL_ENSURE(pObj,
"Invalid object found!");
77 OSL_ENSURE(pBase,
"Why is this not an OObjectBase?");
94 uno::Reference< drawing::XShape> xShape(pObj->
getUnoShape(),uno::UNO_QUERY);
96 if (dynamic_cast< const OUnoObject *>( pObj ) !=
nullptr)
99 uno::Reference< container::XChild> xChild(rUnoObj.
GetUnoControlModel(),uno::UNO_QUERY);
101 xChild->setParent(
nullptr);
108 OSL_ENSURE(_xObject.is(),
"Object is not valid to create a SdrObject!");
109 if ( !_xObject.is() )
116 OSL_ENSURE( pObject,
"OReportPage::insertObject: no implementation object found for the given shape/component!" );
134 if (aObj && aObj == _pToRemoveObj)
151 m_aTemporaryObjectList.clear();
171 uno::Reference< container::XChild> xChild(pUnoObj->
GetUnoControlModel(),uno::UNO_QUERY);
172 if ( xChild.is() && !xChild->getParent().is() )
178 uno::Reference< drawing::XShape> xShape(pObj->
getUnoShape(),uno::UNO_QUERY);
184 OSL_ENSURE( pObjectBase,
"OReportPage::NbcInsertObject: what is being inserted here?" );
OReportPage(const OReportPage &)=delete
virtual css::uno::Reference< css::uno::XInterface > createUnoPage() override
virtual ~OReportPage() override
void CreateMediator(bool _bReverse=false)
creates the m_xMediator when it doesn't already exist.
static SdrObject * getSdrObjectFromXShape(const css::uno::Reference< css::uno::XInterface > &xInt)
virtual void NbcInsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
void notifyElementAdded(const css::uno::Reference< css::drawing::XShape > &xShape)
SdrObject * GetObj(size_t nNum) const
size_t getIndexOf(const css::uno::Reference< css::report::XReportComponent > &_xObject)
returns the index inside the object list which belongs to the report component.
size_t GetObjCount() const
void notifyElementRemoved(const css::uno::Reference< css::drawing::XShape > &xShape)
EmbeddedObjectRef * pObject
const css::uno::Reference< css::report::XReportComponent > & getReportComponent() const
void releaseUnoShape()
releases the reference to our UNO shape (m_xKeepShapeAlive)
virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
virtual rtl::Reference< SdrPage > CloneSdrPage(SdrModel &rTargetModel) const override
void removeSdrObject(const css::uno::Reference< css::report::XReportComponent > &_xObject)
removes the SdrObject which belongs to the report component.
virtual void NbcInsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE) override
std::vector< SdrObject * > m_aTemporaryObjectList
bool m_bSpecialInsertMode
bool getSpecialMode() const
virtual SdrObject * RemoveObject(size_t nObjNum)
void removeTempObject(SdrObject const *_pToRemoveObj)
css::uno::Reference< css::report::XSection > m_xSection
virtual void SetChanged(bool bFlg=true) override
void insertObject(const css::uno::Reference< css::report::XReportComponent > &_xObject)
insert a new SdrObject which belongs to the report component.
const css::uno::Reference< css::awt::XControlModel > & GetUnoControlModel() const
virtual SdrObject * RemoveObject(size_t nObjNum) override
bool m_bDetectedRangeSegmentation false