LibreOffice Module fpicker (master) 1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
SvtFileView_Impl Class Reference
Inheritance diagram for SvtFileView_Impl:
[legend]
Collaboration diagram for SvtFileView_Impl:
[legend]

Public Member Functions

 SvtFileView_Impl (SvtFileView *pAntiImpl, weld::Window *pTopLevel, std::unique_ptr< weld::TreeView > xTreeView, std::unique_ptr< weld::IconView > xIconView, Reference< XCommandEnvironment > const &xEnv, FileViewFlags nFlags, bool bOnlyFolder)
 
virtual ~SvtFileView_Impl ()
 
void Clear ()
 
FileViewResult GetFolderContent_Impl (std::u16string_view rFolder, const FileViewAsyncAction *pAsyncDescriptor, const css::uno::Sequence< OUString > &rDenyList)
 
FileViewResult GetFolderContent_Impl (const FolderDescriptor &_rFolder, const FileViewAsyncAction *pAsyncDescriptor, const css::uno::Sequence< OUString > &rDenyList)
 
void FilterFolderContent_Impl (std::u16string_view rFilter)
 
void CancelRunningAsyncAction ()
 
void OpenFolder_Impl ()
 
void CreateDisplayText_Impl ()
 
void SortFolderContent_Impl ()
 
void EntryRemoved (std::u16string_view rURL)
 
void EntryRenamed (OUString &rURL, const OUString &rName)
 
const SortingData_Impl & FolderInserted (const OUString &rURL, const OUString &rTitle)
 
int GetEntryPos (std::u16string_view rURL)
 
void SetViewMode (FileViewMode eMode)
 
void EnableDelete (bool bEnable)
 
void Resort_Impl (sal_Int16 nColumn, bool bAscending)
 
bool SearchNextEntry (sal_uInt32 &nIndex, std::u16string_view rTitle, bool bWrapAround)
 
void SetSelectHandler (const Link< SvtFileView *, void > &rHdl)
 
void SetDoubleClickHandler (const Link< SvtFileView *, bool > &rHdl)
 
void ResetCursor ()
 
void EndEditing ()
 
void onTimeout ()
 
void grab_focus ()
 
bool has_focus () const
 
int GetSortColumn () const
 
- Public Member Functions inherited from svt::IEnumerationResultHandler
virtual void enumerationDone (EnumerationResult _eResult)=0
 

Static Public Member Functions

static OUString ReplaceTabWithString (const OUString &rValue)
 

Public Attributes

::std::vector< std::unique_ptr< SortingData_Impl > > maContent
 
::std::vector< std::unique_ptr< SvtContentEntry > > maEntries
 
::osl::Mutex maMutex
 
weld::Windowm_pTopLevel
 
std::unique_ptr< ViewTabListBox_Impl > mxView
 
std::unique_ptr< weld::IconViewmxIconView
 
sal_uInt16 mnSortColumn
 
bool mbAscending: 1
 
bool const mbOnlyFolder: 1
 
sal_Int16 mnSuspendSelectCallback: 1
 
bool mbIsFirstResort: 1
 
IntlWrapper const aIntlWrapper
 
OUString maViewURL
 
OUString maCurrentFilter
 
OUString maFolderImage
 
Link< SvtFileView *, void > maOpenDoneLink
 
Link< SvtFileView *, bool > maDoubleClickHandler
 
Reference< XCommandEnvironment > mxCmdEnv
 

Protected Member Functions

 DECL_LINK (ChangedHdl, weld::TreeView &, void)
 
 DECL_LINK (SelectionChangedHdl, weld::IconView &, void)
 
 DECL_LINK (RowActivatedHdl, weld::TreeView &, bool)
 
 DECL_LINK (ItemActivatedHdl, weld::IconView &, bool)
 
virtual void enumerationDone (::svt::EnumerationResult eResult) override
 
void implEnumerationSuccess ()
 
- Protected Member Functions inherited from svt::IEnumerationResultHandler
 ~IEnumerationResultHandler ()
 

Protected Attributes

SvtFileViewm_pAntiImpl
 
