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
20a8768b
Kaydet (Commit)
20a8768b
authored
May 04, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
.docx wrap values mean different things than in LO, map them (bnc#750838)
Change-Id: Ic355ae9993702c37c958ea16d8d97e6ef4892dcd
üst
3badf615
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
GraphicHelpers.cxx
writerfilter/source/dmapper/GraphicHelpers.cxx
+8
-4
No files found.
writerfilter/source/dmapper/GraphicHelpers.cxx
Dosyayı görüntüle @
20a8768b
...
@@ -184,12 +184,16 @@ void WrapHandler::lcl_sprm( Sprm& )
...
@@ -184,12 +184,16 @@ void WrapHandler::lcl_sprm( Sprm& )
sal_Int32
WrapHandler
::
getWrapMode
(
)
sal_Int32
WrapHandler
::
getWrapMode
(
)
{
{
sal_Int32
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_NONE
;
// The wrap values do not map directly to our wrap mode,
// e.g. none in .docx actually means through in LO.
sal_Int32
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_THROUGHT
;
switch
(
m_nType
)
switch
(
m_nType
)
{
{
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_square
:
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_square
:
// through and tight are somewhat complicated, approximate
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_tight
:
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_tight
:
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_through
:
{
{
switch
(
m_nSide
)
switch
(
m_nSide
)
{
{
...
@@ -204,13 +208,13 @@ sal_Int32 WrapHandler::getWrapMode( )
...
@@ -204,13 +208,13 @@ sal_Int32 WrapHandler::getWrapMode( )
}
}
}
}
break
;
break
;
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_through
:
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_THROUGHT
;
break
;
break
;
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_topAndBottom
:
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_topAndBottom
:
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_NONE
;
break
;
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_none
:
case
NS_ooxml
:
:
LN_Value_vml_wordprocessingDrawing_ST_WrapType_none
:
default
:
default
:
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_
NONE
;
nMode
=
com
::
sun
::
star
::
text
::
WrapTextMode_
THROUGHT
;
}
}
return
nMode
;
return
nMode
;
...
...
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