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
c8c118be
Kaydet (Commit)
c8c118be
authored
Şub 18, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool
Change-Id: Ie96737c3e6d354bcdd82b2539f6b62eab65565fa
üst
d7f99137
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
docsh3.cxx
sc/source/ui/docshell/docsh3.cxx
+2
-2
pntlock.hxx
sc/source/ui/inc/pntlock.hxx
+11
-11
No files found.
sc/source/ui/docshell/docsh3.cxx
Dosyayı görüntüle @
c8c118be
...
@@ -297,12 +297,12 @@ void ScDocShell::SetLockCount(sal_uInt16 nNew)
...
@@ -297,12 +297,12 @@ void ScDocShell::SetLockCount(sal_uInt16 nNew)
{
{
if
(
!
pPaintLockData
)
if
(
!
pPaintLockData
)
pPaintLockData
=
new
ScPaintLockData
;
pPaintLockData
=
new
ScPaintLockData
;
pPaintLockData
->
SetLevel
(
nNew
-
1
,
sal_T
rue
);
pPaintLockData
->
SetLevel
(
nNew
-
1
,
t
rue
);
LockDocument_Impl
(
nNew
);
LockDocument_Impl
(
nNew
);
}
}
else
if
(
pPaintLockData
)
// loeschen
else
if
(
pPaintLockData
)
// loeschen
{
{
pPaintLockData
->
SetLevel
(
0
,
sal_T
rue
);
// bei Unlock sofort ausfuehren
pPaintLockData
->
SetLevel
(
0
,
t
rue
);
// bei Unlock sofort ausfuehren
UnlockPaint_Impl
(
true
);
// jetzt
UnlockPaint_Impl
(
true
);
// jetzt
UnlockDocument_Impl
(
0
);
UnlockDocument_Impl
(
0
);
}
}
...
...
sc/source/ui/inc/pntlock.hxx
Dosyayı görüntüle @
c8c118be
...
@@ -26,10 +26,10 @@ class ScPaintLockData
...
@@ -26,10 +26,10 @@ class ScPaintLockData
{
{
private
:
private
:
ScRangeListRef
xRangeList
;
ScRangeListRef
xRangeList
;
sal_uInt16
nLevel
;
sal_uInt16
nLevel
;
sal_uInt16
nDocLevel
;
sal_uInt16
nDocLevel
;
sal_uInt16
nParts
;
sal_uInt16
nParts
;
sal_B
ool
bModified
;
b
ool
bModified
;
public
:
public
:
ScPaintLockData
();
ScPaintLockData
();
...
@@ -37,20 +37,20 @@ public:
...
@@ -37,20 +37,20 @@ public:
void
AddRange
(
const
ScRange
&
rRange
,
sal_uInt16
nP
);
void
AddRange
(
const
ScRange
&
rRange
,
sal_uInt16
nP
);
void
SetModified
()
{
bModified
=
sal_T
rue
;
}
void
SetModified
()
{
bModified
=
t
rue
;
}
void
IncLevel
(
sal_B
ool
bDoc
)
void
IncLevel
(
b
ool
bDoc
)
{
if
(
bDoc
)
++
nDocLevel
;
else
++
nLevel
;
}
{
if
(
bDoc
)
++
nDocLevel
;
else
++
nLevel
;
}
void
DecLevel
(
sal_B
ool
bDoc
)
void
DecLevel
(
b
ool
bDoc
)
{
if
(
bDoc
)
--
nDocLevel
;
else
--
nLevel
;
}
{
if
(
bDoc
)
--
nDocLevel
;
else
--
nLevel
;
}
const
ScRangeListRef
&
GetRangeList
()
const
{
return
xRangeList
;
}
const
ScRangeListRef
&
GetRangeList
()
const
{
return
xRangeList
;
}
sal_uInt16
GetParts
()
const
{
return
nParts
;
}
sal_uInt16
GetParts
()
const
{
return
nParts
;
}
sal_uInt16
GetLevel
(
sal_B
ool
bDoc
)
const
sal_uInt16
GetLevel
(
b
ool
bDoc
)
const
{
return
bDoc
?
nDocLevel
:
nLevel
;
}
{
return
bDoc
?
nDocLevel
:
nLevel
;
}
sal_B
ool
GetModified
()
const
{
return
bModified
;
}
b
ool
GetModified
()
const
{
return
bModified
;
}
/** for recovery after reset */
/** for recovery after reset */
void
SetLevel
(
sal_uInt16
nNew
,
sal_B
ool
bDoc
)
void
SetLevel
(
sal_uInt16
nNew
,
b
ool
bDoc
)
{
if
(
bDoc
)
nDocLevel
=
nNew
;
else
nLevel
=
nNew
;
}
{
if
(
bDoc
)
nDocLevel
=
nNew
;
else
nLevel
=
nNew
;
}
};
};
...
...
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