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
9e3064c1
Kaydet (Commit)
9e3064c1
authored
Mar 25, 2015
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refactor FormatTable away from SwClients a bit
Change-Id: I43cf4ca6f8cf66b045eedd99108941ea44d56086
üst
dc8697e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
20 deletions
+14
-20
unotbl.cxx
sw/source/core/unocore/unotbl.cxx
+14
-20
No files found.
sw/source/core/unocore/unotbl.cxx
Dosyayı görüntüle @
9e3064c1
...
...
@@ -604,20 +604,23 @@ static void lcl_InspectLines(SwTableLines& rLines, std::vector<OUString*>& rAllN
}
}
static
void
lcl_FormatTable
(
SwFrmFmt
*
pTblFmt
)
static
bool
lcl_FormatTable
(
SwFrmFmt
*
pTblFmt
)
{
bool
bHasFrames
=
false
;
SwIterator
<
SwFrm
,
SwFmt
>
aIter
(
*
pTblFmt
);
for
(
SwFrm
*
pFrm
=
aIter
.
First
();
pFrm
;
pFrm
=
aIter
.
Next
()
)
for
(
SwFrm
*
pFrm
=
aIter
.
First
();
pFrm
;
pFrm
=
aIter
.
Next
()
)
{
// mba: no TYPEINFO for SwTabFrm
if
(
pFrm
->
IsTabFrm
()
)
{
if
(
pFrm
->
IsValid
())
pFrm
->
InvalidatePos
();
static_cast
<
SwTabFrm
*>
(
pFrm
)
->
SetONECalcLowers
();
static_cast
<
SwTabFrm
*>
(
pFrm
)
->
Calc
();
}
if
(
!
pFrm
->
IsTabFrm
())
continue
;
SwTabFrm
*
pTabFrm
=
static_cast
<
SwTabFrm
*>
(
pFrm
);
if
(
pTabFrm
->
IsValid
())
pTabFrm
->
InvalidatePos
();
pTabFrm
->
SetONECalcLowers
();
pTabFrm
->
Calc
();
bHasFrames
=
true
;
}
return
bHasFrames
;
}
static
void
lcl_CrsrSelect
(
SwPaM
&
rCrsr
,
bool
bExpand
)
...
...
@@ -3180,13 +3183,8 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, const uno::An
break
;
// something else
}
SwDoc
*
pDoc
=
pFmt
->
GetDoc
();
SwFrm
*
pFrm
=
SwIterator
<
SwFrm
,
SwFmt
>
(
*
pFmt
).
First
();
// tables without layout (invisible header/footer?)
if
(
!
pFrm
)
{
if
(
!
lcl_FormatTable
(
pFmt
))
break
;
}
lcl_FormatTable
(
pFmt
);
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
SwTableLines
&
rLines
=
pTable
->
GetTabLines
();
...
...
@@ -3374,13 +3372,9 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName)
case
FN_UNO_TABLE_BORDER2
:
{
SwDoc
*
pDoc
=
pFmt
->
GetDoc
();
SwFrm
*
pFrm
=
SwIterator
<
SwFrm
,
SwFmt
>
(
*
pFmt
).
First
();
// tables without layout (invisible header/footer?)
if
(
!
pFrm
)
{
if
(
!
lcl_FormatTable
(
pFmt
))
break
;
}
lcl_FormatTable
(
pFmt
);
SwTable
*
pTable
=
SwTable
::
FindTable
(
pFmt
);
SwTableLines
&
rLines
=
pTable
->
GetTabLines
();
...
...
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