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
9fadea73
Kaydet (Commit)
9fadea73
authored
Şub 24, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SwXShape: implement reading the RelativeWidth property
Change-Id: I40d451c170699ed7616c1159a354bd93444743c0
üst
4e0f9a35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
unodraw.cxx
sw/source/core/unocore/unodraw.cxx
+16
-5
No files found.
sw/source/core/unocore/unodraw.cxx
Dosyayı görüntüle @
9fadea73
...
@@ -1574,18 +1574,29 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
...
@@ -1574,18 +1574,29 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName)
// without conversion to layout direction as below
// without conversion to layout direction as below
aRet
=
_getPropAtAggrObj
(
OUString
(
"EndPosition"
)
);
aRet
=
_getPropAtAggrObj
(
OUString
(
"EndPosition"
)
);
}
}
else
if
(
pEntry
->
nWID
==
RES_FRM_SIZE
&&
pEntry
->
nMemberId
==
MID_FRMSIZE_REL_HEIGHT
)
else
if
(
pEntry
->
nWID
==
RES_FRM_SIZE
&&
(
pEntry
->
nMemberId
==
MID_FRMSIZE_REL_HEIGHT
||
pEntry
->
nMemberId
==
MID_FRMSIZE_REL_WIDTH
))
{
{
SvxShape
*
pSvxShape
=
GetSvxShape
();
SvxShape
*
pSvxShape
=
GetSvxShape
();
SAL_WARN_IF
(
!
pSvxShape
,
"sw.uno"
,
"No SvxShape found!"
);
SAL_WARN_IF
(
!
pSvxShape
,
"sw.uno"
,
"No SvxShape found!"
);
sal_Int16
n
Percen
t
=
0
;
sal_Int16
n
Re
t
=
0
;
if
(
pSvxShape
)
if
(
pSvxShape
)
{
{
SdrObject
*
pObj
=
pSvxShape
->
GetSdrObject
();
SdrObject
*
pObj
=
pSvxShape
->
GetSdrObject
();
if
(
pObj
->
GetRelativeHeight
())
switch
(
pEntry
->
nMemberId
)
nPercent
=
*
pObj
->
GetRelativeHeight
()
*
100
;
{
case
MID_FRMSIZE_REL_WIDTH
:
if
(
pObj
->
GetRelativeWidth
())
nRet
=
*
pObj
->
GetRelativeWidth
()
*
100
;
break
;
case
MID_FRMSIZE_REL_HEIGHT
:
if
(
pObj
->
GetRelativeHeight
())
nRet
=
*
pObj
->
GetRelativeHeight
()
*
100
;
break
;
}
}
}
aRet
=
uno
::
makeAny
(
n
Percen
t
);
aRet
=
uno
::
makeAny
(
n
Re
t
);
}
}
else
else
{
{
...
...
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