fix for bug fdo 36519

Use human readable format name instead of internal filter names in Load/save options UI
This commit is contained in:
Jean-Baptiste Faure 2011-06-01 13:14:49 +02:00 committed by Cédric Bosdonnat
parent 36472f4f40
commit 128feab384

View file

@ -558,20 +558,13 @@ IMPL_LINK( SfxSaveTabPage, AutoClickHdl_Impl, CheckBox *, pBox )
OUString lcl_ExtracUIName(const Sequence<PropertyValue> rProperties)
{
OUString sRet;
sal_Int32 nFlags;
const PropertyValue* pProperties = rProperties.getConstArray();
for(int nProp = 0; nProp < rProperties.getLength(); nProp++)
{
if(!pProperties[nProp].Name.compareToAscii("UIName"))
{
pProperties[nProp].Value >>= sRet;
}
else if(!pProperties[nProp].Name.compareToAscii("Flags"))
{
if ( pProperties[nProp].Value >>= nFlags )
{
nFlags &= 0x100;
}
break;
}
else if(!pProperties[nProp].Name.compareToAscii("Name"))
{