diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-02-26 00:03:21 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-02-26 00:03:21 +0100 |
commit | 21261663205741892f780adeae119402f386ad9e (patch) | |
tree | e8441fb88f77e5a8f69cbd8da51bf45e3248ec6d /comphelper/source/misc | |
parent | ba8919e8129b5e8da112ad4f1d11bb39096c1e0e (diff) |
add AddFilterNameCheckOwnFile back for WNT
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r-- | comphelper/source/misc/mimeconfighelper.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index 168c27909a74..72ecd73ddb3c 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -705,6 +705,24 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu return UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_True ); } +#ifdef WNT +sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( + uno::Sequence< beans::PropertyValue >& aMediaDescr ) +{ + sal_Bool bResult = sal_False; + + ::rtl::OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False ); + if ( !aFilterName.isEmpty() ) + { + sal_Int32 nFlags = GetFilterFlags( aFilterName ); + // check the OWN flag + bResult = ( nFlags & SFX_FILTER_OWN ); + } + + return bResult; +} +#endif + //----------------------------------------------------------- ::rtl::OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const ::rtl::OUString& aServiceName, sal_Int32 nVersion ) { |