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) |
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 | 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 26 of file FilterConfigCache.hxx.
|
explicit |
Definition at line 263 of file FilterConfigCache.cxx.
References ImplInit(), ImplInitSmart(), and utl::ConfigManager::IsFuzzing().
FilterConfigCache::~FilterConfigCache | ( | ) |
Definition at line 273 of file FilterConfigCache.cxx.
OUString FilterConfigCache::GetExportFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 386 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::ExportGraphic().
|
inline |
Definition at line 77 of file FilterConfigCache.hxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatCount().
OUString FilterConfigCache::GetExportFormatExtension | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry = 0 |
||
) |
Definition at line 462 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 448 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatMediaType().
OUString FilterConfigCache::GetExportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 441 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatName().
sal_uInt16 FilterConfigCache::GetExportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 393 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 405 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 417 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 429 of file FilterConfigCache.cxx.
References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetExportFormatNumberForTypeName().
OUString FilterConfigCache::GetExportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 455 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportFormatShortName().
OUString FilterConfigCache::GetExportInternalFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 469 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::GetExportInternalFilterName().
OUString FilterConfigCache::GetExportWildcard | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry | ||
) |
Definition at line 476 of file FilterConfigCache.cxx.
References aWildcard, GetExportFormatExtension(), and u.
Referenced by GraphicFilter::GetExportWildcard().
OUString FilterConfigCache::GetImportFilterName | ( | sal_uInt16 | nFormat | ) |
Definition at line 277 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::ImportGraphic(), GraphicFilter::ImportGraphics(), and GraphicFilter::ImportUnloadedGraphic().
OUString FilterConfigCache::GetImportFilterType | ( | sal_uInt16 | nFormat | ) |
Definition at line 364 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::ImpTestOrFindFormat().
OUString FilterConfigCache::GetImportFilterTypeName | ( | sal_uInt16 | nFormat | ) |
Definition at line 371 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatTypeName().
|
inline |
Definition at line 61 of file FilterConfigCache.hxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatCount().
OUString FilterConfigCache::GetImportFormatExtension | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry = 0 |
||
) |
Definition at line 357 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 343 of file FilterConfigCache.cxx.
References aImport.
OUString FilterConfigCache::GetImportFormatName | ( | sal_uInt16 | nFormat | ) |
Definition at line 336 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatName().
sal_uInt16 FilterConfigCache::GetImportFormatNumber | ( | std::u16string_view | rFormatName | ) |
Definition at line 284 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 297 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 312 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 324 of file FilterConfigCache.cxx.
References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.
Referenced by GraphicFilter::GetImportFormatNumberForTypeName().
OUString FilterConfigCache::GetImportFormatShortName | ( | sal_uInt16 | nFormat | ) |
Definition at line 350 of file FilterConfigCache.cxx.
References aImport.
Referenced by GraphicFilter::GetImportFormatShortName().
OUString FilterConfigCache::GetImportWildcard | ( | sal_uInt16 | nFormat, |
sal_Int32 | nEntry | ||
) |
Definition at line 378 of file FilterConfigCache.cxx.
References aWildcard, GetImportFormatExtension(), and u.
Referenced by GraphicFilter::GetImportWildcard().
|
private |
Definition at line 120 of file FilterConfigCache.cxx.
References aExport, aImport, FilterConfigCache::FilterConfigCacheEntry::CreateFilterName(), equalsIgnoreAsciiCase(), FilterConfigCache::FilterConfigCacheEntry::GetShortName(), FilterConfigCache::FilterConfigCacheEntry::lExtensionList, FilterConfigCache::FilterConfigCacheEntry::nFlags, openConfig(), FilterConfigCache::FilterConfigCacheEntry::sFilterType, FilterConfigCache::FilterConfigCacheEntry::sInternalFilterName, FilterConfigCache::FilterConfigCacheEntry::sMediaType, FilterConfigCache::FilterConfigCacheEntry::sType, FilterConfigCache::FilterConfigCacheEntry::sUIName, and u.
Referenced by FilterConfigCache().
|
private |
Definition at line 236 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::IsExportPixelFormat | ( | sal_uInt16 | nFormat | ) |
Definition at line 484 of file FilterConfigCache.cxx.
References aExport.
Referenced by GraphicFilter::ExportGraphic(), and GraphicFilter::IsExportPixelFormat().
|
private |
Definition at line 52 of file FilterConfigCache.hxx.
Referenced by GetExportFilterName(), GetExportFormatCount(), GetExportFormatExtension(), GetExportFormatMediaType(), GetExportFormatName(), GetExportFormatNumber(), GetExportFormatNumberForMediaType(), GetExportFormatNumberForShortName(), GetExportFormatNumberForTypeName(), GetExportFormatShortName(), GetExportInternalFilterName(), ImplInit(), ImplInitSmart(), and IsExportPixelFormat().
|
private |
Definition at line 51 of file FilterConfigCache.hxx.
Referenced by GetImportFilterName(), GetImportFilterType(), GetImportFilterTypeName(), GetImportFormatCount(), GetImportFormatExtension(), GetImportFormatMediaType(), GetImportFormatName(), GetImportFormatNumber(), GetImportFormatNumberForExtension(), GetImportFormatNumberForShortName(), GetImportFormatNumberForTypeName(), GetImportFormatShortName(), ImplInit(), and ImplInitSmart().
|
staticprivate |
Definition at line 54 of file FilterConfigCache.hxx.
Referenced by ImplInitSmart().