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
cb555c12
Kaydet (Commit)
cb555c12
authored
Mar 28, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify
Change-Id: Id48493c820e8052730e3f13270b5071161ba9f26
üst
2535e00e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+12
-22
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
cb555c12
...
@@ -2065,26 +2065,19 @@ SwXTextTable::SwXTextTable(SwFrmFmt& rFrmFmt)
...
@@ -2065,26 +2065,19 @@ SwXTextTable::SwXTextTable(SwFrmFmt& rFrmFmt)
SwXTextTable
::~
SwXTextTable
()
SwXTextTable
::~
SwXTextTable
()
{
delete
pTableProps
;
}
{
delete
pTableProps
;
}
uno
::
Reference
<
text
::
XTextTable
>
uno
::
Reference
<
text
::
XTextTable
>
SwXTextTable
::
CreateXTextTable
(
SwFrmFmt
*
const
pFrmFmt
)
SwXTextTable
::
CreateXTextTable
(
SwFrmFmt
*
const
pFrmFmt
)
{
{
uno
::
Reference
<
text
::
XTextTable
>
xTable
;
uno
::
Reference
<
text
::
XTextTable
>
xTable
;
if
(
pFrmFmt
)
if
(
pFrmFmt
)
{
xTable
.
set
(
pFrmFmt
->
GetXObject
(),
uno
::
UNO_QUERY
);
// cached?
xTable
.
set
(
pFrmFmt
->
GetXObject
(),
uno
::
UNO_QUERY
);
// cached?
}
if
(
xTable
.
is
())
if
(
!
xTable
.
is
())
return
xTable
;
{
SwXTextTable
*
const
pNew
(
(
pFrmFmt
)
?
new
SwXTextTable
(
*
pFrmFmt
)
:
new
SwXTextTable
());
SwXTextTable
*
const
pNew
(
xTable
.
set
(
pNew
);
(
pFrmFmt
)
?
new
SwXTextTable
(
*
pFrmFmt
)
:
new
SwXTextTable
());
if
(
pFrmFmt
)
xTable
.
set
(
pNew
);
pFrmFmt
->
SetXObject
(
xTable
);
if
(
pFrmFmt
)
// need a permanent Reference to initialize m_wThis
{
pNew
->
m_pImpl
->
m_wThis
=
xTable
;
pFrmFmt
->
SetXObject
(
xTable
);
}
// need a permanent Reference to initialize m_wThis
pNew
->
m_pImpl
->
m_wThis
=
xTable
;
}
return
xTable
;
return
xTable
;
}
}
...
@@ -2092,11 +2085,8 @@ void SwXTextTable::initialize(sal_Int32 nR, sal_Int32 nC) throw( uno::RuntimeExc
...
@@ -2092,11 +2085,8 @@ void SwXTextTable::initialize(sal_Int32 nR, sal_Int32 nC) throw( uno::RuntimeExc
{
{
if
(
!
bIsDescriptor
||
nR
<=
0
||
nC
<=
0
||
nR
>=
USHRT_MAX
||
nC
>=
USHRT_MAX
)
if
(
!
bIsDescriptor
||
nR
<=
0
||
nC
<=
0
||
nR
>=
USHRT_MAX
||
nC
>=
USHRT_MAX
)
throw
uno
::
RuntimeException
();
throw
uno
::
RuntimeException
();
else
nRows
=
static_cast
<
sal_uInt16
>
(
nR
);
{
nColumns
=
static_cast
<
sal_uInt16
>
(
nC
);
nRows
=
(
sal_uInt16
)
nR
;
nColumns
=
(
sal_uInt16
)
nC
;
}
}
}
uno
::
Reference
<
table
::
XTableRows
>
SwXTextTable
::
getRows
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
uno
::
Reference
<
table
::
XTableRows
>
SwXTextTable
::
getRows
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
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