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
50f1b1ff
Kaydet (Commit)
50f1b1ff
authored
Tem 15, 2011
tarafından
Joseph Powers
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace List with std::vector< SvxIconChoiceCtrlEntry* >
üst
4dfecb62
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
imivctl.hxx
svtools/source/contnr/imivctl.hxx
+0
-0
imivctl1.cxx
svtools/source/contnr/imivctl1.cxx
+0
-0
imivctl2.cxx
svtools/source/contnr/imivctl2.cxx
+18
-18
No files found.
svtools/source/contnr/imivctl.hxx
Dosyayı görüntüle @
50f1b1ff
This diff is collapsed.
Click to expand it.
svtools/source/contnr/imivctl1.cxx
Dosyayı görüntüle @
50f1b1ff
This diff is collapsed.
Click to expand it.
svtools/source/contnr/imivctl2.cxx
Dosyayı görüntüle @
50f1b1ff
...
...
@@ -85,10 +85,10 @@ void IcnCursor_Impl::ImplCreate()
pColumns
=
new
SvPtrarr
[
nCols
];
pRows
=
new
SvPtrarr
[
nRows
];
s
al_uLong
nCount
=
pView
->
aEntries
.
Count
();
for
(
s
al_uLong
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
s
ize_t
nCount
=
pView
->
aEntries
.
size
();
for
(
s
ize_t
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
{
SvxIconChoiceCtrlEntry
*
pEntry
=
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
nCur
)
;
SvxIconChoiceCtrlEntry
*
pEntry
=
pView
->
aEntries
[
nCur
]
;
// const Rectangle& rRect = pView->GetEntryBoundRect( pEntry );
Rectangle
rRect
(
pView
->
CalcBmpRect
(
pEntry
,
0
)
);
short
nY
=
(
short
)(
((
rRect
.
Top
()
+
rRect
.
Bottom
())
/
2
)
/
nDeltaHeight
);
...
...
@@ -357,8 +357,8 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoPageUpDown( SvxIconChoiceCtrlEntry* pS
if
(
bDown
)
{
nNewPos
+=
nEntriesInView
;
if
(
nNewPos
>=
(
long
)
pView
->
aEntries
.
Count
()
)
nNewPos
=
pView
->
aEntries
.
Count
()
-
1
;
if
(
nNewPos
>=
(
long
)
pView
->
aEntries
.
size
()
)
nNewPos
=
pView
->
aEntries
.
size
()
-
1
;
}
else
{
...
...
@@ -367,7 +367,7 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoPageUpDown( SvxIconChoiceCtrlEntry* pS
nNewPos
=
0
;
}
if
(
nPos
!=
nNewPos
)
return
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
(
sal_uLong
)
nNewPos
)
;
return
pView
->
aEntries
[
(
size_t
)
nNewPos
]
;
return
0
;
}
long
nOpt
=
pView
->
GetEntryBoundRect
(
pStart
).
Top
();
...
...
@@ -410,10 +410,10 @@ SvxIconChoiceCtrlEntry* IcnCursor_Impl::GoUpDown( SvxIconChoiceCtrlEntry* pCtrlE
if
(
pView
->
IsAutoArrange
()
&&
!
(
pView
->
nWinBits
&
WB_ALIGN_TOP
)
)
{
sal_uLong
nPos
=
pView
->
GetEntryListPos
(
pCtrlEntry
);
if
(
bDown
&&
nPos
<
(
pView
->
aEntries
.
Count
()
-
1
)
)
return
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
nPos
+
1
)
;
if
(
bDown
&&
nPos
<
(
pView
->
aEntries
.
size
()
-
1
)
)
return
pView
->
aEntries
[
nPos
+
1
]
;
else
if
(
!
bDown
&&
nPos
>
0
)
return
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
nPos
-
1
)
;
return
pView
->
aEntries
[
nPos
-
1
]
;
return
0
;
}
...
...
@@ -504,10 +504,10 @@ void IcnCursor_Impl::CreateGridAjustData( SvPtrarr& rLists, SvxIconChoiceCtrlEnt
SvPtrarr
*
pRow
=
new
SvPtrarr
;
rLists
.
Insert
(
(
void
*
)
pRow
,
nCurList
);
}
const
s
al_uLong
nCount
=
pView
->
aEntries
.
Count
();
for
(
s
al_uLong
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
const
s
ize_t
nCount
=
pView
->
aEntries
.
size
();
for
(
s
ize_t
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
{
SvxIconChoiceCtrlEntry
*
pEntry
=
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
nCur
)
;
SvxIconChoiceCtrlEntry
*
pEntry
=
pView
->
aEntries
[
nCur
]
;
const
Rectangle
&
rRect
=
pView
->
GetEntryBoundRect
(
pEntry
);
short
nY
=
(
short
)(
((
rRect
.
Top
()
+
rRect
.
Bottom
())
/
2
)
/
pView
->
nGridDY
);
sal_uInt16
nIns
=
GetSortListPos
((
SvPtrarr
*
)
rLists
[
nY
],
rRect
.
Left
(),
sal_False
);
...
...
@@ -523,10 +523,10 @@ void IcnCursor_Impl::CreateGridAjustData( SvPtrarr& rLists, SvxIconChoiceCtrlEnt
short
nRefRow
=
(
short
)(
((
rRefRect
.
Top
()
+
rRefRect
.
Bottom
())
/
2
)
/
pView
->
nGridDY
);
SvPtrarr
*
pRow
=
new
SvPtrarr
;
rLists
.
Insert
(
(
void
*
)
pRow
,
0
);
s
al_uLong
nCount
=
pView
->
aEntries
.
Count
();
for
(
s
al_uLong
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
s
ize_t
nCount
=
pView
->
aEntries
.
size
();
for
(
s
ize_t
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
{
SvxIconChoiceCtrlEntry
*
pEntry
=
(
SvxIconChoiceCtrlEntry
*
)
pView
->
aEntries
.
GetObject
(
nCur
)
;
SvxIconChoiceCtrlEntry
*
pEntry
=
pView
->
aEntries
[
nCur
]
;
Rectangle
rRect
(
pView
->
CalcBmpRect
(
pEntry
)
);
//const Rectangle& rRect = pView->GetEntryBoundRect( pEntry );
short
nY
=
(
short
)(
((
rRect
.
Top
()
+
rRect
.
Bottom
())
/
2
)
/
pView
->
nGridDY
);
...
...
@@ -601,9 +601,9 @@ void IcnGridMap_Impl::Create_Impl()
_pGridMap
=
new
sal_Bool
[
_nGridRows
*
_nGridCols
];
memset
(
(
void
*
)
_pGridMap
,
0
,
_nGridRows
*
_nGridCols
);
const
s
al_uLong
nCount
=
_pView
->
aEntries
.
Count
();
for
(
s
al_uLong
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
OccupyGrids
(
(
SvxIconChoiceCtrlEntry
*
)
_pView
->
aEntries
.
GetObject
(
nCur
)
);
const
s
ize_t
nCount
=
_pView
->
aEntries
.
size
();
for
(
s
ize_t
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
OccupyGrids
(
_pView
->
aEntries
[
nCur
]
);
}
void
IcnGridMap_Impl
::
GetMinMapSize
(
sal_uInt16
&
rDX
,
sal_uInt16
&
rDY
)
const
...
...
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