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
e24f8bb1
Kaydet (Commit)
e24f8bb1
authored
Agu 11, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DOCX drawingML import: handle lack of ContourPolyPolygon shape property
Change-Id: I9dce645670f17115960b3648db24f769cd4a2635
üst
628a0f31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
GraphicImport.cxx
writerfilter/source/dmapper/GraphicImport.cxx
+16
-0
No files found.
writerfilter/source/dmapper/GraphicImport.cxx
Dosyayı görüntüle @
e24f8bb1
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
#include <rtl/math.hxx>
#include <rtl/math.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/ustrbuf.hxx>
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <comphelper/sequenceashashmap.hxx>
#include <oox/drawingml/drawingmltypes.hxx>
#include <oox/drawingml/drawingmltypes.hxx>
...
@@ -253,6 +254,7 @@ public:
...
@@ -253,6 +254,7 @@ public:
OUString
title
;
OUString
title
;
std
::
queue
<
OUString
>&
m_rPositivePercentages
;
std
::
queue
<
OUString
>&
m_rPositivePercentages
;
OUString
sAnchorId
;
OUString
sAnchorId
;
comphelper
::
SequenceAsHashMap
m_aInteropGrabBag
;
GraphicImport_Impl
(
GraphicImportType
eImportType
,
DomainMapper
&
rDMapper
,
std
::
queue
<
OUString
>&
rPositivePercentages
)
:
GraphicImport_Impl
(
GraphicImportType
eImportType
,
DomainMapper
&
rDMapper
,
std
::
queue
<
OUString
>&
rPositivePercentages
)
:
nXSize
(
0
)
nXSize
(
0
)
...
@@ -790,6 +792,11 @@ void GraphicImport::lcl_attribute(Id nName, Value& rValue)
...
@@ -790,6 +792,11 @@ void GraphicImport::lcl_attribute(Id nName, Value& rValue)
xShapeProps
->
setPropertyValue
(
"Surround"
,
uno
::
makeAny
(
m_pImpl
->
nWrap
));
xShapeProps
->
setPropertyValue
(
"Surround"
,
uno
::
makeAny
(
m_pImpl
->
nWrap
));
m_pImpl
->
applyZOrder
(
xShapeProps
);
m_pImpl
->
applyZOrder
(
xShapeProps
);
m_pImpl
->
applyName
(
xShapeProps
);
m_pImpl
->
applyName
(
xShapeProps
);
// Get the grab-bag set by oox, merge with our one and then put it back.
comphelper
::
SequenceAsHashMap
aInteropGrabBag
(
xShapeProps
->
getPropertyValue
(
"InteropGrabBag"
));
aInteropGrabBag
.
update
(
m_pImpl
->
m_aInteropGrabBag
);
xShapeProps
->
setPropertyValue
(
"InteropGrabBag"
,
uno
::
makeAny
(
aInteropGrabBag
.
getAsConstPropertyValueList
()));
}
}
}
}
}
}
...
@@ -953,6 +960,12 @@ void GraphicImport::lcl_sprm(Sprm& rSprm)
...
@@ -953,6 +960,12 @@ void GraphicImport::lcl_sprm(Sprm& rSprm)
{
{
pProperties
->
resolve
(
*
this
);
pProperties
->
resolve
(
*
this
);
}
}
// We'll map these to PARALLEL, save the original wrap type.
if
(
nSprmId
==
NS_ooxml
::
LN_EG_WrapType_wrapTight
)
m_pImpl
->
m_aInteropGrabBag
[
"EG_WrapType"
]
<<=
OUString
(
"wrapTight"
);
else
if
(
nSprmId
==
NS_ooxml
::
LN_EG_WrapType_wrapThrough
)
m_pImpl
->
m_aInteropGrabBag
[
"EG_WrapType"
]
<<=
OUString
(
"wrapThrough"
);
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_CT_WrapTight_wrapPolygon
:
case
NS_ooxml
:
:
LN_CT_WrapTight_wrapPolygon
:
...
@@ -963,6 +976,9 @@ void GraphicImport::lcl_sprm(Sprm& rSprm)
...
@@ -963,6 +976,9 @@ void GraphicImport::lcl_sprm(Sprm& rSprm)
resolveSprmProps
(
aHandler
,
rSprm
);
resolveSprmProps
(
aHandler
,
rSprm
);
m_pImpl
->
mpWrapPolygon
=
aHandler
.
getPolygon
();
m_pImpl
->
mpWrapPolygon
=
aHandler
.
getPolygon
();
// Save the wrap path in case we can't handle it natively: drawinglayer shapes, TextFrames.
m_pImpl
->
m_aInteropGrabBag
[
"CT_WrapPath"
]
<<=
m_pImpl
->
mpWrapPolygon
->
getPointSequenceSequence
();
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_CT_Anchor_positionH
:
// 90976;
case
NS_ooxml
:
:
LN_CT_Anchor_positionH
:
// 90976;
...
...
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