LibreOffice Module vcl (master)  1
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FilterConfigCache Class Reference

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< FilterConfigCacheEntryaImport
 
std::vector< FilterConfigCacheEntryaExport
 

Static Private Attributes

static const char * InternalFilterListForSvxLight []
 

Detailed Description

Cache to keep list of graphic filters + the filters themselves.

Definition at line 27 of file FilterConfigCache.hxx.

Constructor & Destructor Documentation

FilterConfigCache::FilterConfigCache ( bool  bUseConfig)
explicit
FilterConfigCache::~FilterConfigCache ( )

Definition at line 270 of file FilterConfigCache.cxx.

Member Function Documentation

OUString FilterConfigCache::GetExportFilterName ( sal_uInt16  nFormat)

Definition at line 383 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::ExportGraphic().

sal_uInt16 FilterConfigCache::GetExportFormatCount ( ) const
inline

Definition at line 78 of file FilterConfigCache.hxx.

Referenced by GraphicFilter::GetExportFormatCount().

OUString FilterConfigCache::GetExportFormatExtension ( sal_uInt16  nFormat,
sal_Int32  nEntry = 0 
)

Definition at line 459 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 445 of file FilterConfigCache.cxx.

References aExport, and sMediaType.

Referenced by GraphicFilter::GetExportFormatMediaType().

OUString FilterConfigCache::GetExportFormatName ( sal_uInt16  nFormat)

Definition at line 438 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatName().

sal_uInt16 FilterConfigCache::GetExportFormatNumber ( std::u16string_view  rFormatName)

Definition at line 390 of file FilterConfigCache.cxx.

References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.

Referenced by GraphicFilter::GetExportFormatNumber().

sal_uInt16 FilterConfigCache::GetExportFormatNumberForMediaType ( std::u16string_view  rMediaType)
sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName ( std::u16string_view  rShortName)
sal_uInt16 FilterConfigCache::GetExportFormatNumberForTypeName ( std::u16string_view  rType)
OUString FilterConfigCache::GetExportFormatShortName ( sal_uInt16  nFormat)

Definition at line 452 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatShortName().

OUString FilterConfigCache::GetExportInternalFilterName ( sal_uInt16  nFormat)

Definition at line 466 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportInternalFilterName().

OUString FilterConfigCache::GetExportWildcard ( sal_uInt16  nFormat,
sal_Int32  nEntry 
)

Definition at line 473 of file FilterConfigCache.cxx.

References aWildcard, and GetExportFormatExtension().

Referenced by GraphicFilter::GetExportWildcard().

OUString FilterConfigCache::GetImportFilterName ( sal_uInt16  nFormat)
OUString FilterConfigCache::GetImportFilterType ( sal_uInt16  nFormat)

Definition at line 361 of file FilterConfigCache.cxx.

References aImport, and sType.

Referenced by GraphicFilter::ImpTestOrFindFormat().

OUString FilterConfigCache::GetImportFilterTypeName ( sal_uInt16  nFormat)

Definition at line 368 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatTypeName().

sal_uInt16 FilterConfigCache::GetImportFormatCount ( ) const
inline

Definition at line 62 of file FilterConfigCache.hxx.

Referenced by GraphicFilter::GetImportFormatCount().

OUString FilterConfigCache::GetImportFormatExtension ( sal_uInt16  nFormat,
sal_Int32  nEntry = 0 
)

Definition at line 354 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 340 of file FilterConfigCache.cxx.

References aImport, and sMediaType.

OUString FilterConfigCache::GetImportFormatName ( sal_uInt16  nFormat)

Definition at line 333 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatName().

sal_uInt16 FilterConfigCache::GetImportFormatNumber ( std::u16string_view  rFormatName)

Definition at line 281 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 294 of file FilterConfigCache.cxx.

References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.

Referenced by GraphicFilter::ImpTestOrFindFormat().

sal_uInt16 FilterConfigCache::GetImportFormatNumberForShortName ( std::u16string_view  rShortName)
sal_uInt16 FilterConfigCache::GetImportFormatNumberForTypeName ( std::u16string_view  rType)
OUString FilterConfigCache::GetImportFormatShortName ( sal_uInt16  nFormat)

Definition at line 347 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatShortName().

OUString FilterConfigCache::GetImportWildcard ( sal_uInt16  nFormat,
sal_Int32  nEntry 
)

Definition at line 375 of file FilterConfigCache.cxx.

References aWildcard, and GetImportFormatExtension().

Referenced by GraphicFilter::GetImportWildcard().

void FilterConfigCache::ImplInit ( )
private
void FilterConfigCache::ImplInitSmart ( )
private
bool FilterConfigCache::IsExportPixelFormat ( sal_uInt16  nFormat)

Definition at line 481 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::ExportGraphic(), and GraphicFilter::IsExportPixelFormat().

Member Data Documentation

std::vector< FilterConfigCacheEntry > FilterConfigCache::aExport
private
std::vector< FilterConfigCacheEntry > FilterConfigCache::aImport
private
const char * FilterConfigCache::InternalFilterListForSvxLight
staticprivate

Definition at line 55 of file FilterConfigCache.hxx.

Referenced by ImplInitSmart().


The documentation for this class was generated from the following files: