LibreOffice Module sfx2 (master) 1
Namespaces | Typedefs | Functions
filtergrouping.cxx File Reference
#include "filtergrouping.hxx"
#include <o3tl/safeint.hxx>
#include <sfx2/fcontnr.hxx>
#include <sfx2/filedlghelper.hxx>
#include <sfx2/strings.hrc>
#include <sfx2/docfilt.hxx>
#include <sfx2/sfxresid.hxx>
#include <sal/log.hxx>
#include <com/sun/star/ui/dialogs/XFilterGroupManager.hpp>
#include <com/sun/star/beans/StringPair.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <unotools/confignode.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/string.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/debug.hxx>
#include <list>
#include <utility>
#include <vector>
#include <map>
#include <algorithm>
Include dependency graph for filtergrouping.cxx:

Go to the source code of this file.

Namespaces

namespace  sfx2
 

Typedefs

typedef StringPair sfx2::FilterDescriptor
 Some general words about what's going on here... More...
 
typedef ::std::list< FilterDescriptor > sfx2::FilterGroup
 
typedef ::std::list< FilterGroup > sfx2::GroupedFilterList
 
typedef OUString sfx2::FilterName
 the logical name of a filter More...
 
typedef ::std::map< OUString, FilterGroup::iterator > sfx2::FilterGroupEntryReferrer
 
typedef ::std::list< FilterClass > sfx2::FilterClassList
 
typedef ::std::map< OUString, FilterClassList::iterator > sfx2::FilterClassReferrer
 
typedef ::std::vector< ::std::pair< FilterGroupEntryReferrer::mapped_type, FilterGroup::iterator > > sfx2::MapGroupEntry2GroupEntry
 

Functions

static void sfx2::lcl_ReadFilterClass (const OConfigurationNode &_rClassesNode, const OUString &_rLogicalClassName, FilterClass &_rClass)
 
static void sfx2::lcl_ReadGlobalFilters (const OConfigurationNode &_rFilterClassification, FilterClassList &_rGlobalClasses, std::vector< OUString > &_rGlobalClassNames)
 
static void sfx2::lcl_ReadLocalFilters (const OConfigurationNode &_rFilterClassification, FilterClassList &_rLocalClasses)
 
static void sfx2::lcl_ReadClassification (FilterClassList &_rGlobalClasses, std::vector< OUString > &_rGlobalClassNames, FilterClassList &_rLocalClasses)
 
const sal_Unicode sfx2::s_cWildcardSeparator (';')
 
static OUString sfx2::getSeparatorString ()
 
static void sfx2::lcl_InitGlobalClasses (GroupedFilterList &_rAllFilters, const FilterClassList &_rGlobalClasses, FilterGroupEntryReferrer &_rGlobalClassesRef)
 
static void sfx2::lcl_GroupAndClassify (TSortedFilterList &_rFilterMatcher, GroupedFilterList &_rAllFilters)
 
static bool sfx2::lcl_hasAllFilesFilter (TSortedFilterList &_rFilterMatcher, OUString &_rAllFilterName)
 
static void sfx2::lcl_EnsureAllFilesEntry (TSortedFilterList &_rFilterMatcher, GroupedFilterList &_rFilters)
 
void sfx2::appendFiltersForSave (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl, std::u16string_view _rFactory)
 
void sfx2::appendExportFilters (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
void sfx2::appendFiltersForOpen (TSortedFilterList &_rFilterMatcher, const Reference< XFilterManager > &_rxFilterManager, OUString &_rFirstNonEmpty, FileDialogHelper_Impl &_rFileDlgImpl)
 
OUString sfx2::addExtension (const OUString &_rDisplayText, const OUString &_rExtension, bool _bForOpen, FileDialogHelper_Impl &_rFileDlgImpl)
 adds the given extension to the display text. More...
 

Variable Documentation

◆ _rToBeExtended

OUString& _rToBeExtended

Definition at line 414 of file filtergrouping.cxx.

◆ aLookingFor

FilterGroupEntryReferrer::mapped_type aLookingFor

Definition at line 537 of file filtergrouping.cxx.

◆ aSubFilters

Sequence< FilterName > aSubFilters

Definition at line 142 of file filtergrouping.cxx.

◆ aUIName

OUString aUIName

◆ aWildcard

OUString aWildcard

◆ aWildCards

::std::vector< OUString > aWildCards
protected

Definition at line 451 of file filtergrouping.cxx.

◆ m_aClassesNode

OConfigurationNode m_aClassesNode
protected

Definition at line 197 of file filtergrouping.cxx.

◆ m_aClassPos

FilterGroup::iterator m_aClassPos
protected

Definition at line 343 of file filtergrouping.cxx.

◆ m_aClassReferrer

FilterClassReferrer& m_aClassReferrer
protected

Definition at line 198 of file filtergrouping.cxx.

◆ m_bAddExtension

bool m_bAddExtension
protected

Definition at line 727 of file filtergrouping.cxx.

◆ m_pFileDlgImpl

FileDialogHelper_Impl* m_pFileDlgImpl
protected

Definition at line 726 of file filtergrouping.cxx.

◆ m_rClasses

FilterClassList& m_rClasses
protected

Definition at line 272 of file filtergrouping.cxx.

◆ m_rClassesReferrer

FilterClassReferrer& m_rClassesReferrer
protected

Definition at line 171 of file filtergrouping.cxx.

◆ m_rClassGroup

FilterGroup& m_rClassGroup
protected

Definition at line 367 of file filtergrouping.cxx.

◆ m_rClassList

FilterClassList& m_rClassList
protected

Definition at line 170 of file filtergrouping.cxx.

◆ m_rClassReferrer

FilterGroupEntryReferrer& m_rClassReferrer
protected

Definition at line 368 of file filtergrouping.cxx.

◆ m_rEntryReferrer

FilterGroupEntryReferrer& m_rEntryReferrer
protected

Definition at line 342 of file filtergrouping.cxx.

◆ m_xFilterGroupManager

Reference< XFilterGroupManager > m_xFilterGroupManager
protected

Definition at line 798 of file filtergrouping.cxx.

◆ m_xFilterManager

Reference< XFilterManager > m_xFilterManager
protected

Definition at line 725 of file filtergrouping.cxx.

◆ rTarget

FilterGroup& rTarget

◆ sDisplayName

OUString sDisplayName

Definition at line 141 of file filtergrouping.cxx.