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
7b9b57b4
Kaydet (Commit)
7b9b57b4
authored
May 28, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Pass also const CellRef& to save a lot of getCellByPosition() calls.
Change-Id: I86c89a05d263cada38ff54eaccf9ba39458db52e
üst
32f60d78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
tablelayouter.cxx
svx/source/table/tablelayouter.cxx
+4
-6
tablelayouter.hxx
svx/source/table/tablelayouter.hxx
+2
-3
viewcontactoftableobj.cxx
svx/source/table/viewcontactoftableobj.cxx
+1
-1
No files found.
svx/source/table/tablelayouter.cxx
Dosyayı görüntüle @
7b9b57b4
...
...
@@ -72,14 +72,13 @@ TableLayouter::~TableLayouter()
basegfx
::
B2ITuple
TableLayouter
::
getCellSize
(
const
CellPos
&
rPos
)
const
basegfx
::
B2ITuple
TableLayouter
::
getCellSize
(
const
Cell
Ref
&
xCell
,
const
Cell
Pos
&
rPos
)
const
{
sal_Int32
width
=
0
;
sal_Int32
height
=
0
;
try
{
CellRef
xCell
(
getCell
(
rPos
)
);
if
(
xCell
.
is
()
&&
!
xCell
->
isMerged
()
)
{
CellPos
aPos
(
rPos
);
...
...
@@ -117,14 +116,13 @@ basegfx::B2ITuple TableLayouter::getCellSize( const CellPos& rPos ) const
bool
TableLayouter
::
getCellArea
(
const
CellPos
&
rPos
,
basegfx
::
B2IRectangle
&
rArea
)
const
bool
TableLayouter
::
getCellArea
(
const
Cell
Ref
&
xCell
,
const
Cell
Pos
&
rPos
,
basegfx
::
B2IRectangle
&
rArea
)
const
{
try
{
CellRef
xCell
(
getCell
(
rPos
)
);
if
(
xCell
.
is
()
&&
!
xCell
->
isMerged
()
&&
isValid
(
rPos
)
)
{
const
basegfx
::
B2ITuple
aCellSize
(
getCellSize
(
rPos
)
);
const
basegfx
::
B2ITuple
aCellSize
(
getCellSize
(
xCell
,
rPos
)
);
const
bool
bRTL
=
(
mxTable
->
getSdrTableObj
()
->
GetWritingMode
()
==
WritingMode_RL_TB
);
if
(
(
rPos
.
mnCol
<
((
sal_Int32
)
maColumns
.
size
())
&&
(
rPos
.
mnRow
<
((
sal_Int32
)
maRows
.
size
())
)
)
)
...
...
@@ -862,7 +860,7 @@ void TableLayouter::updateCells( Rectangle& rRectangle )
if
(
xCell
.
is
()
)
{
basegfx
::
B2IRectangle
aCellArea
;
getCellArea
(
aPos
,
aCellArea
);
getCellArea
(
xCell
,
aPos
,
aCellArea
);
Rectangle
aCellRect
;
aCellRect
.
Left
()
=
aCellArea
.
getMinX
();
...
...
svx/source/table/tablelayouter.hxx
Dosyayı görüntüle @
7b9b57b4
...
...
@@ -73,9 +73,7 @@ public:
void
UpdateBorderLayout
();
basegfx
::
B2ITuple
getCellSize
(
const
CellPos
&
rPos
)
const
;
bool
getCellArea
(
const
CellRef
&
xCell
,
basegfx
::
B2IRectangle
&
rArea
)
const
;
bool
getCellArea
(
const
CellPos
&
rPos
,
basegfx
::
B2IRectangle
&
rArea
)
const
;
bool
getCellArea
(
const
CellRef
&
xCell
,
const
CellPos
&
rPos
,
basegfx
::
B2IRectangle
&
rArea
)
const
;
::
sal_Int32
getRowCount
()
const
{
return
static_cast
<
::
sal_Int32
>
(
maRows
.
size
()
);
}
::
sal_Int32
getColumnCount
()
const
{
return
static_cast
<
::
sal_Int32
>
(
maColumns
.
size
()
);
}
...
...
@@ -103,6 +101,7 @@ public:
private
:
CellRef
getCell
(
const
CellPos
&
rPos
)
const
;
basegfx
::
B2ITuple
getCellSize
(
const
CellRef
&
xCell
,
const
CellPos
&
rPos
)
const
;
void
LayoutTableWidth
(
::
Rectangle
&
rArea
,
bool
bFit
);
void
LayoutTableHeight
(
::
Rectangle
&
rArea
,
bool
bFit
);
...
...
svx/source/table/viewcontactoftableobj.cxx
Dosyayı görüntüle @
7b9b57b4
...
...
@@ -576,7 +576,7 @@ namespace sdr
if
(
xCurrentCell
.
is
()
&&
!
xCurrentCell
->
isMerged
())
{
if
(
rTableLayouter
.
getCellArea
(
aCellPos
,
aCellArea
))
if
(
rTableLayouter
.
getCellArea
(
xCurrentCell
,
aCellPos
,
aCellArea
))
{
// create cell transformation matrix
basegfx
::
B2DHomMatrix
aCellMatrix
;
...
...
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