35 const Reference< XFastAttributeList > & _xAttrList) :
38 Reference<XPropertySet> xDataSource = rImport.
getDataSource();
40 PropertyValue aProperty;
42 OUString sLocation,
sMediaType,sFileTypeExtension;
47 OUString sValue = aIter.toString();
49 aProperty.Name.clear();
50 aProperty.Value =
Any();
52 switch( aIter.getToken() )
58 if ( sValue == sFileName )
60 const sal_Int32 nFileNameLength = sFileName.getLength();
61 if ( sFileName.endsWith(
"/") )
62 sFileName = sFileName.copy( 0, nFileNameLength - 1 );
67 if ( sLocation.isEmpty() )
78 sFileTypeExtension = sValue;
83 if ( !aProperty.Name.isEmpty() )
85 if ( !aProperty.Value.hasValue() )
86 aProperty.Value <<= sValue;
91 if ( sLocation.isEmpty() ||
sMediaType.isEmpty() )
constexpr OUStringLiteral sMediaType
OUString SubstituteVariable(const OUString &rVar) const
OUString getDatasourcePrefixFromMediaType(std::u16string_view _sMediaType, std::u16string_view _sExtension)
returns the dsn prefix for a given media type
void addInfo(const css::beans::PropertyValue &_rInfo)
add an Info to the sequence which will be appended to the data source
const Reference< XPropertySet > & getDataSource() const
virtual ~OXMLFileBasedDatabase() override
OXMLFileBasedDatabase(ODBFilter &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_xAttrList)
OUString get(NOTATION _eOutputNotation) const
#define DBG_UNHANDLED_EXCEPTION(...)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
constexpr OUStringLiteral INFO_TEXTFILEEXTENSION
constexpr OUStringLiteral PROPERTY_URL(u"URL")
#define XMLOFF_WARN_UNKNOWN(area, rIter)
#define XML_ELEMENT(prefix, name)