Link< SvtFileView *, void > m_aSelectHandler
 
::rtl::Reference< ::svt::FileViewContentEnumeratorm_xContentEnumerator
 
Link< void *, void > m_aCurrentAsyncActionHandler
 
::osl::Condition m_aAsyncActionFinished
 
::rtl::Reference< ::salhelper::Timerm_xCancelAsyncTimer
 
::svt::EnumerationResult m_eAsyncActionResult
 
bool m_bRunningAsyncAction
 
bool m_bAsyncActionCancelled
 

Detailed Description

Definition at line 238 of file fileview.cxx.

Constructor & Destructor Documentation

◆ SvtFileView_Impl()

SvtFileView_Impl::SvtFileView_Impl ( SvtFileView pAntiImpl,
weld::Window pTopLevel,
std::unique_ptr< weld::TreeView xTreeView,
std::unique_ptr< weld::IconView xIconView,
Reference< XCommandEnvironment > const &  xEnv,
FileViewFlags  nFlags,
bool  bOnlyFolder 
)

◆ ~SvtFileView_Impl()

SvtFileView_Impl::~SvtFileView_Impl ( )
virtual

Definition at line 1163 of file fileview.cxx.

References Clear().

Member Function Documentation

◆ CancelRunningAsyncAction()

void SvtFileView_Impl::CancelRunningAsyncAction ( )

◆ Clear()

void SvtFileView_Impl::Clear ( )

Definition at line 1168 of file fileview.cxx.

References maContent, and maMutex.

Referenced by ~SvtFileView_Impl().

◆ CreateDisplayText_Impl()

void SvtFileView_Impl::CreateDisplayText_Impl ( )

◆ DECL_LINK() [1/4]

SvtFileView_Impl::DECL_LINK ( ChangedHdl  ,
weld::TreeView ,
void   
)
protected

◆ DECL_LINK() [2/4]

SvtFileView_Impl::DECL_LINK ( ItemActivatedHdl  ,
weld::IconView ,
bool   
)
protected

◆ DECL_LINK() [3/4]

SvtFileView_Impl::DECL_LINK ( RowActivatedHdl  ,
weld::TreeView ,
bool   
)
protected

◆ DECL_LINK() [4/4]

SvtFileView_Impl::DECL_LINK ( SelectionChangedHdl  ,
weld::IconView ,
void   
)
protected

◆ EnableDelete()

void SvtFileView_Impl::EnableDelete ( bool  bEnable)
inline

Definition at line 369 of file fileview.cxx.

References mxView.

◆ EndEditing()

void SvtFileView_Impl::EndEditing ( )
inline

Definition at line 328 of file fileview.cxx.

References mxView.

◆ EntryRemoved()

void SvtFileView_Impl::EntryRemoved ( std::u16string_view  rURL)

Definition at line 1668 of file fileview.cxx.

References maContent, and maMutex.

◆ EntryRenamed()

void SvtFileView_Impl::EntryRenamed ( OUString &  rURL,
const OUString &  rName 
)

◆ enumerationDone()

void SvtFileView_Impl::enumerationDone ( ::svt::EnumerationResult  eResult)
overrideprotectedvirtual

◆ FilterFolderContent_Impl()

void SvtFileView_Impl::FilterFolderContent_Impl ( std::u16string_view  rFilter)

Definition at line 1290 of file fileview.cxx.

References ALL_FILES_FILTER, maContent, and maMutex.

Referenced by implEnumerationSuccess().

◆ FolderInserted()

const SortingData_Impl & SvtFileView_Impl::FolderInserted ( const OUString &  rURL,
const OUString &  rTitle 
)

◆ GetEntryPos()

int SvtFileView_Impl::GetEntryPos ( std::u16string_view  rURL)

Definition at line 1727 of file fileview.cxx.

References maContent, and maMutex.

Referenced by Resort_Impl().

◆ GetFolderContent_Impl() [1/2]

FileViewResult SvtFileView_Impl::GetFolderContent_Impl ( const FolderDescriptor &  _rFolder,
const FileViewAsyncAction pAsyncDescriptor,
const css::uno::Sequence< OUString > &  rDenyList 
)

