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
dc8697e5
Kaydet (Commit)
dc8697e5
authored
Mar 25, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use a WeakReference instead of meddling in SwClients
Change-Id: I9dcf00607bac820c3dbb26c6de9f6e326df7fb99
üst
97f08e06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
20 deletions
+16
-20
unotbl.hxx
sw/inc/unotbl.hxx
+2
-0
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+14
-20
No files found.
sw/inc/unotbl.hxx
Dosyayı görüntüle @
dc8697e5
...
@@ -307,6 +307,8 @@ class SwXTextTable : public cppu::WeakImplHelper10
...
@@ -307,6 +307,8 @@ class SwXTextTable : public cppu::WeakImplHelper10
private
:
private
:
class
Impl
;
class
Impl
;
::
sw
::
UnoImplPtr
<
Impl
>
m_pImpl
;
::
sw
::
UnoImplPtr
<
Impl
>
m_pImpl
;
::
com
::
sun
::
star
::
uno
::
WeakReference
<
::
com
::
sun
::
star
::
table
::
XTableRows
>
m_xRows
;
::
com
::
sun
::
star
::
uno
::
WeakReference
<
::
com
::
sun
::
star
::
table
::
XTableColumns
>
m_xColumns
;
const
SfxItemPropertySet
*
m_pPropSet
;
const
SfxItemPropertySet
*
m_pPropSet
;
...
...
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
dc8697e5
...
@@ -2258,33 +2258,27 @@ void SwXTextTable::initialize(sal_Int32 nR, sal_Int32 nC) throw( uno::RuntimeExc
...
@@ -2258,33 +2258,27 @@ void SwXTextTable::initialize(sal_Int32 nR, sal_Int32 nC) throw( uno::RuntimeExc
uno
::
Reference
<
table
::
XTableRows
>
SwXTextTable
::
getRows
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
uno
::
Reference
<
table
::
XTableRows
>
SwXTextTable
::
getRows
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
uno
::
Reference
<
table
::
XTableRows
>
xRet
;
uno
::
Reference
<
table
::
XTableRows
>
xResult
(
m_xRows
);
if
(
SwFrmFmt
*
pFmt
=
GetFrmFmt
())
if
(
xResult
.
is
())
{
return
xResult
;
SwXTableRows
*
pRows
=
SwIterator
<
SwXTableRows
,
SwFmt
>
(
*
pFmt
).
First
();
if
(
SwFrmFmt
*
pFmt
=
GetFrmFmt
())
if
(
!
pRows
)
m_xRows
=
xResult
=
new
SwXTableRows
(
*
pFmt
);
pRows
=
new
SwXTableRows
(
*
pFmt
);
if
(
!
xResult
.
is
())
xRet
=
pRows
;
}
if
(
!
xRet
.
is
())
throw
uno
::
RuntimeException
();
throw
uno
::
RuntimeException
();
return
xRet
;
return
xRe
sul
t
;
}
}
uno
::
Reference
<
table
::
XTableColumns
>
SwXTextTable
::
getColumns
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
uno
::
Reference
<
table
::
XTableColumns
>
SwXTextTable
::
getColumns
(
void
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
uno
::
Reference
<
table
::
XTableColumns
>
xRet
;
uno
::
Reference
<
table
::
XTableColumns
>
xResult
(
m_xColumns
);
if
(
SwFrmFmt
*
pFmt
=
GetFrmFmt
())
if
(
xResult
.
is
())
{
return
xResult
;
SwXTableColumns
*
pCols
=
SwIterator
<
SwXTableColumns
,
SwFmt
>
(
*
pFmt
).
First
();
if
(
SwFrmFmt
*
pFmt
=
GetFrmFmt
())
if
(
!
pCols
)
m_xColumns
=
xResult
=
new
SwXTableColumns
(
*
pFmt
);
pCols
=
new
SwXTableColumns
(
*
pFmt
);
if
(
!
xResult
.
is
())
xRet
=
pCols
;
}
if
(
!
xRet
.
is
())
throw
uno
::
RuntimeException
();
throw
uno
::
RuntimeException
();
return
xRet
;
return
xRe
sul
t
;
}
}
uno
::
Reference
<
table
::
XCell
>
SwXTextTable
::
getCellByName
(
const
OUString
&
sCellName
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
uno
::
Reference
<
table
::
XCell
>
SwXTextTable
::
getCellByName
(
const
OUString
&
sCellName
)
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