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
eeae7bf2
Kaydet (Commit)
eeae7bf2
authored
Agu 16, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
VML import of mso-wrap-distance-{left,right,top,bottom}
Change-Id: Ib16be0bf83120ed7aeb01f29634d51421fc351c8
üst
682dff09
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
vmlshape.hxx
include/oox/vml/vmlshape.hxx
+4
-0
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+19
-0
vmlshapecontext.cxx
oox/source/vml/vmlshapecontext.cxx
+4
-0
No files found.
include/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
eeae7bf2
...
@@ -97,6 +97,10 @@ struct OOX_DLLPUBLIC ShapeTypeModel
...
@@ -97,6 +97,10 @@ struct OOX_DLLPUBLIC ShapeTypeModel
OptValue
<
::
rtl
::
OUString
>
moWrapType
;
///< How to wrap the text around the object
OptValue
<
::
rtl
::
OUString
>
moWrapType
;
///< How to wrap the text around the object
OptValue
<
::
rtl
::
OUString
>
moWrapSide
;
///< On which side to wrap the text around the object
OptValue
<
::
rtl
::
OUString
>
moWrapSide
;
///< On which side to wrap the text around the object
OUString
maVTextAnchor
;
///< How the text inside the shape is anchored vertically.
OUString
maVTextAnchor
;
///< How the text inside the shape is anchored vertically.
OUString
maWrapDistanceLeft
;
///< Distance from the left side of the shape to the text that wraps around it.
OUString
maWrapDistanceRight
;
///< Distance from the right side of the shape to the text that wraps around it.
OUString
maWrapDistanceTop
;
///< Distance from the top of the shape to the text that wraps around it.
OUString
maWrapDistanceBottom
;
///< Distance from the bottom of the shape to the text that wraps around it.
explicit
ShapeTypeModel
();
explicit
ShapeTypeModel
();
...
...
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
eeae7bf2
...
@@ -522,6 +522,25 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
...
@@ -522,6 +522,25 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
Reference
<
XShape
>
xShape
=
mrDrawing
.
createAndInsertXShape
(
maService
,
rxShapes
,
aShapeRect
);
Reference
<
XShape
>
xShape
=
mrDrawing
.
createAndInsertXShape
(
maService
,
rxShapes
,
aShapeRect
);
convertShapeProperties
(
xShape
);
convertShapeProperties
(
xShape
);
// Handle left/right/top/bottom wrap distance.
const
GraphicHelper
&
rGraphicHelper
=
mrDrawing
.
getFilter
().
getGraphicHelper
();
sal_Int32
nWrapDistanceLeft
=
0
;
if
(
!
maTypeModel
.
maWrapDistanceLeft
.
isEmpty
())
nWrapDistanceLeft
=
ConversionHelper
::
decodeMeasureToHmm
(
rGraphicHelper
,
maTypeModel
.
maWrapDistanceLeft
,
0
,
true
,
true
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_LeftMargin
,
uno
::
makeAny
(
nWrapDistanceLeft
));
sal_Int32
nWrapDistanceRight
=
0
;
if
(
!
maTypeModel
.
maWrapDistanceRight
.
isEmpty
())
nWrapDistanceRight
=
ConversionHelper
::
decodeMeasureToHmm
(
rGraphicHelper
,
maTypeModel
.
maWrapDistanceRight
,
0
,
true
,
true
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_RightMargin
,
uno
::
makeAny
(
nWrapDistanceRight
));
sal_Int32
nWrapDistanceTop
=
0
;
if
(
!
maTypeModel
.
maWrapDistanceTop
.
isEmpty
())
nWrapDistanceTop
=
ConversionHelper
::
decodeMeasureToHmm
(
rGraphicHelper
,
maTypeModel
.
maWrapDistanceTop
,
0
,
false
,
true
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_TopMargin
,
uno
::
makeAny
(
nWrapDistanceTop
));
sal_Int32
nWrapDistanceBottom
=
0
;
if
(
!
maTypeModel
.
maWrapDistanceBottom
.
isEmpty
())
nWrapDistanceBottom
=
ConversionHelper
::
decodeMeasureToHmm
(
rGraphicHelper
,
maTypeModel
.
maWrapDistanceBottom
,
0
,
false
,
true
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_BottomMargin
,
uno
::
makeAny
(
nWrapDistanceBottom
));
if
(
maService
.
equalsAscii
(
"com.sun.star.text.TextFrame"
)
)
if
(
maService
.
equalsAscii
(
"com.sun.star.text.TextFrame"
)
)
{
{
PropertySet
(
xShape
).
setAnyProperty
(
PROP_FrameIsAutomaticHeight
,
makeAny
(
maTypeModel
.
mbAutoHeight
)
);
PropertySet
(
xShape
).
setAnyProperty
(
PROP_FrameIsAutomaticHeight
,
makeAny
(
maTypeModel
.
mbAutoHeight
)
);
...
...
oox/source/vml/vmlshapecontext.cxx
Dosyayı görüntüle @
eeae7bf2
...
@@ -418,6 +418,10 @@ void ShapeTypeContext::setStyle( const OUString& rStyle )
...
@@ -418,6 +418,10 @@ void ShapeTypeContext::setStyle( const OUString& rStyle )
mrTypeModel
.
mbVisible
=
!
aValue
.
equalsAscii
(
"hidden"
);
mrTypeModel
.
mbVisible
=
!
aValue
.
equalsAscii
(
"hidden"
);
else
if
(
aName
==
"mso-wrap-style"
)
mrTypeModel
.
maWrapStyle
=
aValue
;
else
if
(
aName
==
"mso-wrap-style"
)
mrTypeModel
.
maWrapStyle
=
aValue
;
else
if
(
aName
==
"v-text-anchor"
)
mrTypeModel
.
maVTextAnchor
=
aValue
;
else
if
(
aName
==
"v-text-anchor"
)
mrTypeModel
.
maVTextAnchor
=
aValue
;
else
if
(
aName
==
"mso-wrap-distance-left"
)
mrTypeModel
.
maWrapDistanceLeft
=
aValue
;
else
if
(
aName
==
"mso-wrap-distance-right"
)
mrTypeModel
.
maWrapDistanceRight
=
aValue
;
else
if
(
aName
==
"mso-wrap-distance-top"
)
mrTypeModel
.
maWrapDistanceTop
=
aValue
;
else
if
(
aName
==
"mso-wrap-distance-bottom"
)
mrTypeModel
.
maWrapDistanceBottom
=
aValue
;
}
}
}
}
}
}
...
...
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