Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d3f629a1
Kaydet (Commit)
d3f629a1
authored
Ara 05, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix the testPasswordExport test.
Change-Id: I9ef9be5d31a08813db9ecfed8eeb0ba8579309e9
üst
75e4c6fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
subsequent_export-test.cxx
sc/qa/unit/subsequent_export-test.cxx
+10
-4
No files found.
sc/qa/unit/subsequent_export-test.cxx
Dosyayı görüntüle @
d3f629a1
...
@@ -92,7 +92,8 @@ private:
...
@@ -92,7 +92,8 @@ private:
ScDocShellRef
load
(
ScDocShellRef
load
(
const
OUString
&
rURL
,
const
OUString
&
rFilter
,
const
OUString
&
rUserData
,
const
OUString
&
rURL
,
const
OUString
&
rFilter
,
const
OUString
&
rUserData
,
const
OUString
&
rTypeName
,
sal_Int32
nFormat
,
sal_uLong
nFormatType
);
const
OUString
&
rTypeName
,
sal_Int32
nFormat
,
sal_uLong
nFormatType
,
const
OUString
*
pPassword
=
NULL
);
ScDocShellRef
saveAndReload
(
ScDocShell
*
pShell
,
sal_Int32
nFormat
);
ScDocShellRef
saveAndReload
(
ScDocShell
*
pShell
,
sal_Int32
nFormat
);
ScDocShellRef
loadDocument
(
const
rtl
::
OUString
&
rFileNameBase
,
sal_Int32
nFormat
);
ScDocShellRef
loadDocument
(
const
rtl
::
OUString
&
rFileNameBase
,
sal_Int32
nFormat
);
...
@@ -120,7 +121,6 @@ void ScExportTest::createCSVPath(const rtl::OUString& aFileBase, rtl::OUString&
...
@@ -120,7 +121,6 @@ void ScExportTest::createCSVPath(const rtl::OUString& aFileBase, rtl::OUString&
ScDocShellRef
ScExportTest
::
saveAndReloadPassword
(
ScDocShell
*
pShell
,
const
rtl
::
OUString
&
rFilter
,
ScDocShellRef
ScExportTest
::
saveAndReloadPassword
(
ScDocShell
*
pShell
,
const
rtl
::
OUString
&
rFilter
,
const
rtl
::
OUString
&
rUserData
,
const
rtl
::
OUString
&
rTypeName
,
sal_uLong
nFormatType
)
const
rtl
::
OUString
&
rUserData
,
const
rtl
::
OUString
&
rTypeName
,
sal_uLong
nFormatType
)
{
{
utl
::
TempFile
aTempFile
;
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
aTempFile
.
EnableKillingFile
();
SfxMedium
aStoreMedium
(
aTempFile
.
GetURL
(),
STREAM_STD_WRITE
);
SfxMedium
aStoreMedium
(
aTempFile
.
GetURL
(),
STREAM_STD_WRITE
);
...
@@ -151,7 +151,8 @@ ScDocShellRef ScExportTest::saveAndReloadPassword(ScDocShell* pShell, const rtl:
...
@@ -151,7 +151,8 @@ ScDocShellRef ScExportTest::saveAndReloadPassword(ScDocShell* pShell, const rtl:
if
(
nFormatType
)
if
(
nFormatType
)
nFormat
=
SFX_FILTER_IMPORT
|
SFX_FILTER_USESOPTIONS
;
nFormat
=
SFX_FILTER_IMPORT
|
SFX_FILTER_USESOPTIONS
;
return
load
(
aTempFile
.
GetURL
(),
rFilter
,
rUserData
,
rTypeName
,
nFormat
,
nFormatType
);
OUString
aPass
(
"test"
);
return
load
(
aTempFile
.
GetURL
(),
rFilter
,
rUserData
,
rTypeName
,
nFormat
,
nFormatType
,
&
aPass
);
}
}
ScDocShellRef
ScExportTest
::
saveAndReload
(
ScDocShell
*
pShell
,
const
rtl
::
OUString
&
rFilter
,
ScDocShellRef
ScExportTest
::
saveAndReload
(
ScDocShell
*
pShell
,
const
rtl
::
OUString
&
rFilter
,
...
@@ -184,7 +185,7 @@ ScDocShellRef ScExportTest::saveAndReload(ScDocShell* pShell, const rtl::OUStrin
...
@@ -184,7 +185,7 @@ ScDocShellRef ScExportTest::saveAndReload(ScDocShell* pShell, const rtl::OUStrin
ScDocShellRef
ScExportTest
::
load
(
ScDocShellRef
ScExportTest
::
load
(
const
OUString
&
rURL
,
const
OUString
&
rFilter
,
const
OUString
&
rUserData
,
const
OUString
&
rURL
,
const
OUString
&
rFilter
,
const
OUString
&
rUserData
,
const
OUString
&
rTypeName
,
sal_Int32
nFormat
,
sal_uLong
nFormatType
)
const
OUString
&
rTypeName
,
sal_Int32
nFormat
,
sal_uLong
nFormatType
,
const
OUString
*
pPassword
)
{
{
SfxFilter
*
pFilter
=
new
SfxFilter
(
SfxFilter
*
pFilter
=
new
SfxFilter
(
rFilter
,
rFilter
,
...
@@ -197,6 +198,11 @@ ScDocShellRef ScExportTest::load(
...
@@ -197,6 +198,11 @@ ScDocShellRef ScExportTest::load(
SfxMedium
*
pSrcMed
=
new
SfxMedium
(
rURL
,
STREAM_STD_READ
);
SfxMedium
*
pSrcMed
=
new
SfxMedium
(
rURL
,
STREAM_STD_READ
);
pSrcMed
->
SetFilter
(
pFilter
);
pSrcMed
->
SetFilter
(
pFilter
);
pSrcMed
->
UseInteractionHandler
(
false
);
pSrcMed
->
UseInteractionHandler
(
false
);
if
(
pPassword
)
{
SfxItemSet
*
pSet
=
pSrcMed
->
GetItemSet
();
pSet
->
Put
(
SfxStringItem
(
SID_PASSWORD
,
*
pPassword
));
}
if
(
!
xDocShRef
->
DoLoad
(
pSrcMed
))
if
(
!
xDocShRef
->
DoLoad
(
pSrcMed
))
{
{
xDocShRef
->
DoClose
();
xDocShRef
->
DoClose
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment