LibreOffice Module fpicker (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SvtFileDialog Class Referencefinal

#include <iodlg.hxx>

Inheritance diagram for SvtFileDialog:
[legend]
Collaboration diagram for SvtFileDialog:
[legend]

Public Member Functions

 SvtFileDialog (weld::Window *pParent, PickerFlags nBits)
 
virtual ~SvtFileDialog () override
 
virtual short run () override
 
void FileSelect ()
 
void FilterSelect () override
 
void SetDenyList (const css::uno::Sequence< OUString > &rDenyList) override
 
const css::uno::Sequence< OUString > & GetDenyList () const override
 
void SetStandardDir (const OUString &rStdDir) override
 
const OUString & GetStandardDir () const override
 
std::vector< OUString > GetPathList () const override
 
void AddFilter (const OUString &rFilter, const OUString &rType) override
 
void AddFilterGroup (const OUString &_rFilter, const css::uno::Sequence< css::beans::StringPair > &rFilters) override
 
void SetCurFilter (const OUString &rFilter) override
 
OUString GetCurFilter () const override
 
sal_uInt16 GetFilterCount () const
 
const OUString & GetFilterName (sal_uInt16 nPos) const
 
void PrevLevel_Impl ()
 
void OpenURL_Impl (const OUString &rURL)
 
SvtFileViewGetView () override
 
void InitSize ()
 
void UpdateControls (const OUString &rURL) override
 
void EnableAutocompletion (bool _bEnable=true) override
 
void SetFileCallback (::svt::IFilePickerListener *pNotifier) override
 
sal_Int32 getAvailableWidth () override
 
sal_Int32 getAvailableHeight () override
 
void setImage (const css::uno::Any &rImage) override
 
bool getShowState () override
 
bool isAutoExtensionEnabled () const
 
OUString getCurrentFileText () const override
 
void setCurrentFileText (const OUString &_rText, bool _bSelectAll=false) override
 
void onAsyncOperationStarted () override
 
void onAsyncOperationFinished () override
 
void RemovablePlaceSelected (bool enable=true)
 
void SetPath (const OUString &rNewURL) override
 
void SetHasFilename (bool bHasFilename) override
 
const OUString & GetPath () override
 
void SetDefaultExt (const OUString &rExt)
 
void EraseDefaultExt (sal_Int32 _nIndex=0)
 
const OUString & GetDefaultExt () const
 
bool ContentIsFolder (const OUString &rURL) override
 
bool ContentHasParentFolder (const OUString &rURL)
 
bool ContentCanMakeFolder (const OUString &rURL)
 
bool ContentGetTitle (const OUString &rURL, OUString &rTitle)
 
- Public Member Functions inherited from SvtFileDialog_Base
 SvtFileDialog_Base (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
virtual bool PrepareExecute ()
 
virtual SvtFileViewGetView ()=0
 
virtual void SetHasFilename (bool bHasFilename)=0
 
virtual void SetDenyList (const css::uno::Sequence< OUString > &rDenyList)=0
 
virtual const css::uno::Sequence< OUString > & GetDenyList () const =0
 
virtual void SetStandardDir (const OUString &rStdDir)=0
 
virtual const OUString & GetStandardDir () const =0
 
virtual void SetPath (const OUString &rNewURL)=0
 
virtual const OUString & GetPath ()=0
 
virtual std::vector< OUString > GetPathList () const =0
 
virtual bool ContentIsFolder (const OUString &rURL)=0
 
virtual OUString getCurrentFileText () const =0
 
virtual void setCurrentFileText (const OUString &rText, bool bSelectAll=false)=0
 
virtual void AddFilter (const OUString &rFilter, const OUString &rType)=0
 
virtual void AddFilterGroup (const OUString &_rFilter, const css::uno::Sequence< css::beans::StringPair > &rFilters)=0
 
virtual OUString GetCurFilter () const =0
 
virtual void SetCurFilter (const OUString &rFilter)=0
 
virtual void FilterSelect ()=0
 
virtual void SetFileCallback (::svt::IFilePickerListener *pNotifier)=0
 
virtual void onAsyncOperationStarted ()=0
 
virtual void onAsyncOperationFinished ()=0
 
virtual void UpdateControls (const OUString &rURL)=0
 
virtual void EnableAutocompletion (bool _bEnable=true)=0
 
virtual sal_Int32 getAvailableWidth ()=0
 
virtual sal_Int32 getAvailableHeight ()=0
 
virtual void setImage (const css::uno::Any &rImage)=0
 
virtual bool getShowState ()=0
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
virtual weld::WidgetgetControl (sal_Int16 nControlId, bool bLabelControl=false) const =0
 
virtual void enableControl (sal_Int16 nControlId, bool bEnable)=0
 
virtual OUString getCurFilter () const =0
 

Static Public Member Functions

static void displayIOException (const OUString &_rURL, css::ucb::IOErrorCode _eCode)
 
- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 

Private Member Functions

 DECL_LINK (FilterSelectHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (FilterSelectTimerHdl_Impl, Timer *, void)
 
 DECL_LINK (NewFolderHdl_Impl, weld::Button &, void)
 
 DECL_LINK (OpenUrlHdl_Impl, weld::ComboBox &, bool)
 
 DECL_LINK (OpenClickHdl_Impl, weld::Button &, void)
 
 DECL_LINK (CancelHdl_Impl, weld::Button &, void)
 
 DECL_LINK (FileNameGetFocusHdl_Impl, weld::Widget &, void)
 
 DECL_LINK (FileNameModifiedHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (URLBoxModifiedHdl_Impl, weld::ComboBox &, bool)
 
 DECL_LINK (ConnectToServerPressed_Hdl, weld::Button &, void)
 
 DECL_LINK (AddPlacePressed_Hdl, weld::Button &, void)
 
 DECL_LINK (RemovePlacePressed_Hdl, weld::Button &, void)
 
 DECL_LINK (PreviewSizeAllocHdl, const Size &, void)
 
void OpenHdl_Impl (void const *pVoid)
 
SvtFileDialogFilter_ImplFindFilter_Impl (const OUString &_rFilter, bool _bMultiExt, bool &_rFilterChanged)
 find a filter with the given wildcard More...
 
void ExecuteFilter ()
 
void OpenMultiSelection_Impl ()
 
void AddControls_Impl ()
 
 DECL_LINK (SelectHdl_Impl, SvtFileView *, void)
 
 DECL_LINK (DblClickHdl_Impl, SvtFileView *, bool)
 
 DECL_LINK (EntrySelectHdl_Impl, weld::ComboBox &, void)
 
 DECL_LINK (OpenDoneHdl_Impl, SvtFileView *, void)
 
 DECL_LINK (AutoExtensionHdl_Impl, weld::Toggleable &, void)
 
 DECL_LINK (ClickHdl_Impl, weld::Toggleable &, void)
 
 DECL_LINK (PlayButtonHdl_Impl, weld::Button &, void)
 
 DECL_LINK (SizeAllocHdl, const Size &, void)
 
void EnableUI (bool _bEnable)
 enables or disables the complete UI of the file picker, with only offering a cancel button More...
 
void EnableControl (weld::Widget *pControl, bool bEnable)
 enables or disables a control More...
 
virtual bool PrepareExecute () override
 
SvtFileDialogFilter_ImplimplAddFilter (const OUString &_rFilter, const OUString &_rType)
 
void createNewUserFilter (const OUString &_rNewFilter)
 updates m_xUserFilter with a new filter More...
 
AdjustFilterFlags adjustFilter (const OUString &_rFilter)
 
virtual weld::WidgetgetControl (sal_Int16 nControlId, bool bLabelControl=false) const override
 
virtual void enableControl (sal_Int16 _nControlId, bool _bEnable) override
 
virtual OUString getCurFilter () const override
 
OUString implGetInitialURL (const OUString &_rPath, std::u16string_view _rFallback)
 
void executeAsync (::svt::AsyncPickerAction::Action _eAction, const OUString &_rURL, const OUString &_rFilter)
 executes a certain FileView action asynchronously More...
 
void initDefaultPlaces ()
 

Static Private Member Functions

static bool IsolateFilterFromPath_Impl (OUString &rPath, OUString &rFilter)
 
static void appendDefaultExtension (OUString &_rFileName, std::u16string_view _rFilterDefaultExtension, const OUString &_rFilterExtensions)
 helper function to check and append the default filter extension if necessary. More...
 

Private Attributes

std::unique_ptr< weld::CheckButtonm_xCbReadOnly
 
std::unique_ptr< weld::CheckButtonm_xCbLinkBox
 
std::unique_ptr< weld::CheckButtonm_xCbPreviewBox
 
std::unique_ptr< weld::CheckButtonm_xCbSelection
 
std::unique_ptr< weld::Buttonm_xPbPlay
 
std::unique_ptr< weld::Widgetm_xPreviewFrame
 
std::unique_ptr< weld::Imagem_xPrevBmp
 
std::unique_ptr< weld::Containerm_xContainer
 
std::unique_ptr< SvtFileViewm_xFileView
 
::svt::IFilePickerListenerm_pFileNotifier
 
std::unique_ptr< SvtExpFileDlg_Implm_xImpl
 
Size m_aPreviewSize
 
PickerFlags m_nPickerFlags
 
bool m_bIsInExecute: 1
 
::svt::SmartContent m_aContent
 
::std::set< weld::Widget * > m_aDisabledControls
 
::utl::OConfigurationNode m_aConfiguration
 
::rtl::Reference< ::svt::AsyncPickerActionm_pCurrentAsyncAction
 
bool m_bInExecuteAsync
 
bool m_bHasFilename
 
OUString m_aPath
 
OUString m_aDefExt
 

Additional Inherited Members

- Protected Member Functions inherited from svt::IFilePickerController
 ~IFilePickerController ()
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 53 of file iodlg.hxx.

Constructor & Destructor Documentation

◆ SvtFileDialog()

SvtFileDialog::SvtFileDialog ( weld::Window pParent,
PickerFlags  nBits 
)

◆ ~SvtFileDialog()

SvtFileDialog::~SvtFileDialog ( )
overridevirtual

Member Function Documentation

◆ AddControls_Impl()

void SvtFileDialog::AddControls_Impl ( )
private

◆ AddFilter()

void SvtFileDialog::AddFilter ( const OUString &  rFilter,
const OUString &  rType 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1712 of file iodlg.cxx.

References implAddFilter(), m_bIsInExecute, and SAL_WARN_IF.

◆ AddFilterGroup()

void SvtFileDialog::AddFilterGroup ( const OUString &  _rFilter,
const css::uno::Sequence< css::beans::StringPair > &  rFilters 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1719 of file iodlg.cxx.

References implAddFilter(), m_bIsInExecute, and SAL_WARN_IF.

◆ adjustFilter()

AdjustFilterFlags SvtFileDialog::adjustFilter ( const OUString &  _rFilter)
private

Definition at line 551 of file iodlg.cxx.

References Changed, createNewUserFilter(), FindFilter_Impl(), NONE, NonEmpty, and UserFilter.

Referenced by OpenHdl_Impl(), and PrepareExecute().

◆ appendDefaultExtension()

void SvtFileDialog::appendDefaultExtension ( OUString &  _rFileName,
std::u16string_view  _rFilterDefaultExtension,
const OUString &  _rFilterExtensions 
)
staticprivate

helper function to check and append the default filter extension if necessary.

The function checks if the specified filename already contains one of the valid extensions of the specified filter. If not the filter default extension is appended to the filename.

Parameters
_rFileNamethe filename which is checked and extended if necessary.
_rFilterDefaultExtensionthe default extension of the used filter.
_rFilterExtensionsa list of one or more valid filter extensions of the used filter.

Definition at line 2254 of file iodlg.cxx.

References o3tl::ends_with(), FILEDIALOG_DEF_EXTSEP, FILEDIALOG_FILTER_ALL, o3tl::getToken(), and nPos.

Referenced by OpenHdl_Impl().

◆ ContentCanMakeFolder()

bool SvtFileDialog::ContentCanMakeFolder ( const OUString &  rURL)

◆ ContentGetTitle()

bool SvtFileDialog::ContentGetTitle ( const OUString &  rURL,
OUString &  rTitle 
)

◆ ContentHasParentFolder()

bool SvtFileDialog::ContentHasParentFolder ( const OUString &  rURL)

◆ ContentIsFolder()

bool SvtFileDialog::ContentIsFolder ( const OUString &  rURL)
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 213 of file iodlg.hxx.

References svt::SmartContent::isFolder(), svt::SmartContent::isValid(), and m_aContent.

◆ createNewUserFilter()

void SvtFileDialog::createNewUserFilter ( const OUString &  _rNewFilter)
private

updates m_xUserFilter with a new filter

No checks for necessity are made.

Definition at line 529 of file iodlg.cxx.

References EraseDefaultExt(), FILEDIALOG_FILTER_ALL, m_xImpl, and SetDefaultExt().

Referenced by adjustFilter(), and FindFilter_Impl().

◆ DECL_LINK() [1/21]

SvtFileDialog::DECL_LINK ( AddPlacePressed_Hdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/21]

SvtFileDialog::DECL_LINK ( AutoExtensionHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/21]

SvtFileDialog::DECL_LINK ( CancelHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [4/21]

SvtFileDialog::DECL_LINK ( ClickHdl_Impl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [5/21]

SvtFileDialog::DECL_LINK ( ConnectToServerPressed_Hdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [6/21]

SvtFileDialog::DECL_LINK ( DblClickHdl_Impl  ,
SvtFileView ,
bool   
)
private

◆ DECL_LINK() [7/21]

SvtFileDialog::DECL_LINK ( EntrySelectHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [8/21]

SvtFileDialog::DECL_LINK ( FileNameGetFocusHdl_Impl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [9/21]

SvtFileDialog::DECL_LINK ( FileNameModifiedHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [10/21]

SvtFileDialog::DECL_LINK ( FilterSelectHdl_Impl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [11/21]

SvtFileDialog::DECL_LINK ( FilterSelectTimerHdl_Impl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [12/21]

SvtFileDialog::DECL_LINK ( NewFolderHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [13/21]

SvtFileDialog::DECL_LINK ( OpenClickHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [14/21]

SvtFileDialog::DECL_LINK ( OpenDoneHdl_Impl  ,
SvtFileView ,
void   
)
private

◆ DECL_LINK() [15/21]

SvtFileDialog::DECL_LINK ( OpenUrlHdl_Impl  ,
weld::ComboBox ,
bool   
)
private

◆ DECL_LINK() [16/21]

SvtFileDialog::DECL_LINK ( PlayButtonHdl_Impl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [17/21]

SvtFileDialog::DECL_LINK ( PreviewSizeAllocHdl  ,
const Size ,
void   
)
private

◆ DECL_LINK() [18/21]

SvtFileDialog::DECL_LINK ( RemovePlacePressed_Hdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [19/21]

SvtFileDialog::DECL_LINK ( SelectHdl_Impl  ,
SvtFileView ,
void   
)
private

◆ DECL_LINK() [20/21]

SvtFileDialog::DECL_LINK ( SizeAllocHdl  ,
const Size ,
void   
)
private

◆ DECL_LINK() [21/21]

SvtFileDialog::DECL_LINK ( URLBoxModifiedHdl_Impl  ,
weld::ComboBox ,
bool   
)
private

◆ displayIOException()

void SvtFileDialog::displayIOException ( const OUString &  _rURL,
css::ucb::IOErrorCode  _eCode 
)
static

Definition at line 1379 of file iodlg.cxx.

References Any, Exception, and TOOLS_WARN_EXCEPTION.

Referenced by svt::IMPL_LINK().

◆ EnableAutocompletion()

void SvtFileDialog::EnableAutocompletion ( bool  _bEnable = true)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 901 of file iodlg.cxx.

References m_xImpl.

◆ enableControl()

void SvtFileDialog::enableControl ( sal_Int16  _nControlId,
bool  _bEnable 
)
overrideprivatevirtual

Implements svt::IFilePickerController.

Definition at line 2028 of file iodlg.cxx.

References EnableControl(), getControl(), and nControlId.

◆ EnableControl()

void SvtFileDialog::EnableControl ( weld::Widget pControl,
bool  bEnable 
)
private

enables or disables a control

You are strongly encouraged to prefer this method over pControl->Enable( bEnable ). See <member>EnableUI</member> for details.

Definition at line 1432 of file iodlg.cxx.

References m_aDisabledControls, SAL_WARN, and weld::Widget::set_sensitive().

Referenced by enableControl().

◆ EnableUI()

void SvtFileDialog::EnableUI ( bool  _bEnable)
private

enables or disables the complete UI of the file picker, with only offering a cancel button

This method preserves the "enabled" state of its controls in the following sense: If you disable a certain control, then disable the dialog UI, then enable the dialog UI, the control will still be disabled. This is under the assumption that you'll use EnableControl. Direct access to the control (such as pControl->Enable()) will break this.

Definition at line 1419 of file iodlg.cxx.

References m_aDisabledControls, and weld::GenericDialogController::m_xDialog.

Referenced by onAsyncOperationFinished(), and onAsyncOperationStarted().

◆ EraseDefaultExt()

void SvtFileDialog::EraseDefaultExt ( sal_Int32  _nIndex = 0)
inline

Definition at line 286 of file iodlg.hxx.

References m_aDefExt.

Referenced by createNewUserFilter(), and PrepareExecute().

◆ executeAsync()

void SvtFileDialog::executeAsync ( ::svt::AsyncPickerAction::Action  _eAction,
const OUString &  _rURL,
const OUString &  _rFilter 
)
private

executes a certain FileView action asynchronously

Definition at line 1616 of file iodlg.cxx.

References GetDenyList(), utl::OConfigurationNode::getNodeValue(), m_aConfiguration, m_bInExecuteAsync, m_pCurrentAsyncAction, m_xFileView, and SAL_WARN_IF.

Referenced by ExecuteFilter(), OpenURL_Impl(), and PrevLevel_Impl().

◆ ExecuteFilter()

void SvtFileDialog::ExecuteFilter ( )
private

Definition at line 1067 of file iodlg.cxx.

References executeAsync(), and m_xImpl.

Referenced by OpenHdl_Impl().

◆ FileSelect()

void SvtFileDialog::FileSelect ( )

◆ FilterSelect()

void SvtFileDialog::FilterSelect ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1644 of file iodlg.cxx.

References CTRL_STATE_CHANGED, m_pFileNotifier, and svt::IFilePickerListener::notify().

Referenced by PrepareExecute().

◆ FindFilter_Impl()

SvtFileDialogFilter_Impl * SvtFileDialog::FindFilter_Impl ( const OUString &  _rFilter,
bool  _bMultiExt,
bool &  _rFilterChanged 
)
private

find a filter with the given wildcard

Parameters
_rFilterthe wildcard pattern to look for in the filter list
_bMultiExtallow for filters with more than one extension pattern
_rFilterChangedset to <TRUE> if the filter changed
Returns
the filter which has been found

Definition at line 1008 of file iodlg.cxx.

References createNewUserFilter(), FILEDIALOG_DEF_EXTSEP, SvtFileDialogFilter_Impl::GetType(), and m_xImpl.

Referenced by adjustFilter().

◆ getAvailableHeight()

sal_Int32 SvtFileDialog::getAvailableHeight ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2158 of file iodlg.cxx.

References Size::Height(), m_aPreviewSize, and m_xPrevBmp.

◆ getAvailableWidth()

sal_Int32 SvtFileDialog::getAvailableWidth ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2150 of file iodlg.cxx.

References m_aPreviewSize, m_xPrevBmp, and Size::Width().

◆ getControl()

weld::Widget * SvtFileDialog::getControl ( sal_Int16  nControlId,
bool  bLabelControl = false 
) const
overrideprivatevirtual

◆ GetCurFilter()

OUString SvtFileDialog::GetCurFilter ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1749 of file iodlg.cxx.

References SvtFileDialogFilter_Impl::GetName(), and m_xImpl.

Referenced by getCurFilter().

◆ getCurFilter()

OUString SvtFileDialog::getCurFilter ( ) const
overrideprivatevirtual

Implements svt::IFilePickerController.

Definition at line 1760 of file iodlg.cxx.

References GetCurFilter().

◆ getCurrentFileText()

OUString SvtFileDialog::getCurrentFileText ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2189 of file iodlg.cxx.

References m_xImpl.

◆ GetDefaultExt()

const OUString & SvtFileDialog::GetDefaultExt ( ) const
inline

Definition at line 291 of file iodlg.hxx.

References m_aDefExt.

Referenced by OpenHdl_Impl(), and PrepareExecute().

◆ GetDenyList()

const css::uno::Sequence< OUString > & SvtFileDialog::GetDenyList ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1670 of file iodlg.cxx.

References m_xImpl.

Referenced by executeAsync().

◆ GetFilterCount()

sal_uInt16 SvtFileDialog::GetFilterCount ( ) const

Definition at line 1765 of file iodlg.cxx.

References m_xImpl.

Referenced by GetFilterName(), and PrepareExecute().

◆ GetFilterName()

const OUString & SvtFileDialog::GetFilterName ( sal_uInt16  nPos) const

Definition at line 1770 of file iodlg.cxx.

References GetFilterCount(), m_xImpl, and nPos.

Referenced by PrepareExecute().

◆ GetPath()

const OUString & SvtFileDialog::GetPath ( )
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 275 of file iodlg.hxx.

References m_aPath.

◆ GetPathList()

std::vector< OUString > SvtFileDialog::GetPathList ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1795 of file iodlg.cxx.

References m_aPath, m_bIsInExecute, m_xFileView, and m_xImpl.

◆ getShowState()

bool SvtFileDialog::getShowState ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2212 of file iodlg.cxx.

References m_xPreviewFrame.

◆ GetStandardDir()

const OUString & SvtFileDialog::GetStandardDir ( ) const
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1680 of file iodlg.cxx.

References m_xImpl.

Referenced by initDefaultPlaces(), and PrepareExecute().

◆ GetView()

SvtFileView * SvtFileDialog::GetView ( )
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 297 of file iodlg.hxx.

References m_xFileView.

Referenced by SvtUpButton_Impl::FillURLMenu().

◆ implAddFilter()

SvtFileDialogFilter_Impl * SvtFileDialog::implAddFilter ( const OUString &  _rFilter,
const OUString &  _rType 
)
private

Definition at line 1701 of file iodlg.cxx.

References m_xImpl.

Referenced by AddFilter(), AddFilterGroup(), and PrepareExecute().

◆ implGetInitialURL()

OUString SvtFileDialog::implGetInitialURL ( const OUString &  _rPath,
std::u16string_view  _rFallback 
)
private

◆ initDefaultPlaces()

void SvtFileDialog::initDefaultPlaces ( )
private

Definition at line 2281 of file iodlg.cxx.

References FpsResId(), GetStandardDir(), and m_xImpl.

Referenced by AddControls_Impl().

◆ InitSize()

void SvtFileDialog::InitSize ( )

◆ isAutoExtensionEnabled()

bool SvtFileDialog::isAutoExtensionEnabled ( ) const

Definition at line 2207 of file iodlg.cxx.

References m_xImpl.

◆ IsolateFilterFromPath_Impl()

bool SvtFileDialog::IsolateFilterFromPath_Impl ( OUString &  rPath,
OUString &  rFilter 
)
staticprivate

◆ onAsyncOperationFinished()

void SvtFileDialog::onAsyncOperationFinished ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1364 of file iodlg.cxx.

References EnableUI(), m_bInExecuteAsync, m_pCurrentAsyncAction, and m_xImpl.

◆ onAsyncOperationStarted()

void SvtFileDialog::onAsyncOperationStarted ( )
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1356 of file iodlg.cxx.

References EnableUI(), and m_xImpl.

◆ OpenHdl_Impl()

void SvtFileDialog::OpenHdl_Impl ( void const *  pVoid)
private

◆ OpenMultiSelection_Impl()

void SvtFileDialog::OpenMultiSelection_Impl ( )
private

◆ OpenURL_Impl()

void SvtFileDialog::OpenURL_Impl ( const OUString &  rURL)

Definition at line 1694 of file iodlg.cxx.

References executeAsync(), m_xFileView, and m_xImpl.

Referenced by OpenHdl_Impl(), PrepareExecute(), and PlacesListBox::updateView().

◆ PrepareExecute()

bool SvtFileDialog::PrepareExecute ( )
overrideprivatevirtual

◆ PrevLevel_Impl()

void SvtFileDialog::PrevLevel_Impl ( )

Definition at line 1686 of file iodlg.cxx.

References executeAsync(), and m_xFileView.

◆ RemovablePlaceSelected()

void SvtFileDialog::RemovablePlaceSelected ( bool  enable = true)

Definition at line 1374 of file iodlg.cxx.

References m_xImpl.

◆ run()

short SvtFileDialog::run ( )
overridevirtual

◆ SetCurFilter()

void SvtFileDialog::SetCurFilter ( const OUString &  rFilter)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1731 of file iodlg.cxx.

References SvtFileDialogFilter_Impl::GetName(), m_bIsInExecute, m_xImpl, nPos, and SAL_WARN_IF.

◆ setCurrentFileText()

void SvtFileDialog::setCurrentFileText ( const OUString &  _rText,
bool  _bSelectAll = false 
)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2197 of file iodlg.cxx.

References m_xImpl.

◆ SetDefaultExt()

void SvtFileDialog::SetDefaultExt ( const OUString &  rExt)
inline

Definition at line 281 of file iodlg.hxx.

References m_aDefExt.

Referenced by createNewUserFilter(), and PrepareExecute().

◆ SetDenyList()

void SvtFileDialog::SetDenyList ( const css::uno::Sequence< OUString > &  rDenyList)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 1664 of file iodlg.cxx.

References m_xImpl.

◆ SetFileCallback()

void SvtFileDialog::SetFileCallback ( ::svt::IFilePickerListener pNotifier)
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 187 of file iodlg.hxx.

References m_pFileNotifier.

◆ SetHasFilename()

void SvtFileDialog::SetHasFilename ( bool  bHasFilename)
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 269 of file iodlg.hxx.

References m_bHasFilename.

◆ setImage()

void SvtFileDialog::setImage ( const css::uno::Any &  rImage)
overridevirtual

Implements SvtFileDialog_Base.

Definition at line 2166 of file iodlg.cxx.

References aData, m_xPrevBmp, m_xPreviewFrame, and ReadDIBBitmapEx().

◆ SetPath()

void SvtFileDialog::SetPath ( const OUString &  rNewURL)
inlineoverridevirtual

Implements SvtFileDialog_Base.

Definition at line 263 of file iodlg.hxx.

References m_aPath.

◆ SetStandardDir()

void SvtFileDialog::SetStandardDir ( const OUString &  rStdDir)
overridevirtual

◆ UpdateControls()

void SvtFileDialog::UpdateControls ( const OUString &  rURL)
overridevirtual

Member Data Documentation

◆ m_aConfiguration

::utl::OConfigurationNode SvtFileDialog::m_aConfiguration
private

Definition at line 75 of file iodlg.hxx.

Referenced by executeAsync(), and SvtFileDialog().

◆ m_aContent

::svt::SmartContent SvtFileDialog::m_aContent
private

◆ m_aDefExt

OUString SvtFileDialog::m_aDefExt
private

Definition at line 130 of file iodlg.hxx.

Referenced by EraseDefaultExt(), GetDefaultExt(), and SetDefaultExt().

◆ m_aDisabledControls

::std::set<weld::Widget*> SvtFileDialog::m_aDisabledControls
private

Definition at line 73 of file iodlg.hxx.

Referenced by EnableControl(), and EnableUI().

◆ m_aPath

OUString SvtFileDialog::m_aPath
private

◆ m_aPreviewSize

Size SvtFileDialog::m_aPreviewSize
private

Definition at line 67 of file iodlg.hxx.

Referenced by AddControls_Impl(), getAvailableHeight(), and getAvailableWidth().

◆ m_bHasFilename

bool SvtFileDialog::m_bHasFilename
private

Definition at line 79 of file iodlg.hxx.

Referenced by implGetInitialURL(), PrepareExecute(), and SetHasFilename().

◆ m_bInExecuteAsync

bool SvtFileDialog::m_bInExecuteAsync
private

Definition at line 78 of file iodlg.hxx.

Referenced by executeAsync(), and onAsyncOperationFinished().

◆ m_bIsInExecute

bool SvtFileDialog::m_bIsInExecute
private

Definition at line 69 of file iodlg.hxx.

Referenced by AddFilter(), AddFilterGroup(), GetPathList(), run(), and SetCurFilter().

◆ m_nPickerFlags

PickerFlags SvtFileDialog::m_nPickerFlags
private

Definition at line 68 of file iodlg.hxx.

Referenced by AddControls_Impl().

◆ m_pCurrentAsyncAction

::rtl::Reference< ::svt::AsyncPickerAction > SvtFileDialog::m_pCurrentAsyncAction
private

Definition at line 77 of file iodlg.hxx.

Referenced by executeAsync(), onAsyncOperationFinished(), and run().

◆ m_pFileNotifier

::svt::IFilePickerListener* SvtFileDialog::m_pFileNotifier
private

Definition at line 65 of file iodlg.hxx.

Referenced by FileSelect(), FilterSelect(), SetFileCallback(), and UpdateControls().

◆ m_xCbLinkBox

std::unique_ptr<weld::CheckButton> SvtFileDialog::m_xCbLinkBox
private

Definition at line 57 of file iodlg.hxx.

Referenced by AddControls_Impl(), and getControl().

◆ m_xCbPreviewBox

std::unique_ptr<weld::CheckButton> SvtFileDialog::m_xCbPreviewBox
private

Definition at line 58 of file iodlg.hxx.

Referenced by AddControls_Impl(), and getControl().

◆ m_xCbReadOnly

std::unique_ptr<weld::CheckButton> SvtFileDialog::m_xCbReadOnly
private

Definition at line 56 of file iodlg.hxx.

Referenced by getControl(), and SvtFileDialog().

◆ m_xCbSelection

std::unique_ptr<weld::CheckButton> SvtFileDialog::m_xCbSelection
private

Definition at line 59 of file iodlg.hxx.

Referenced by AddControls_Impl(), getControl(), and SvtFileDialog().

◆ m_xContainer

std::unique_ptr<weld::Container> SvtFileDialog::m_xContainer
private

Definition at line 63 of file iodlg.hxx.

Referenced by SvtFileDialog().

◆ m_xFileView

std::unique_ptr<SvtFileView> SvtFileDialog::m_xFileView
private

◆ m_xImpl

std::unique_ptr<SvtExpFileDlg_Impl> SvtFileDialog::m_xImpl
private

◆ m_xPbPlay

std::unique_ptr<weld::Button> SvtFileDialog::m_xPbPlay
private

Definition at line 60 of file iodlg.hxx.

Referenced by AddControls_Impl(), and getControl().

◆ m_xPrevBmp

std::unique_ptr<weld::Image> SvtFileDialog::m_xPrevBmp
private

Definition at line 62 of file iodlg.hxx.

Referenced by AddControls_Impl(), getAvailableHeight(), getAvailableWidth(), and setImage().

◆ m_xPreviewFrame

std::unique_ptr<weld::Widget> SvtFileDialog::m_xPreviewFrame
private

Definition at line 61 of file iodlg.hxx.

Referenced by AddControls_Impl(), getShowState(), and setImage().


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