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
d14ab013
Kaydet (Commit)
d14ab013
authored
Ara 03, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use C++11 iteration
Change-Id: I20a3aeef306ca83daa2d78647814ff6bb32ef082
üst
63ef826b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
pagechg.cxx
sw/source/core/layout/pagechg.cxx
+14
-17
No files found.
sw/source/core/layout/pagechg.cxx
Dosyayı görüntüle @
d14ab013
...
@@ -1678,38 +1678,35 @@ void SwRootFrm::EndAllAction( bool bVirDev )
...
@@ -1678,38 +1678,35 @@ void SwRootFrm::EndAllAction( bool bVirDev )
void
SwRootFrm
::
UnoRemoveAllActions
()
void
SwRootFrm
::
UnoRemoveAllActions
()
{
{
SwViewShell
*
pSh
=
GetCurrShell
();
if
(
GetCurrShell
()
)
if
(
pSh
)
for
(
SwViewShell
&
rSh
:
GetCurrShell
()
->
GetRingContainer
())
do
{
{
// #i84729#
// #i84729#
// No end action, if <SwViewShell> instance is currently in its end action.
// No end action, if <SwViewShell> instance is currently in its end action.
// Recursives calls to <::EndAction()> are not allowed.
// Recursives calls to <::EndAction()> are not allowed.
if
(
!
pSh
->
IsInEndAction
()
)
if
(
!
rSh
.
IsInEndAction
()
)
{
{
OSL_ENSURE
(
!
pSh
->
GetRestoreActions
(),
"Restore action count is already set!"
);
OSL_ENSURE
(
!
rSh
.
GetRestoreActions
(),
"Restore action count is already set!"
);
bool
bCrsr
=
pSh
->
ISA
(
SwCrsrShell
);
bool
bCrsr
=
rSh
.
ISA
(
SwCrsrShell
);
bool
bFE
=
pSh
->
ISA
(
SwFEShell
);
bool
bFE
=
rSh
.
ISA
(
SwFEShell
);
sal_uInt16
nRestore
=
0
;
sal_uInt16
nRestore
=
0
;
while
(
pSh
->
ActionCount
()
)
while
(
rSh
.
ActionCount
()
)
{
{
if
(
bCrsr
)
if
(
bCrsr
)
{
{
static_cast
<
SwCrsrShell
*>
(
p
Sh
)
->
EndAction
();
static_cast
<
SwCrsrShell
*>
(
&
r
Sh
)
->
EndAction
();
static_cast
<
SwCrsrShell
*>
(
p
Sh
)
->
CallChgLnk
();
static_cast
<
SwCrsrShell
*>
(
&
r
Sh
)
->
CallChgLnk
();
if
(
bFE
)
if
(
bFE
)
static_cast
<
SwFEShell
*>
(
p
Sh
)
->
SetChainMarker
();
static_cast
<
SwFEShell
*>
(
&
r
Sh
)
->
SetChainMarker
();
}
}
else
else
pSh
->
EndAction
();
rSh
.
EndAction
();
nRestore
++
;
nRestore
++
;
}
}
pSh
->
SetRestoreActions
(
nRestore
);
rSh
.
SetRestoreActions
(
nRestore
);
}
}
pSh
->
LockView
(
true
);
rSh
.
LockView
(
true
);
pSh
=
static_cast
<
SwViewShell
*>
(
pSh
->
GetNext
());
}
}
while
(
pSh
!=
GetCurrShell
()
);
}
}
void
SwRootFrm
::
UnoRestoreAllActions
()
void
SwRootFrm
::
UnoRestoreAllActions
()
...
...
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