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
4ec1ddec
Kaydet (Commit)
4ec1ddec
authored
Nis 18, 2013
tarafından
sjacobi
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox import, added support for linked graphics (at least they are embedded now
Change-Id: I7fc8dcc989eb37d3a337f06137bb7361cce797d3
üst
d4324078
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
fillpropertiesgroupcontext.cxx
oox/source/drawingml/fillpropertiesgroupcontext.cxx
+12
-3
No files found.
oox/source/drawingml/fillpropertiesgroupcontext.cxx
Dosyayı görüntüle @
4ec1ddec
...
...
@@ -23,6 +23,7 @@
#include "oox/core/xmlfilterbase.hxx"
#include "oox/drawingml/drawingmltypes.hxx"
#include "oox/drawingml/fillproperties.hxx"
#include <sfx2/docfile.hxx>
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -166,9 +167,17 @@ BlipContext::BlipContext( ContextHandler& rParent,
else
if
(
aAttribs
.
hasAttribute
(
R_TOKEN
(
link
)
)
)
{
// external URL
// OUString aRelId = aAttribs.getString( R_TOKEN( link ), OUString() );
// OUString aTargetLink = getFilter().getAbsoluteUrl( getRelations().getExternalTargetFromRelId( aRelId ) );
// TODO: load external picture
// we will embed this link, this is better than just doing nothing..
// TODO: import this graphic as real link, but this requires some
// code rework.
OUString
aRelId
=
aAttribs
.
getString
(
R_TOKEN
(
link
),
OUString
()
);
OUString
aTargetLink
=
getFilter
().
getAbsoluteUrl
(
getRelations
().
getExternalTargetFromRelId
(
aRelId
)
);
SfxMedium
xMed
(
aTargetLink
,
STREAM_STD_READ
);
xMed
.
DownLoad
();
Reference
<
io
::
XInputStream
>
xInStrm
=
xMed
.
GetInputStream
();
if
(
xInStrm
.
is
()
)
mrBlipProps
.
mxGraphic
=
getFilter
().
getGraphicHelper
().
importGraphic
(
xInStrm
);
}
}
...
...
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