19#include <dlgedfac.hxx>
22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <osl/diagnose.h>
47 if ( aParams.nInventor == SdrInventor::ReportDesign )
49 switch( aParams.nObjIdentifier )
51 case SdrObjKind::ReportDesignFixedText:
53 ,
"com.sun.star.form.component.FixedText"
54 ,SdrObjKind::ReportDesignFixedText);
56 case SdrObjKind::ReportDesignImageControl:
58 ,
"com.sun.star.form.component.DatabaseImageControl"
59 ,SdrObjKind::ReportDesignImageControl);
61 case SdrObjKind::ReportDesignFormattedField:
63 ,
"com.sun.star.form.component.FormattedField"
64 ,SdrObjKind::ReportDesignFormattedField);
66 case SdrObjKind::ReportDesignVerticalFixedLine:
67 case SdrObjKind::ReportDesignHorizontalFixedLine:
70 ,
"com.sun.star.awt.UnoControlFixedLineModel"
71 ,aParams.nObjIdentifier);
73 if ( aParams.nObjIdentifier == SdrObjKind::ReportDesignHorizontalFixedLine )
75 uno::Reference<beans::XPropertySet> xProp = pObj->getAwtComponent();
80 case SdrObjKind::CustomShape:
83 case SdrObjKind::ReportDesignSubReport:
84 pNewObj =
new OOle2Obj(aParams.rSdrModel, SdrObjKind::ReportDesignSubReport);
86 case SdrObjKind::OLE2:
87 pNewObj =
new OOle2Obj(aParams.rSdrModel, SdrObjKind::OLE2);
90 OSL_FAIL(
"Unknown object id");
static void InsertMakeObjectHdl(Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &rLink)
static void RemoveMakeObjectHdl(Link< SdrObjCreatorParams, rtl::Reference< SdrObject > > const &rLink)
~DlgEdFactory() COVERITY_NOEXCEPT_FALSE
#define LINK(Instance, Class, Member)
IMPL_STATIC_LINK(DlgEdFactory, MakeObject, SdrObjCreatorParams, aParams, rtl::Reference< SdrObject >)
constexpr OUStringLiteral PROPERTY_ORIENTATION