LibreOffice Module fpicker (master)  1
Public Types | Public Member Functions | Protected Types | Private Member Functions | Private Attributes | List of all members
CFilterContainer Class Reference

#include <FilterContainer.hxx>

Public Types

typedef std::pair< OUString, OUString > FILTER_ENTRY_T

Public Member Functions

 CFilterContainer (sal_Int32 initSize=0)
bool addFilter (const OUString &aName, const OUString &aFilter, bool bAllowDuplicates=false)
bool delFilter (const OUString &aName)
sal_Int32 numFilter ()
void empty ()
bool getFilterByName (const OUString &aName, OUString &theFilter) const
bool getFilterByIndex (sal_Int32 aIndex, OUString &theFilter) const
bool getFilterNameByIndex (sal_Int32 aIndex, OUString &theName) const
sal_Int32 getFilterPos (const OUString &aName) const
void beginEnumFilter ()
bool getNextFilter (FILTER_ENTRY_T &nextFilterEntry)
void setCurrentFilter (const OUString &aName)
OUString getCurrentFilter () const

Protected Types

typedef std::vector< FILTER_ENTRY_TFILTER_VECTOR_T

Private Member Functions

 CFilterContainer (const CFilterContainer &)
CFilterContainer &SAL_CALL operator= (const CFilterContainer &)
sal_Int32 getFilterTagPos (const OUString &aName) const

Private Attributes

FILTER_VECTOR_T::const_iterator m_iter
bool m_bIterInitialized
OUString m_sCurrentFilter

Detailed Description

Definition at line 32 of file FilterContainer.hxx.

Member Typedef Documentation

typedef std::pair< OUString, OUString > CFilterContainer::FILTER_ENTRY_T

Definition at line 37 of file FilterContainer.hxx.

typedef std::vector< FILTER_ENTRY_T > CFilterContainer::FILTER_VECTOR_T

Definition at line 85 of file FilterContainer.hxx.

Constructor & Destructor Documentation

CFilterContainer::CFilterContainer ( sal_Int32  initSize = 0)

Definition at line 35 of file FilterContainer.cxx.

CFilterContainer::CFilterContainer ( const CFilterContainer )

Member Function Documentation

bool CFilterContainer::addFilter ( const OUString &  aName,
const OUString &  aFilter,
bool  bAllowDuplicates = false 
void CFilterContainer::beginEnumFilter ( )
bool CFilterContainer::delFilter ( const OUString &  aName)

Definition at line 71 of file FilterContainer.cxx.

References getFilterTagPos(), m_bIterInitialized, m_vFilters, and pos.

void CFilterContainer::empty ( )

Definition at line 94 of file FilterContainer.cxx.

References m_vFilters.

OUString CFilterContainer::getCurrentFilter ( ) const
bool CFilterContainer::getFilterByIndex ( sal_Int32  aIndex,
OUString &  theFilter 
) const
bool CFilterContainer::getFilterByName ( const OUString &  aName,
OUString &  theFilter 
) const
bool CFilterContainer::getFilterNameByIndex ( sal_Int32  aIndex,
OUString &  theName 
) const
sal_Int32 CFilterContainer::getFilterPos ( const OUString &  aName) const
sal_Int32 CFilterContainer::getFilterTagPos ( const OUString &  aName) const

Definition at line 150 of file FilterContainer.cxx.

References m_vFilters.

Referenced by addFilter(), delFilter(), getFilterByName(), and getFilterPos().

bool CFilterContainer::getNextFilter ( FILTER_ENTRY_T nextFilterEntry)
sal_Int32 CFilterContainer::numFilter ( )
CFilterContainer& SAL_CALL CFilterContainer::operator= ( const CFilterContainer )
void CFilterContainer::setCurrentFilter ( const OUString &  aName)

Member Data Documentation

bool CFilterContainer::m_bIterInitialized

Definition at line 97 of file FilterContainer.hxx.

Referenced by addFilter(), beginEnumFilter(), delFilter(), and getNextFilter().

FILTER_VECTOR_T::const_iterator CFilterContainer::m_iter

Definition at line 96 of file FilterContainer.hxx.

Referenced by beginEnumFilter(), and getNextFilter().

OUString CFilterContainer::m_sCurrentFilter

Definition at line 98 of file FilterContainer.hxx.

Referenced by getCurrentFilter(), and setCurrentFilter().

FILTER_VECTOR_T CFilterContainer::m_vFilters

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