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
785b4c2f
Kaydet (Commit)
785b4c2f
authored
Tem 13, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
callcatcher: remove unused ifdef branch
üst
ee3cb54e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
50 deletions
+0
-50
imivctl.hxx
svtools/source/contnr/imivctl.hxx
+0
-1
imivctl2.cxx
svtools/source/contnr/imivctl2.cxx
+0
-49
No files found.
svtools/source/contnr/imivctl.hxx
Dosyayı görüntüle @
785b4c2f
...
@@ -609,7 +609,6 @@ public:
...
@@ -609,7 +609,6 @@ public:
GridId
GetGrid
(
sal_uInt16
nGridX
,
sal_uInt16
nGridY
);
GridId
GetGrid
(
sal_uInt16
nGridX
,
sal_uInt16
nGridY
);
GridId
GetUnoccupiedGrid
(
sal_Bool
bOccupyFound
=
sal_True
);
GridId
GetUnoccupiedGrid
(
sal_Bool
bOccupyFound
=
sal_True
);
void
OccupyGrids
(
const
Rectangle
&
,
sal_Bool
bOccupy
=
sal_True
);
void
OccupyGrids
(
const
SvxIconChoiceCtrlEntry
*
,
sal_Bool
bOccupy
=
sal_True
);
void
OccupyGrids
(
const
SvxIconChoiceCtrlEntry
*
,
sal_Bool
bOccupy
=
sal_True
);
void
OccupyGrid
(
GridId
nId
,
sal_Bool
bOccupy
=
sal_True
)
void
OccupyGrid
(
GridId
nId
,
sal_Bool
bOccupy
=
sal_True
)
{
{
...
...
svtools/source/contnr/imivctl2.cxx
Dosyayı görüntüle @
785b4c2f
...
@@ -728,60 +728,11 @@ GridId IcnGridMap_Impl::GetUnoccupiedGrid( sal_Bool bOccupyFound )
...
@@ -728,60 +728,11 @@ GridId IcnGridMap_Impl::GetUnoccupiedGrid( sal_Bool bOccupyFound )
// ein Eintrag belegt nur das unter seinem Zentrum liegende GridRect
// ein Eintrag belegt nur das unter seinem Zentrum liegende GridRect
// diese Variante ist bedeutend schneller als die Belegung ueber das
// diese Variante ist bedeutend schneller als die Belegung ueber das
// Bounding-Rect, kann aber zu kleinen Ueberlappungen fuehren
// Bounding-Rect, kann aber zu kleinen Ueberlappungen fuehren
#define OCCUPY_CENTER
void
IcnGridMap_Impl
::
OccupyGrids
(
const
SvxIconChoiceCtrlEntry
*
pEntry
,
sal_Bool
bOccupy
)
void
IcnGridMap_Impl
::
OccupyGrids
(
const
SvxIconChoiceCtrlEntry
*
pEntry
,
sal_Bool
bOccupy
)
{
{
if
(
!
_pGridMap
||
!
_pView
->
IsBoundingRectValid
(
pEntry
->
aRect
))
if
(
!
_pGridMap
||
!
_pView
->
IsBoundingRectValid
(
pEntry
->
aRect
))
return
;
return
;
#ifndef OCCUPY_CENTER
OccupyGrids
(
pEntry
->
aRect
,
bOccupy
);
#else
OccupyGrid
(
GetGrid
(
pEntry
->
aRect
.
Center
()),
bOccupy
);
OccupyGrid
(
GetGrid
(
pEntry
->
aRect
.
Center
()),
bOccupy
);
#endif
}
void
IcnGridMap_Impl
::
OccupyGrids
(
const
Rectangle
&
rRect
,
sal_Bool
bUsed
)
{
if
(
!
_pGridMap
)
return
;
if
(
bUsed
)
{
if
(
_aLastOccupiedGrid
==
rRect
)
return
;
_aLastOccupiedGrid
=
rRect
;
}
else
_aLastOccupiedGrid
.
SetEmpty
();
sal_Bool
bTopLeftClipped
,
bBottomRightClipped
;
GridId
nIdTL
=
GetGrid
(
rRect
.
TopLeft
(),
&
bTopLeftClipped
);
GridId
nIdBR
=
GetGrid
(
rRect
.
BottomRight
(),
&
bBottomRightClipped
);
if
(
bTopLeftClipped
&&
bBottomRightClipped
)
return
;
sal_uInt16
nX1
,
nX2
,
nY1
,
nY2
;
GetGridCoord
(
nIdTL
,
nX1
,
nY1
);
GetGridCoord
(
nIdBR
,
nX2
,
nY2
);
sal_uInt16
nTemp
;
if
(
nX1
>
nX2
)
{
nTemp
=
nX1
;
nX1
=
nX2
;
nX2
=
nTemp
;
}
if
(
nY1
>
nY2
)
{
nTemp
=
nY1
;
nY1
=
nY2
;
nY2
=
nTemp
;
}
for
(
;
nX1
<=
nX2
;
nX1
++
)
for
(
;
nY1
<=
nY2
;
nY1
++
)
OccupyGrid
(
GetGrid
(
nX1
,
nY1
)
);
}
}
void
IcnGridMap_Impl
::
Clear
()
void
IcnGridMap_Impl
::
Clear
()
...
...
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