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
581ebcf8
Kaydet (Commit)
581ebcf8
authored
Mar 14, 2008
tarafından
Rüdiger Timm
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i87016# Fix 64bit build breakage (cl / pjanik)
üst
b4f3a73e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
tablehandles.cxx
svx/source/table/tablehandles.cxx
+3
-3
tablemodel.cxx
svx/source/table/tablemodel.cxx
+10
-8
No files found.
svx/source/table/tablehandles.cxx
Dosyayı görüntüle @
581ebcf8
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: tablehandles.cxx,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author: rt $ $Date: 2008-03-1
2 10:04:22
$
* last change: $Author: rt $ $Date: 2008-03-1
4 11:26:31
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -134,7 +134,7 @@ Pointer TableEdgeHdl::GetPointer() const
sal_Int32
TableEdgeHdl
::
GetValidDragOffset
(
const
SdrDragStat
&
rDrag
)
const
{
return
std
::
min
(
std
::
max
(
mbHorizontal
?
rDrag
.
GetDY
()
:
rDrag
.
GetDX
(
),
mnMin
),
mnMax
);
return
std
::
min
(
std
::
max
(
static_cast
<
sal_Int32
>
(
mbHorizontal
?
rDrag
.
GetDY
()
:
rDrag
.
GetDX
()
),
mnMin
),
mnMax
);
}
basegfx
::
B2DPolyPolygon
TableEdgeHdl
::
TakeDragPoly
(
const
SdrDragStat
*
pDrag
/*= 0*/
)
const
...
...
svx/source/table/tablemodel.cxx
Dosyayı görüntüle @
581ebcf8
...
...
@@ -4,9 +4,9 @@
*
* $RCSfile: tablemodel.cxx,v $
*
* $Revision: 1.
2
$
* $Revision: 1.
3
$
*
* last change: $Author: rt $ $Date: 2008-03-1
2 10:05:12
$
* last change: $Author: rt $ $Date: 2008-03-1
4 11:26:44
$
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
...
...
@@ -108,7 +108,7 @@ template< class Vec, class Iter > void remove_range( Vec& rVector, sal_Int32 nIn
// -----------------------------------------------------------------------------
/** inserts a range into a vector */
template
<
class
Vec
,
class
Iter
>
sal_Int32
insert_range
(
Vec
&
rVector
,
sal_Int32
nIndex
,
sal_Int32
nCount
)
template
<
class
Vec
,
class
Iter
,
class
Entry
>
sal_Int32
insert_range
(
Vec
&
rVector
,
sal_Int32
nIndex
,
sal_Int32
nCount
)
{
if
(
nCount
)
{
...
...
@@ -125,7 +125,9 @@ template< class Vec, class Iter > sal_Int32 insert_range( Vec& rVector, sal_Int3
Iter
aIter
(
rVector
.
begin
()
);
while
(
nFind
--
)
aIter
++
;
rVector
.
insert
(
aIter
,
nCount
,
0
);
Entry
aEmpty
;
rVector
.
insert
(
aIter
,
nCount
,
aEmpty
);
}
}
return
nIndex
;
...
...
@@ -262,7 +264,7 @@ void TableModel::UndoRemoveRows( sal_Int32 nIndex, RowVector& aRows )
const
sal_Int32
nCount
=
sal
::
static_int_cast
<
sal_Int32
>
(
aRows
.
size
()
);
nIndex
=
insert_range
<
RowVector
,
RowVector
::
iterator
>
(
maRows
,
nIndex
,
nCount
);
nIndex
=
insert_range
<
RowVector
,
RowVector
::
iterator
,
TableRowRef
>
(
maRows
,
nIndex
,
nCount
);
for
(
sal_Int32
nOffset
=
0
;
nOffset
<
nCount
;
++
nOffset
)
maRows
[
nIndex
+
nOffset
]
=
aRows
[
nOffset
];
...
...
@@ -295,7 +297,7 @@ void TableModel::UndoRemoveColumns( sal_Int32 nIndex, ColumnVector& aCols, CellV
// assert if there are not enough cells saved
DBG_ASSERT
(
(
aCols
.
size
()
*
maRows
.
size
())
==
aCells
.
size
(),
"sdr::table::TableModel::UndoRemoveColumns(), invalid undo data!"
);
nIndex
=
insert_range
<
ColumnVector
,
ColumnVector
::
iterator
>
(
maColumns
,
nIndex
,
nCount
);
nIndex
=
insert_range
<
ColumnVector
,
ColumnVector
::
iterator
,
TableColumnRef
>
(
maColumns
,
nIndex
,
nCount
);
for
(
sal_Int32
nOffset
=
0
;
nOffset
<
nCount
;
++
nOffset
)
maColumns
[
nIndex
+
nOffset
]
=
aCols
[
nOffset
];
...
...
@@ -732,7 +734,7 @@ void TableModel::insertColumns( sal_Int32 nIndex, sal_Int32 nCount )
SdrModel
*
pModel
=
mpTableObj
->
GetModel
();
TableModelNotifyGuard
aGuard
(
this
);
nIndex
=
insert_range
<
ColumnVector
,
ColumnVector
::
iterator
>
(
maColumns
,
nIndex
,
nCount
);
nIndex
=
insert_range
<
ColumnVector
,
ColumnVector
::
iterator
,
TableColumnRef
>
(
maColumns
,
nIndex
,
nCount
);
sal_Int32
nRows
=
getRowCountImpl
();
while
(
nRows
--
)
...
...
@@ -922,7 +924,7 @@ void TableModel::insertRows( sal_Int32 nIndex, sal_Int32 nCount )
{
TableModelNotifyGuard
aGuard
(
this
);
nIndex
=
insert_range
<
RowVector
,
RowVector
::
iterator
>
(
maRows
,
nIndex
,
nCount
);
nIndex
=
insert_range
<
RowVector
,
RowVector
::
iterator
,
TableRowRef
>
(
maRows
,
nIndex
,
nCount
);
RowVector
aNewRows
(
nCount
);
const
sal_Int32
nColCount
=
getColumnCountImpl
();
...
...
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