LibreOffice Module fpicker (master) 1
|
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::Window * | m_pTopLevel |
std::unique_ptr< ViewTabListBox_Impl > | mxView |
std::unique_ptr< weld::IconView > | mxIconView |
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 | |
SvtFileView * | m_pAntiImpl |
Link< SvtFileView *, void > | m_aSelectHandler |
::rtl::Reference< ::svt::FileViewContentEnumerator > | m_xContentEnumerator |
Link< void *, void > | m_aCurrentAsyncActionHandler |
::osl::Condition | m_aAsyncActionFinished |
::rtl::Reference< ::salhelper::Timer > | m_xCancelAsyncTimer |
::svt::EnumerationResult | m_eAsyncActionResult |
bool | m_bRunningAsyncAction |
bool | m_bAsyncActionCancelled |
Definition at line 238 of file fileview.cxx.
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 | ||
) |
Definition at line 1133 of file fileview.cxx.
References ERROR, weld::TreeView::get_height_rows(), Size::Height(), mxIconView, mxView, mxView, weld::Widget::set_size_request(), and Size::Width().
|
virtual |
Definition at line 1163 of file fileview.cxx.
References Clear().
void SvtFileView_Impl::CancelRunningAsyncAction | ( | ) |
Definition at line 1418 of file fileview.cxx.
References DBG_TESTSOLARMUTEX, m_bAsyncActionCancelled, m_bRunningAsyncAction, m_xCancelAsyncTimer, m_xContentEnumerator, and maMutex.
Referenced by onTimeout().
void SvtFileView_Impl::Clear | ( | ) |
Definition at line 1168 of file fileview.cxx.
References maContent, and maMutex.
Referenced by ~SvtFileView_Impl().
void SvtFileView_Impl::CreateDisplayText_Impl | ( | ) |
Definition at line 1498 of file fileview.cxx.
References LocaleDataWrapper::getDate(), SvFileInformationManager::GetFileImageId(), SvFileInformationManager::GetFolderImageId(), SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getTime(), maContent, maMutex, and ReplaceTabWithString().
Referenced by implEnumerationSuccess().
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Definition at line 369 of file fileview.cxx.
References mxView.
|
inline |
Definition at line 328 of file fileview.cxx.
References mxView.
void SvtFileView_Impl::EntryRemoved | ( | std::u16string_view | rURL | ) |
Definition at line 1668 of file fileview.cxx.
void SvtFileView_Impl::EntryRenamed | ( | OUString & | rURL, |
const OUString & | rName | ||
) |
Definition at line 1677 of file fileview.cxx.
References INetURLObject::All, INetURLObject::GetMainURL(), maContent, maMutex, INetURLObject::NONE, ReplaceTabWithString(), and INetURLObject::setName().
|
overrideprotectedvirtual |
Definition at line 1454 of file fileview.cxx.
References implEnumerationSuccess(), Link< typename Arg, typename Ret >::IsSet(), m_aAsyncActionFinished, m_aCurrentAsyncActionHandler, m_bAsyncActionCancelled, m_bRunningAsyncAction, m_eAsyncActionResult, m_xCancelAsyncTimer, m_xContentEnumerator, maMutex, Application::PostUserEvent(), and svt::SUCCESS.
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().
const SortingData_Impl & SvtFileView_Impl::FolderInserted | ( | const OUString & | rURL, |
const OUString & | rTitle | ||
) |
Definition at line 1698 of file fileview.cxx.
References LocaleDataWrapper::getDate(), SvFileInformationManager::GetFolderDescription(), SvFileInformationManager::GetFolderImageId(), SvtSysLocale::GetLocaleData(), LocaleDataWrapper::getTime(), maContent, maMutex, pData, and ReplaceTabWithString().
int SvtFileView_Impl::GetEntryPos | ( | std::u16string_view | rURL | ) |
Definition at line 1727 of file fileview.cxx.
References maContent, and maMutex.
Referenced by Resort_Impl().
FileViewResult SvtFileView_Impl::GetFolderContent_Impl | ( | const FolderDescriptor & | _rFolder, |
const FileViewAsyncAction * | pAsyncDescriptor, | ||
const css::uno::Sequence< OUString > & | rDenyList | ||
) |
Definition at line 1190 of file fileview.cxx.
References FileViewAsyncAction::aFinishHandler, DBG_ASSERT, DBG_TESTSOLARMUTEX, eFailure, svt::ERROR, eStillRunning, eSuccess, implEnumerationSuccess(), Link< typename Arg, typename Ret >::IsSet(), m_aAsyncActionFinished, m_aCurrentAsyncActionHandler, m_bAsyncActionCancelled, m_bRunningAsyncAction, m_eAsyncActionResult, m_xCancelAsyncTimer, m_xContentEnumerator, maContent, maEntries, maMutex, mxIconView, mxView, FileViewAsyncAction::nMaxTimeout, FileViewAsyncAction::nMinTimeout, SAL_WARN, and svt::SUCCESS.
FileViewResult SvtFileView_Impl::GetFolderContent_Impl | ( | std::u16string_view | rFolder, |
const FileViewAsyncAction * | pAsyncDescriptor, | ||
const css::uno::Sequence< OUString > & | rDenyList | ||
) |
Definition at line 1175 of file fileview.cxx.
References DBG_ASSERT, GetFolderContent_Impl(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), maMutex, and INetURLObject::NONE.
Referenced by GetFolderContent_Impl().
|
inline |
Definition at line 349 of file fileview.cxx.
References COLUMN_TITLE, mnSortColumn, and mxView.
Referenced by OpenFolder_Impl().
|
inline |
Definition at line 336 of file fileview.cxx.
References mxIconView, and mxView.
|
inline |
Definition at line 344 of file fileview.cxx.
References mxIconView, and mxView.
|
protected |
Definition at line 1484 of file fileview.cxx.
References Link< typename Arg, typename Ret >::Call(), CreateDisplayText_Impl(), FilterFolderContent_Impl(), m_pAntiImpl, maCurrentFilter, maOpenDoneLink, OpenFolder_Impl(), and SortFolderContent_Impl().
Referenced by enumerationDone(), and GetFolderContent_Impl().
void SvtFileView_Impl::onTimeout | ( | ) |
Definition at line 1436 of file fileview.cxx.
References CancelRunningAsyncAction(), eTimeout, Link< typename Arg, typename Ret >::IsSet(), m_aCurrentAsyncActionHandler, m_bRunningAsyncAction, maMutex, and Application::PostUserEvent().
void SvtFileView_Impl::OpenFolder_Impl | ( | ) |
Definition at line 1357 of file fileview.cxx.
References GetSortColumn(), maContent, maEntries, maMutex, mbAscending, mbOnlyFolder, mnSuspendSelectCallback, mxIconView, mxView, ResetCursor(), weld::TreeView::set_sort_indicator(), sId, weld::toId(), TRISTATE_FALSE, and TRISTATE_TRUE.
Referenced by implEnumerationSuccess(), and Resort_Impl().
|
static |
Definition at line 1493 of file fileview.cxx.
References u.
Referenced by CreateDisplayText_Impl(), EntryRenamed(), and FolderInserted().
void SvtFileView_Impl::ResetCursor | ( | ) |
Definition at line 1392 of file fileview.cxx.
References mxIconView, and mxView.
Referenced by OpenFolder_Impl().
void SvtFileView_Impl::Resort_Impl | ( | sal_Int16 | nColumn, |
bool | bAscending | ||
) |
Definition at line 1532 of file fileview.cxx.
References GetEntryPos(), maMutex, mbAscending, mbIsFirstResort, mnSortColumn, mnSuspendSelectCallback, mxView, nPos, OpenFolder_Impl(), and SortFolderContent_Impl().
bool SvtFileView_Impl::SearchNextEntry | ( | sal_uInt32 & | nIndex, |
std::u16string_view | rTitle, | ||
bool | bWrapAround | ||
) |
void SvtFileView_Impl::SetDoubleClickHandler | ( | const Link< SvtFileView *, bool > & | rHdl | ) |
Definition at line 1349 of file fileview.cxx.
References LINK, maDoubleClickHandler, mxIconView, and mxView.
void SvtFileView_Impl::SetSelectHandler | ( | const Link< SvtFileView *, void > & | rHdl | ) |
Definition at line 1331 of file fileview.cxx.
References LINK, m_aSelectHandler, mxIconView, and mxView.
void SvtFileView_Impl::SetViewMode | ( | FileViewMode | eMode | ) |
Definition at line 1736 of file fileview.cxx.
References eDetailedList, eIcon, eMode, mxIconView, and mxView.
void SvtFileView_Impl::SortFolderContent_Impl | ( | ) |
Definition at line 1651 of file fileview.cxx.
References aIntlWrapper, CompareSortingData_Impl(), gbAscending, IntlWrapper::getCaseCollator(), gnColumn, maContent, maMutex, mbAscending, mnSortColumn, and pCollatorWrapper.
Referenced by implEnumerationSuccess(), and Resort_Impl().
IntlWrapper const SvtFileView_Impl::aIntlWrapper |
Definition at line 268 of file fileview.cxx.
Referenced by SortFolderContent_Impl().
|
protected |
Definition at line 247 of file fileview.cxx.
Referenced by enumerationDone(), and GetFolderContent_Impl().
|
protected |
Definition at line 246 of file fileview.cxx.
Referenced by enumerationDone(), GetFolderContent_Impl(), and onTimeout().
|
protected |
Definition at line 242 of file fileview.cxx.
Referenced by SetSelectHandler().
|
protected |
Definition at line 251 of file fileview.cxx.
Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().
|
protected |
Definition at line 250 of file fileview.cxx.
Referenced by CancelRunningAsyncAction(), enumerationDone(), GetFolderContent_Impl(), and onTimeout().
|
protected |
Definition at line 249 of file fileview.cxx.
Referenced by enumerationDone(), and GetFolderContent_Impl().
|
protected |
Definition at line 241 of file fileview.cxx.
Referenced by implEnumerationSuccess().
weld::Window* SvtFileView_Impl::m_pTopLevel |
Definition at line 259 of file fileview.cxx.
|
protected |
Definition at line 248 of file fileview.cxx.
Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().
|
protected |
Definition at line 245 of file fileview.cxx.
Referenced by CancelRunningAsyncAction(), enumerationDone(), and GetFolderContent_Impl().
::std::vector<std::unique_ptr<SortingData_Impl> > SvtFileView_Impl::maContent |
Definition at line 255 of file fileview.cxx.
Referenced by Clear(), CreateDisplayText_Impl(), EntryRemoved(), EntryRenamed(), FilterFolderContent_Impl(), FolderInserted(), GetEntryPos(), GetFolderContent_Impl(), OpenFolder_Impl(), SearchNextEntry(), and SortFolderContent_Impl().
OUString SvtFileView_Impl::maCurrentFilter |
Definition at line 271 of file fileview.cxx.
Referenced by implEnumerationSuccess().
Link<SvtFileView*,bool> SvtFileView_Impl::maDoubleClickHandler |
Definition at line 274 of file fileview.cxx.
Referenced by SetDoubleClickHandler().
::std::vector<std::unique_ptr<SvtContentEntry> > SvtFileView_Impl::maEntries |
Definition at line 256 of file fileview.cxx.
Referenced by GetFolderContent_Impl(), and OpenFolder_Impl().
OUString SvtFileView_Impl::maFolderImage |
Definition at line 272 of file fileview.cxx.
::osl::Mutex SvtFileView_Impl::maMutex |
Definition at line 257 of file fileview.cxx.
Referenced by CancelRunningAsyncAction(), Clear(), CreateDisplayText_Impl(), EntryRemoved(), EntryRenamed(), enumerationDone(), FilterFolderContent_Impl(), FolderInserted(), GetEntryPos(), GetFolderContent_Impl(), onTimeout(), OpenFolder_Impl(), Resort_Impl(), SearchNextEntry(), and SortFolderContent_Impl().
Link<SvtFileView*,void> SvtFileView_Impl::maOpenDoneLink |
Definition at line 273 of file fileview.cxx.
Referenced by implEnumerationSuccess().
OUString SvtFileView_Impl::maViewURL |
Definition at line 270 of file fileview.cxx.
bool SvtFileView_Impl::mbAscending |
Definition at line 263 of file fileview.cxx.
Referenced by OpenFolder_Impl(), Resort_Impl(), and SortFolderContent_Impl().
bool SvtFileView_Impl::mbIsFirstResort |
Definition at line 266 of file fileview.cxx.
Referenced by Resort_Impl().
bool const SvtFileView_Impl::mbOnlyFolder |
Definition at line 264 of file fileview.cxx.
Referenced by OpenFolder_Impl().
sal_uInt16 SvtFileView_Impl::mnSortColumn |
Definition at line 262 of file fileview.cxx.
Referenced by GetSortColumn(), Resort_Impl(), and SortFolderContent_Impl().
sal_Int16 SvtFileView_Impl::mnSuspendSelectCallback |
Definition at line 265 of file fileview.cxx.
Referenced by OpenFolder_Impl(), and Resort_Impl().
Reference< XCommandEnvironment > SvtFileView_Impl::mxCmdEnv |
Definition at line 276 of file fileview.cxx.
std::unique_ptr<weld::IconView> SvtFileView_Impl::mxIconView |
Definition at line 261 of file fileview.cxx.
Referenced by GetFolderContent_Impl(), grab_focus(), has_focus(), OpenFolder_Impl(), ResetCursor(), SetDoubleClickHandler(), SetSelectHandler(), SetViewMode(), and SvtFileView_Impl().
std::unique_ptr<ViewTabListBox_Impl> SvtFileView_Impl::mxView |
Definition at line 260 of file fileview.cxx.
Referenced by EnableDelete(), EndEditing(), GetFolderContent_Impl(), GetSortColumn(), grab_focus(), has_focus(), OpenFolder_Impl(), ResetCursor(), Resort_Impl(), SetDoubleClickHandler(), SetSelectHandler(), SetViewMode(), and SvtFileView_Impl().