32 #include <com/sun/star/sdb/CommandType.hpp>
43 const Reference< css::xml::sax::XFastAttributeList > & _xAttrList
44 ,
const uno::Reference< report::XReportDefinition >& _xComponent) :
45 OXMLReportElementBase( rImport, _xComponent,nullptr)
46 ,m_xReportDefinition(_xComponent)
48 OSL_ENSURE(m_xReportDefinition.is(),
"No Report definition!");
50 impl_initRuntimeDefaults();
56 switch( aIter.getToken() )
60 sal_Int32 nRet = sdb::CommandType::COMMAND;
63 SAL_WARN_IF(!bConvertOk,
"reportdesign",
"convertEnum failed");
64 m_xReportDefinition->setCommandType(nRet);
68 m_xReportDefinition->setCommand(aIter.
toString());
71 m_xReportDefinition->setFilter(aIter.
toString());
75 m_xReportDefinition->setCaption(aIter.
toString());
81 m_xReportDefinition->setMimeType(aIter.
toString());
84 m_xReportDefinition->setName(aIter.
toString());
94 TOOLS_WARN_EXCEPTION(
"reportdesign",
"Exception caught while filling the report definition props");
106 OSL_PRECOND(
m_xReportDefinition.is(),
"OXMLReport::impl_initRuntimeDefaults: no component!" );
123 const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
190 for (
const auto& rEntry : aFunctions)
191 xFunctions->insertByIndex(xFunctions->getCount(),
uno::Any(rEntry.second));
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
virtual void addMasterDetailPair(const ::std::pair< OUString, OUString > &_aPair) override
::std::vector< OUString > m_aDetailFields
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
virtual ~OXMLReport() override
css::uno::Reference< css::report::XReportDefinition > m_xReportDefinition
#define XMLOFF_WARN_UNKNOWN(area, rIter)
void impl_initRuntimeDefaults() const
initializes our object's properties whose runtime (API) default is different from the file format def...
static const SvXMLEnumMapEntry< sal_Int32 > * GetCommandTypeOptions()
void Increment(sal_Int32 nInc=1)
#define DBG_UNHANDLED_EXCEPTION(...)
#define TOOLS_WARN_EXCEPTION(area, stream)
OXMLReport(const OXMLReport &)=delete
ProgressBarHelper * GetProgressBarHelper()
const TGroupFunctionMap & getFunctions() const
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
::std::vector< OUString > m_aMasterFields
#define SAL_WARN_IF(condition, area, stream)
#define XML_ELEMENT(prefix, name)
static bool convertEnum(EnumT &rEnum, std::u16string_view rValue, const SvXMLEnumMapEntry< EnumT > *pMap)
#define PROGRESS_BAR_STEP
std::map< OUString, Reference< XFunction > > TGroupFunctionMap
OUString toString(OptionInfo const *info)