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 (const OUString &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 (const OUString &rFilter)
 
void CancelRunningAsyncAction ()
 
void OpenFolder_Impl ()
 
void CreateDisplayText_Impl ()
 
void SortFolderContent_Impl ()
 
void EntryRemoved (const OUString &rURL)
 
void EntryRenamed (OUString &rURL, const OUString &rName)
 
const SortingData_Impl & FolderInserted (const OUString &rURL, const OUString &rTitle)
 
int GetEntryPos (const OUString &rURL)
 
void SetViewMode (FileViewMode eMode)
 
void EnableDelete (bool bEnable)
 
void Resort_Impl (sal_Int16 nColumn, bool bAscending)
 
bool SearchNextEntry (sal_uInt32 &nIndex, const OUString &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 *, voidmaOpenDoneLink
 
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 *, voidm_aSelectHandler
 
::rtl::Reference< ::svt::FileViewContentEnumeratorm_xContentEnumerator
 
Link< void *, voidm_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 237 of file fileview.cxx.

Constructor & Destructor Documentation

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 ( )
virtual

Definition at line 1155 of file fileview.cxx.

References Clear().

Member Function Documentation

void SvtFileView_Impl::CancelRunningAsyncAction ( )
void SvtFileView_Impl::Clear ( )

Definition at line 1160 of file fileview.cxx.

References maContent.

Referenced by ~SvtFileView_Impl().

void SvtFileView_Impl::CreateDisplayText_Impl ( )
SvtFileView_Impl::DECL_LINK ( ChangedHdl  ,
weld::TreeView ,
void   
)
protected
SvtFileView_Impl::DECL_LINK ( SelectionChangedHdl  ,
weld::IconView ,
void   
)
protected
SvtFileView_Impl::DECL_LINK ( RowActivatedHdl  ,
weld::TreeView ,
bool   
)
protected
SvtFileView_Impl::DECL_LINK ( ItemActivatedHdl  ,
weld::IconView ,
bool   
)
protected
void SvtFileView_Impl::EnableDelete ( bool  bEnable)
inline

Definition at line 368 of file fileview.cxx.

References mxView.

void SvtFileView_Impl::EndEditing ( )
inline

Definition at line 327 of file fileview.cxx.

void SvtFileView_Impl::EntryRemoved ( const OUString &  rURL)

Definition at line 1669 of file fileview.cxx.

References data, and maContent.

void SvtFileView_Impl::EntryRenamed ( OUString &  rURL,
const OUString &  rName 
)
void SvtFileView_Impl::enumerationDone ( ::svt::EnumerationResult  eResult)
overrideprotectedvirtual
void SvtFileView_Impl::FilterFolderContent_Impl ( const OUString &  rFilter)

Definition at line 1282 of file fileview.cxx.

References ALL_FILES_FILTER, and maContent.

Referenced by implEnumerationSuccess().

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

Definition at line 1728 of file fileview.cxx.

References data, and maContent.

Referenced by Resort_Impl().

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

Definition at line 348 of file fileview.cxx.

References COLUMN_TITLE, and mnSortColumn.

Referenced by OpenFolder_Impl().

void SvtFileView_Impl::grab_focus ( )
inline

Definition at line 335 of file fileview.cxx.

bool SvtFileView_Impl::has_focus ( ) const
inline

Definition at line 343 of file fileview.cxx.

void SvtFileView_Impl::implEnumerationSuccess ( )
protected
void SvtFileView_Impl::onTimeout ( )
void SvtFileView_Impl::OpenFolder_Impl ( )
OUString SvtFileView_Impl::ReplaceTabWithString ( const OUString &  rValue)
static

Definition at line 1485 of file fileview.cxx.

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

void SvtFileView_Impl::ResetCursor ( )

Definition at line 1384 of file fileview.cxx.

References mxIconView, and mxView.

Referenced by OpenFolder_Impl().

void SvtFileView_Impl::Resort_Impl ( sal_Int16  nColumn,
bool  bAscending 
)
bool SvtFileView_Impl::SearchNextEntry ( sal_uInt32 &  nIndex,
const OUString &  rTitle,
bool  bWrapAround 
)

Definition at line 1757 of file fileview.cxx.

References maContent, and pData.

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

Definition at line 1341 of file fileview.cxx.

References LINK, maDoubleClickHandler, mxIconView, and mxView.

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

Definition at line 1323 of file fileview.cxx.

References LINK, m_aSelectHandler, mxIconView, and mxView.

void SvtFileView_Impl::SetViewMode ( FileViewMode  eMode)

Definition at line 1737 of file fileview.cxx.

References eDetailedList, eIcon, mxIconView, and mxView.

void SvtFileView_Impl::SortFolderContent_Impl ( )

Member Data Documentation

IntlWrapper const SvtFileView_Impl::aIntlWrapper

Definition at line 267 of file fileview.cxx.

Referenced by SortFolderContent_Impl().

::osl::Condition SvtFileView_Impl::m_aAsyncActionFinished
protected

Definition at line 246 of file fileview.cxx.

Referenced by enumerationDone(), and GetFolderContent_Impl().

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

Definition at line 245 of file fileview.cxx.

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

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

Definition at line 241 of file fileview.cxx.

Referenced by SetSelectHandler().

bool SvtFileView_Impl::m_bAsyncActionCancelled
protected

Definition at line 250 of file fileview.cxx.

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

bool SvtFileView_Impl::m_bRunningAsyncAction
protected
::svt::EnumerationResult SvtFileView_Impl::m_eAsyncActionResult
protected

Definition at line 248 of file fileview.cxx.

Referenced by enumerationDone(), and GetFolderContent_Impl().

SvtFileView* SvtFileView_Impl::m_pAntiImpl
protected

Definition at line 240 of file fileview.cxx.

Referenced by implEnumerationSuccess().

weld::Window* SvtFileView_Impl::m_pTopLevel

Definition at line 258 of file fileview.cxx.

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

Definition at line 247 of file fileview.cxx.

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

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

Definition at line 244 of file fileview.cxx.

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

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

Definition at line 270 of file fileview.cxx.

Referenced by implEnumerationSuccess().

Link<SvtFileView*,bool> SvtFileView_Impl::maDoubleClickHandler

Definition at line 273 of file fileview.cxx.

Referenced by SetDoubleClickHandler().

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

Definition at line 255 of file fileview.cxx.

Referenced by GetFolderContent_Impl(), and OpenFolder_Impl().

OUString SvtFileView_Impl::maFolderImage

Definition at line 271 of file fileview.cxx.

::osl::Mutex SvtFileView_Impl::maMutex

Definition at line 256 of file fileview.cxx.

Referenced by GetFolderContent_Impl().

Link<SvtFileView*,void> SvtFileView_Impl::maOpenDoneLink

Definition at line 272 of file fileview.cxx.

Referenced by implEnumerationSuccess().

OUString SvtFileView_Impl::maViewURL

Definition at line 269 of file fileview.cxx.

bool SvtFileView_Impl::mbAscending

Definition at line 262 of file fileview.cxx.

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

bool SvtFileView_Impl::mbIsFirstResort

Definition at line 265 of file fileview.cxx.

Referenced by Resort_Impl().

bool const SvtFileView_Impl::mbOnlyFolder

Definition at line 263 of file fileview.cxx.

Referenced by OpenFolder_Impl().

sal_uInt16 SvtFileView_Impl::mnSortColumn

Definition at line 261 of file fileview.cxx.

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

sal_Int16 SvtFileView_Impl::mnSuspendSelectCallback

Definition at line 264 of file fileview.cxx.

Referenced by OpenFolder_Impl(), and Resort_Impl().

Reference< XCommandEnvironment > SvtFileView_Impl::mxCmdEnv

Definition at line 275 of file fileview.cxx.

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

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