LibreOffice Module vcl (master)
1
|
Cache to keep list of graphic filters + the filters themselves. More...
#include <FilterConfigCache.hxx>
Classes | |
struct | FilterConfigCacheEntry |
Public Member Functions | |
sal_uInt16 | GetImportFormatCount () const |
sal_uInt16 | GetImportFormatNumber (std::u16string_view rFormatName) |
sal_uInt16 | GetImportFormatNumberForShortName (std::u16string_view rShortName) |
sal_uInt16 | GetImportFormatNumberForTypeName (std::u16string_view rType) |
sal_uInt16 | GetImportFormatNumberForExtension (std::u16string_view rExt) |
get the index of the filter that matches this extension More... | |
OUString | GetImportFilterName (sal_uInt16 nFormat) |
OUString | GetImportFormatName (sal_uInt16 nFormat) |
OUString | GetImportFormatExtension (sal_uInt16 nFormat, sal_Int32 nEntry=0) |
OUString | GetImportFormatMediaType (sal_uInt16 nFormat) |
OUString | GetImportFormatShortName (sal_uInt16 nFormat) |
OUString | GetImportWildcard (sal_uInt16 nFormat, sal_Int32 nEntry) |
OUString | GetImportFilterType (sal_uInt16 nFormat) |
OUString | GetImportFilterTypeName (sal_uInt16 nFormat) |
OUString | GetExternalFilterName (sal_uInt16 nFormat, bool bExport) |
bool | IsImportInternalFilter (sal_uInt16 nFormat) |
sal_uInt16 | GetExportFormatCount () const |
sal_uInt16 | GetExportFormatNumber (std::u16string_view rFormatName) |
sal_uInt16 | GetExportFormatNumberForMediaType (std::u16string_view rMediaType) |
sal_uInt16 | GetExportFormatNumberForShortName (std::u16string_view rShortName) |
sal_uInt16 | GetExportFormatNumberForTypeName (std::u16string_view rType) |
OUString | GetExportFilterName (sal_uInt16 nFormat) |
OUString | GetExportFormatName (sal_uInt16 nFormat) |
OUString | GetExportFormatExtension (sal_uInt16 nFormat, sal_Int32 nEntry=0) |
OUString | GetExportFormatMediaType (sal_uInt16 nFormat) |
OUString | GetExportFormatShortName (sal_uInt16 nFormat) |
OUString | GetExportWildcard (sal_uInt16 nFormat, sal_Int32 nEntry) |
OUString | GetExportInternalFilterName (sal_uInt16 nFormat) |
bool | IsExportInternalFilter (sal_uInt16 nFormat) |
bool | IsExportPixelFormat (sal_uInt16 nFormat) |
FilterConfigCache (bool bUseConfig) | |
~FilterConfigCache () | |
Private Member Functions | |
void | ImplInit () |
void | ImplInitSmart () |
Private Attributes | |
std::vector< FilterConfigCacheEntry > | aImport |
std::vector< FilterConfigCacheEntry > | aExport |
Static Private Attributes | |
static const char * | InternalFilterListForSvxLight [] |
Cache to keep list of graphic filters + the filters themselves.
Definition at line 27 of file FilterConfigCache.hxx.
|
explicit |
Definition at line 288 of file FilterConfigCache.cxx.
References ImplInit(), ImplInitSmart(), and utl::ConfigManager::IsFuzzing().
FilterConfigCache::~FilterConfigCache | ( | ) |
Definition at line 298 of file FilterConfigCache.cxx.
OUString FilterConfigCache::GetExportFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 431 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::ExportGraphic().
|
inline |
Definition at line 85 of file FilterConfigCache.hxx.
Referenced by GraphicFilter::GetExportFormatCount().
OUString FilterConfigCache::GetExportFormatExtension | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry = 0 |
||
) |
Definition at line 507 of file FilterConfigCache.cxx.
References aExport, and o3tl::make_unsigned().
Referenced by GraphicFilter::ExportGraphic(), and GetExportWildcard().
OUString FilterConfigCache::GetExportFormatMediaType | ( | sal_uInt16 | nFormat | ) |
Definition at line 493 of file FilterConfigCache.cxx.
References aExport, and sMediaType.
Referenced by GraphicFilter::GetExportFormatMediaType().
OUString FilterConfigCache::GetExportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 486 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatName().
sal_uInt16 FilterConfigCache::GetExportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 438 of file FilterConfigCache.cxx.
References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetExportFormatNumber().
sal_uInt16 FilterConfigCache::GetExportFormatNumberForMediaType | ( | std::u16string_view | rMediaType | ) |
Definition at line 450 of file FilterConfigCache.cxx.
References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetExportFormatNumberForMediaType().
sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName | ( | std::u16string_view | rShortName | ) |
Definition at line 462 of file FilterConfigCache.cxx.
References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetExportFormatNumberForShortName().
sal_uInt16 FilterConfigCache::GetExportFormatNumberForTypeName | ( | std::u16string_view | rType | ) |
Definition at line 474 of file FilterConfigCache.cxx.
References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetExportFormatNumberForTypeName().
OUString FilterConfigCache::GetExportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 500 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatShortName().
OUString FilterConfigCache::GetExportInternalFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 514 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportInternalFilterName().
OUString FilterConfigCache::GetExportWildcard | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry | ||
) |
Definition at line 521 of file FilterConfigCache.cxx.
References aWildcard, and GetExportFormatExtension().
Referenced by GraphicFilter::GetExportWildcard().
OUString FilterConfigCache::GetExternalFilterName | ( | sal_uInt16 | nFormat, |
bool | bExport | ||
) |
Definition at line 403 of file FilterConfigCache.cxx.
References aExport, and aImport.
Referenced by GraphicFilter::ExportGraphic(), GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().
OUString FilterConfigCache::GetImportFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 302 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::ImportGraphic(), GraphicFilter::ImportGraphics(), and GraphicFilter::ImportUnloadedGraphic().
OUString FilterConfigCache::GetImportFilterType | ( | sal_uInt16 | nFormat | ) |
Definition at line 389 of file FilterConfigCache.cxx.
References aImport, and sType.
Referenced by GraphicFilter::ImpTestOrFindFormat().
OUString FilterConfigCache::GetImportFilterTypeName | ( | sal_uInt16 | nFormat | ) |
Definition at line 396 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatTypeName().
|
inline |
Definition at line 66 of file FilterConfigCache.hxx.
Referenced by GraphicFilter::GetImportFormatCount().
OUString FilterConfigCache::GetImportFormatExtension | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry = 0 |
||
) |
Definition at line 382 of file FilterConfigCache.cxx.
References aImport, and o3tl::make_unsigned().
Referenced by GetImportWildcard(), and GraphicFilter::ImpTestOrFindFormat().
OUString FilterConfigCache::GetImportFormatMediaType | ( | sal_uInt16 | nFormat | ) |
Definition at line 368 of file FilterConfigCache.cxx.
References aImport, and sMediaType.
OUString FilterConfigCache::GetImportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 361 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatName().
sal_uInt16 FilterConfigCache::GetImportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 309 of file FilterConfigCache.cxx.
References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetImportFormatNumber().
sal_uInt16 FilterConfigCache::GetImportFormatNumberForExtension | ( | std::u16string_view | rExt | ) |
get the index of the filter that matches this extension
Definition at line 322 of file FilterConfigCache.cxx.
References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::ImpTestOrFindFormat().
sal_uInt16 FilterConfigCache::GetImportFormatNumberForShortName | ( | std::u16string_view | rShortName | ) |
Definition at line 337 of file FilterConfigCache.cxx.
References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetImportFormatNumberForShortName().
sal_uInt16 FilterConfigCache::GetImportFormatNumberForTypeName | ( | std::u16string_view | rType | ) |
Definition at line 349 of file FilterConfigCache.cxx.
References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetImportFormatNumberForTypeName().
OUString FilterConfigCache::GetImportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 375 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatShortName().
OUString FilterConfigCache::GetImportWildcard | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry | ||
) |
Definition at line 418 of file FilterConfigCache.cxx.
References aWildcard, and GetImportFormatExtension().
Referenced by GraphicFilter::GetImportWildcard().
|
private |
Definition at line 146 of file FilterConfigCache.cxx.
References aExport, aImport, FilterConfigCache::FilterConfigCacheEntry::CreateFilterName(), equalsIgnoreAsciiCase(), FilterConfigCache::FilterConfigCacheEntry::GetShortName(), if(), FilterConfigCache::FilterConfigCacheEntry::lExtensionList, FilterConfigCache::FilterConfigCacheEntry::nFlags, openConfig(), comphelper::sequenceToContainer(), FilterConfigCache::FilterConfigCacheEntry::sFilterType, FilterConfigCache::FilterConfigCacheEntry::sInternalFilterName, FilterConfigCache::FilterConfigCacheEntry::sMediaType, FilterConfigCache::FilterConfigCacheEntry::sType, and FilterConfigCache::FilterConfigCacheEntry::sUIName.
Referenced by FilterConfigCache().
|
private |
Definition at line 261 of file FilterConfigCache.cxx.
References aExport, aImport, FilterConfigCache::FilterConfigCacheEntry::CreateFilterName(), InternalFilterListForSvxLight, FilterConfigCache::FilterConfigCacheEntry::lExtensionList, FilterConfigCache::FilterConfigCacheEntry::nFlags, FilterConfigCache::FilterConfigCacheEntry::sType, and FilterConfigCache::FilterConfigCacheEntry::sUIName.
Referenced by FilterConfigCache().
bool FilterConfigCache::IsExportInternalFilter | ( | sal_uInt16 | nFormat | ) |
Definition at line 529 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::ExportGraphic().
bool FilterConfigCache::IsExportPixelFormat | ( | sal_uInt16 | nFormat | ) |
Definition at line 534 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::ExportGraphic(), and GraphicFilter::IsExportPixelFormat().
bool FilterConfigCache::IsImportInternalFilter | ( | sal_uInt16 | nFormat | ) |
Definition at line 426 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().
|
private |
Definition at line 57 of file FilterConfigCache.hxx.
Referenced by GetExportFilterName(), GetExportFormatExtension(), GetExportFormatMediaType(), GetExportFormatName(), GetExportFormatNumber(), GetExportFormatNumberForMediaType(), GetExportFormatNumberForShortName(), GetExportFormatNumberForTypeName(), GetExportFormatShortName(), GetExportInternalFilterName(), GetExternalFilterName(), ImplInit(), ImplInitSmart(), IsExportInternalFilter(), and IsExportPixelFormat().
|
private |
Definition at line 56 of file FilterConfigCache.hxx.
Referenced by GetExternalFilterName(), GetImportFilterName(), GetImportFilterType(), GetImportFilterTypeName(), GetImportFormatExtension(), GetImportFormatMediaType(), GetImportFormatName(), GetImportFormatNumber(), GetImportFormatNumberForExtension(), GetImportFormatNumberForShortName(), GetImportFormatNumberForTypeName(), GetImportFormatShortName(), ImplInit(), ImplInitSmart(), and IsImportInternalFilter().
|
staticprivate |
Definition at line 59 of file FilterConfigCache.hxx.
Referenced by ImplInitSmart().