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
87e31cb5
Kaydet (Commit)
87e31cb5
authored
Agu 15, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Agu 16, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert aList field in SdrHelpLineList class from Container to std::vector
Change-Id: Ie91548bfad1cd60d8926cb5cc729a07f539590a1
üst
a6f60d54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
svdhlpln.hxx
svx/inc/svx/svdhlpln.hxx
+25
-9
svdhlpln.cxx
svx/source/svdraw/svdhlpln.cxx
+1
-1
No files found.
svx/inc/svx/svdhlpln.hxx
Dosyayı görüntüle @
87e31cb5
...
...
@@ -34,7 +34,6 @@
#include <tools/gen.hxx>
#include <vcl/pointr.hxx>
#include <tools/contnr.hxx>
#include "svx/svxdllapi.h"
class
OutputDevice
;
...
...
@@ -73,21 +72,38 @@ public:
#define SDRHELPLINE_NOTFOUND 0xFFFF
class
SVX_DLLPUBLIC
SdrHelpLineList
{
Container
aList
;
std
::
vector
<
SdrHelpLine
*>
aList
;
protected
:
SdrHelpLine
*
GetObject
(
sal_uInt16
i
)
const
{
return
(
SdrHelpLine
*
)(
aList
.
GetObject
(
i
))
;
}
SdrHelpLine
*
GetObject
(
sal_uInt16
i
)
const
{
return
aList
[
i
]
;
}
public
:
SdrHelpLineList
()
:
aList
(
1024
,
4
,
4
)
{}
SdrHelpLineList
(
const
SdrHelpLineList
&
rSrcList
)
:
aList
(
1024
,
4
,
4
)
{
*
this
=
rSrcList
;
}
SdrHelpLineList
()
:
aList
()
{}
SdrHelpLineList
(
const
SdrHelpLineList
&
rSrcList
)
:
aList
()
{
*
this
=
rSrcList
;
}
~
SdrHelpLineList
()
{
Clear
();
}
void
Clear
();
void
operator
=
(
const
SdrHelpLineList
&
rSrcList
);
bool
operator
==
(
const
SdrHelpLineList
&
rCmp
)
const
;
bool
operator
!=
(
const
SdrHelpLineList
&
rCmp
)
const
{
return
!
operator
==
(
rCmp
);
}
sal_uInt16
GetCount
()
const
{
return
sal_uInt16
(
aList
.
Count
());
}
void
Insert
(
const
SdrHelpLine
&
rHL
,
sal_uInt16
nPos
=
0xFFFF
)
{
aList
.
Insert
(
new
SdrHelpLine
(
rHL
),
nPos
);
}
void
Delete
(
sal_uInt16
nPos
)
{
delete
(
SdrHelpLine
*
)
aList
.
Remove
(
nPos
);
}
// #i24900#
void
Move
(
sal_uInt16
nPos
,
sal_uInt16
nNewPos
)
{
aList
.
Insert
(
aList
.
Remove
(
nPos
),
nNewPos
);
}
sal_uInt16
GetCount
()
const
{
return
sal_uInt16
(
aList
.
size
());
}
void
Insert
(
const
SdrHelpLine
&
rHL
)
{
aList
.
push_back
(
new
SdrHelpLine
(
rHL
));
}
void
Insert
(
const
SdrHelpLine
&
rHL
,
sal_uInt16
nPos
)
{
if
(
nPos
==
0xFFFF
)
aList
.
push_back
(
new
SdrHelpLine
(
rHL
));
else
aList
.
insert
(
aList
.
begin
()
+
nPos
,
new
SdrHelpLine
(
rHL
));
}
void
Delete
(
sal_uInt16
nPos
)
{
SdrHelpLine
*
p
=
aList
[
nPos
];
delete
p
;
aList
.
erase
(
aList
.
begin
()
+
nPos
);
}
void
Move
(
sal_uInt16
nPos
,
sal_uInt16
nNewPos
)
{
SdrHelpLine
*
p
=
aList
[
nPos
];
aList
.
erase
(
aList
.
begin
()
+
nPos
);
aList
.
insert
(
aList
.
begin
()
+
nNewPos
,
p
);
}
SdrHelpLine
&
operator
[](
sal_uInt16
nPos
)
{
return
*
GetObject
(
nPos
);
}
const
SdrHelpLine
&
operator
[](
sal_uInt16
nPos
)
const
{
return
*
GetObject
(
nPos
);
}
sal_uInt16
HitTest
(
const
Point
&
rPnt
,
sal_uInt16
nTolLog
,
const
OutputDevice
&
rOut
)
const
;
...
...
svx/source/svdraw/svdhlpln.cxx
Dosyayı görüntüle @
87e31cb5
...
...
@@ -89,7 +89,7 @@ void SdrHelpLineList::Clear()
for
(
sal_uInt16
i
=
0
;
i
<
nAnz
;
i
++
)
{
delete
GetObject
(
i
);
}
aList
.
C
lear
();
aList
.
c
lear
();
}
void
SdrHelpLineList
::
operator
=
(
const
SdrHelpLineList
&
rSrcList
)
...
...
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