◆ GetFolderContent_Impl() [2/2]

FileViewResult SvtFileView_Impl::GetFolderContent_Impl ( std::u16string_view  rFolder,
const FileViewAsyncAction pAsyncDescriptor,
const css::uno::Sequence< OUString > &  rDenyList 
)

◆ GetSortColumn()

int SvtFileView_Impl::GetSortColumn ( ) const
inline

Definition at line 349 of file fileview.cxx.

References COLUMN_TITLE, mnSortColumn, and mxView.

Referenced by OpenFolder_Impl().

◆ grab_focus()

void SvtFileView_Impl::grab_focus ( )
inline

Definition at line 336 of file fileview.cxx.

References mxIconView, and mxView.

◆ has_focus()

bool SvtFileView_Impl::has_focus ( ) const
inline

Definition at line 344 of file fileview.cxx.

References mxIconView, and mxView.

◆ implEnumerationSuccess()

void SvtFileView_Impl::implEnumerationSuccess ( )
protected

◆ onTimeout()

void SvtFileView_Impl::onTimeout ( )

◆ OpenFolder_Impl()

void SvtFileView_Impl::OpenFolder_Impl ( )

◆ ReplaceTabWithString()

OUString SvtFileView_Impl::ReplaceTabWithString ( const OUString &  rValue)
static

Definition at line 1493 of file fileview.cxx.

References u.

Referenced by CreateDisplayText_Impl(), EntryRenamed(), and FolderInserted().

◆ ResetCursor()

void SvtFileView_Impl::ResetCursor ( )

Definition at line 1392 of file fileview.cxx.

References mxIconView, and mxView.

Referenced by OpenFolder_Impl().

◆ Resort_Impl()

void SvtFileView_Impl::Resort_Impl ( sal_Int16  nColumn,
bool  bAscending 
)

◆ SearchNextEntry()

bool SvtFileView_Impl::SearchNextEntry ( sal_uInt32 &  nIndex,
std::u16string_view  rTitle,
bool  bWrapAround 
)

Definition at line 1756 of file fileview.cxx.

References maContent, maMutex, nIndex, and pData.

◆ SetDoubleClickHandler()

void SvtFileView_Impl::SetDoubleClickHandler ( const Link< SvtFileView *, bool > &  rHdl)

Definition at line 1349 of file fileview.cxx.

References LINK, maDoubleClickHandler, mxIconView, and mxView.

◆ SetSelectHandler()

void SvtFileView_Impl::SetSelectHandler ( const Link< SvtFileView *, void > &  rHdl)

Definition at line 1331 of file fileview.cxx.

References LINK, m_aSelectHandler, mxIconView, and mxView.

◆ SetViewMode()

void SvtFileView_Impl::SetViewMode ( FileViewMode  eMode)

Definition at line 1736 of file fileview.cxx.

References eDetailedList, eIcon, eMode, mxIconView, and mxView.

◆ SortFolderContent_Impl()

void SvtFileView_Impl::SortFolderContent_Impl ( )

Member Data Documentation

◆ aIntlWrapper

IntlWrapper const SvtFileView_Impl::aIntlWrapper

Definition at line 268 of file fileview.cxx.

Referenced by SortFolderContent_Impl().

◆ m_aAsyncActionFinished

::osl::Condition SvtFileView_Impl::m_aAsyncActionFinished
protected

Definition at line 247 of file fileview.cxx.

Referenced by enumerationDone(), and GetFolderContent_Impl().

◆ m_aCurrentAsyncActionHandler

Link<void*,void> SvtFileView_Impl::m_aCurrentAsyncActionHandler
protected

Definition at line 246 of file fileview.cxx.

Referenced by enumerationDone(), GetFolderContent_Impl(), and onTimeout().

◆ m_aSelectHandler

Link<SvtFileView*,void> SvtFileView_Impl::m_aSelectHandler
protected

Definition at line 242 of file fileview.cxx.

Referenced by SetSelectHandler().

