LibreOffice Module fpicker (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SalAquaFilePicker Class Reference

#include <SalAquaFilePicker.hxx>

Inheritance diagram for SalAquaFilePicker:
[legend]
Collaboration diagram for SalAquaFilePicker:
[legend]

Public Member Functions

 SalAquaFilePicker ()
 
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 &aTitle) override
 
virtual sal_Int16 SAL_CALL execute () 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 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 setValue (sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getValue (sal_Int16 aControlId, sal_Int16 aControlAction) override
 
virtual void SAL_CALL enableControl (sal_Int16 nControlId, sal_Bool bEnable) override
 
virtual void SAL_CALL setLabel (sal_Int16 nControlId, const OUString &aLabel) override
 
virtual OUString SAL_CALL getLabel (sal_Int16 nControlId) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) 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
 
void fileSelectionChanged (css::ui::dialogs::FilePickerEvent aEvent)
 
void directoryChanged (css::ui::dialogs::FilePickerEvent aEvent)
 
void controlStateChanged (css::ui::dialogs::FilePickerEvent aEvent)
 
void dialogSizeChanged ()
 
AquaFilePickerDelegategetDelegate ()
 
OUString const & getSaveFileName ()
 
virtual ~SalAquaFilePicker () override
 
void filterControlChanged ()
 
- Public Member Functions inherited from SalAquaPicker
 SalAquaPicker ()
 
virtual ~SalAquaPicker ()
 
int run ()
 
int runandwaitforresult ()
 
OUString const & getDisplayDirectory ()
 
ControlHelpergetControlHelper () const
 

Private Member Functions

 SalAquaFilePicker (const SalAquaFilePicker &)=delete
 
SalAquaFilePickeroperator= (const SalAquaFilePicker &)=delete
 
virtual void ensureFilterHelper ()
 
void updateFilterUI ()
 
void updateSaveFileNameExtension ()
 

Private Attributes

css::uno::Reference< css::ui::dialogs::XFilePickerListener > m_xListener
 
FilterHelperm_pFilterHelper
 
OUString m_sSaveFileName
 
AquaFilePickerDelegatem_pDelegate
 

Additional Inherited Members

- Protected Types inherited from SalAquaPicker
enum  NavigationServices_DialogType {
  NAVIGATIONSERVICES_OPEN,
  NAVIGATIONSERVICES_SAVE,
  NAVIGATIONSERVICES_DIRECTORY
}
 
- Protected Member Functions inherited from SalAquaPicker
void implsetTitle (const OUString &aTitle)
 
void implsetDisplayDirectory (const OUString &rDirectory)
 
OUString const & implgetDisplayDirectory ()
 
void implInitialize ()
 
- Protected Attributes inherited from SalAquaPicker
OUString m_sDisplayDirectory
 
NSSavePanel * m_pDialog
 
ControlHelperm_pControlHelper
 
osl::Mutex m_rbHelperMtx
 
NavigationServices_DialogType m_nDialogType
 

Detailed Description

Definition at line 44 of file SalAquaFilePicker.hxx.

Constructor & Destructor Documentation

SalAquaFilePicker::SalAquaFilePicker ( )
SalAquaFilePicker::SalAquaFilePicker ( const SalAquaFilePicker )
privatedelete
SalAquaFilePicker::~SalAquaFilePicker ( )
overridevirtual

Definition at line 83 of file SalAquaFilePicker.mm.

References m_pDelegate, and m_pFilterHelper.

Member Function Documentation

void SAL_CALL SalAquaFilePicker::addFilePickerListener ( const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &  xListener)
overridevirtual

Definition at line 94 of file SalAquaFilePicker.mm.

References m_xListener.

void SAL_CALL SalAquaFilePicker::appendFilter ( const OUString &  aTitle,
const OUString &  aFilter 
)
overridevirtual
void SAL_CALL SalAquaFilePicker::appendFilterGroup ( const OUString &  sGroupTitle,
const css::uno::Sequence< css::beans::StringPair > &  aFilters 
)
overridevirtual
void SAL_CALL SalAquaFilePicker::cancel ( )
overridevirtual

Definition at line 454 of file SalAquaFilePicker.mm.

References SalAquaPicker::m_pDialog.

void SalAquaFilePicker::controlStateChanged ( css::ui::dialogs::FilePickerEvent  aEvent)

Definition at line 506 of file SalAquaFilePicker.mm.

References m_xListener.

Referenced by filterControlChanged().

void SalAquaFilePicker::dialogSizeChanged ( )

Definition at line 512 of file SalAquaFilePicker.mm.

References m_xListener.

void SalAquaFilePicker::directoryChanged ( css::ui::dialogs::FilePickerEvent  aEvent)

Definition at line 500 of file SalAquaFilePicker.mm.

References m_xListener.

Referenced by AquaFilePickerDelegate::panel:directoryDidChange:.

void SalAquaFilePicker::disposing ( const css::lang::EventObject &  aEvent)
virtual
Exceptions
css::uno::RuntimeException

