LibreOffice Module fpicker (master)  1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
svt::OCommonPicker Class Referenceabstract

implements common functionality for the 2 UNO picker components More...

#include <commonpicker.hxx>

Inheritance diagram for svt::OCommonPicker:
[legend]
Collaboration diagram for svt::OCommonPicker:
[legend]

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::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

const ::cppu::OBroadcastHelperGetBroadcastHelper () const
 
::cppu::OBroadcastHelperGetBroadcastHelper ()
 
virtual ~OCommonPicker () override
 
virtual std::shared_ptr< SvtFileDialog_BaseimplCreateDialog (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::IPropertyArrayHelpercreateArrayHelper () 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 getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
- 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
 

Protected Attributes

OUString m_aTitle
 
OUString m_aDisplayDirectory
 
std::shared_ptr< SvtFileDialog_Basem_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
 
ImplSVEventm_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 Attributes inherited from comphelper::OPropertyArrayUsageHelper< OCommonPicker >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

implements common functionality for the 2 UNO picker components

Definition at line 51 of file commonpicker.hxx.

Constructor & Destructor Documentation

svt::OCommonPicker::OCommonPicker ( )
svt::OCommonPicker::~OCommonPicker ( )
overrideprotectedvirtual

Definition at line 74 of file commonpicker.cxx.

References dispose(), and GetBroadcastHelper().

Member Function Documentation

void SAL_CALL svt::OCommonPicker::cancel ( )
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().

void svt::OCommonPicker::checkAlive ( ) const
protected
cppu::IPropertyArrayHelper * svt::OCommonPicker::createArrayHelper ( ) const
overrideprotectedvirtual
bool svt::OCommonPicker::createPicker ( )
protected
svt::OCommonPicker::DECL_LINK ( OnCancelPicker  ,
void ,
void   
)
private
void SAL_CALL svt::OCommonPicker::disposing ( )
overrideprotectedvirtual
virtual void SAL_CALL svt::OCommonPicker::disposing ( const css::lang::EventObject &  Source)
overrideprotectedvirtual
sal_Int16 svt::OCommonPicker::execute ( )
protectedvirtual
Exceptions
css::uno::RuntimeException

Reimplemented in SvtFilePicker.

Definition at line 344 of file commonpicker.cxx.

References implExecutePicker(), cppu::BaseMutex::m_aMutex, m_bExecuting, and prepareDialog().

const ::cppu::OBroadcastHelper& svt::OCommonPicker::GetBroadcastHelper ( ) const
inlineprotected

Definition at line 78 of file commonpicker.hxx.

Referenced by ~OCommonPicker().

::cppu::OBroadcastHelper& svt::OCommonPicker::GetBroadcastHelper ( )
inlineprotected

Definition at line 79 of file commonpicker.hxx.

Any SAL_CALL svt::OCommonPicker::getControlProperty ( const OUString &  aControlName,
const OUString &  aControlProperty 
)
overrideprotectedvirtual
cppu::IPropertyArrayHelper &SAL_CALL svt::OCommonPicker::getInfoHelper ( )
overrideprotected
Reference< XPropertySetInfo > SAL_CALL svt::OCommonPicker::getPropertySetInfo ( )
overrideprotectedvirtual

Definition at line 183 of file commonpicker.cxx.

References getInfoHelper().

Sequence< OUString > SAL_CALL svt::OCommonPicker::getSupportedControlProperties ( const OUString &  aControlName)
overrideprotectedvirtual
Sequence< OUString > SAL_CALL svt::OCommonPicker::getSupportedControls ( )
overrideprotectedvirtual
virtual std::shared_ptr<SvtFileDialog_Base> svt::OCommonPicker::implCreateDialog ( weld::Window pParent)
protectedpure virtual

Implemented in SvtRemoteFilePicker, and SvtFilePicker.

Referenced by createPicker().

virtual sal_Int16 svt::OCommonPicker::implExecutePicker ( )
protectedpure virtual

Implemented in SvtFilePicker.

Referenced by execute().

bool svt::OCommonPicker::implHandleInitializationArgument ( const OUString &  _rName,
const css::uno::Any &  _rValue 
)
protectedvirtual

handle a single argument from the XInitialization::initialize method

Returns
<TRUE> if the argument could be handled

Reimplemented in SvtFilePicker.

Definition at line 460 of file commonpicker.cxx.

References m_xDialogParent.

Referenced by initialize().

void SAL_CALL svt::OCommonPicker::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overrideprotectedvirtual

Reimplemented in SvtFilePicker.

Definition at line 407 of file commonpicker.cxx.

References Any, checkAlive(), DBG_ASSERT, implHandleInitializationArgument(), and SAL_WARN.

sal_Bool SAL_CALL svt::OCommonPicker::isControlPropertySupported ( const OUString &  aControlName,
const OUString &  aControlProperty 
)
overrideprotectedvirtual
sal_Bool SAL_CALL svt::OCommonPicker::isControlSupported ( const OUString &  aControlName)
overrideprotectedvirtual
void svt::OCommonPicker::prepareDialog ( )
protected

Definition at line 102 of file commonpicker.cxx.

References createPicker(), m_aTitle, and m_xDlg.

Referenced by execute(), and SvtFilePicker::startExecuteModal().

void SAL_CALL svt::OCommonPicker::setControlProperty ( const OUString &  aControlName,
const OUString &  aControlProperty,
const css::uno::Any &  aValue 
)
overrideprotectedvirtual
void SAL_CALL svt::OCommonPicker::setFastPropertyValue_NoBroadcast ( sal_Int32  _nHandle,
const css::uno::Any &  _rValue 
)
overrideprotectedvirtual
void svt::OCommonPicker::setTitle ( const OUString &  _rTitle)
protectedvirtual
Exceptions
css::uno::RuntimeException

Reimplemented in SvtFilePicker.

Definition at line 337 of file commonpicker.cxx.

References m_aTitle.

void svt::OCommonPicker::stopWindowListening ( )
private

Definition at line 134 of file commonpicker.cxx.

References disposeComponent(), m_xParentListenerAdapter, and m_xWindowListenerAdapter.

Referenced by disposing().

Member Data Documentation

OUString svt::OCommonPicker::m_aDisplayDirectory
protected
OUString svt::OCommonPicker::m_aTitle
protected

Definition at line 72 of file commonpicker.hxx.

Referenced by prepareDialog(), and setTitle().

bool svt::OCommonPicker::m_bExecuting
private

Definition at line 64 of file commonpicker.hxx.

Referenced by disposing(), and execute().

ImplSVEvent* svt::OCommonPicker::m_nCancelEvent
private

Definition at line 63 of file commonpicker.hxx.

Referenced by cancel(), and disposing().

OUString svt::OCommonPicker::m_sHelpURL
private

Definition at line 59 of file commonpicker.hxx.

Referenced by createPicker(), OCommonPicker(), and setFastPropertyValue_NoBroadcast().

css::uno::Reference< css::awt::XWindow > svt::OCommonPicker::m_xDialogParent
private

Definition at line 66 of file commonpicker.hxx.

Referenced by createPicker(), disposing(), and implHandleInitializationArgument().

std::shared_ptr<SvtFileDialog_Base> svt::OCommonPicker::m_xDlg
protected
css::uno::Reference< css::lang::XComponent > svt::OCommonPicker::m_xParentListenerAdapter
private

Definition at line 69 of file commonpicker.hxx.

Referenced by createPicker(), and stopWindowListening().

css::uno::Reference< css::awt::XWindow > svt::OCommonPicker::m_xWindow
private

Definition at line 60 of file commonpicker.hxx.

Referenced by createPicker(), disposing(), and OCommonPicker().

css::uno::Reference< css::lang::XComponent > svt::OCommonPicker::m_xWindowListenerAdapter
private

Definition at line 68 of file commonpicker.hxx.

Referenced by createPicker(), and stopWindowListening().


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