summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/FilePicker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/FilePicker.cxx')
-rw-r--r--fpicker/source/win32/filepicker/FilePicker.cxx172
1 files changed, 86 insertions, 86 deletions
diff --git a/fpicker/source/win32/filepicker/FilePicker.cxx b/fpicker/source/win32/filepicker/FilePicker.cxx
index b78bacbb774f..105bb81d73e1 100644
--- a/fpicker/source/win32/filepicker/FilePicker.cxx
+++ b/fpicker/source/win32/filepicker/FilePicker.cxx
@@ -33,9 +33,9 @@
#include <comphelper/sequenceasvector.hxx>
-//------------------------------------------------------------------------
+
// namespace directives
-//------------------------------------------------------------------------
+
using namespace com::sun::star;
@@ -44,9 +44,9 @@ using namespace ::com::sun::star::ui::dialogs::TemplateDescription;
#define FILE_PICKER_DLL_NAME TEXT("fps.dll")
-//------------------------------------------------------------------------
+
// helper functions
-//------------------------------------------------------------------------
+
namespace
{
@@ -63,9 +63,9 @@ namespace
}
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xServiceMgr) :
CFilePicker_Base(m_rbHelperMtx),
@@ -85,9 +85,9 @@ CFilePicker::CFilePicker( const uno::Reference<lang::XMultiServiceFactory>& xSer
hInstance ) );
}
-//------------------------------------------------------------------------------------
+
// XFPEventListenerManager
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::addFilePickerListener(const uno::Reference<XFilePickerListener>& xListener)
throw(uno::RuntimeException)
@@ -101,9 +101,9 @@ void SAL_CALL CFilePicker::addFilePickerListener(const uno::Reference<XFilePicke
rBHelper.aLC.addInterface( getCppuType( &xListener ), xListener );
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::removeFilePickerListener(const uno::Reference<XFilePickerListener>& xListener )
throw(uno::RuntimeException)
@@ -116,9 +116,9 @@ void SAL_CALL CFilePicker::removeFilePickerListener(const uno::Reference<XFilePi
rBHelper.aLC.removeInterface( getCppuType( &xListener ), xListener );
}
-// -------------------------------------------------
+
// XEventListener
-// -------------------------------------------------
+
void SAL_CALL CFilePicker::disposing(const lang::EventObject& aEvent) throw(uno::RuntimeException)
{
@@ -128,9 +128,9 @@ void SAL_CALL CFilePicker::disposing(const lang::EventObject& aEvent) throw(uno:
removeFilePickerListener(xFilePickerListener);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::fileSelectionChanged(FilePickerEvent aEvent)
{
@@ -139,9 +139,9 @@ void SAL_CALL CFilePicker::fileSelectionChanged(FilePickerEvent aEvent)
new CFilePickerParamEventNotification(&XFilePickerListener::fileSelectionChanged,aEvent));
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::directoryChanged(FilePickerEvent aEvent)
{
@@ -150,9 +150,9 @@ void SAL_CALL CFilePicker::directoryChanged(FilePickerEvent aEvent)
new CFilePickerParamEventNotification(&XFilePickerListener::directoryChanged,aEvent));
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::controlStateChanged(FilePickerEvent aEvent)
{
@@ -161,9 +161,9 @@ void SAL_CALL CFilePicker::controlStateChanged(FilePickerEvent aEvent)
new CFilePickerParamEventNotification(&XFilePickerListener::controlStateChanged,aEvent));
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::dialogSizeChanged()
{
@@ -171,9 +171,9 @@ void SAL_CALL CFilePicker::dialogSizeChanged()
new CFilePickerEventNotification(&XFilePickerListener::dialogSizeChanged));
}
-//-----------------------------------------------------------------------------------------
+
// If there are more then one listener the return value of the last one wins
-//-----------------------------------------------------------------------------------------
+
OUString SAL_CALL CFilePicker::helpRequested(FilePickerEvent aEvent) const
{
@@ -217,45 +217,45 @@ OUString SAL_CALL CFilePicker::helpRequested(FilePickerEvent aEvent) const
return aHelpText;
}
-//-------------------------------------
+
//
-//-------------------------------------
+
bool CFilePicker::startupEventNotification(bool bStartupSuspended)
{
return m_aAsyncEventNotifier.startup(bStartupSuspended);
}
-//-------------------------------------
+
//
-//-------------------------------------
+
void CFilePicker::shutdownEventNotification()
{
m_aAsyncEventNotifier.shutdown();
}
-//-------------------------------------
+
//
-//-------------------------------------
+
void CFilePicker::suspendEventNotification()
{
m_aAsyncEventNotifier.suspend();
}
-//-------------------------------------
+
//
-//-------------------------------------
+
void CFilePicker::resumeEventNotification()
{
m_aAsyncEventNotifier.resume();
}
-//------------------------------------------------------------------------------------
+
// XFilePicker functions
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setMultiSelectionMode(sal_Bool bMode) throw(uno::RuntimeException)
{
@@ -264,9 +264,9 @@ void SAL_CALL CFilePicker::setMultiSelectionMode(sal_Bool bMode) throw(uno::Runt
m_pImpl->setMultiSelectionMode(bMode);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setTitle(const OUString& aTitle) throw(uno::RuntimeException)
{
@@ -275,9 +275,9 @@ void SAL_CALL CFilePicker::setTitle(const OUString& aTitle) throw(uno::RuntimeEx
m_pImpl->setTitle(aTitle);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::appendFilter(const OUString& aTitle, const OUString& aFilter)
throw(lang::IllegalArgumentException, uno::RuntimeException)
@@ -287,9 +287,9 @@ void SAL_CALL CFilePicker::appendFilter(const OUString& aTitle, const OUString&
m_pImpl->appendFilter(aTitle, aFilter);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setCurrentFilter(const OUString& aTitle)
throw(lang::IllegalArgumentException, uno::RuntimeException)
@@ -299,9 +299,9 @@ void SAL_CALL CFilePicker::setCurrentFilter(const OUString& aTitle)
m_pImpl->setCurrentFilter(aTitle);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
OUString SAL_CALL CFilePicker::getCurrentFilter() throw(uno::RuntimeException)
{
@@ -310,9 +310,9 @@ OUString SAL_CALL CFilePicker::getCurrentFilter() throw(uno::RuntimeException)
return m_pImpl->getCurrentFilter();
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::appendFilterGroup(const OUString& sGroupTitle, const uno::Sequence<beans::StringPair>& aFilters)
throw (lang::IllegalArgumentException, uno::RuntimeException)
@@ -322,9 +322,9 @@ void SAL_CALL CFilePicker::appendFilterGroup(const OUString& sGroupTitle, const
m_pImpl->appendFilterGroup(sGroupTitle, aFilters);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setDefaultName(const OUString& aName)
throw(uno::RuntimeException)
@@ -334,9 +334,9 @@ void SAL_CALL CFilePicker::setDefaultName(const OUString& aName)
m_pImpl->setDefaultName(aName);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setDisplayDirectory(const OUString& aDirectory)
throw(lang::IllegalArgumentException, uno::RuntimeException)
@@ -346,9 +346,9 @@ void SAL_CALL CFilePicker::setDisplayDirectory(const OUString& aDirectory)
m_pImpl->setDisplayDirectory(aDirectory);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
OUString SAL_CALL CFilePicker::getDisplayDirectory() throw(uno::RuntimeException)
{
@@ -357,9 +357,9 @@ OUString SAL_CALL CFilePicker::getDisplayDirectory() throw(uno::RuntimeException
return m_pImpl->getDisplayDirectory();
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
uno::Sequence<OUString> SAL_CALL CFilePicker::getFiles() throw(uno::RuntimeException)
{
@@ -368,9 +368,9 @@ uno::Sequence<OUString> SAL_CALL CFilePicker::getFiles() throw(uno::RuntimeExcep
return m_pImpl->getFiles();
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
uno::Sequence< OUString > SAL_CALL CFilePicker::getSelectedFiles() throw (uno::RuntimeException)
{
OSL_ASSERT(0 != m_pImpl.get());
@@ -408,9 +408,9 @@ uno::Sequence< OUString > SAL_CALL CFilePicker::getSelectedFiles() throw (uno::R
return lTarget.getAsConstList();
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
sal_Int16 SAL_CALL CFilePicker::execute() throw(uno::RuntimeException)
{
@@ -440,9 +440,9 @@ sal_Int16 SAL_CALL CFilePicker::execute() throw(uno::RuntimeException)
return ret;
}
-//------------------------------------------------------------------------------------
+
// XFilePicker functions
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setValue(sal_Int16 aControlId, sal_Int16 aControlAction, const uno::Any& aValue)
throw(uno::RuntimeException)
@@ -453,9 +453,9 @@ void SAL_CALL CFilePicker::setValue(sal_Int16 aControlId, sal_Int16 aControlActi
m_pImpl->setValue(aControlId, aControlAction, aValue);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
uno::Any SAL_CALL CFilePicker::getValue(sal_Int16 aControlId, sal_Int16 aControlAction)
throw(uno::RuntimeException)
@@ -466,9 +466,9 @@ uno::Any SAL_CALL CFilePicker::getValue(sal_Int16 aControlId, sal_Int16 aControl
return m_pImpl->getValue(aControlId, aControlAction);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::enableControl(sal_Int16 aControlId, sal_Bool bEnable)
throw(uno::RuntimeException)
@@ -479,9 +479,9 @@ throw(uno::RuntimeException)
m_pImpl->enableControl( aControlId, bEnable );
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setLabel(sal_Int16 aControlId, const OUString& aLabel)
throw (uno::RuntimeException)
@@ -492,9 +492,9 @@ void SAL_CALL CFilePicker::setLabel(sal_Int16 aControlId, const OUString& aLabel
m_pImpl->setLabel(aControlId, aLabel);
}
-//-----------------------------------------------------------------------------------------
+
//
-//-----------------------------------------------------------------------------------------
+
OUString SAL_CALL CFilePicker::getLabel(sal_Int16 aControlId)
throw (uno::RuntimeException)
@@ -505,9 +505,9 @@ OUString SAL_CALL CFilePicker::getLabel(sal_Int16 aControlId)
return m_pImpl->getLabel(aControlId);
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
uno::Sequence<sal_Int16> SAL_CALL CFilePicker::getSupportedImageFormats() throw (uno::RuntimeException)
{
@@ -517,9 +517,9 @@ uno::Sequence<sal_Int16> SAL_CALL CFilePicker::getSupportedImageFormats() throw
return m_pImpl->getSupportedImageFormats();
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL CFilePicker::getTargetColorDepth() throw (uno::RuntimeException)
{
@@ -529,9 +529,9 @@ sal_Int32 SAL_CALL CFilePicker::getTargetColorDepth() throw (uno::RuntimeExcepti
return m_pImpl->getTargetColorDepth();
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL CFilePicker::getAvailableWidth() throw (uno::RuntimeException)
{
@@ -541,9 +541,9 @@ sal_Int32 SAL_CALL CFilePicker::getAvailableWidth() throw (uno::RuntimeException
return m_pImpl->getAvailableWidth();
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
sal_Int32 SAL_CALL CFilePicker::getAvailableHeight() throw (uno::RuntimeException)
{
@@ -553,9 +553,9 @@ sal_Int32 SAL_CALL CFilePicker::getAvailableHeight() throw (uno::RuntimeExceptio
return m_pImpl->getAvailableHeight();
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::setImage(sal_Int16 aImageFormat, const uno::Any& aImage)
throw (lang::IllegalArgumentException, uno::RuntimeException)
@@ -566,9 +566,9 @@ void SAL_CALL CFilePicker::setImage(sal_Int16 aImageFormat, const uno::Any& aIma
m_pImpl->setImage(aImageFormat, aImage);
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
sal_Bool SAL_CALL CFilePicker::setShowState(sal_Bool bShowState) throw (uno::RuntimeException)
{
@@ -578,9 +578,9 @@ sal_Bool SAL_CALL CFilePicker::setShowState(sal_Bool bShowState) throw (uno::Run
return m_pImpl->setShowState(bShowState);
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
sal_Bool SAL_CALL CFilePicker::getShowState() throw (uno::RuntimeException)
{
@@ -590,9 +590,9 @@ sal_Bool SAL_CALL CFilePicker::getShowState() throw (uno::RuntimeException)
return m_pImpl->getShowState();
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::initialize(const uno::Sequence<uno::Any>& aArguments)
throw( uno::Exception, uno::RuntimeException)
@@ -691,9 +691,9 @@ void SAL_CALL CFilePicker::initialize(const uno::Sequence<uno::Any>& aArguments)
hInstance ) );
}
-//------------------------------------------------------------------------------------
+
//
-//------------------------------------------------------------------------------------
+
void SAL_CALL CFilePicker::cancel()
throw(uno::RuntimeException)
@@ -704,9 +704,9 @@ void SAL_CALL CFilePicker::cancel()
m_pImpl->cancel();
}
-// -------------------------------------------------
+
// XServiceInfo
-// -------------------------------------------------
+
OUString SAL_CALL CFilePicker::getImplementationName()
throw(uno::RuntimeException)
@@ -721,9 +721,9 @@ sal_Bool SAL_CALL CFilePicker::supportsService(const OUString& ServiceName)
return cppu::supportsService(this, ServiceName);
}
-// -------------------------------------------------
+
// XServiceInfo
-// -------------------------------------------------
+
uno::Sequence<OUString> SAL_CALL CFilePicker::getSupportedServiceNames()
throw(uno::RuntimeException)