Definition at line 465 of file SalAquaFilePicker.mm.

References removeFilePickerListener().

void SAL_CALL SalAquaFilePicker::enableControl ( sal_Int16  nControlId,
sal_Bool  bEnable 
)
overridevirtual
void SalAquaFilePicker::ensureFilterHelper ( )
privatevirtual
sal_Int16 SAL_CALL SalAquaFilePicker::execute ( )
overridevirtual
void SalAquaFilePicker::fileSelectionChanged ( css::ui::dialogs::FilePickerEvent  aEvent)

Definition at line 494 of file SalAquaFilePicker.mm.

References m_xListener.

Referenced by AquaFilePickerDelegate::panelSelectionDidChange:.

void SalAquaFilePicker::filterControlChanged ( )
OUString SAL_CALL SalAquaFilePicker::getCurrentFilter ( )
overridevirtual
AquaFilePickerDelegate* SalAquaFilePicker::getDelegate ( )
inline

Definition at line 132 of file SalAquaFilePicker.hxx.

References m_pDelegate.

OUString SAL_CALL SalAquaFilePicker::getDisplayDirectory ( )
overridevirtual

Definition at line 215 of file SalAquaFilePicker.mm.

References SalAquaPicker::implgetDisplayDirectory().

uno::Sequence< OUString > SAL_CALL SalAquaFilePicker::getFiles ( )
overridevirtual

Definition at line 222 of file SalAquaFilePicker.mm.

References getSelectedFiles().

OUString SAL_CALL SalAquaFilePicker::getImplementationName ( )
overridevirtual

Definition at line 477 of file SalAquaFilePicker.mm.

OUString SAL_CALL SalAquaFilePicker::getLabel ( sal_Int16  nControlId)
overridevirtual
OUString const& SalAquaFilePicker::getSaveFileName ( )
inline

Definition at line 136 of file SalAquaFilePicker.hxx.

References m_sSaveFileName.

uno::Sequence< OUString > SAL_CALL SalAquaFilePicker::getSelectedFiles ( )
overridevirtual
uno::Sequence< OUString > SAL_CALL SalAquaFilePicker::getSupportedServiceNames ( )
overridevirtual

Definition at line 487 of file SalAquaFilePicker.mm.

References FilePicker_getSupportedServiceNames().

uno::Any SAL_CALL SalAquaFilePicker::getValue ( sal_Int16  aControlId,
sal_Int16  aControlAction 
)
overridevirtual
void SAL_CALL SalAquaFilePicker::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual
SalAquaFilePicker& SalAquaFilePicker::operator= ( const SalAquaFilePicker )
privatedelete
void SAL_CALL SalAquaFilePicker::removeFilePickerListener ( const css::uno::Reference< css::ui::dialogs::XFilePickerListener > &  xListener)
overridevirtual

Definition at line 100 of file SalAquaFilePicker.mm.

References m_xListener.

Referenced by disposing().

void SAL_CALL SalAquaFilePicker::setCurrentFilter ( const OUString &  aTitle)
overridevirtual
void SAL_CALL SalAquaFilePicker::setDefaultName ( const OUString &  aName)
overridevirtual

Definition at line 201 of file SalAquaFilePicker.mm.

References m_sSaveFileName.

Referenced by execute().

void SAL_CALL SalAquaFilePicker::setDisplayDirectory ( const OUString &  aDirectory)
overridevirtual

Definition at line 208 of file SalAquaFilePicker.mm.

References SalAquaPicker::implsetDisplayDirectory().

void SAL_CALL SalAquaFilePicker::setLabel ( sal_Int16  nControlId,
const OUString &  aLabel 
)
overridevirtual
virtual void SAL_CALL SalAquaFilePicker::setMultiSelectionMode ( sal_Bool  bMode)
overridevirtual
void SAL_CALL SalAquaFilePicker::setTitle ( const OUString &  aTitle)
overridevirtual

Definition at line 108 of file SalAquaFilePicker.mm.

References SalAquaPicker::implsetTitle().

void SAL_CALL SalAquaFilePicker::setValue ( sal_Int16  nControlId,
sal_Int16  nControlAction,
const css::uno::Any &  aValue 
)
overridevirtual
sal_Bool SAL_CALL SalAquaFilePicker::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 482 of file SalAquaFilePicker.mm.

References cppu::supportsService().

void SalAquaFilePicker::updateFilterUI ( )
private
void SalAquaFilePicker::updateSaveFileNameExtension ( )
private

Member Data Documentation

AquaFilePickerDelegate* SalAquaFilePicker::m_pDelegate
private
FilterHelper* SalAquaFilePicker::m_pFilterHelper
private
OUString SalAquaFilePicker::m_sSaveFileName
private

Definition at line 148 of file SalAquaFilePicker.hxx.

Referenced by execute(), getSaveFileName(), and setDefaultName().

css::uno::Reference< css::ui::dialogs::XFilePickerListener > SalAquaFilePicker::m_xListener
private

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