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

#include <FilterHelper.hxx>

Public Member Functions

 FilterHelper ()
 
virtual ~FilterHelper ()
 
void appendFilter (const OUString &aTitle, const OUString &aFilter)
 
void setCurrentFilter (const OUString &aTitle)
 
OUString getCurrentFilter ()
 
void appendFilterGroup (const OUString &sGroupTitle, const css::uno::Sequence< css::beans::StringPair > &aFilters)
 
FilterListgetFilterList ()
 
NSStringListgetFilterNames ()
 
void SetCurFilter (const OUString &rFilter)
 
void SetFilterAtIndex (unsigned index)
 
OUStringList getCurrentFilterSuffixList ()
 
int getCurrentFilterIndex ()
 
void SetFilters ()
 
bool filenameMatchesFilter (NSString *sFilename)
 

Private Member Functions

bool FilterNameExists (const OUString &rTitle)
 
bool FilterNameExists (const UnoFilterList &_rGroupedFilters)
 
void ensureFilterList (const OUString &_rInitialCurrentFilter)
 

Private Attributes

FilterListm_pFilterList
 
OUString m_aCurrentFilter
 
NSStringListm_pFilterNames
 

Detailed Description

Definition at line 77 of file FilterHelper.hxx.

Constructor & Destructor Documentation

FilterHelper::FilterHelper ( )

Definition at line 171 of file FilterHelper.mm.

FilterHelper::~FilterHelper ( )
virtual

Definition at line 177 of file FilterHelper.mm.

References m_pFilterList, and m_pFilterNames.

Member Function Documentation

void FilterHelper::appendFilter ( const OUString &  aTitle,
const OUString &  aFilter 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 263 of file FilterHelper.mm.

References ensureFilterList(), FilterNameExists(), and m_pFilterList.

Referenced by SalAquaFilePicker::appendFilter(), and appendFilterGroup().

void FilterHelper::appendFilterGroup ( const OUString &  sGroupTitle,
const css::uno::Sequence< css::beans::StringPair > &  aFilters 
)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 292 of file FilterHelper.mm.

References appendFilter(), ensureFilterList(), First, and m_pFilterList.

Referenced by SalAquaFilePicker::appendFilterGroup().

void FilterHelper::ensureFilterList ( const OUString &  _rInitialCurrentFilter)
private

Definition at line 232 of file FilterHelper.mm.

References m_aCurrentFilter, and m_pFilterList.

Referenced by appendFilter(), and appendFilterGroup().

bool FilterHelper::filenameMatchesFilter ( NSString *  sFilename)
bool FilterHelper::FilterNameExists ( const OUString &  rTitle)
private

Definition at line 197 of file FilterHelper.mm.

References m_pFilterList.

Referenced by appendFilter().

bool FilterHelper::FilterNameExists ( const UnoFilterList _rGroupedFilters)
private

Definition at line 211 of file FilterHelper.mm.

References m_pFilterList.

OUString FilterHelper::getCurrentFilter ( )
Exceptions
css::uno::RuntimeException

Definition at line 285 of file FilterHelper.mm.

References m_aCurrentFilter.

Referenced by SalAquaFilePicker::getCurrentFilter().

int FilterHelper::getCurrentFilterIndex ( )

Definition at line 398 of file FilterHelper.mm.

References i, m_aCurrentFilter, m_pFilterList, result, and shrinkFilterName().

Referenced by ControlHelper::updateFilterUI().

OUStringList FilterHelper::getCurrentFilterSuffixList ( )
FilterList * FilterHelper::getFilterList ( )

Definition at line 369 of file FilterHelper.mm.

References m_pFilterList.

NSStringList * FilterHelper::getFilterNames ( )

Definition at line 374 of file FilterHelper.mm.

References m_pFilterList, and m_pFilterNames.

Referenced by ControlHelper::createFilterControl().

void FilterHelper::SetCurFilter ( const OUString &  rFilter)

Definition at line 243 of file FilterHelper.mm.

References m_aCurrentFilter.

Referenced by setCurrentFilter(), SetFilterAtIndex(), and SetFilters().

void FilterHelper::setCurrentFilter ( const OUString &  aTitle)
Exceptions
css::lang::IllegalArgumentException
css::uno::RuntimeException

Definition at line 280 of file FilterHelper.mm.

References SetCurFilter().

Referenced by SalAquaFilePicker::setCurrentFilter().

void FilterHelper::SetFilterAtIndex ( unsigned  index)

Definition at line 389 of file FilterHelper.mm.

References m_pFilterList, and SetCurFilter().

Referenced by AquaFilePickerDelegate::filterSelectedAtIndex:.

void FilterHelper::SetFilters ( )

Definition at line 254 of file FilterHelper.mm.

References m_aCurrentFilter, and SetCurFilter().

Referenced by SalAquaFilePicker::execute().

Member Data Documentation

OUString FilterHelper::m_aCurrentFilter
private
FilterList* FilterHelper::m_pFilterList
private
NSStringList* FilterHelper::m_pFilterNames
private

Definition at line 116 of file FilterHelper.hxx.

Referenced by getFilterNames(), and ~FilterHelper().


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