LibreOffice Module fpicker (master) 1
|
#include <OfficeFilePicker.hxx>
Public Member Functions | |
SvtFilePicker () | |
virtual | ~SvtFilePicker () override |
virtual void SAL_CALL | setTitle (const OUString &_rTitle) override |
virtual sal_Int16 SAL_CALL | execute () override |
virtual void SAL_CALL | setDialogTitle (const OUString &_rTitle) override |
virtual void SAL_CALL | startExecuteModal (const css::uno::Reference< css::ui::dialogs::XDialogClosedListener > &xListener) override |
virtual void SAL_CALL | setMultiSelectionMode (sal_Bool bMode) override |
virtual void SAL_CALL | setDefaultName (const OUString &aName) override |
virtual void SAL_CALL | setDisplayDirectory (const OUString &aDirectory) override |
virtual OUString SAL_CALL | getDisplayDirectory () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getFiles () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSelectedFiles () override |
virtual void SAL_CALL | setValue (sal_Int16 ElementID, sal_Int16 ControlAction, const css::uno::Any &value) override |
virtual css::uno::Any SAL_CALL | getValue (sal_Int16 ElementID, sal_Int16 ControlAction) override |
virtual void SAL_CALL | setLabel (sal_Int16 ElementID, const OUString &aValue) override |
virtual OUString SAL_CALL | getLabel (sal_Int16 ElementID) override |
virtual void SAL_CALL | enableControl (sal_Int16 ElementID, sal_Bool bEnable) override |
virtual void SAL_CALL | addFilePickerListener (const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &xListener) override |
virtual void SAL_CALL | removeFilePickerListener (const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &xListener) override |
virtual css::uno::Sequence< sal_Int16 > SAL_CALL | getSupportedImageFormats () override |
virtual sal_Int32 SAL_CALL | getTargetColorDepth () override |
virtual sal_Int32 SAL_CALL | getAvailableWidth () override |
virtual sal_Int32 SAL_CALL | getAvailableHeight () override |
virtual void SAL_CALL | setImage (sal_Int16 aImageFormat, const css::uno::Any &aImage) override |
virtual sal_Bool SAL_CALL | setShowState (sal_Bool bShowState) override |
virtual sal_Bool SAL_CALL | getShowState () override |
virtual void SAL_CALL | appendFilter (const OUString &aTitle, const OUString &aFilter) override |
virtual void SAL_CALL | setCurrentFilter (const OUString &aTitle) override |
virtual OUString SAL_CALL | getCurrentFilter () override |
virtual void SAL_CALL | appendFilterGroup (const OUString &sGroupTitle, const css::uno::Sequence< css::beans::StringPair > &aFilters) override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &l) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &l) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &sServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
Public Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from svt::OCommonPicker | |
OCommonPicker () | |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonPicker > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
virtual void | notify (sal_Int16 nEventId, sal_Int16 nControlId)=0 |
Protected Member Functions | |
virtual std::shared_ptr< SvtFileDialog_Base > | implCreateDialog (weld::Window *pParent) override |
virtual sal_Int16 | implExecutePicker () override |
virtual bool | implHandleInitializationArgument (const OUString &_rName, const css::uno::Any &_rValue) override |
handle a single argument from the XInitialization::initialize method More... | |
PickerFlags | getPickerFlags () const |
virtual void | notify (sal_Int16 _nEventId, sal_Int16 _nControlId) override |
bool | FilterNameExists (const OUString &rTitle) |
bool | FilterNameExists (const UnoFilterList &_rGroupedFilters) |
void | ensureFilterList (const OUString &_rInitialCurrentFilter) |
void | prepareExecute () |
void | DialogClosedHdl (sal_Int32 nResult) |
Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
~ImplHelper5 () SAL_NOEXCEPT | |
Protected Member Functions inherited from svt::OCommonPicker | |
const ::cppu::OBroadcastHelper & | GetBroadcastHelper () const |
::cppu::OBroadcastHelper & | GetBroadcastHelper () |
virtual | ~OCommonPicker () override |
virtual std::shared_ptr< SvtFileDialog_Base > | implCreateDialog (weld::Window *pParent)=0 |
virtual sal_Int16 | implExecutePicker ()=0 |
virtual void SAL_CALL | disposing () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 _nHandle, const css::uno::Any &_rValue) override |
virtual void SAL_CALL | setTitle (const OUString &_rTitle) |
virtual sal_Int16 SAL_CALL | execute () |
virtual void SAL_CALL | setControlProperty (const OUString &aControlName, const OUString &aControlProperty, const css::uno::Any &aValue) override |
virtual css::uno::Any SAL_CALL | getControlProperty (const OUString &aControlName, const OUString &aControlProperty) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedControls () override |
virtual sal_Bool SAL_CALL | isControlSupported (const OUString &aControlName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedControlProperties (const OUString &aControlName) override |
virtual sal_Bool SAL_CALL | isControlPropertySupported (const OUString &aControlName, const OUString &aControlProperty) override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override |
void | checkAlive () const |
void | prepareDialog () |
bool | createPicker () |
virtual bool | implHandleInitializationArgument (const OUString &_rName, const css::uno::Any &_rValue) |
handle a single argument from the XInitialization::initialize method More... | |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Member Functions inherited from svt::IFilePickerListener | |
~IFilePickerListener () | |
Protected Attributes | |
std::unique_ptr< FilterList > | m_pFilterList |
std::unique_ptr< ElementList > | m_pElemList |
bool | m_bMultiSelection |
sal_Int16 | m_nServiceType |
OUString | m_aDefaultName |
OUString | m_aCurrentFilter |
OUString | m_aOldDisplayDirectory |
OUString | m_aOldHideDirectory |
OUString | m_aStandardDir |
css::uno::Sequence< OUString > | m_aDenyList |
css::uno::Reference< css::ui::dialogs::XFilePickerListener > | m_xListener |
css::uno::Reference< css::ui::dialogs::XDialogClosedListener > | m_xDlgClosedListener |
Protected Attributes inherited from svt::OCommonPicker | |
OUString | m_aTitle |
OUString | m_aDisplayDirectory |
std::shared_ptr< SvtFileDialog_Base > | m_xDlg |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Additional Inherited Members | |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonPicker > | |
static std::mutex & | theMutex () |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OCommonPicker > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 56 of file OfficeFilePicker.hxx.
SvtFilePicker::SvtFilePicker | ( | ) |
Definition at line 408 of file OfficeFilePicker.cxx.
|
overridevirtual |
Definition at line 414 of file OfficeFilePicker.cxx.
|
inlineoverridevirtual |
Definition at line 169 of file OfficeFilePicker.hxx.
|
overridevirtual |
Definition at line 763 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and m_xListener.
|
overridevirtual |
Definition at line 900 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), ensureFilterList(), FilterNameExists(), and m_pFilterList.
|
overridevirtual |
Definition at line 873 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), ensureFilterList(), FilterNameExists(), and m_pFilterList.
|
inlineoverridevirtual |
Reimplemented from svt::OCommonPicker.
Definition at line 165 of file OfficeFilePicker.hxx.
References svt::OCommonPicker::cancel().
|
protected |
Definition at line 213 of file OfficeFilePicker.cxx.
References aEvent, and m_xDlgClosedListener.
Referenced by startExecuteModal().
|
inlineoverridevirtual |
Definition at line 167 of file OfficeFilePicker.hxx.
|
overridevirtual |
Definition at line 724 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), svt::OControlAccess::enableControl(), m_pElemList, svt::OCommonPicker::m_xDlg, and ElementEntry_Impl::setEnabled().
|
protected |
Definition at line 394 of file OfficeFilePicker.cxx.
References m_aCurrentFilter, and m_pFilterList.
Referenced by appendFilter(), and appendFilterGroup().
|
overridevirtual |
css::uno::RuntimeException |
Reimplemented from svt::OCommonPicker.
Definition at line 486 of file OfficeFilePicker.cxx.
|
protected |
Definition at line 359 of file OfficeFilePicker.cxx.
References m_pFilterList.
Referenced by appendFilter(), appendFilterGroup(), and setCurrentFilter().
|
protected |
Definition at line 375 of file OfficeFilePicker.cxx.
References m_pFilterList.
|
overridevirtual |
Definition at line 806 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 793 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 934 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), m_aCurrentFilter, and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 535 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), INetURLObject::CutLastName(), INetURLObject::GetMainURL(), svt::OCommonPicker::m_aDisplayDirectory, m_aOldDisplayDirectory, m_aOldHideDirectory, svt::OCommonPicker::m_xDlg, and INetURLObject::NONE.
|
overridevirtual |
Definition at line 575 of file OfficeFilePicker.cxx.
References getSelectedFiles().
|
overridevirtual |
Reimplemented in SvtRemoteFilePicker.
Definition at line 1031 of file OfficeFilePicker.cxx.
|
overridevirtual |
Definition at line 695 of file OfficeFilePicker.cxx.
References aLabel, svt::OCommonPicker::checkAlive(), svt::OControlAccess::getLabel(), m_pElemList, and svt::OCommonPicker::m_xDlg.
|
protected |
Definition at line 225 of file OfficeFilePicker.cxx.
References AutoExtension, FilterOptions, ImageAnchor, ImageTemplate, InsertAsLink, m_bMultiSelection, m_nServiceType, MultiSelection, NONE, Open, Password, PlayButton, ReadOnly, SaveAs, Selection, ShowPreview, ShowVersions, and Templates.
Referenced by implCreateDialog(), and SvtRemoteFilePicker::implCreateDialog().
|
overridevirtual |
Definition at line 561 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), comphelper::containerToSequence(), and svt::OCommonPicker::m_xDlg.
Referenced by getFiles().
|
overridevirtual |
Definition at line 856 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 781 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive().
|
overridevirtual |
Reimplemented in SvtRemoteFilePicker.
Definition at line 1043 of file OfficeFilePicker.cxx.
|
overridevirtual |
Definition at line 788 of file OfficeFilePicker.cxx.
|
overridevirtual |
Definition at line 628 of file OfficeFilePicker.cxx.
References Any, svt::OCommonPicker::checkAlive(), svt::OControlAccess::getValue(), m_pElemList, and svt::OCommonPicker::m_xDlg.
|
overrideprotectedvirtual |
Implements svt::OCommonPicker.
Reimplemented in SvtRemoteFilePicker.
Definition at line 435 of file OfficeFilePicker.cxx.
References getPickerFlags(), m_aDenyList, m_aStandardDir, and sStandardDir.
|
overrideprotectedvirtual |
Implements svt::OCommonPicker.
Definition at line 418 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::m_xDlg, and prepareExecute().
|
overrideprotectedvirtual |
handle a single argument from the XInitialization::initialize method
Reimplemented from svt::OCommonPicker.
Definition at line 1002 of file OfficeFilePicker.cxx.
References m_aDenyList, m_aStandardDir, and m_nServiceType.
|
overridevirtual |
Reimplemented from svt::OCommonPicker.
Definition at line 948 of file OfficeFilePicker.cxx.
References aArguments, svt::OCommonPicker::checkAlive(), i, index, m_aDenyList, m_aStandardDir, m_nServiceType, and sStandardDir.
|
overrideprotectedvirtual |
Implements svt::IFilePickerListener.
Definition at line 295 of file OfficeFilePicker.cxx.
References aEvent, CTRL_STATE_CHANGED, DIALOG_SIZE_CHANGED, DIRECTORY_CHANGED, FILE_SELECTION_CHANGED, m_xListener, and SAL_WARN.
|
protected |
Definition at line 132 of file OfficeFilePicker.cxx.
References aSubFilters, svt::OControlAccess::enableControl(), INetURLObject::GetMainURL(), INetURLObject::HasError(), INetURLObject::insertName(), m_aCurrentFilter, m_aDefaultName, svt::OCommonPicker::m_aDisplayDirectory, m_pElemList, m_pFilterList, svt::OCommonPicker::m_xDlg, INetURLObject::NONE, svt::OControlAccess::setLabel(), and svt::OControlAccess::setValue().
Referenced by implExecutePicker(), and startExecuteModal().
|
inlineoverridevirtual |
Definition at line 171 of file OfficeFilePicker.hxx.
|
overridevirtual |
Definition at line 772 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and m_xListener.
|
overridevirtual |
Definition at line 919 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), FilterNameExists(), m_aCurrentFilter, and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 519 of file OfficeFilePicker.cxx.
References aName, svt::OCommonPicker::checkAlive(), and m_aDefaultName.
|
overridevirtual |
Definition at line 492 of file OfficeFilePicker.cxx.
References setTitle().
|
overridevirtual |
Definition at line 527 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_aDisplayDirectory.
|
overridevirtual |
Definition at line 819 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
Definition at line 659 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), m_pElemList, svt::OCommonPicker::m_xDlg, ElementEntry_Impl::setLabel(), and svt::OControlAccess::setLabel().
|
overridevirtual |
Definition at line 511 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and m_bMultiSelection.
Definition at line 828 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), and svt::OCommonPicker::m_xDlg.
|
overridevirtual |
css::uno::RuntimeException |
Reimplemented from svt::OCommonPicker.
Definition at line 481 of file OfficeFilePicker.cxx.
Referenced by setDialogTitle().
|
overridevirtual |
Definition at line 587 of file OfficeFilePicker.cxx.
References svt::OCommonPicker::checkAlive(), m_pElemList, svt::OCommonPicker::m_xDlg, ElementEntry_Impl::setAction(), ElementEntry_Impl::setValue(), and svt::OControlAccess::setValue().
|
overridevirtual |
Definition at line 497 of file OfficeFilePicker.cxx.
References DialogClosedHdl(), svt::OCommonPicker::m_xDlg, m_xDlgClosedListener, svt::OCommonPicker::prepareDialog(), prepareExecute(), and weld::DialogController::runAsync().
|
overridevirtual |
Reimplemented in SvtRemoteFilePicker.
Definition at line 1037 of file OfficeFilePicker.cxx.
References sServiceName, and cppu::supportsService().
|
protected |
Definition at line 69 of file OfficeFilePicker.hxx.
Referenced by ensureFilterList(), getCurrentFilter(), prepareExecute(), and setCurrentFilter().
|
protected |
Definition at line 68 of file OfficeFilePicker.hxx.
Referenced by prepareExecute(), and setDefaultName().
|
protected |
Definition at line 76 of file OfficeFilePicker.hxx.
Referenced by implCreateDialog(), SvtRemoteFilePicker::implCreateDialog(), implHandleInitializationArgument(), and initialize().
|
protected |
Definition at line 71 of file OfficeFilePicker.hxx.
Referenced by getDisplayDirectory().
|
protected |
Definition at line 72 of file OfficeFilePicker.hxx.
Referenced by getDisplayDirectory().
|
protected |
Definition at line 74 of file OfficeFilePicker.hxx.
Referenced by implCreateDialog(), SvtRemoteFilePicker::implCreateDialog(), implHandleInitializationArgument(), and initialize().
|
protected |
Definition at line 66 of file OfficeFilePicker.hxx.
Referenced by getPickerFlags(), and setMultiSelectionMode().
|
protected |
Definition at line 67 of file OfficeFilePicker.hxx.
Referenced by getPickerFlags(), implHandleInitializationArgument(), and initialize().
|
protected |
Definition at line 64 of file OfficeFilePicker.hxx.
Referenced by enableControl(), getLabel(), getValue(), prepareExecute(), setLabel(), and setValue().
|
protected |
Definition at line 62 of file OfficeFilePicker.hxx.
Referenced by appendFilter(), appendFilterGroup(), ensureFilterList(), FilterNameExists(), and prepareExecute().
|
protected |
Definition at line 81 of file OfficeFilePicker.hxx.
Referenced by DialogClosedHdl(), and startExecuteModal().
|
protected |
Definition at line 79 of file OfficeFilePicker.hxx.
Referenced by addFilePickerListener(), notify(), and removeFilePickerListener().