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
9f6dd9a4
Kaydet (Commit)
9f6dd9a4
authored
Agu 29, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#777345 import imagedata of v:rect elements inside OLE objects
Change-Id: I300bb5d3008b839f6ec63a4435f5ce8c1dd0a2c1
üst
2323ca6b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
vmlshape.hxx
oox/inc/oox/vml/vmlshape.hxx
+6
-0
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+22
-0
No files found.
oox/inc/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
9f6dd9a4
...
...
@@ -284,6 +284,12 @@ class RectangleShape : public SimpleShape
{
public
:
explicit
RectangleShape
(
Drawing
&
rDrawing
);
protected
:
/** Creates the corresponding XShape and inserts it into the passed container. */
virtual
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShape
>
implConvertAndInsert
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
drawing
::
XShapes
>&
rxShapes
,
const
com
::
sun
::
star
::
awt
::
Rectangle
&
rShapeRect
)
const
;
};
// ============================================================================
...
...
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
9f6dd9a4
...
...
@@ -454,6 +454,28 @@ RectangleShape::RectangleShape( Drawing& rDrawing ) :
{
}
Reference
<
XShape
>
RectangleShape
::
implConvertAndInsert
(
const
Reference
<
XShapes
>&
rxShapes
,
const
Rectangle
&
rShapeRect
)
const
{
XmlFilterBase
&
rFilter
=
mrDrawing
.
getFilter
();
OUString
aGraphicPath
=
getGraphicPath
();
// try to create a picture object
if
(
!
aGraphicPath
.
isEmpty
())
{
Reference
<
XShape
>
xShape
=
mrDrawing
.
createAndInsertXShape
(
"com.sun.star.drawing.GraphicObjectShape"
,
rxShapes
,
rShapeRect
);
if
(
xShape
.
is
())
{
OUString
aGraphicUrl
=
rFilter
.
getGraphicHelper
().
importEmbeddedGraphicObject
(
aGraphicPath
);
PropertySet
aPropSet
(
xShape
);
aPropSet
.
setProperty
(
PROP_GraphicURL
,
aGraphicUrl
);
}
return
xShape
;
}
// default: try to create a rectangle shape
return
SimpleShape
::
implConvertAndInsert
(
rxShapes
,
rShapeRect
);
}
// ============================================================================
EllipseShape
::
EllipseShape
(
Drawing
&
rDrawing
)
:
...
...
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