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
32b2f88a
Kaydet (Commit)
32b2f88a
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 class SdUndoGroup from Container to std::vector
Change-Id: I303dd2f5ce5ac7f08727777ca03e4de0cfdabfcc
üst
c4984cbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
sdundogr.cxx
sd/source/ui/func/sdundogr.cxx
+10
-10
sdundogr.hxx
sd/source/ui/inc/sdundogr.hxx
+3
-3
No files found.
sd/source/ui/func/sdundogr.cxx
Dosyayı görüntüle @
32b2f88a
...
...
@@ -30,12 +30,12 @@ TYPEINIT1(SdUndoGroup, SdUndoAction);
SdUndoGroup
::~
SdUndoGroup
()
{
s
al_uLong
nLast
=
aCtn
.
Count
();
for
(
s
al_uLong
nAction
=
0
;
nAction
<
nLast
;
nAction
++
)
s
ize_t
nLast
=
aCtn
.
size
();
for
(
s
ize_t
nAction
=
0
;
nAction
<
nLast
;
nAction
++
)
{
delete
(
SdUndoAction
*
)
aCtn
.
GetObject
(
nAction
)
;
delete
aCtn
[
nAction
]
;
}
aCtn
.
C
lear
();
aCtn
.
c
lear
();
}
/*************************************************************************
...
...
@@ -70,10 +70,10 @@ sal_Bool SdUndoGroup::Merge( SfxUndoAction* pNextAction )
void
SdUndoGroup
::
Undo
()
{
long
nLast
=
aCtn
.
Count
();
long
nLast
=
aCtn
.
size
();
for
(
long
nAction
=
nLast
-
1
;
nAction
>=
0
;
nAction
--
)
{
((
SdUndoAction
*
)
aCtn
.
GetObject
((
sal_uLong
)
nAction
))
->
Undo
();
aCtn
[
nAction
]
->
Undo
();
}
}
...
...
@@ -86,10 +86,10 @@ void SdUndoGroup::Undo()
void
SdUndoGroup
::
Redo
()
{
s
al_uLong
nLast
=
aCtn
.
Count
();
for
(
s
al_uLong
nAction
=
0
;
nAction
<
nLast
;
nAction
++
)
s
ize_t
nLast
=
aCtn
.
size
();
for
(
s
ize_t
nAction
=
0
;
nAction
<
nLast
;
nAction
++
)
{
((
SdUndoAction
*
)
aCtn
.
GetObject
(
nAction
))
->
Redo
();
aCtn
[
nAction
]
->
Redo
();
}
}
...
...
@@ -102,7 +102,7 @@ void SdUndoGroup::Redo()
void
SdUndoGroup
::
AddAction
(
SdUndoAction
*
pAction
)
{
aCtn
.
Insert
(
pAction
,
CONTAINER_APPEND
);
aCtn
.
push_back
(
pAction
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sd/source/ui/inc/sdundogr.hxx
Dosyayı görüntüle @
32b2f88a
...
...
@@ -26,12 +26,12 @@
class
SD_DLLPUBLIC
SdUndoGroup
:
public
SdUndoAction
{
Container
aCtn
;
std
::
vector
<
SdUndoAction
*>
aCtn
;
public
:
TYPEINFO
();
SdUndoGroup
(
SdDrawDocument
*
pSdDrawDocument
)
:
SdUndoAction
(
pSdDrawDocument
),
aCtn
(
16
,
16
,
16
)
{}
aCtn
()
{}
virtual
~
SdUndoGroup
();
virtual
sal_Bool
Merge
(
SfxUndoAction
*
pNextAction
);
...
...
@@ -40,7 +40,7 @@ public:
virtual
void
Redo
();
void
AddAction
(
SdUndoAction
*
pAction
);
sal_uLong
Count
()
const
{
return
aCtn
.
Count
();
}
sal_uLong
Count
()
const
{
return
aCtn
.
size
();
}
};
...
...
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