LibreOffice Module fpicker (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
fpicker::win32::vista::VistaFilePicker Class Reference

Implements the XFilePicker & friends interface(s) for Windows Vista and upcoming versions. More...

#include <VistaFilePicker.hxx>

Inheritance diagram for fpicker::win32::vista::VistaFilePicker:
[legend]
Collaboration diagram for fpicker::win32::vista::VistaFilePicker:
[legend]

Public Member Functions

 VistaFilePicker (bool bFolderPicker)
 
virtual ~VistaFilePicker () 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 void SAL_CALL setTitle (const OUString &sTitle) override
 
virtual sal_Int16 SAL_CALL execute () override
 
virtual void SAL_CALL setMultiSelectionMode (sal_Bool bMode) override
 
virtual void SAL_CALL setDefaultName (const OUString &sName) override
 
virtual void SAL_CALL setDisplayDirectory (const OUString &sDirectory) 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 appendFilter (const OUString &sTitle, const OUString &sFilter) override
 
virtual void SAL_CALL setCurrentFilter (const OUString &sTitle) override
 
virtual OUString SAL_CALL getCurrentFilter () override
 
virtual void SAL_CALL appendFilterGroup (const OUString &sGroupTitle, const css::uno::Sequence< css::beans::StringPair > &lFilters) override
 
virtual void SAL_CALL setValue (sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getValue (sal_Int16 nControlId, sal_Int16 nControlAction) override
 
virtual void SAL_CALL enableControl (sal_Int16 nControlId, sal_Bool bEnable) override
 
virtual void SAL_CALL setLabel (sal_Int16 nControlId, const OUString &sLabel) override
 
virtual OUString SAL_CALL getLabel (sal_Int16 nControlId) 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 nImageFormat, 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 initialize (const css::uno::Sequence< css::uno::Any > &lArguments) override
 
virtual void SAL_CALL cancel () override
 
virtual void disposing (const css::lang::EventObject &aEvent)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual OUString SAL_CALL getDirectory () override
 
virtual void SAL_CALL setDescription (const OUString &aDescription) override
 

Private Member Functions

 VistaFilePicker (const VistaFilePicker &)
 
VistaFilePickeroperator= (const VistaFilePicker &)
 
void ensureInit ()
 

Private Attributes

css::uno::Sequence< OUString > m_lLastFiles
 
RequestHandlerRef m_rDialog
 execute the COM dialog within a STA thread Must be used on the heap ... More...
 
AsyncRequests m_aAsyncExecute
 
oslThreadIdentifier m_nFilePickerThreadId
 
bool m_bInitialized
 
const bool m_bFolderPicker
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Implements the XFilePicker & friends interface(s) for Windows Vista and upcoming versions.

Note: This will be a UNO wrapper for the real file picker implementation only. The real implementation is done in class VistaFilePickerImpl.

Definition at line 63 of file VistaFilePicker.hxx.

Constructor & Destructor Documentation

fpicker::win32::vista::VistaFilePicker::VistaFilePicker ( bool  bFolderPicker)
explicit

Definition at line 49 of file VistaFilePicker.cxx.

References m_aMutex, and make_shared().

fpicker::win32::vista::VistaFilePicker::~VistaFilePicker ( )
overridevirtual

Definition at line 59 of file VistaFilePicker.cxx.

fpicker::win32::vista::VistaFilePicker::VistaFilePicker ( const VistaFilePicker )
private

Member Function Documentation

void SAL_CALL fpicker::win32::vista::VistaFilePicker::addFilePickerListener ( const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &  xListener)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::appendFilter ( const OUString &  sTitle,
const OUString &  sFilter 
)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::appendFilterGroup ( const OUString &  sGroupTitle,
const css::uno::Sequence< css::beans::StringPair > &  lFilters 
)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::cancel ( )
overridevirtual

Definition at line 501 of file VistaFilePicker.cxx.

void fpicker::win32::vista::VistaFilePicker::disposing ( const css::lang::EventObject &  aEvent)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 81 of file VistaFilePicker.cxx.

void SAL_CALL fpicker::win32::vista::VistaFilePicker::enableControl ( sal_Int16  nControlId,
sal_Bool  bEnable 
)
overridevirtual
void fpicker::win32::vista::VistaFilePicker::ensureInit ( )
private
sal_Int16 SAL_CALL fpicker::win32::vista::VistaFilePicker::execute ( )
overridevirtual
sal_Int32 SAL_CALL fpicker::win32::vista::VistaFilePicker::getAvailableHeight ( )
overridevirtual

Definition at line 331 of file VistaFilePicker.cxx.

sal_Int32 SAL_CALL fpicker::win32::vista::VistaFilePicker::getAvailableWidth ( )
overridevirtual

Definition at line 326 of file VistaFilePicker.cxx.

OUString SAL_CALL fpicker::win32::vista::VistaFilePicker::getCurrentFilter ( )
overridevirtual
OUString SAL_CALL fpicker::win32::vista::VistaFilePicker::getDirectory ( )
overridevirtual

Definition at line 505 of file VistaFilePicker.cxx.

References assert(), ensureInit(), and getSelectedFiles().

OUString SAL_CALL fpicker::win32::vista::VistaFilePicker::getDisplayDirectory ( )
overridevirtual
css::uno::Sequence< OUString > SAL_CALL fpicker::win32::vista::VistaFilePicker::getFiles ( )
overridevirtual

Definition at line 183 of file VistaFilePicker.cxx.

References getSelectedFiles(), and m_lLastFiles.

OUString SAL_CALL fpicker::win32::vista::VistaFilePicker::getImplementationName ( )
overridevirtual

Definition at line 520 of file VistaFilePicker.cxx.

References m_bFolderPicker.

OUString SAL_CALL fpicker::win32::vista::VistaFilePicker::getLabel ( sal_Int16  nControlId)
overridevirtual
css::uno::Sequence< OUString > SAL_CALL fpicker::win32::vista::VistaFilePicker::getSelectedFiles ( )
overridevirtual
sal_Bool SAL_CALL fpicker::win32::vista::VistaFilePicker::getShowState ( )
overridevirtual

Definition at line 346 of file VistaFilePicker.cxx.

css::uno::Sequence<::sal_Int16 > SAL_CALL fpicker::win32::vista::VistaFilePicker::getSupportedImageFormats ( )
overridevirtual

Definition at line 316 of file VistaFilePicker.cxx.

css::uno::Sequence< OUString > SAL_CALL fpicker::win32::vista::VistaFilePicker::getSupportedServiceNames ( )
overridevirtual

Definition at line 533 of file VistaFilePicker.cxx.

sal_Int32 SAL_CALL fpicker::win32::vista::VistaFilePicker::getTargetColorDepth ( )
overridevirtual

Definition at line 321 of file VistaFilePicker.cxx.

css::uno::Any SAL_CALL fpicker::win32::vista::VistaFilePicker::getValue ( sal_Int16  nControlId,
sal_Int16  nControlAction 
)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::initialize ( const css::uno::Sequence< css::uno::Any > &  lArguments)
overridevirtual
VistaFilePicker& fpicker::win32::vista::VistaFilePicker::operator= ( const VistaFilePicker )
private
void SAL_CALL fpicker::win32::vista::VistaFilePicker::removeFilePickerListener ( const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &  xListener)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setCurrentFilter ( const OUString &  sTitle)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setDefaultName ( const OUString &  sName)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setDescription ( const OUString &  aDescription)
overridevirtual

Definition at line 513 of file VistaFilePicker.cxx.

References setTitle().

void SAL_CALL fpicker::win32::vista::VistaFilePicker::setDisplayDirectory ( const OUString &  sDirectory)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setImage ( sal_Int16  nImageFormat,
const css::uno::Any &  aImage 
)
overridevirtual

Definition at line 336 of file VistaFilePicker.cxx.

void SAL_CALL fpicker::win32::vista::VistaFilePicker::setLabel ( sal_Int16  nControlId,
const OUString &  sLabel 
)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setMultiSelectionMode ( sal_Bool  bMode)
overridevirtual
sal_Bool SAL_CALL fpicker::win32::vista::VistaFilePicker::setShowState ( sal_Bool  bShowState)
overridevirtual

Definition at line 341 of file VistaFilePicker.cxx.

void SAL_CALL fpicker::win32::vista::VistaFilePicker::setTitle ( const OUString &  sTitle)
overridevirtual
void SAL_CALL fpicker::win32::vista::VistaFilePicker::setValue ( sal_Int16  nControlId,
sal_Int16  nControlAction,
const css::uno::Any &  aValue 
)
overridevirtual
sal_Bool SAL_CALL fpicker::win32::vista::VistaFilePicker::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 528 of file VistaFilePicker.cxx.

References cppu::supportsService().

Member Data Documentation

AsyncRequests fpicker::win32::vista::VistaFilePicker::m_aAsyncExecute
private
const bool fpicker::win32::vista::VistaFilePicker::m_bFolderPicker
private

Definition at line 224 of file VistaFilePicker.hxx.

Referenced by ensureInit(), and getImplementationName().

bool fpicker::win32::vista::VistaFilePicker::m_bInitialized
private

Definition at line 223 of file VistaFilePicker.hxx.

Referenced by ensureInit(), and initialize().

css::uno::Sequence< OUString > fpicker::win32::vista::VistaFilePicker::m_lLastFiles
private

Definition at line 213 of file VistaFilePicker.hxx.

Referenced by execute(), getFiles(), and getSelectedFiles().

oslThreadIdentifier fpicker::win32::vista::VistaFilePicker::m_nFilePickerThreadId
private

Definition at line 221 of file VistaFilePicker.hxx.

RequestHandlerRef fpicker::win32::vista::VistaFilePicker::m_rDialog
private

execute the COM dialog within a STA thread Must be used on the heap ...

because it's implemented as OSL thread .-)

Definition at line 218 of file VistaFilePicker.hxx.


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