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
e0e1577e
Kaydet (Commit)
e0e1577e
authored
Nis 02, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
throw instead of returning an empty Any
Change-Id: I299ac48e480517289348c651f28b5c7fc7653362
üst
c78449c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
31 deletions
+28
-31
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+28
-31
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
e0e1577e
...
...
@@ -1388,44 +1388,41 @@ uno::Any SwXTextTableRow::getPropertyValue(const OUString& rPropertyName) throw(
{
SolarMutexGuard
aGuard
;
uno
::
Any
aRet
;
SwFrmFmt
*
pFmt
=
GetFrmFmt
();
if
(
pFmt
)
SwFrmFmt
*
pFmt
=
lcl_EnsureCoreConnected
(
GetFrmFmt
());
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
SwTableLine
*
pLn
=
SwXTextTableRow
::
FindLine
(
pTable
,
pLine
);
if
(
pLn
)
{
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
SwTableLine
*
pLn
=
SwXTextTableRow
::
FindLine
(
pTable
,
pLine
);
if
(
pLn
)
{
const
SfxItemPropertySimpleEntry
*
pEntry
=
m_pPropSet
->
getPropertyMap
().
getByName
(
rPropertyName
);
if
(
!
pEntry
)
throw
beans
::
UnknownPropertyException
(
"Unknown property: "
+
rPropertyName
,
static_cast
<
cppu
::
OWeakObject
*
>
(
this
)
);
const
SfxItemPropertySimpleEntry
*
pEntry
=
m_pPropSet
->
getPropertyMap
().
getByName
(
rPropertyName
);
if
(
!
pEntry
)
throw
beans
::
UnknownPropertyException
(
"Unknown property: "
+
rPropertyName
,
static_cast
<
cppu
::
OWeakObject
*
>
(
this
)
);
switch
(
pEntry
->
nWID
)
switch
(
pEntry
->
nWID
)
{
case
FN_UNO_ROW_HEIGHT
:
case
FN_UNO_ROW_AUTO_HEIGHT
:
{
c
ase
FN_UNO_ROW_HEIGHT
:
case
FN_UNO_ROW_AUTO_HEIGHT
:
c
onst
SwFmtFrmSize
&
rSize
=
pLn
->
GetFrmFmt
()
->
GetFrmSize
();
if
(
FN_UNO_ROW_AUTO_HEIGHT
==
pEntry
->
nWID
)
{
const
SwFmtFrmSize
&
rSize
=
pLn
->
GetFrmFmt
()
->
GetFrmSize
();
if
(
FN_UNO_ROW_AUTO_HEIGHT
==
pEntry
->
nWID
)
{
aRet
<<=
ATT_VAR_SIZE
==
rSize
.
GetHeightSizeType
();
}
else
aRet
<<=
(
sal_Int32
)(
convertTwipToMm100
(
rSize
.
GetSize
().
Height
()));
aRet
<<=
ATT_VAR_SIZE
==
rSize
.
GetHeightSizeType
();
}
break
;
else
aRet
<<=
(
sal_Int32
)(
convertTwipToMm100
(
rSize
.
GetSize
().
Height
()));
}
break
;
case
FN_UNO_TABLE_COLUMN_SEPARATORS
:
{
lcl_GetTblSeparators
(
aRet
,
pTable
,
pLine
->
GetTabBoxes
()[
0
],
true
);
}
break
;
case
FN_UNO_TABLE_COLUMN_SEPARATORS
:
{
lcl_GetTblSeparators
(
aRet
,
pTable
,
pLine
->
GetTabBoxes
()[
0
],
true
);
}
break
;
default
:
{
const
SwAttrSet
&
rSet
=
pLn
->
GetFrmFmt
()
->
GetAttrSet
();
m_pPropSet
->
getPropertyValue
(
*
pEntry
,
rSet
,
aRet
);
}
default
:
{
const
SwAttrSet
&
rSet
=
pLn
->
GetFrmFmt
()
->
GetAttrSet
();
m_pPropSet
->
getPropertyValue
(
*
pEntry
,
rSet
,
aRet
);
}
}
}
...
...
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