22#include <com/sun/star/beans/StringPair.hpp>
23#include <com/sun/star/uno/Any.hxx>
24#include <com/sun/star/uno/Sequence.hxx>
25#include <com/sun/star/uno/Reference.hxx>
26#include <com/sun/star/ucb/IOErrorCode.hpp>
66 std::unique_ptr<SvtExpFileDlg_Impl>
m_xImpl;
111 bool& _rFilterChanged
155 virtual short run()
override;
160 void SetDenyList(
const css::uno::Sequence< OUString >& rDenyList )
override;
161 const css::uno::Sequence< OUString >&
GetDenyList()
const override;
164 std::vector<OUString>
GetPathList()
const override;
167 const OUString& rType )
override;
170 const OUString& _rFilter,
171 const css::uno::Sequence< css::beans::StringPair >& rFilters )
override;
191 void setImage(
const css::uno::Any& rImage )
override;
203 static void displayIOException(
const OUString& _rURL, css::ucb::IOErrorCode _eCode );
206 inline void SetPath(
const OUString& rNewURL )
override;
208 inline const OUString&
GetPath()
override;
230 virtual void enableControl( sal_Int16 _nControlId,
bool _bEnable )
override;
233 OUString
implGetInitialURL(
const OUString& _rPath, std::u16string_view _rFallback );
238 const OUString& _rURL,
239 const OUString& _rFilter
255 OUString& _rFileName,
256 std::u16string_view _rFilterDefaultExtension,
257 const OUString& _rFilterExtensions);
sal_uInt16 GetFilterCount() const
std::unique_ptr< SvtExpFileDlg_Impl > m_xImpl
void SetDenyList(const css::uno::Sequence< OUString > &rDenyList) override
void EraseDefaultExt(sal_Int32 _nIndex=0)
DECL_LINK(PreviewSizeAllocHdl, const Size &, void)
std::unique_ptr< weld::Container > m_xContainer
static bool IsolateFilterFromPath_Impl(OUString &rPath, OUString &rFilter)
DECL_LINK(FilterSelectTimerHdl_Impl, Timer *, void)
DECL_LINK(EntrySelectHdl_Impl, weld::ComboBox &, void)
DECL_LINK(RemovePlacePressed_Hdl, weld::Button &, void)
void SetHasFilename(bool bHasFilename) override
void EnableControl(weld::Widget *pControl, bool bEnable)
enables or disables a control
void OpenMultiSelection_Impl()
static void displayIOException(const OUString &_rURL, css::ucb::IOErrorCode _eCode)
SvtFileView * GetView() override
bool isAutoExtensionEnabled() const
virtual void enableControl(sal_Int16 _nControlId, bool _bEnable) override
DECL_LINK(FileNameModifiedHdl_Impl, weld::ComboBox &, void)
void EnableAutocompletion(bool _bEnable=true) override
DECL_LINK(FilterSelectHdl_Impl, weld::ComboBox &, void)
SvtFileDialogFilter_Impl * implAddFilter(const OUString &_rFilter, const OUString &_rType)
DECL_LINK(AutoExtensionHdl_Impl, weld::Toggleable &, void)
bool getShowState() override
DECL_LINK(ConnectToServerPressed_Hdl, weld::Button &, void)
::svt::SmartContent m_aContent
DECL_LINK(OpenUrlHdl_Impl, weld::ComboBox &, bool)
void SetFileCallback(::svt::IFilePickerListener *pNotifier) override
DECL_LINK(SizeAllocHdl, const Size &, void)
AdjustFilterFlags adjustFilter(const OUString &_rFilter)
DECL_LINK(NewFolderHdl_Impl, weld::Button &, void)
bool ContentCanMakeFolder(const OUString &rURL)
SvtFileDialogFilter_Impl * FindFilter_Impl(const OUString &_rFilter, bool _bMultiExt, bool &_rFilterChanged)
find a filter with the given wildcard
std::unique_ptr< SvtFileView > m_xFileView
std::unique_ptr< weld::CheckButton > m_xCbPreviewBox
void SetDefaultExt(const OUString &rExt)
void onAsyncOperationFinished() override
std::unique_ptr< weld::CheckButton > m_xCbSelection
virtual short run() override
std::unique_ptr< weld::Button > m_xPbPlay
void onAsyncOperationStarted() override
std::vector< OUString > GetPathList() const override
DECL_LINK(ClickHdl_Impl, weld::Toggleable &, void)
void SetPath(const OUString &rNewURL) override
bool ContentGetTitle(const OUString &rURL, OUString &rTitle)
DECL_LINK(CancelHdl_Impl, weld::Button &, void)
OUString getCurrentFileText() const override
void EnableUI(bool _bEnable)
enables or disables the complete UI of the file picker, with only offering a cancel button
DECL_LINK(AddPlacePressed_Hdl, weld::Button &, void)
static void appendDefaultExtension(OUString &_rFileName, std::u16string_view _rFilterDefaultExtension, const OUString &_rFilterExtensions)
helper function to check and append the default filter extension if necessary.
void setImage(const css::uno::Any &rImage) override
void OpenURL_Impl(const OUString &rURL)
const OUString & GetStandardDir() const override
const OUString & GetDefaultExt() const
void executeAsync(::svt::AsyncPickerAction::Action _eAction, const OUString &_rURL, const OUString &_rFilter)
executes a certain FileView action asynchronously
void SetCurFilter(const OUString &rFilter) override
void OpenHdl_Impl(void const *pVoid)
DECL_LINK(DblClickHdl_Impl, SvtFileView *, bool)
OUString GetCurFilter() const override
::svt::IFilePickerListener * m_pFileNotifier
std::unique_ptr< weld::Widget > m_xPreviewFrame
OUString implGetInitialURL(const OUString &_rPath, std::u16string_view _rFallback)
void FilterSelect() override
void createNewUserFilter(const OUString &_rNewFilter)
updates m_xUserFilter with a new filter
void AddFilter(const OUString &rFilter, const OUString &rType) override
void SetStandardDir(const OUString &rStdDir) override
DECL_LINK(URLBoxModifiedHdl_Impl, weld::ComboBox &, bool)
sal_Int32 getAvailableWidth() override
std::unique_ptr< weld::CheckButton > m_xCbReadOnly
::rtl::Reference< ::svt::AsyncPickerAction > m_pCurrentAsyncAction
const OUString & GetPath() override
void setCurrentFileText(const OUString &_rText, bool _bSelectAll=false) override
virtual bool PrepareExecute() override
PickerFlags m_nPickerFlags
DECL_LINK(OpenClickHdl_Impl, weld::Button &, void)
DECL_LINK(SelectHdl_Impl, SvtFileView *, void)
bool ContentHasParentFolder(const OUString &rURL)
SvtFileDialog(weld::Window *pParent, PickerFlags nBits)
sal_Int32 getAvailableHeight() override
const OUString & GetFilterName(sal_uInt16 nPos) const
void AddFilterGroup(const OUString &_rFilter, const css::uno::Sequence< css::beans::StringPair > &rFilters) override
virtual OUString getCurFilter() const override
virtual weld::Widget * getControl(sal_Int16 nControlId, bool bLabelControl=false) const override
DECL_LINK(PlayButtonHdl_Impl, weld::Button &, void)
virtual ~SvtFileDialog() override
DECL_LINK(FileNameGetFocusHdl_Impl, weld::Widget &, void)
void RemovablePlaceSelected(bool enable=true)
const css::uno::Sequence< OUString > & GetDenyList() const override
std::unique_ptr< weld::Image > m_xPrevBmp
DECL_LINK(OpenDoneHdl_Impl, SvtFileView *, void)
void UpdateControls(const OUString &rURL) override
bool ContentIsFolder(const OUString &rURL) override
::std::set< weld::Widget * > m_aDisabledControls
::utl::OConfigurationNode m_aConfiguration
std::unique_ptr< weld::CheckButton > m_xCbLinkBox
a "smart content" which basically wraps a UCB content, but caches some information so that repeatedly...
bool isValid() const
checks if the content is valid
bool isFolder(const OUString &_rURL)
binds to the given URL, checks whether or not it refers to a folder