LibreOffice Module fpicker (master) 1
|
implements common functionality for the 2 UNO picker components More...
#include <commonpicker.hxx>
Public Member Functions | |
OCommonPicker () | |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OCommonPicker > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
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 Attributes | |
OUString | m_aTitle |
OUString | m_aDisplayDirectory |
std::shared_ptr< SvtFileDialog_Base > | m_xDlg |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Private Member Functions | |
void | stopWindowListening () |
DECL_LINK (OnCancelPicker, void *, void) | |
Private Attributes | |
OUString | m_sHelpURL |
css::uno::Reference< css::awt::XWindow > | m_xWindow |
ImplSVEvent * | m_nCancelEvent |
bool | m_bExecuting |
css::uno::Reference< css::awt::XWindow > | m_xDialogParent |
css::uno::Reference< css::lang::XComponent > | m_xWindowListenerAdapter |
css::uno::Reference< css::lang::XComponent > | m_xParentListenerAdapter |
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 |
implements common functionality for the 2 UNO picker components
Definition at line 50 of file commonpicker.hxx.
svt::OCommonPicker::OCommonPicker | ( | ) |
Definition at line 53 of file commonpicker.cxx.
References m_aMutex, m_sHelpURL, m_xWindow, PROPERTY_ID_HELPURL, PROPERTY_ID_WINDOW, and comphelper::OPropertyContainerHelper::registerProperty().
|
overrideprotectedvirtual |
Definition at line 74 of file commonpicker.cxx.
References dispose(), and GetBroadcastHelper().
|
overrideprotectedvirtual |
Reimplemented in SvtFilePicker.
Definition at line 366 of file commonpicker.cxx.
References LINK, cppu::BaseMutex::m_aMutex, m_nCancelEvent, and Application::PostUserEvent().
Referenced by SvtFilePicker::cancel().
|
protected |
Definition at line 96 of file commonpicker.cxx.
Referenced by SvtFilePicker::addFilePickerListener(), SvtFilePicker::appendFilter(), SvtFilePicker::appendFilterGroup(), SvtFilePicker::enableControl(), SvtFilePicker::getAvailableHeight(), SvtFilePicker::getAvailableWidth(), getControlProperty(), SvtFilePicker::getCurrentFilter(), SvtFilePicker::getDisplayDirectory(), SvtFilePicker::getLabel(), SvtFilePicker::getSelectedFiles(), SvtFilePicker::getShowState(), getSupportedControlProperties(), getSupportedControls(), SvtFilePicker::getSupportedImageFormats(), SvtFilePicker::getValue(), initialize(), SvtFilePicker::initialize(), isControlPropertySupported(), isControlSupported(), SvtFilePicker::removeFilePickerListener(), setControlProperty(), SvtFilePicker::setCurrentFilter(), SvtFilePicker::setDefaultName(), SvtFilePicker::setDisplayDirectory(), SvtFilePicker::setImage(), SvtFilePicker::setLabel(), SvtFilePicker::setMultiSelectionMode(), SvtFilePicker::setShowState(), and SvtFilePicker::setValue().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< OCommonPicker >.
Definition at line 171 of file commonpicker.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
protected |
Definition at line 200 of file commonpicker.cxx.
References Application::GetFrameWeld(), svt::OControlAccess::getHelpURL(), VCLUnoHelper::GetInterface(), VCLUnoHelper::GetWindow(), weld::Window::GetXWindow(), implCreateDialog(), m_sHelpURL, m_xDialogParent, m_xDlg, m_xParentListenerAdapter, m_xWindow, m_xWindowListenerAdapter, SAL_WARN_IF, and svt::OControlAccess::setHelpURL().
Referenced by getControlProperty(), getSupportedControlProperties(), getSupportedControls(), isControlPropertySupported(), isControlSupported(), prepareDialog(), and setControlProperty().
|
private |
|
overrideprotectedvirtual |
Definition at line 113 of file commonpicker.cxx.
References cppu::BaseMutex::m_aMutex, m_bExecuting, m_nCancelEvent, m_xDialogParent, m_xDlg, m_xWindow, Application::RemoveUserEvent(), RET_CANCEL, and stopWindowListening().
|
overrideprotectedvirtual |
|
protectedvirtual |
css::uno::RuntimeException |
Reimplemented in SvtFilePicker.
Definition at line 344 of file commonpicker.cxx.
References implExecutePicker(), cppu::BaseMutex::m_aMutex, m_bExecuting, and prepareDialog().
|
inlineprotected |
Definition at line 78 of file commonpicker.hxx.
|
inlineprotected |
Definition at line 77 of file commonpicker.hxx.
Referenced by ~OCommonPicker().
|
overrideprotectedvirtual |
Definition at line 264 of file commonpicker.cxx.
References Any, checkAlive(), createPicker(), svt::OControlAccess::getControlProperty(), and m_xDlg.
|
overrideprotected |
Definition at line 178 of file commonpicker.cxx.
References comphelper::OPropertyArrayUsageHelper< OCommonPicker >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overrideprotectedvirtual |
Definition at line 183 of file commonpicker.cxx.
References getInfoHelper().
|
overrideprotectedvirtual |
Definition at line 306 of file commonpicker.cxx.
References checkAlive(), createPicker(), svt::OControlAccess::getSupportedControlProperties(), and m_xDlg.
|
overrideprotectedvirtual |
Definition at line 279 of file commonpicker.cxx.
References checkAlive(), createPicker(), svt::OControlAccess::getSupportedControls(), and m_xDlg.
|
protectedpure virtual |
Implemented in SvtFilePicker, and SvtRemoteFilePicker.
Referenced by createPicker().
|
protectedpure virtual |
|
protectedvirtual |
handle a single argument from the XInitialization::initialize method
Reimplemented in SvtFilePicker.
Definition at line 460 of file commonpicker.cxx.
References m_xDialogParent.
Referenced by initialize().
|
overrideprotectedvirtual |
Reimplemented in SvtFilePicker.
Definition at line 407 of file commonpicker.cxx.
References Any, checkAlive(), DBG_ASSERT, implHandleInitializationArgument(), OUStringToOString(), and SAL_WARN.
|
overrideprotectedvirtual |
Definition at line 320 of file commonpicker.cxx.
References checkAlive(), createPicker(), svt::OControlAccess::isControlPropertySupported(), and m_xDlg.
|
overrideprotectedvirtual |
Definition at line 293 of file commonpicker.cxx.
References checkAlive(), createPicker(), and svt::OControlAccess::isControlSupported().
|
protected |
Definition at line 102 of file commonpicker.cxx.
References createPicker(), m_aTitle, and m_xDlg.
Referenced by execute(), and SvtFilePicker::startExecuteModal().
|
overrideprotectedvirtual |
Definition at line 252 of file commonpicker.cxx.
References checkAlive(), createPicker(), m_xDlg, and svt::OControlAccess::setControlProperty().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 188 of file commonpicker.cxx.
References m_sHelpURL, m_xDlg, nHandle, PROPERTY_ID_HELPURL, and svt::OControlAccess::setHelpURL().
|
protectedvirtual |
css::uno::RuntimeException |
Reimplemented in SvtFilePicker.
Definition at line 337 of file commonpicker.cxx.
References m_aTitle.
|
private |
Definition at line 134 of file commonpicker.cxx.
References disposeComponent(), m_xParentListenerAdapter, and m_xWindowListenerAdapter.
Referenced by disposing().
|
protected |
Definition at line 72 of file commonpicker.hxx.
Referenced by SvtFilePicker::getDisplayDirectory(), SvtFilePicker::prepareExecute(), and SvtFilePicker::setDisplayDirectory().
|
protected |
Definition at line 71 of file commonpicker.hxx.
Referenced by prepareDialog(), and setTitle().
|
private |
Definition at line 63 of file commonpicker.hxx.
Referenced by disposing(), and execute().
|
private |
Definition at line 62 of file commonpicker.hxx.
Referenced by cancel(), and disposing().
|
private |
Definition at line 58 of file commonpicker.hxx.
Referenced by createPicker(), OCommonPicker(), and setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 65 of file commonpicker.hxx.
Referenced by createPicker(), disposing(), and implHandleInitializationArgument().
|
protected |
Definition at line 75 of file commonpicker.hxx.
Referenced by createPicker(), disposing(), SvtFilePicker::enableControl(), SvtFilePicker::getAvailableHeight(), SvtFilePicker::getAvailableWidth(), getControlProperty(), SvtFilePicker::getCurrentFilter(), SvtFilePicker::getDisplayDirectory(), SvtFilePicker::getLabel(), SvtFilePicker::getSelectedFiles(), SvtFilePicker::getShowState(), getSupportedControlProperties(), getSupportedControls(), SvtFilePicker::getValue(), SvtFilePicker::implExecutePicker(), isControlPropertySupported(), prepareDialog(), SvtFilePicker::prepareExecute(), setControlProperty(), SvtFilePicker::setCurrentFilter(), setFastPropertyValue_NoBroadcast(), SvtFilePicker::setImage(), SvtFilePicker::setLabel(), SvtFilePicker::setShowState(), SvtFilePicker::setValue(), and SvtFilePicker::startExecuteModal().
|
private |
Definition at line 68 of file commonpicker.hxx.
Referenced by createPicker(), and stopWindowListening().
|
private |
Definition at line 59 of file commonpicker.hxx.
Referenced by createPicker(), disposing(), and OCommonPicker().
|
private |
Definition at line 67 of file commonpicker.hxx.
Referenced by createPicker(), and stopWindowListening().