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
430246ef
Kaydet (Commit)
430246ef
authored
Ock 06, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox: handle pic:pic in WPG groupshape import
Change-Id: I7de11251bc4e1b58f9cb308e8b698d4c8c1a58d3
üst
c6d1ccd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
WpgContext.cxx
oox/source/shape/WpgContext.cxx
+4
-0
groupshape-picture.docx
sw/qa/extras/ooxmlexport/data/groupshape-picture.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+8
-0
No files found.
oox/source/shape/WpgContext.cxx
Dosyayı görüntüle @
430246ef
...
...
@@ -10,6 +10,7 @@
#include "WpgContext.hxx"
#include <oox/drawingml/shapepropertiescontext.hxx>
#include <oox/drawingml/shapegroupcontext.hxx>
#include <oox/drawingml/graphicshapecontext.hxx>
using
namespace
com
::
sun
::
star
;
...
...
@@ -54,6 +55,9 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken
return
new
oox
::
drawingml
::
ShapeContext
(
*
this
,
mpShape
,
pShape
);
}
break
;
case
XML_pic
:
return
new
oox
::
drawingml
::
GraphicShapeContext
(
*
this
,
mpShape
,
oox
::
drawingml
::
ShapePtr
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GraphicObjectShape"
)));
break
;
case
XML_grpSp
:
{
oox
::
drawingml
::
ShapePtr
pShape
(
new
oox
::
drawingml
::
Shape
(
"com.sun.star.drawing.GroupShape"
));
...
...
sw/qa/extras/ooxmlexport/data/groupshape-picture.docx
0 → 100644
Dosyayı görüntüle @
430246ef
File added
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
430246ef
...
...
@@ -2217,6 +2217,14 @@ DECLARE_OOXMLEXPORT_TEST(testGroupshapeTextbox, "groupshape-textbox.docx")
CPPUNIT_ASSERT_EQUAL
(
11.
f
,
getProperty
<
float
>
(
xShape
,
"CharHeight"
));
}
DECLARE_OOXMLEXPORT_TEST
(
testGroupshapePicture
,
"groupshape-picture.docx"
)
{
// Picture in the groupshape got lost, groupshape had only one child.
uno
::
Reference
<
drawing
::
XShapes
>
xGroup
(
getShape
(
1
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShapeDescriptor
>
xShapeDescriptor
(
xGroup
->
getByIndex
(
1
),
uno
::
UNO_QUERY
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"com.sun.star.drawing.GraphicObjectShape"
),
xShapeDescriptor
->
getShapeType
());
}
DECLARE_OOXMLEXPORT_TEST
(
testTrackChangesDeletedParagraphMark
,
"testTrackChangesDeletedParagraphMark.docx"
)
{
xmlDocPtr
pXmlDoc
=
parseExport
(
"word/document.xml"
);
...
...
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