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 (const OUString &rFormatName)
 
sal_uInt16 GetImportFormatNumberForShortName (const OUString &rShortName)
 
sal_uInt16 GetImportFormatNumberForTypeName (const OUString &rType)
 
sal_uInt16 GetImportFormatNumberForExtension (const OUString &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 (const OUString &rFormatName)
 
sal_uInt16 GetExportFormatNumberForMediaType (const OUString &rMediaType)
 
sal_uInt16 GetExportFormatNumberForShortName (const OUString &rShortName)
 
sal_uInt16 GetExportFormatNumberForTypeName (const OUString &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< 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 297 of file FilterConfigCache.cxx.

Member Function Documentation

OUString FilterConfigCache::GetExportFilterName ( sal_uInt16  nFormat)

Definition at line 430 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::ExportGraphic().

sal_uInt16 FilterConfigCache::GetExportFormatCount ( ) const
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 506 of file FilterConfigCache.cxx.

References aExport.

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

OUString FilterConfigCache::GetExportFormatMediaType ( sal_uInt16  nFormat)

Definition at line 492 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatMediaType().

OUString FilterConfigCache::GetExportFormatName ( sal_uInt16  nFormat)

Definition at line 485 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatName().

sal_uInt16 FilterConfigCache::GetExportFormatNumber ( const OUString &  rFormatName)

Definition at line 437 of file FilterConfigCache.cxx.

References aExport, GRFILTER_FORMAT_NOTFOUND, and nPos.

Referenced by GraphicFilter::GetExportFormatNumber().

sal_uInt16 FilterConfigCache::GetExportFormatNumberForMediaType ( const OUString &  rMediaType)
sal_uInt16 FilterConfigCache::GetExportFormatNumberForShortName ( const OUString &  rShortName)
sal_uInt16 FilterConfigCache::GetExportFormatNumberForTypeName ( const OUString &  rType)
OUString FilterConfigCache::GetExportFormatShortName ( sal_uInt16  nFormat)

Definition at line 499 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportFormatShortName().

OUString FilterConfigCache::GetExportInternalFilterName ( sal_uInt16  nFormat)

Definition at line 513 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::GetExportInternalFilterName().

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

Definition at line 520 of file FilterConfigCache.cxx.

References GetExportFormatExtension().

Referenced by GraphicFilter::GetExportWildcard().

OUString FilterConfigCache::GetExternalFilterName ( sal_uInt16  nFormat,
bool  bExport 
)
OUString FilterConfigCache::GetImportFilterName ( sal_uInt16  nFormat)
OUString FilterConfigCache::GetImportFilterType ( sal_uInt16  nFormat)

Definition at line 388 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::ImpTestOrFindFormat().

OUString FilterConfigCache::GetImportFilterTypeName ( sal_uInt16  nFormat)

Definition at line 395 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatTypeName().

sal_uInt16 FilterConfigCache::GetImportFormatCount ( ) const
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 381 of file FilterConfigCache.cxx.

References aImport.

Referenced by GetImportWildcard(), and GraphicFilter::ImpTestOrFindFormat().

OUString FilterConfigCache::GetImportFormatMediaType ( sal_uInt16  nFormat)

Definition at line 367 of file FilterConfigCache.cxx.

References aImport.

OUString FilterConfigCache::GetImportFormatName ( sal_uInt16  nFormat)

Definition at line 360 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatName().

sal_uInt16 FilterConfigCache::GetImportFormatNumber ( const OUString &  rFormatName)

Definition at line 308 of file FilterConfigCache.cxx.

References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.

Referenced by GraphicFilter::GetImportFormatNumber().

sal_uInt16 FilterConfigCache::GetImportFormatNumberForExtension ( const OUString &  rExt)

get the index of the filter that matches this extension

Definition at line 321 of file FilterConfigCache.cxx.

References aImport, GRFILTER_FORMAT_NOTFOUND, and nPos.

Referenced by GraphicFilter::ImpTestOrFindFormat().

sal_uInt16 FilterConfigCache::GetImportFormatNumberForShortName ( const OUString &  rShortName)
sal_uInt16 FilterConfigCache::GetImportFormatNumberForTypeName ( const OUString &  rType)
OUString FilterConfigCache::GetImportFormatShortName ( sal_uInt16  nFormat)

Definition at line 374 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::GetImportFormatShortName().

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

Definition at line 417 of file FilterConfigCache.cxx.

References GetImportFormatExtension().

Referenced by GraphicFilter::GetImportWildcard().

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

Definition at line 528 of file FilterConfigCache.cxx.

References aExport.

Referenced by GraphicFilter::ExportGraphic().

bool FilterConfigCache::IsExportPixelFormat ( sal_uInt16  nFormat)

Definition at line 533 of file FilterConfigCache.cxx.

References aExport.

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

bool FilterConfigCache::IsImportInternalFilter ( sal_uInt16  nFormat)

Definition at line 425 of file FilterConfigCache.cxx.

References aImport.

Referenced by GraphicFilter::ImportGraphic(), and GraphicFilter::ImportUnloadedGraphic().

Member Data Documentation

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

Definition at line 59 of file FilterConfigCache.hxx.

Referenced by ImplInitSmart().


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