Kaydet (Commit) 0aae2a87 authored tarafından Szymon Kłos's avatar Szymon Kłos

RemoteFilesDialog: methods implementations

Change-Id: I3938a17fe180273ec9845720290b1503d15bfcc3
üst fb156b90
......@@ -44,6 +44,7 @@ using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::ucb;
using namespace ::com::sun::star::task;
using namespace ::com::sun::star::ui::dialogs;
using namespace ::comphelper;
using namespace ::svt;
......@@ -85,7 +86,7 @@ public:
virtual SvtFileView* GetView();
virtual void SetHasFilename( bool bHasFilename );
virtual void SetHasFilename( bool );
virtual void SetBlackList( const ::com::sun::star::uno::Sequence< OUString >& rBlackList );
virtual const ::com::sun::star::uno::Sequence< OUString >& GetBlackList() const;
virtual void SetStandardDir( const OUString& rStdDir );
......
......@@ -749,9 +749,8 @@ SvtFileView* RemoteFilesDialog::GetView()
return m_pFileView;
}
void RemoteFilesDialog::SetHasFilename( bool bHasFilename )
void RemoteFilesDialog::SetHasFilename( bool )
{
// TODO
}
void RemoteFilesDialog::SetBlackList( const ::com::sun::star::uno::Sequence< OUString >& rBlackList )
......@@ -846,6 +845,7 @@ const OUString& RemoteFilesDialog::GetPath()
std::vector<OUString> RemoteFilesDialog::GetPathList() const
{
// TODO
std::vector<OUString> aPaths;
aPaths.push_back(m_sPath);
return aPaths;
......@@ -853,8 +853,12 @@ std::vector<OUString> RemoteFilesDialog::GetPathList() const
bool RemoteFilesDialog::ContentIsFolder( const OUString& rURL )
{
// TODO
return false;
Reference< XComponentContext > xContext = ::comphelper::getProcessComponentContext();
Reference< XInteractionHandler > xInteractionHandler(
InteractionHandler::createWithParent( xContext, 0 ), UNO_QUERY_THROW );
Reference< XCommandEnvironment > xEnv = new ::ucbhelper::CommandEnvironment( xInteractionHandler, Reference< XProgressHandler >() );
::ucbhelper::Content aContent( rURL, xEnv, xContext );
return aContent.isFolder();
}
sal_Int32 RemoteFilesDialog::getTargetColorDepth()
......@@ -886,14 +890,12 @@ bool RemoteFilesDialog::getShowState()
return false;
}
Control* RemoteFilesDialog::getControl( sal_Int16 _nControlId, bool _bLabelControl) const
Control* RemoteFilesDialog::getControl( sal_Int16, bool) const
{
// TODO
return NULL;
}
void RemoteFilesDialog::enableControl( sal_Int16 _nControlId, bool _bEnable )
void RemoteFilesDialog::enableControl( sal_Int16, bool )
{
// TODO
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment