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 26 of file FilterConfigCache.hxx.

Constructor & Destructor Documentation

◆ FilterConfigCache()

FilterConfigCache::FilterConfigCache ( bool  bUseConfig)
explicit

◆ ~FilterConfigCache()

FilterConfigCache::~FilterConfigCache ( )

Definition at line 273 of file FilterConfigCache.cxx.

Member Function Documentation

◆ GetExportFilterName()

OUString FilterConfigCache::GetExportFilterName ( sal_uInt16  nFormat)

Definition at line 386 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::ExportGraphic().

◆ GetExportFormatCount()

sal_uInt16 FilterConfigCache::GetExportFormatCount ( ) const
inline

Definition at line 77 of file FilterConfigCache.hxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatCount().

◆ GetExportFormatExtension()

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().

◆ GetExportFormatMediaType()

OUString FilterConfigCache::GetExportFormatMediaType ( sal_uInt16  nFormat)

Definition at line 448 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatMediaType().

◆ GetExportFormatName()

OUString FilterConfigCache::GetExportFormatName ( sal_uInt16  nFormat)

Definition at line 441 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatName().

◆ GetExportFormatNumber()

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().

◆ GetExportFormatNumberForMediaType()

sal_uInt16 FilterConfigCache::GetExportFormatNumberForMediaType ( std::u16string_view  rMediaType)

◆ GetExportFormatNumberForShortName()

sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName ( std::u16string_view  rShortName)

◆ GetExportFormatNumberForTypeName()

sal_uInt16 FilterConfigCache::GetExportFormatNumberForTypeName ( std::u16string_view  rType)

◆ GetExportFormatShortName()

OUString FilterConfigCache::GetExportFormatShortName ( sal_uInt16  nFormat)

Definition at line 455 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatShortName().

◆ GetExportInternalFilterName()

OUString FilterConfigCache::GetExportInternalFilterName ( sal_uInt16  nFormat)

Definition at line 469 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportInternalFilterName().

◆ GetExportWildcard()

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().

◆ GetImportFilterName()

OUString FilterConfigCache::GetImportFilterName ( sal_uInt16  nFormat)

◆ GetImportFilterType()

OUString FilterConfigCache::GetImportFilterType ( sal_uInt16  nFormat)

Definition at line 364 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::ImpTestOrFindFormat().

◆ GetImportFilterTypeName()

OUString FilterConfigCache::GetImportFilterTypeName ( sal_uInt16  nFormat)

Definition at line 371 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatTypeName().

◆ GetImportFormatCount()

sal_uInt16 FilterConfigCache::GetImportFormatCount ( ) const
inline

Definition at line 61 of file FilterConfigCache.hxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatCount().

◆ GetImportFormatExtension()

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().

◆ GetImportFormatMediaType()

OUString FilterConfigCache::GetImportFormatMediaType ( sal_uInt16  nFormat)

Definition at line 343 of file FilterConfigCache.cxx.

References aImport.

◆ GetImportFormatName()

OUString FilterConfigCache::GetImportFormatName ( sal_uInt16  nFormat)

Definition at line 336 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatName().

◆ GetImportFormatNumber()

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().

◆ GetImportFormatNumberForExtension()

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().

◆ GetImportFormatNumberForShortName()

sal_uInt16 FilterConfigCache::GetImportFormatNumberForShortName ( std::u16string_view  rShortName)

◆ GetImportFormatNumberForTypeName()

sal_uInt16 FilterConfigCache::GetImportFormatNumberForTypeName ( std::u16string_view  rType)

◆ GetImportFormatShortName()

OUString FilterConfigCache::GetImportFormatShortName ( sal_uInt16  nFormat)

Definition at line 350 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatShortName().

◆ GetImportWildcard()

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().

◆ ImplInit()

void FilterConfigCache::ImplInit ( )
private

◆ ImplInitSmart()

void FilterConfigCache::ImplInitSmart ( )
private

◆ IsExportPixelFormat()

bool FilterConfigCache::IsExportPixelFormat ( sal_uInt16  nFormat)

Definition at line 484 of file FilterConfigCache.cxx.

References aExport.

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

Member Data Documentation

◆ aExport

std::vector< FilterConfigCacheEntry > FilterConfigCache::aExport
private

◆ aImport

std::vector< FilterConfigCacheEntry > FilterConfigCache::aImport
private

◆ InternalFilterListForSvxLight

const char * FilterConfigCache::InternalFilterListForSvxLight
staticprivate

Definition at line 54 of file FilterConfigCache.hxx.

Referenced by ImplInitSmart().


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