39 const css::uno::Reference< css::xml::sax::XFastAttributeList >& _xAttrList,
44 Reference<XPropertySet> xDataSource = rImport.
getDataSource();
46 PropertyValue aProperty;
47 bool bFoundParamNameSubstitution =
false;
48 bool bFoundTableNameLengthLimited =
false;
49 bool bFoundAppendTableAliasName =
false;
50 bool bFoundSuppressVersionColumns =
false;
56 aProperty.Name.clear();
57 aProperty.Value =
Any();
75 bFoundSuppressVersionColumns =
true;
99 bFoundTableNameLengthLimited =
true;
111 bFoundAppendTableAliasName =
true;
116 bFoundParamNameSubstitution =
true;
124 if ( aIter.toView() ==
"equal-integer" )
125 aProperty.Value <<= sal_Int32(0);
126 else if ( aIter.toView() ==
"is-boolean" )
127 aProperty.Value <<= sal_Int32(1);
128 else if ( aIter.toView() ==
"equal-boolean" )
129 aProperty.Value <<= sal_Int32(2);
130 else if ( aIter.toView() ==
"equal-use-only-zero" )
131 aProperty.Value <<= sal_Int32(3);
142 aProperty.Value <<= aIter.toInt32();
145 aProperty.Name =
"JavaDriverClassPath";
150 if ( !aProperty.Name.isEmpty() )
152 if ( !aProperty.Value.hasValue() )
153 aProperty.Value <<= aIter.toString();
161 if ( !bFoundTableNameLengthLimited && ( _eUsedFor ==
eAppSettings ) )
164 aProperty.Value <<=
true;
167 if ( !bFoundParamNameSubstitution && ( _eUsedFor ==
eDriverSettings ) )
170 aProperty.Value <<=
true;
173 if ( !bFoundAppendTableAliasName && ( _eUsedFor ==
eAppSettings ) )
176 aProperty.Value <<=
true;
179 if ( !bFoundSuppressVersionColumns && ( _eUsedFor ==
eAppSettings ) )
198 sal_Int32 nElement,
const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList )
238 SAL_WARN(
"dbaccess",
"unknown element " << nElement);
SvXMLImport & GetImport()
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
OXMLDataSource(ODBFilter &rImport, const css::uno::Reference< css::xml::sax::XFastAttributeList > &_xAttrList, const UsedFor _eUsedFor)
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
virtual ~OXMLDataSource() override
ODBFilter & GetOwnImport()
#define DBG_UNHANDLED_EXCEPTION(...)
#define SAL_WARN(area, stream)
FastAttributeList & castToFastAttributeList(const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList)
XML_IGNORE_DRIVER_PRIVILEGES
XML_SUPPRESS_VERSION_COLUMNS
XML_IS_TABLE_NAME_LENGTH_LIMITED
XML_SYSTEM_DRIVER_SETTINGS
XML_IS_FIRST_ROW_HEADER_LINE
XML_PARAMETER_NAME_SUBSTITUTION
XML_APPEND_TABLE_ALIAS_NAME
XML_APPLICATION_CONNECTION_SETTINGS
XML_BOOLEAN_COMPARISON_MODE
bool IsXMLToken(std::u16string_view rString, enum XMLTokenEnum eToken)
constexpr OUStringLiteral INFO_JDBCDRIVERCLASS
constexpr OUStringLiteral INFO_TEXTFILEEXTENSION
constexpr OUStringLiteral INFO_SHOWDELETEDROWS
constexpr OUStringLiteral PROPERTY_URL(u"URL")
constexpr OUStringLiteral PROPERTY_ENABLESQL92CHECK(u"EnableSQL92Check")
constexpr OUStringLiteral INFO_APPEND_TABLE_ALIAS
constexpr OUStringLiteral INFO_TEXTFILEHEADER
constexpr OUStringLiteral INFO_CONN_LDAP_ROWCOUNT
constexpr OUStringLiteral INFO_PARAMETERNAMESUBST
constexpr OUStringLiteral INFO_IGNOREDRIVER_PRIV
constexpr OUStringLiteral PROPERTY_BOOLEANCOMPARISONMODE(u"BooleanComparisonMode")
constexpr OUStringLiteral INFO_ADDITIONALOPTIONS
constexpr OUStringLiteral PROPERTY_SUPPRESSVERSIONCL(u"SuppressVersionColumns")
constexpr OUStringLiteral INFO_ALLOWLONGTABLENAMES
constexpr OUStringLiteral INFO_CONN_LDAP_BASEDN
constexpr OUStringLiteral INFO_USECATALOG
#define PROGRESS_BAR_STEP
#define XMLOFF_WARN_UNKNOWN(area, rIter)
constexpr sal_Int32 TOKEN_MASK