Hello Thomas:
Thank you for your comments.
As you said that:
>If I create a standard filter with the new filter conditions
>it seems, that the new conditions are not saved to the xml file.
>In addition, I get the assertion "Falscher Filter-enum" from
>ScFilterDescriptorBase::getFilterFields() or
>ScFilterDescriptorBase::getFilterFields2().
I think the "Falscher Filter-enum" is from
ScFilterDescriptorBase::getFilterFields(), and I find
that the functions ScFilterDescriptorBase::getFilterFields2(),
ScXMLExportDatabaseRanges::WriteFilterDescriptor(const uno::Reference
<sheet::XSheetFilterDescriptor2>& xSheetFilterDescriptor, const rtl::OUString
sDatabaseRangeName) are not executed.
I find it is related to uno::Reference <sheet::XSheetFilterDescriptor>
xSheetFilterDescriptor(xDatabaseRange->getFilterDescriptor()); and
WriteFilterDescriptor(xSheetFilterDescriptor, sDatabaseRangeName) which are in
the file XMLExportDatabaseRanges.cxx, I hope you can give me some suggestions,
thank you.
>Before you submit the next iteration of your patch it would be nice,
>if you combine all your sc patches into one patch.
I will combine all my sc patches into one patch when I finish all this
patches.
Best Regards!
Gao Zemin
gaozm
2008-03-28