27#include <osl/diagnose.h>
30#include <com/sun/star/awt/ImageScaleMode.hpp>
40 const Reference< XFastAttributeList > & _xAttrList
41 ,
const Reference< XImageControl > & _xComponent
42 ,OXMLTable* _pContainer) :
43 OXMLReportElementBase( rImport,_xComponent,_pContainer)
46 OSL_ENSURE(m_xReportComponent.is(),
"Component is NULL!");
52 switch( aIter.getToken() )
57 OUString sValue = aIter.toString();
59 _xComponent->setImageURL(rImport.GetAbsoluteReference( sValue ));
67 sal_Int16 nRet = awt::ImageScaleMode::NONE;
70 nRet = awt::ImageScaleMode::ANISOTROPIC;
76 SAL_WARN_IF(!bConvertOk,
"reportdesign",
"convertEnum failed");
78 _xComponent->setScaleMode( nRet );
82 _xComponent->setDataField(ORptFilter::convertFormula(aIter.
toString()));
97OXMLImage::~OXMLImage()
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
OUString SubstituteVariable(const OUString &rVar) const
OXMLImage(const OXMLImage &)=delete
#define TOOLS_WARN_EXCEPTION(area, stream)
#define SAL_WARN_IF(condition, area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
OUString toString(OptionInfo const *info)
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)