19#ifndef INCLUDED_REPORTDESIGN_INC_RPTOBJECT_HXX
20#define INCLUDED_REPORTDESIGN_INC_RPTOBJECT_HXX
28#include <com/sun/star/beans/XPropertyChangeListener.hpp>
29#include <com/sun/star/report/XReportComponent.hpp>
30#include <com/sun/star/report/XSection.hpp>
61class OPropertyMediator;
67 mutable css::uno::Reference< css::beans::XPropertyChangeListener> m_xPropertyChangeListener;
68 mutable css::uno::Reference< css::report::XReportComponent> m_xReportComponent;
69 css::uno::Reference< css::uno::XInterface > m_xKeepShapeAlive;
70 OUString m_sComponentName;
73 OObjectBase(
const css::uno::Reference< css::report::XReportComponent>& _xComponent);
74 OObjectBase(OUString _sComponentName);
76 virtual ~OObjectBase();
78 bool isListening()
const {
return m_bIsListening; }
82 virtual SdrPage* GetImplPage()
const = 0;
86 css::uno::Reference< css::drawing::XShape >
90 OObjectBase(
const OObjectBase&) =
delete;
91 OObjectBase& operator=(
const OObjectBase&) =
delete;
96 virtual void _propertyChange(
const css::beans::PropertyChangeEvent& evt );
97 virtual void initializeOle() {}
101 const css::uno::Reference< css::report::XReportComponent>& getReportComponent()
const {
return m_xReportComponent;}
102 virtual css::uno::Reference< css::beans::XPropertySet> getAwtComponent();
103 css::uno::Reference< css::report::XSection> getSection()
const;
104 const OUString& getServiceName()
const {
return m_sComponentName; }
108 void releaseUnoShape() { m_xKeepShapeAlive.clear(); }
112 const css::uno::Reference< css::report::XReportComponent>& _xComponent);
113 static SdrObjKind getObjectType(
const css::uno::Reference< css::report::XReportComponent>& _xComponent);
130 const css::uno::Reference< css::report::XReportComponent>& _xComponent)
135 virtual css::uno::Reference< css::beans::XPropertySet> getAwtComponent()
override;
137 virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
override;
138 virtual SdrObjKind GetObjIdentifier()
const override;
139 virtual SdrInventor GetObjInventor()
const override;
142 virtual void setUnoShape(
const css::uno::Reference< css::drawing::XShape >& rxUnoShape )
override;
146 const css::uno::Reference< css::report::XReportComponent>& _xComponent);
150 virtual void NbcMove(
const Size& rSize )
override;
155 virtual SdrPage* GetImplPage()
const override;
173 const css::uno::Reference< css::report::XReportComponent>& _xComponent,
176 return new OOle2Obj(rSdrModel, _xComponent, _nType);
179 virtual css::uno::Reference< css::beans::XPropertySet> getAwtComponent()
override;
181 virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
override;
182 virtual SdrObjKind GetObjIdentifier()
const override;
183 virtual SdrInventor GetObjInventor()
const override;
186 virtual void initializeOle()
override;
188 void initializeChart(
const css::uno::Reference< css::frame::XModel>& _xModel);
193 const css::uno::Reference< css::report::XReportComponent>& _xComponent,
201 virtual void NbcMove(
const Size& rSize )
override;
206 virtual SdrPage* GetImplPage()
const override;
208 void impl_createDataProvider_nothrow(
const css::uno::Reference< css::frame::XModel>& _xModel);
209 virtual void setUnoShape(
const css::uno::Reference< css::drawing::XShape >& rxUnoShape )
override;
221 friend class OObjectBase;
229 const OUString& rModelName,
233 const css::uno::Reference< css::report::XReportComponent>& _xComponent,
234 const OUString& rModelName,
242 virtual void NbcMove(
const Size& rSize )
override;
247 virtual SdrPage* GetImplPage()
const override;
251 virtual void _propertyChange(
const css::beans::PropertyChangeEvent& evt )
override;
256 void CreateMediator(
bool _bReverse =
false);
258 virtual css::uno::Reference< css::beans::XPropertySet> getAwtComponent()
override;
260 static OUString GetDefaultName(
const OUnoObject* _pObj);
262 virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
override;
263 virtual SdrObjKind GetObjIdentifier()
const override;
264 virtual SdrInventor GetObjInventor()
const override;
268 virtual void setUnoShape(
const css::uno::Reference< css::drawing::XShape >& rxUnoShape )
override;
269 void impl_initializeModel_nothrow();
DlgEdHintKind GetKind() const
DlgEdHint(DlgEdHint const &)=delete
static rtl::Reference< OCustomShape > Create(SdrModel &rSdrModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent)
OCustomShape(SdrModel &rSdrModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent)
OOle2Obj(SdrModel &rSdrModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent, SdrObjKind _nType)
static rtl::Reference< OOle2Obj > Create(SdrModel &rSdrModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent, SdrObjKind _nType)
OUnoObject(SdrModel &rSdrModel, const css::uno::Reference< css::report::XReportComponent > &_xComponent, const OUString &rModelName, SdrObjKind _nObjectType)
#define REPORTDESIGN_DLLPUBLIC
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
@ RPTUI_HINT_WINDOWSCROLLED
@ RPTUI_HINT_SELECTIONCHANGED
class REPORTDESIGN_DLLPUBLIC SAL_LOPLUGIN_ANNOTATE("crosscast") OObjectBase
::std::multimap< sal_Int16, OUString > IndexToNameMap