◆ m_bAsyncActionCancelled

bool SvtFileView_Impl::m_bAsyncActionCancelled
protected

Definition at line 251 of file fileview.cxx.

Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().

◆ m_bRunningAsyncAction

bool SvtFileView_Impl::m_bRunningAsyncAction
protected

◆ m_eAsyncActionResult

::svt::EnumerationResult SvtFileView_Impl::m_eAsyncActionResult
protected

Definition at line 249 of file fileview.cxx.

Referenced by enumerationDone(), and GetFolderContent_Impl().

◆ m_pAntiImpl

SvtFileView* SvtFileView_Impl::m_pAntiImpl
protected

Definition at line 241 of file fileview.cxx.

Referenced by implEnumerationSuccess().

◆ m_pTopLevel

weld::Window* SvtFileView_Impl::m_pTopLevel

Definition at line 259 of file fileview.cxx.

◆ m_xCancelAsyncTimer

::rtl::Reference< ::salhelper::Timer > SvtFileView_Impl::m_xCancelAsyncTimer
protected

Definition at line 248 of file fileview.cxx.

Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().

◆ m_xContentEnumerator

::rtl::Reference< ::svt::FileViewContentEnumerator > SvtFileView_Impl::m_xContentEnumerator
protected

Definition at line 245 of file fileview.cxx.

Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().

◆ maContent

::std::vector<std::unique_ptr<SortingData_Impl> > SvtFileView_Impl::maContent

◆ maCurrentFilter

OUString SvtFileView_Impl::maCurrentFilter

Definition at line 271 of file fileview.cxx.

Referenced by implEnumerationSuccess().

◆ maDoubleClickHandler

Link<SvtFileView*,bool> SvtFileView_Impl::maDoubleClickHandler

Definition at line 274 of file fileview.cxx.

Referenced by SetDoubleClickHandler().

◆ maEntries

::std::vector<std::unique_ptr<SvtContentEntry> > SvtFileView_Impl::maEntries

Definition at line 256 of file fileview.cxx.

Referenced by GetFolderContent_Impl(), and OpenFolder_Impl().

◆ maFolderImage

OUString SvtFileView_Impl::maFolderImage

Definition at line 272 of file fileview.cxx.

◆ maMutex

::osl::Mutex SvtFileView_Impl::maMutex

◆ maOpenDoneLink

Link<SvtFileView*,void> SvtFileView_Impl::maOpenDoneLink

Definition at line 273 of file fileview.cxx.

Referenced by implEnumerationSuccess().

◆ maViewURL

OUString SvtFileView_Impl::maViewURL

Definition at line 270 of file fileview.cxx.

◆ mbAscending

bool SvtFileView_Impl::mbAscending

Definition at line 263 of file fileview.cxx.

Referenced by OpenFolder_Impl(), Resort_Impl(), and SortFolderContent_Impl().

◆ mbIsFirstResort

bool SvtFileView_Impl::mbIsFirstResort

Definition at line 266 of file fileview.cxx.

Referenced by Resort_Impl().

◆ mbOnlyFolder

bool const SvtFileView_Impl::mbOnlyFolder

Definition at line 264 of file fileview.cxx.

Referenced by OpenFolder_Impl().

◆ mnSortColumn

sal_uInt16 SvtFileView_Impl::mnSortColumn

Definition at line 262 of file fileview.cxx.

Referenced by GetSortColumn(), Resort_Impl(), and SortFolderContent_Impl().

◆ mnSuspendSelectCallback

sal_Int16 SvtFileView_Impl::mnSuspendSelectCallback

Definition at line 265 of file fileview.cxx.

Referenced by OpenFolder_Impl(), and Resort_Impl().

◆ mxCmdEnv

Reference< XCommandEnvironment > SvtFileView_Impl::mxCmdEnv

Definition at line 276 of file fileview.cxx.

◆ mxIconView

std::unique_ptr<weld::IconView> SvtFileView_Impl::mxIconView

◆ mxView

std::unique_ptr<ViewTabListBox_Impl> SvtFileView_Impl::mxView

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