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
127caae6
Kaydet (Commit)
127caae6
authored
Nis 26, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwModelTestBase: add save(), next to load() and reload()
Change-Id: I15405dd6be64da689257aed50ba847f3741df3a1
üst
8bcbc1d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
swmodeltestbase.hxx
sw/qa/extras/inc/swmodeltestbase.hxx
+11
-0
odfexport.cxx
sw/qa/extras/odfexport/odfexport.cxx
+1
-7
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+1
-6
No files found.
sw/qa/extras/inc/swmodeltestbase.hxx
Dosyayı görüntüle @
127caae6
...
@@ -288,6 +288,17 @@ protected:
...
@@ -288,6 +288,17 @@ protected:
calcLayout
();
calcLayout
();
}
}
/// Save the loaded document to a tempfile. Can be used to check the resulting docx/odt directly as a ZIP file.
void
save
(
OUString
aFilter
,
utl
::
TempFile
&
rTempFile
)
{
rTempFile
.
EnableKillingFile
();
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aFilterArgs
(
1
);
aFilterArgs
[
0
].
Name
=
"FilterName"
;
aFilterArgs
[
0
].
Value
<<=
aFilter
;
xStorable
->
storeToURL
(
rTempFile
.
GetURL
(),
aFilterArgs
);
}
void
finish
()
void
finish
()
{
{
sal_uInt32
nEndTime
=
osl_getGlobalTimer
();
sal_uInt32
nEndTime
=
osl_getGlobalTimer
();
...
...
sw/qa/extras/odfexport/odfexport.cxx
Dosyayı görüntüle @
127caae6
...
@@ -152,14 +152,8 @@ void Test::testFdo58949()
...
@@ -152,14 +152,8 @@ void Test::testFdo58949()
* and replacement image) OLE objects using UNO, so we'll check the zip file directly.
* and replacement image) OLE objects using UNO, so we'll check the zip file directly.
*/
*/
// Create the zip file.
utl
::
TempFile
aTempFile
;
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
save
(
"writer8"
,
aTempFile
);
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aFilterArgs
(
1
);
aFilterArgs
[
0
].
Name
=
"FilterName"
;
aFilterArgs
[
0
].
Value
<<=
OUString
(
"writer8"
);
xStorable
->
storeToURL
(
aTempFile
.
GetURL
(),
aFilterArgs
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
<<=
OUString
(
aTempFile
.
GetURL
());
aArgs
[
0
]
<<=
OUString
(
aTempFile
.
GetURL
());
...
...
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
127caae6
...
@@ -578,12 +578,7 @@ void Test::testCellBtlr()
...
@@ -578,12 +578,7 @@ void Test::testCellBtlr()
// Create the zip file.
// Create the zip file.
utl
::
TempFile
aTempFile
;
utl
::
TempFile
aTempFile
;
aTempFile
.
EnableKillingFile
();
save
(
"Office Open XML Text"
,
aTempFile
);
uno
::
Reference
<
frame
::
XStorable
>
xStorable
(
mxComponent
,
uno
::
UNO_QUERY
);
uno
::
Sequence
<
beans
::
PropertyValue
>
aFilterArgs
(
1
);
aFilterArgs
[
0
].
Name
=
"FilterName"
;
aFilterArgs
[
0
].
Value
<<=
OUString
(
"Office Open XML Text"
);
xStorable
->
storeToURL
(
aTempFile
.
GetURL
(),
aFilterArgs
);
// Read the XML stream we're interested in.
// Read the XML stream we're interested in.
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
...
...
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