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
c17eb674
Kaydet (Commit)
c17eb674
authored
Mar 26, 2014
tarafından
Muthu Subramanian
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
n#862510: anchorCtr controls the anchoring as well.
Change-Id: Ib244d89a9f7d400b3891d477314cd5f0193552e0
üst
e3e12b1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
textbodyproperties.hxx
include/oox/drawingml/textbodyproperties.hxx
+1
-0
textbodyproperties.cxx
oox/source/drawingml/textbodyproperties.cxx
+2
-2
textbodypropertiescontext.cxx
oox/source/drawingml/textbodypropertiescontext.cxx
+2
-2
No files found.
include/oox/drawingml/textbodyproperties.hxx
Dosyayı görüntüle @
c17eb674
...
...
@@ -34,6 +34,7 @@ struct TextBodyProperties
{
PropertyMap
maPropertyMap
;
OptValue
<
sal_Int32
>
moRotation
;
bool
mbAnchorCtr
;
OptValue
<
sal_Int32
>
moVert
;
boost
::
optional
<
sal_Int32
>
moInsets
[
4
];
boost
::
optional
<
sal_Int32
>
moTextOffX
;
...
...
oox/source/drawingml/textbodyproperties.cxx
Dosyayı görüntüle @
c17eb674
...
...
@@ -80,8 +80,8 @@ void TextBodyProperties::pushRotationAdjustments( sal_Int32 nRotation )
// Hack for n#760986
// TODO: Preferred method would be to have a textbox on top
// of the shape and the place it according to the (off,ext)
if
(
nOff
==
0
&&
moTextOffX
)
nVal
=
*
moTextOffX
;
if
(
nOff
==
1
&&
moTextOffY
)
nVal
=
*
moTextOffY
;
if
(
nOff
==
0
&&
moTextOffX
&&
mbAnchorCtr
)
nVal
=
*
moTextOffX
;
if
(
nOff
==
1
&&
moTextOffY
&&
mbAnchorCtr
)
nVal
=
*
moTextOffY
;
if
(
nVal
<
0
)
nVal
=
0
;
if
(
moInsets
[
i
]
)
...
...
oox/source/drawingml/textbodypropertiescontext.cxx
Dosyayı görüntüle @
c17eb674
...
...
@@ -56,9 +56,9 @@ TextBodyPropertiesContext::TextBodyPropertiesContext( ContextHandler2Helper& rPa
mrTextBodyProp
.
moInsets
[
i
]
=
GetCoordinate
(
sValue
);
}
bool
bAnchorCente
r
=
rAttribs
.
getBool
(
XML_anchorCtr
,
false
);
mrTextBodyProp
.
mbAnchorCt
r
=
rAttribs
.
getBool
(
XML_anchorCtr
,
false
);
if
(
rAttribs
.
hasAttribute
(
XML_anchorCtr
)
)
{
if
(
bAnchorCente
r
)
if
(
mrTextBodyProp
.
mbAnchorCt
r
)
mrTextBodyProp
.
maPropertyMap
.
setProperty
(
PROP_TextHorizontalAdjust
,
TextHorizontalAdjust_CENTER
);
}
...
...
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