summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-10-06 21:12:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2015-10-06 20:34:36 +0000
commit912268d49c1d9ae7cbec63673ee7ca40f15c0451 (patch)
tree3bfed9d7e92b2ab0d5162b768f2e7baeecafb481 /basctl
parent731e11edb44711c87cefdfa82b484fe82a98f33b (diff)
Prefer getSelectedFiles to getFiles (basctl)
Change-Id: I09cdad8770eba515c36220fbfb355220c9fa3bef Reviewed-on: https://gerrit.libreoffice.org/19217 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx4
-rw-r--r--basctl/source/basicide/baside3.cxx4
-rw-r--r--basctl/source/basicide/moduldl2.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index e4f07208a321..98b1834c3581 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -419,7 +419,7 @@ bool ModulWindow::LoadBasic()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
SfxMedium aMedium( aCurPath, StreamMode::READ | StreamMode::SHARE_DENYWRITE | StreamMode::NOCREATE );
SvStream* pStream = aMedium.GetInStream();
@@ -470,7 +470,7 @@ bool ModulWindow::SaveBasicSource()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
SfxMedium aMedium( aCurPath, StreamMode::WRITE | StreamMode::SHARE_DENYWRITE | StreamMode::TRUNC );
SvStream* pStream = aMedium.GetOutStream();
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index fcc2e37685c3..2eafe912de05 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -699,7 +699,7 @@ bool DialogWindow::SaveDialog()
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
// export dialog model to xml
@@ -944,7 +944,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
if( xFP->execute() == RET_OK )
{
- Sequence< OUString > aPaths = xFP->getFiles();
+ Sequence< OUString > aPaths = xFP->getSelectedFiles();
aCurPath = aPaths[0];
OUString aBasePath;
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index c61f85fa059d..5d5cecdd96a8 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -786,7 +786,7 @@ void LibPage::InsertLib()
Reference< script::XLibraryContainer2 > xDlgLibContImport;
// file URLs
- Sequence< OUString > aFiles = xFP->getFiles();
+ Sequence< OUString > aFiles = xFP->getSelectedFiles();
INetURLObject aURLObj( aFiles[0] );
INetURLObject aModURLObj( aURLObj );
INetURLObject aDlgURLObj( aURLObj );
@@ -1223,7 +1223,7 @@ void LibPage::ExportAsPackage( const OUString& aLibName )
{
GetExtraData()->SetAddLibPath(xFP->getDisplayDirectory());
- Sequence< OUString > aFiles = xFP->getFiles();
+ Sequence< OUString > aFiles = xFP->getSelectedFiles();
INetURLObject aURL( aFiles[0] );
if( aURL.getExtension().isEmpty() )
aURL.setExtension( "oxt" );