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
6bf79576
Kaydet (Commit)
6bf79576
authored
Tem 01, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#46361 oox: VML import of v-text-anchor for drawinglayer shapes
Change-Id: Ib73d17fd8c9325f7f062d4a15b655e36b84bd351
üst
f24e4c74
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
vmlshape.hxx
include/oox/vml/vmlshape.hxx
+1
-0
vmlshape.cxx
oox/source/vml/vmlshape.cxx
+9
-0
vmlshapecontext.cxx
oox/source/vml/vmlshapecontext.cxx
+1
-0
No files found.
include/oox/vml/vmlshape.hxx
Dosyayı görüntüle @
6bf79576
...
...
@@ -96,6 +96,7 @@ struct OOX_DLLPUBLIC ShapeTypeModel
OptValue
<
OUString
>
moWrapAnchorY
;
///< The base object from which our vertical positioning should be calculated.
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
OUString
maVTextAnchor
;
///< How the text inside the shape is anchored vertically.
explicit
ShapeTypeModel
();
...
...
oox/source/vml/vmlshape.cxx
Dosyayı görüntüle @
6bf79576
...
...
@@ -27,6 +27,7 @@
#include <com/sun/star/awt/XControlModel.hpp>
#include <com/sun/star/drawing/PointSequenceSequence.hpp>
#include <com/sun/star/drawing/PolyPolygonBezierCoords.hpp>
#include <com/sun/star/drawing/TextVerticalAdjust.hpp>
#include <com/sun/star/drawing/XEnhancedCustomShapeDefaulter.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
...
...
@@ -560,6 +561,14 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
}
}
// drawinglayer default is center, MSO default is top.
drawing
::
TextVerticalAdjust
eTextVerticalAdjust
=
drawing
::
TextVerticalAdjust_TOP
;
if
(
maTypeModel
.
maVTextAnchor
==
"middle"
)
eTextVerticalAdjust
=
drawing
::
TextVerticalAdjust_CENTER
;
else
if
(
maTypeModel
.
maVTextAnchor
==
"bottom"
)
eTextVerticalAdjust
=
drawing
::
TextVerticalAdjust_BOTTOM
;
PropertySet
(
xShape
).
setAnyProperty
(
PROP_TextVerticalAdjust
,
makeAny
(
eTextVerticalAdjust
));
if
(
getTextBox
())
getTextBox
()
->
convert
(
xShape
);
}
...
...
oox/source/vml/vmlshapecontext.cxx
Dosyayı görüntüle @
6bf79576
...
...
@@ -417,6 +417,7 @@ void ShapeTypeContext::setStyle( const OUString& rStyle )
else
if
(
aName
.
equalsAscii
(
"visibility"
)
)
mrTypeModel
.
mbVisible
=
!
aValue
.
equalsAscii
(
"hidden"
);
else
if
(
aName
==
"mso-wrap-style"
)
mrTypeModel
.
maWrapStyle
=
aValue
;
else
if
(
aName
==
"v-text-anchor"
)
mrTypeModel
.
maVTextAnchor
=
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