Hi Gao,
you cannot simply use the type ::com::sun::star::sheet::TableFilterField2
instead of the type ::com::sun::star::sheet::TableFilterField, e.g.
as parameter for the method ScXMLExportDatabaseRanges::WriteCondition().
At that point you have to start to write code which handles the
type TableFilterField2. That means it makes sense to implement a method
void ScXMLExportDatabaseRanges::WriteCondition(
const com::sun::star::sheet::TableFilterField2& aFilterField,
sal_Bool bIsCaseSensitive,
sal_Bool bUseRegularExpressions);
Of course that's only an example for one location, you have to adjust
all locations where XSheetFilterDescriptor is used.
It is important that the old code is executed, if
XSheetFilterDescriptor2 is not supported, and the new code runs, if
XSheetFilterDescriptor2 is supported.
In addition, I think it's unnecessary to further extend the UNO API,
because you can query for XSheetFilterDescriptor2.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]