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
4e6df6de
Kaydet (Commit)
4e6df6de
authored
Ara 13, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
recursion protection
Change-Id: I66fda143ba1f0fa6f2638a8bd4936c75a6c40980
üst
9d3adaaa
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
+19
-7
lwpcelllayout.cxx
lotuswordpro/source/filter/lwpcelllayout.cxx
+3
-3
lwpframelayout.cxx
lotuswordpro/source/filter/lwpframelayout.cxx
+1
-1
lwplayout.cxx
lotuswordpro/source/filter/lwplayout.cxx
+4
-2
lwplayout.hxx
lotuswordpro/source/filter/lwplayout.hxx
+11
-1
No files found.
lotuswordpro/source/filter/lwpcelllayout.cxx
Dosyayı görüntüle @
4e6df6de
...
...
@@ -645,7 +645,7 @@ void LwpCellLayout::ApplyProtect(XFCell * pCell, LwpObjectID aTableID)
{
bool
bProtected
=
false
;
// judge current cell
if
(
IsProtected
())
if
(
Get
IsProtected
())
{
bProtected
=
true
;
}
...
...
@@ -653,7 +653,7 @@ void LwpCellLayout::ApplyProtect(XFCell * pCell, LwpObjectID aTableID)
{
// judge base on
LwpCellLayout
*
pBase
=
dynamic_cast
<
LwpCellLayout
*>
(
GetBasedOnStyle
().
get
());
if
(
pBase
&&
pBase
->
IsProtected
())
if
(
pBase
&&
pBase
->
Get
IsProtected
())
{
bProtected
=
true
;
}
...
...
@@ -663,7 +663,7 @@ void LwpCellLayout::ApplyProtect(XFCell * pCell, LwpObjectID aTableID)
LwpTable
*
pTable
=
dynamic_cast
<
LwpTable
*>
(
aTableID
.
obj
().
get
());
LwpTableLayout
*
pTableLayout
=
pTable
?
dynamic_cast
<
LwpTableLayout
*>
(
pTable
->
GetTableLayout
())
:
nullptr
;
LwpSuperTableLayout
*
pSuper
=
pTableLayout
?
pTableLayout
->
GetSuperTableLayout
()
:
nullptr
;
if
(
pSuper
&&
pSuper
->
IsProtected
())
if
(
pSuper
&&
pSuper
->
Get
IsProtected
())
{
bProtected
=
true
;
}
...
...
lotuswordpro/source/filter/lwpframelayout.cxx
Dosyayı görüntüle @
4e6df6de
...
...
@@ -397,7 +397,7 @@ void LwpFrame::ApplyBackColor(XFFrameStyle* pFrameStyle)
*/
void
LwpFrame
::
ApplyProtect
(
XFFrameStyle
*
pFrameStyle
)
{
if
(
m_pLayout
->
IsProtected
())
if
(
m_pLayout
->
Get
IsProtected
())
{
pFrameStyle
->
SetProtect
(
true
,
true
,
true
);
}
...
...
lotuswordpro/source/filter/lwplayout.cxx
Dosyayı görüntüle @
4e6df6de
...
...
@@ -74,6 +74,8 @@
LwpVirtualLayout
::
LwpVirtualLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
)
:
LwpDLNFPVList
(
objHdr
,
pStrm
)
,
m_bGettingHonorProtection
(
false
)
,
m_bGettingHasProtection
(
false
)
,
m_bGettingIsProtected
(
false
)
,
m_nAttributes
(
0
)
,
m_nAttributes2
(
0
)
,
m_nAttributes3
(
0
)
...
...
@@ -1267,7 +1269,7 @@ bool LwpMiddleLayout::IsProtected()
}
else
if
(
LwpMiddleLayout
*
pLay
=
dynamic_cast
<
LwpMiddleLayout
*>
(
GetBasedOnStyle
().
get
()))
{
bProtected
=
pLay
->
IsProtected
();
bProtected
=
pLay
->
Get
IsProtected
();
}
else
bProtected
=
LwpVirtualLayout
::
IsProtected
();
...
...
@@ -1276,7 +1278,7 @@ bool LwpMiddleLayout::IsProtected()
if
(
pParent
&&
!
pParent
->
IsHeader
())
{
/* If a parent's protected then none of its children can be accessed. */
if
(
pParent
->
IsProtected
())
if
(
pParent
->
Get
IsProtected
())
return
true
;
if
(
pParent
->
GetHonorProtection
())
...
...
lotuswordpro/source/filter/lwplayout.hxx
Dosyayı görüntüle @
4e6df6de
...
...
@@ -120,7 +120,15 @@ public:
m_bGettingHonorProtection
=
false
;
return
bRet
;
}
virtual
bool
IsProtected
();
bool
GetIsProtected
()
{
if
(
m_bGettingIsProtected
)
throw
std
::
runtime_error
(
"recursion in layout"
);
m_bGettingIsProtected
=
true
;
bool
bRet
=
IsProtected
();
m_bGettingIsProtected
=
false
;
return
bRet
;
}
bool
GetHasProtection
()
{
if
(
m_bGettingHasProtection
)
...
...
@@ -181,9 +189,11 @@ protected:
void
Read
()
override
;
bool
HasProtection
();
virtual
bool
HonorProtection
();
virtual
bool
IsProtected
();
protected
:
bool
m_bGettingHonorProtection
;
bool
m_bGettingHasProtection
;
bool
m_bGettingIsProtected
;
sal_uInt32
m_nAttributes
;
sal_uInt32
m_nAttributes2
;
sal_uInt32
m_nAttributes3
;
...
...
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