LibreOffice Module fpicker (master) 1
|
#include <iodlg.hxx>
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) |
SvtFileView * | GetView () 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 SvtFileView * | GetView ()=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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::Widget * | getControl (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_Impl * | FindFilter_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_Impl * | implAddFilter (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::Widget * | getControl (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::CheckButton > | m_xCbReadOnly |
std::unique_ptr< weld::CheckButton > | m_xCbLinkBox |
std::unique_ptr< weld::CheckButton > | m_xCbPreviewBox |
std::unique_ptr< weld::CheckButton > | m_xCbSelection |
std::unique_ptr< weld::Button > | m_xPbPlay |
std::unique_ptr< weld::Widget > | m_xPreviewFrame |
std::unique_ptr< weld::Image > | m_xPrevBmp |
std::unique_ptr< weld::Container > | m_xContainer |
std::unique_ptr< SvtFileView > | m_xFileView |
::svt::IFilePickerListener * | m_pFileNotifier |
std::unique_ptr< SvtExpFileDlg_Impl > | m_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::AsyncPickerAction > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
SvtFileDialog::SvtFileDialog | ( | weld::Window * | pParent, |
PickerFlags | nBits | ||
) |
read our settings from the configuration
Definition at line 277 of file iodlg.cxx.
References AddControls_Impl(), FILEDLG_MODE_OPEN, FILEDLG_MODE_SAVE, FILEDLG_TYPE_FILEDLG, FILEDLG_TYPE_PATHDLG, FpsResId(), INetURLObject::GetMainURL(), HID_FILEDLG_STANDARD, HID_FILEOPEN_LEVELUP, HID_FILEOPEN_READONLY, HID_FILESAVE_AUTOEXTENSION, HID_FILESAVE_CREATEDIRECTORY, HID_FILESAVE_CUSTOMIZEFILTER, HID_FILESAVE_DIALOG, HID_FILESAVE_DOSAVE, HID_FILESAVE_FILETYPE, HID_FILESAVE_FILEURL, HID_FILESAVE_FILEVIEW, HID_FILESAVE_LEVELUP, HID_FILESAVE_SAVEWITHPASSWORD, HID_FILESAVE_SELECTION, HID_FILESAVE_TEMPLATE, LINK, m_aConfiguration, weld::GenericDialogController::m_xBuilder, m_xCbReadOnly, m_xCbSelection, m_xContainer, weld::GenericDialogController::m_xDialog, m_xFileView, m_xImpl, MultiSelection, INetURLObject::NONE, Password, PathDialog, ReadOnly, SaveAs, and SetStandardDir().
|
overridevirtual |
Definition at line 464 of file iodlg.cxx.
References vcl::All, Any, comphelper::ConfigurationChanges::create(), i, weld::GenericDialogController::m_xDialog, m_xFileView, m_xImpl, SvtViewOptions::SetUserItem(), and SvtViewOptions::SetWindowState().
|
private |
Definition at line 2038 of file iodlg.cxx.
References AutoExtension, FilterOptions, FpsResId(), Size::Height(), HID_FILEDLG_LINK_CB, HID_FILEDLG_PREVIEW_CB, HID_FILEOPEN_IMAGE_ANCHOR, HID_FILEOPEN_IMAGE_TEMPLATE, HID_FILEOPEN_VERSION, HID_FILESAVE_DOPLAY, ImageAnchor, ImageTemplate, initDefaultPlaces(), InsertAsLink, LINK, m_aPreviewSize, m_nPickerFlags, weld::GenericDialogController::m_xBuilder, m_xCbLinkBox, m_xCbPreviewBox, m_xCbSelection, m_xImpl, m_xPbPlay, m_xPrevBmp, m_xPreviewFrame, PlayButton, Selection, ShowPreview, ShowVersions, Templates, and Size::Width().
Referenced by SvtFileDialog().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1712 of file iodlg.cxx.
References implAddFilter(), m_bIsInExecute, and SAL_WARN_IF.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1719 of file iodlg.cxx.
References implAddFilter(), m_bIsInExecute, and SAL_WARN_IF.
|
private |
Definition at line 551 of file iodlg.cxx.
References Changed, createNewUserFilter(), FindFilter_Impl(), NONE, NonEmpty, and UserFilter.
Referenced by OpenHdl_Impl(), and PrepareExecute().
|
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.
_rFileName | the filename which is checked and extended if necessary. |
_rFilterDefaultExtension | the default extension of the used filter. |
_rFilterExtensions | a 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().
bool SvtFileDialog::ContentCanMakeFolder | ( | const OUString & | rURL | ) |
Definition at line 2230 of file iodlg.cxx.
References svt::SmartContent::bindTo(), svt::SmartContent::canCreateFolder(), svt::SmartContent::isInvalid(), svt::SmartContent::isValid(), and m_aContent.
bool SvtFileDialog::ContentGetTitle | ( | const OUString & | rURL, |
OUString & | rTitle | ||
) |
Definition at line 2240 of file iodlg.cxx.
References svt::SmartContent::bindTo(), svt::SmartContent::getTitle(), svt::SmartContent::isInvalid(), svt::SmartContent::isValid(), and m_aContent.
Referenced by SvtUpButton_Impl::FillURLMenu().
bool SvtFileDialog::ContentHasParentFolder | ( | const OUString & | rURL | ) |
Definition at line 2220 of file iodlg.cxx.
References svt::SmartContent::bindTo(), svt::SmartContent::hasParentFolder(), svt::SmartContent::isInvalid(), svt::SmartContent::isValid(), and m_aContent.
|
inlineoverridevirtual |
Implements SvtFileDialog_Base.
Definition at line 213 of file iodlg.hxx.
References svt::SmartContent::isFolder(), svt::SmartContent::isValid(), and m_aContent.
|
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().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
static |
Definition at line 1379 of file iodlg.cxx.
References Any, Exception, and TOOLS_WARN_EXCEPTION.
Referenced by svt::IMPL_LINK().
|
overridevirtual |
|
overrideprivatevirtual |
Implements svt::IFilePickerController.
Definition at line 2028 of file iodlg.cxx.
References EnableControl(), getControl(), and nControlId.
|
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().
|
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().
|
inline |
Definition at line 286 of file iodlg.hxx.
References m_aDefExt.
Referenced by createNewUserFilter(), and PrepareExecute().
|
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().
|
private |
Definition at line 1067 of file iodlg.cxx.
References executeAsync(), and m_xImpl.
Referenced by OpenHdl_Impl().
void SvtFileDialog::FileSelect | ( | ) |
Definition at line 1637 of file iodlg.cxx.
References FILE_SELECTION_CHANGED, m_pFileNotifier, and svt::IFilePickerListener::notify().
|
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().
|
private |
find a filter with the given wildcard
_rFilter | the wildcard pattern to look for in the filter list |
_bMultiExt | allow for filters with more than one extension pattern |
_rFilterChanged | set to <TRUE> if the filter changed |
Definition at line 1008 of file iodlg.cxx.
References createNewUserFilter(), FILEDIALOG_DEF_EXTSEP, SvtFileDialogFilter_Impl::GetType(), and m_xImpl.
Referenced by adjustFilter().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 2158 of file iodlg.cxx.
References Size::Height(), m_aPreviewSize, and m_xPrevBmp.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 2150 of file iodlg.cxx.
References m_aPreviewSize, m_xPrevBmp, and Size::Width().
|
overrideprivatevirtual |
Implements svt::IFilePickerController.
Definition at line 1890 of file iodlg.cxx.
References svt::InternalFilePickerElementIds::FIXEDTEXT_CURRENTFOLDER, m_xCbLinkBox, m_xCbPreviewBox, m_xCbReadOnly, m_xCbSelection, m_xFileView, m_xImpl, m_xPbPlay, nControlId, svt::InternalFilePickerElementIds::PUSHBUTTON_HELP, SAL_WARN, svt::InternalFilePickerElementIds::TOOLBOXBUTTON_LEVEL_UP, and svt::InternalFilePickerElementIds::TOOLBOXBUTTON_NEW_FOLDER.
Referenced by enableControl().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1749 of file iodlg.cxx.
References SvtFileDialogFilter_Impl::GetName(), and m_xImpl.
Referenced by getCurFilter().
|
overrideprivatevirtual |
Implements svt::IFilePickerController.
Definition at line 1760 of file iodlg.cxx.
References GetCurFilter().
|
overridevirtual |
|
inline |
Definition at line 291 of file iodlg.hxx.
References m_aDefExt.
Referenced by OpenHdl_Impl(), and PrepareExecute().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1670 of file iodlg.cxx.
References m_xImpl.
Referenced by executeAsync().
sal_uInt16 SvtFileDialog::GetFilterCount | ( | ) | const |
Definition at line 1765 of file iodlg.cxx.
References m_xImpl.
Referenced by GetFilterName(), and PrepareExecute().
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().
|
inlineoverridevirtual |
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1795 of file iodlg.cxx.
References m_aPath, m_bIsInExecute, m_xFileView, and m_xImpl.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 2212 of file iodlg.cxx.
References m_xPreviewFrame.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1680 of file iodlg.cxx.
References m_xImpl.
Referenced by initDefaultPlaces(), and PrepareExecute().
|
inlineoverridevirtual |
Implements SvtFileDialog_Base.
Definition at line 297 of file iodlg.hxx.
References m_xFileView.
Referenced by SvtUpButton_Impl::FillURLMenu().
|
private |
Definition at line 1701 of file iodlg.cxx.
References m_xImpl.
Referenced by AddFilter(), AddFilterGroup(), and PrepareExecute().
|
private |
Definition at line 1273 of file iodlg.cxx.
References svt::SmartContent::bindTo(), INetURLObject::GetMainURL(), INetURLObject::hasFinalSlash(), svt::SmartContent::isFolder(), svt::SmartContent::isInvalid(), m_aContent, m_bHasFilename, INetURLObject::NONE, INetURLObject::removeSegment(), INetURLObject::setFinalSlash(), and INetURLObject::smartRel2Abs().
Referenced by PrepareExecute().
|
private |
Definition at line 2281 of file iodlg.cxx.
References FpsResId(), GetStandardDir(), and m_xImpl.
Referenced by AddControls_Impl().
void SvtFileDialog::InitSize | ( | ) |
Definition at line 1776 of file iodlg.cxx.
References Any, SvtViewOptions::Exists(), SvtViewOptions::GetUserItem(), SvtViewOptions::GetWindowState(), weld::GenericDialogController::m_xDialog, m_xFileView, and m_xImpl.
Referenced by PrepareExecute().
bool SvtFileDialog::isAutoExtensionEnabled | ( | ) | const |
|
staticprivate |
Definition at line 1815 of file iodlg.cxx.
References INetURLObject::CompareProtocolScheme(), ERRCODE_SFX_INVALIDSYNTAX, FILEDIALOG_DEF_WILDCARD, ErrorHandler::HandleError(), and comphelper::string::reverseString().
Referenced by OpenHdl_Impl(), and PrepareExecute().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1364 of file iodlg.cxx.
References EnableUI(), m_bInExecuteAsync, m_pCurrentAsyncAction, and m_xImpl.
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1356 of file iodlg.cxx.
References EnableUI(), and m_xImpl.
|
private |
Definition at line 607 of file iodlg.cxx.
References adjustFilter(), appendDefaultExtension(), svt::SmartContent::bindTo(), Changed, Application::CreateMessageDialog(), svt::SmartContent::disableInteractionHandler(), svt::SmartContent::enableDefaultInteractionHandler(), svt::SmartContent::enableOwnInteractionHandler(), ERRCODE_IO_GENERAL, ERRCODE_IO_NOTEXISTS, ERRCODE_IO_NOTEXISTSPATH, ExecuteFilter(), FILEDLG_MODE_OPEN, FILEDLG_MODE_SAVE, FILEDLG_TYPE_PATHDLG, FpsResId(), GetDefaultExt(), INetURLObject::GetMainURL(), INetURLObject::getName(), svt::SmartContent::getOwnInteractionHandler(), INetURLObject::GetProtocol(), ErrorHandler::HandleError(), INetURLObject::HasError(), svt::SmartContent::is(), svt::SmartContent::isFolder(), svt::SmartContent::isInvalid(), IsolateFilterFromPath_Impl(), INetURLObject::LAST_SEGMENT, m_aContent, m_aPath, weld::GenericDialogController::m_xDialog, m_xFileView, m_xImpl, INetURLObject::NONE, NonEmpty, OpenMultiSelection_Impl(), OpenURL_Impl(), SvtURLBox::ParseSmart(), svt::SmartContent::queryCurrentInteractionHandler(), INetURLObject::removeSegment(), RET_OK, RET_YES, INetURLObject::ToIUri, and INetURLObject::WithCharset.
|
private |
Definition at line 1076 of file iodlg.cxx.
References m_aPath, weld::GenericDialogController::m_xDialog, m_xFileView, SvtContentEntry::maURL, and RET_OK.
Referenced by OpenHdl_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().
|
overrideprivatevirtual |
Reimplemented from SvtFileDialog_Base.
Definition at line 1452 of file iodlg.cxx.
References adjustFilter(), ucbhelper::Content::createCursor(), Application::CreateMessageDialog(), svt::OFilePickerInteractionHandler::E_DOESNOTEXIST, svt::SmartContent::enableDefaultInteractionHandler(), svt::SmartContent::enableOwnInteractionHandler(), EraseDefaultExt(), FILEDIALOG_DEF_EXTSEP, FILEDIALOG_FILTER_ALL, FILEDLG_MODE_SAVE, FilterSelect(), FpsResId(), GetDefaultExt(), GetFilterCount(), GetFilterName(), INetURLObject::GetMainURL(), SvtFileDialogFilter_Impl::GetName(), INetURLObject::getName(), comphelper::getProcessComponentContext(), INetURLObject::GetProtocol(), GetStandardDir(), implAddFilter(), implGetInitialURL(), InitSize(), comphelper::LibreOfficeKit::isActive(), IsolateFilterFromPath_Impl(), INetURLObject::LAST_SEGMENT, m_aContent, m_aPath, m_bHasFilename, weld::GenericDialogController::m_xDialog, m_xImpl, INetURLObject::NONE, NonEmpty, nPos, OpenURL_Impl(), INetURLObject::removeSegment(), SaveAs, SetDefaultExt(), INetURLObject::setFinalSlash(), UpdateControls(), UserFilter, and INetURLObject::WithCharset.
Referenced by run().
void SvtFileDialog::PrevLevel_Impl | ( | ) |
Definition at line 1686 of file iodlg.cxx.
References executeAsync(), and m_xFileView.
void SvtFileDialog::RemovablePlaceSelected | ( | bool | enable = true | ) |
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 1325 of file iodlg.cxx.
References aURL, FILEDLG_TYPE_FILEDLG, svt::SmartContent::isFolder(), m_aContent, m_aPath, m_bIsInExecute, m_pCurrentAsyncAction, m_xImpl, INetURLObject::NONE, PrepareExecute(), RET_OK, and SAL_WARN_IF.
|
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.
|
overridevirtual |
|
inline |
Definition at line 281 of file iodlg.hxx.
References m_aDefExt.
Referenced by createNewUserFilter(), and PrepareExecute().
|
overridevirtual |
|
inlineoverridevirtual |
Implements SvtFileDialog_Base.
Definition at line 187 of file iodlg.hxx.
References m_pFileNotifier.
|
inlineoverridevirtual |
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 2166 of file iodlg.cxx.
References aData, m_xPrevBmp, m_xPreviewFrame, and ReadDIBBitmapEx().
|
inlineoverridevirtual |
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1656 of file iodlg.cxx.
References INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), m_xImpl, INetURLObject::NONE, SAL_WARN_IF, and INetURLObject::setFinalSlash().
Referenced by SvtFileDialog().
|
overridevirtual |
Implements SvtFileDialog_Base.
Definition at line 1086 of file iodlg.cxx.
References DIRECTORY_CHANGED, FILEDLG_TYPE_PATHDLG, INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), INetURLObject::GetScheme(), INetURLObject::getSegmentCount(), INetURLObject::hasFinalSlash(), m_aPath, m_pFileNotifier, m_xImpl, INetURLObject::NONE, svt::IFilePickerListener::notify(), INetURLObject::removeFinalSlash(), and SAL_WARN_IF.
Referenced by PrepareExecute().
|
private |
Definition at line 75 of file iodlg.hxx.
Referenced by executeAsync(), and SvtFileDialog().
|
private |
Definition at line 71 of file iodlg.hxx.
Referenced by ContentCanMakeFolder(), ContentGetTitle(), ContentHasParentFolder(), ContentIsFolder(), implGetInitialURL(), OpenHdl_Impl(), PrepareExecute(), and run().
|
private |
Definition at line 130 of file iodlg.hxx.
Referenced by EraseDefaultExt(), GetDefaultExt(), and SetDefaultExt().
|
private |
Definition at line 73 of file iodlg.hxx.
Referenced by EnableControl(), and EnableUI().
|
private |
Definition at line 129 of file iodlg.hxx.
Referenced by GetPath(), GetPathList(), OpenHdl_Impl(), OpenMultiSelection_Impl(), PrepareExecute(), run(), SetPath(), and UpdateControls().
|
private |
Definition at line 67 of file iodlg.hxx.
Referenced by AddControls_Impl(), getAvailableHeight(), and getAvailableWidth().
|
private |
Definition at line 79 of file iodlg.hxx.
Referenced by implGetInitialURL(), PrepareExecute(), and SetHasFilename().
|
private |
Definition at line 78 of file iodlg.hxx.
Referenced by executeAsync(), and onAsyncOperationFinished().
|
private |
Definition at line 69 of file iodlg.hxx.
Referenced by AddFilter(), AddFilterGroup(), GetPathList(), run(), and SetCurFilter().
|
private |
Definition at line 68 of file iodlg.hxx.
Referenced by AddControls_Impl().
|
private |
Definition at line 77 of file iodlg.hxx.
Referenced by executeAsync(), onAsyncOperationFinished(), and run().
|
private |
Definition at line 65 of file iodlg.hxx.
Referenced by FileSelect(), FilterSelect(), SetFileCallback(), and UpdateControls().
|
private |
Definition at line 57 of file iodlg.hxx.
Referenced by AddControls_Impl(), and getControl().
|
private |
Definition at line 58 of file iodlg.hxx.
Referenced by AddControls_Impl(), and getControl().
|
private |
Definition at line 56 of file iodlg.hxx.
Referenced by getControl(), and SvtFileDialog().
|
private |
Definition at line 59 of file iodlg.hxx.
Referenced by AddControls_Impl(), getControl(), and SvtFileDialog().
|
private |
Definition at line 63 of file iodlg.hxx.
Referenced by SvtFileDialog().
|
private |
Definition at line 64 of file iodlg.hxx.
Referenced by executeAsync(), getControl(), GetPathList(), GetView(), InitSize(), OpenHdl_Impl(), OpenMultiSelection_Impl(), OpenURL_Impl(), PrevLevel_Impl(), SvtFileDialog(), and ~SvtFileDialog().
|
private |
Definition at line 66 of file iodlg.hxx.
Referenced by AddControls_Impl(), createNewUserFilter(), EnableAutocompletion(), ExecuteFilter(), FindFilter_Impl(), getControl(), GetCurFilter(), getCurrentFileText(), GetDenyList(), GetFilterCount(), GetFilterName(), GetPathList(), GetStandardDir(), implAddFilter(), initDefaultPlaces(), InitSize(), isAutoExtensionEnabled(), onAsyncOperationFinished(), onAsyncOperationStarted(), OpenHdl_Impl(), OpenURL_Impl(), PrepareExecute(), RemovablePlaceSelected(), run(), SetCurFilter(), setCurrentFileText(), SetDenyList(), SetStandardDir(), SvtFileDialog(), UpdateControls(), and ~SvtFileDialog().
|
private |
Definition at line 60 of file iodlg.hxx.
Referenced by AddControls_Impl(), and getControl().
|
private |
Definition at line 62 of file iodlg.hxx.
Referenced by AddControls_Impl(), getAvailableHeight(), getAvailableWidth(), and setImage().
|
private |
Definition at line 61 of file iodlg.hxx.
Referenced by AddControls_Impl(), getShowState(), and setImage().