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
106c8270
Kaydet (Commit)
106c8270
authored
Ock 20, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
drawingML export: write TextShape outline properties
Change-Id: I3742c960016bbe1d82b58a16d464b329d2612c10
üst
2d4f0a7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
shapes.cxx
oox/source/export/shapes.cxx
+1
-0
dml-textshape.docx
sw/qa/extras/ooxmlexport/data/dml-textshape.docx
+0
-0
ooxmlexport.cxx
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+16
-0
No files found.
oox/source/export/shapes.cxx
Dosyayı görüntüle @
106c8270
...
@@ -936,6 +936,7 @@ ShapeExport& ShapeExport::WriteTextShape( Reference< XShape > xShape )
...
@@ -936,6 +936,7 @@ ShapeExport& ShapeExport::WriteTextShape( Reference< XShape > xShape )
WritePresetShape
(
"rect"
);
WritePresetShape
(
"rect"
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xShape
,
UNO_QUERY
);
uno
::
Reference
<
beans
::
XPropertySet
>
xPropertySet
(
xShape
,
UNO_QUERY
);
WriteFill
(
xPropertySet
);
WriteFill
(
xPropertySet
);
WriteOutline
(
xPropertySet
);
WriteBlipFill
(
xPropertySet
,
"GraphicURL"
);
WriteBlipFill
(
xPropertySet
,
"GraphicURL"
);
pFS
->
endElementNS
(
mnXmlNamespace
,
XML_spPr
);
pFS
->
endElementNS
(
mnXmlNamespace
,
XML_spPr
);
...
...
sw/qa/extras/ooxmlexport/data/dml-textshape.docx
0 → 100644
Dosyayı görüntüle @
106c8270
File added
sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Dosyayı görüntüle @
106c8270
...
@@ -2469,6 +2469,22 @@ DECLARE_OOXMLEXPORT_TEST(testMsoSpt180, "mso-spt180.docx")
...
@@ -2469,6 +2469,22 @@ DECLARE_OOXMLEXPORT_TEST(testMsoSpt180, "mso-spt180.docx")
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"ooxml-borderCallout1"
),
aType
);
CPPUNIT_ASSERT_EQUAL
(
OUString
(
"ooxml-borderCallout1"
),
aType
);
}
}
DECLARE_OOXMLEXPORT_TEST
(
testDmlTextshape
,
"dml-textshape.docx"
)
{
uno
::
Reference
<
container
::
XIndexAccess
>
xGroup
(
getShape
(
1
),
uno
::
UNO_QUERY
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
xGroup
->
getByIndex
(
1
),
uno
::
UNO_QUERY
);
// This was drawing::FillStyle_NONE.
CPPUNIT_ASSERT_EQUAL
(
drawing
::
FillStyle_SOLID
,
getProperty
<
drawing
::
FillStyle
>
(
xShape
,
"FillStyle"
));
// This was drawing::LineStyle_NONE.
CPPUNIT_ASSERT_EQUAL
(
drawing
::
LineStyle_SOLID
,
getProperty
<
drawing
::
LineStyle
>
(
xShape
,
"LineStyle"
));
xmlDocPtr
pXmlDocument
=
parseExport
(
"word/document.xml"
);
if
(
!
pXmlDocument
)
return
;
// This was wrap="none".
assertXPath
(
pXmlDocument
,
"/w:document/w:body/w:p[2]/w:r/mc:AlternateContent/mc:Choice/w:drawing/wp:inline/a:graphic/a:graphicData/wpg:wgp/wps:wsp[2]/wps:bodyPr"
,
"wrap"
,
"square"
);
}
DECLARE_OOXMLEXPORT_TEST
(
testShapeThemePreservation
,
"shape-theme-preservation.docx"
)
DECLARE_OOXMLEXPORT_TEST
(
testShapeThemePreservation
,
"shape-theme-preservation.docx"
)
{
{
xmlDocPtr
pXmlDocument
=
parseExport
(
"word/document.xml"
);
xmlDocPtr
pXmlDocument
=
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