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
28e3aff5
Kaydet (Commit)
28e3aff5
authored
May 31, 2013
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46808, Use service constructor for ZipFileAccess
Change-Id: I9c3f8e2df56953487329bdbbac251b3af8cd9917
üst
8d281104
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+2
-3
impimagetree.cxx
vcl/source/gdi/impimagetree.cxx
+2
-14
No files found.
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
28e3aff5
...
...
@@ -11,6 +11,7 @@
#include <com/sun/star/drawing/FillStyle.hpp>
#include <com/sun/star/awt/Gradient.hpp>
#include <com/sun/star/style/TabStop.hpp>
#include <com/sun/star/packages/zip/ZipFileAccess.hpp>
#include <com/sun/star/view/XViewSettingsSupplier.hpp>
#include <com/sun/star/text/XTextFrame.hpp>
#include <com/sun/star/text/XTextTable.hpp>
...
...
@@ -586,9 +587,7 @@ void Test::testCellBtlr()
save
(
"Office Open XML Text"
,
aTempFile
);
// Read the XML stream we're interested in.
uno
::
Sequence
<
uno
::
Any
>
aArgs
(
1
);
aArgs
[
0
]
<<=
OUString
(
aTempFile
.
GetURL
());
uno
::
Reference
<
container
::
XNameAccess
>
xNameAccess
(
m_xSFactory
->
createInstanceWithArguments
(
"com.sun.star.packages.zip.ZipFileAccess"
,
aArgs
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
packages
::
zip
::
XZipFileAccess2
>
xNameAccess
=
packages
::
zip
::
ZipFileAccess
::
createWithURL
(
comphelper
::
getComponentContext
(
m_xSFactory
),
aTempFile
.
GetURL
());
uno
::
Reference
<
io
::
XInputStream
>
xInputStream
(
xNameAccess
->
getByName
(
"word/document.xml"
),
uno
::
UNO_QUERY
);
boost
::
shared_ptr
<
SvStream
>
pStream
(
utl
::
UcbStreamHelper
::
CreateStream
(
xInputStream
,
sal_True
));
pStream
->
Seek
(
STREAM_SEEK_TO_END
);
...
...
vcl/source/gdi/impimagetree.cxx
Dosyayı görüntüle @
28e3aff5
...
...
@@ -299,14 +299,8 @@ bool ImplImageTree::find(
}
if
(
!
m_path
.
second
.
is
())
{
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
args
(
1
);
args
[
0
]
<<=
m_path
.
first
+
".zip"
;
try
{
m_path
.
second
.
set
(
comphelper
::
getProcessServiceFactory
()
->
createInstanceWithArguments
(
OUString
(
"com.sun.star.packages.zip.ZipFileAccess"
),
args
),
css
::
uno
::
UNO_QUERY_THROW
);
m_path
.
second
=
css
::
packages
::
zip
::
ZipFileAccess
::
createWithURL
(
comphelper
::
getProcessComponentContext
(),
m_path
.
first
+
".zip"
);
}
catch
(
css
::
uno
::
RuntimeException
&
)
{
throw
;
}
catch
(
const
css
::
uno
::
Exception
&
e
)
{
...
...
@@ -346,15 +340,9 @@ void ImplImageTree::loadImageLinks()
if
(
!
m_path
.
second
.
is
()
)
{
css
::
uno
::
Sequence
<
css
::
uno
::
Any
>
args
(
1
);
args
[
0
]
<<=
m_path
.
first
+
".zip"
;
try
{
m_path
.
second
.
set
(
comphelper
::
getProcessServiceFactory
()
->
createInstanceWithArguments
(
OUString
(
"com.sun.star.packages.zip.ZipFileAccess"
),
args
),
css
::
uno
::
UNO_QUERY_THROW
);
m_path
.
second
=
css
::
packages
::
zip
::
ZipFileAccess
::
createWithURL
(
comphelper
::
getProcessComponentContext
(),
m_path
.
first
+
".zip"
);
}
catch
(
css
::
uno
::
RuntimeException
&
)
{
...
...
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