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
e3d2e376
Kaydet (Commit)
e3d2e376
authored
Ara 15, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more recursion protection
Change-Id: I0a7b6c1037ea9442001b4eb9a9bb96778c0dedb6
üst
d612d921
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
lwplayout.cxx
lotuswordpro/source/filter/lwplayout.cxx
+3
-2
lwplayout.hxx
lotuswordpro/source/filter/lwplayout.hxx
+12
-2
No files found.
lotuswordpro/source/filter/lwplayout.cxx
Dosyayı görüntüle @
e3d2e376
...
@@ -76,6 +76,7 @@ LwpVirtualLayout::LwpVirtualLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
...
@@ -76,6 +76,7 @@ LwpVirtualLayout::LwpVirtualLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
,
m_bGettingHonorProtection
(
false
)
,
m_bGettingHonorProtection
(
false
)
,
m_bGettingHasProtection
(
false
)
,
m_bGettingHasProtection
(
false
)
,
m_bGettingIsProtected
(
false
)
,
m_bGettingIsProtected
(
false
)
,
m_bGettingMarginsValue
(
false
)
,
m_nAttributes
(
0
)
,
m_nAttributes
(
0
)
,
m_nAttributes2
(
0
)
,
m_nAttributes2
(
0
)
,
m_nAttributes3
(
0
)
,
m_nAttributes3
(
0
)
...
@@ -705,7 +706,7 @@ bool LwpMiddleLayout::MarginsSameAsParent()
...
@@ -705,7 +706,7 @@ bool LwpMiddleLayout::MarginsSameAsParent()
* @descr: Get margin
* @descr: Get margin
* @param: nWhichSide - 0: left, 1: right, 2:top, 3: bottom
* @param: nWhichSide - 0: left, 1: right, 2:top, 3: bottom
*/
*/
double
LwpMiddleLayout
::
Get
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
double
LwpMiddleLayout
::
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
{
{
double
fValue
=
0
;
double
fValue
=
0
;
if
((
nWhichSide
==
MARGIN_LEFT
)
||
(
nWhichSide
==
MARGIN_RIGHT
))
if
((
nWhichSide
==
MARGIN_LEFT
)
||
(
nWhichSide
==
MARGIN_RIGHT
))
...
@@ -737,7 +738,7 @@ double LwpMiddleLayout::GetMarginsValue(const sal_uInt8 &nWhichSide)
...
@@ -737,7 +738,7 @@ double LwpMiddleLayout::GetMarginsValue(const sal_uInt8 &nWhichSide)
fValue
=
pStyle
->
GetMarginsValue
(
nWhichSide
);
fValue
=
pStyle
->
GetMarginsValue
(
nWhichSide
);
return
fValue
;
return
fValue
;
}
}
return
LwpVirtualLayout
::
Get
MarginsValue
(
nWhichSide
);
return
LwpVirtualLayout
::
MarginsValue
(
nWhichSide
);
}
}
/**
/**
* @descr: Get extmargin value
* @descr: Get extmargin value
...
...
lotuswordpro/source/filter/lwplayout.hxx
Dosyayı görüntüle @
e3d2e376
...
@@ -100,7 +100,6 @@ public:
...
@@ -100,7 +100,6 @@ public:
inline
virtual
sal_uInt16
GetNumCols
(){
return
1
;}
inline
virtual
sal_uInt16
GetNumCols
(){
return
1
;}
virtual
double
GetColWidth
(
sal_uInt16
nIndex
);
virtual
double
GetColWidth
(
sal_uInt16
nIndex
);
virtual
double
GetColGap
(
sal_uInt16
nIndex
);
virtual
double
GetColGap
(
sal_uInt16
nIndex
);
virtual
double
GetMarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
bool
IsAutoGrow
(){
return
false
;}
virtual
bool
IsAutoGrow
(){
return
false
;}
virtual
bool
IsAutoGrowUp
(){
return
false
;}
virtual
bool
IsAutoGrowUp
(){
return
false
;}
...
@@ -138,6 +137,15 @@ public:
...
@@ -138,6 +137,15 @@ public:
m_bGettingHasProtection
=
false
;
m_bGettingHasProtection
=
false
;
return
bRet
;
return
bRet
;
}
}
double
GetMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
{
if
(
m_bGettingMarginsValue
)
throw
std
::
runtime_error
(
"recursion in layout"
);
m_bGettingMarginsValue
=
true
;
bool
fRet
=
MarginsValue
(
nWhichSide
);
m_bGettingMarginsValue
=
false
;
return
fRet
;
}
OUString
GetStyleName
(){
return
m_StyleName
;}
OUString
GetStyleName
(){
return
m_StyleName
;}
bool
IsComplex
();
bool
IsComplex
();
virtual
bool
IsAnchorPage
(){
return
false
;}
virtual
bool
IsAnchorPage
(){
return
false
;}
...
@@ -190,10 +198,12 @@ protected:
...
@@ -190,10 +198,12 @@ protected:
bool
HasProtection
();
bool
HasProtection
();
virtual
bool
HonorProtection
();
virtual
bool
HonorProtection
();
virtual
bool
IsProtected
();
virtual
bool
IsProtected
();
virtual
double
MarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
protected
:
protected
:
bool
m_bGettingHonorProtection
;
bool
m_bGettingHonorProtection
;
bool
m_bGettingHasProtection
;
bool
m_bGettingHasProtection
;
bool
m_bGettingIsProtected
;
bool
m_bGettingIsProtected
;
bool
m_bGettingMarginsValue
;
sal_uInt32
m_nAttributes
;
sal_uInt32
m_nAttributes
;
sal_uInt32
m_nAttributes2
;
sal_uInt32
m_nAttributes2
;
sal_uInt32
m_nAttributes3
;
sal_uInt32
m_nAttributes3
;
...
@@ -304,7 +314,7 @@ public:
...
@@ -304,7 +314,7 @@ public:
LwpMiddleLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
);
LwpMiddleLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
);
virtual
~
LwpMiddleLayout
();
virtual
~
LwpMiddleLayout
();
virtual
bool
MarginsSameAsParent
()
override
;
virtual
bool
MarginsSameAsParent
()
override
;
virtual
double
Get
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
virtual
double
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
LwpLayoutGeometry
*
GetGeometry
();
LwpLayoutGeometry
*
GetGeometry
();
double
GetGeometryHeight
();
double
GetGeometryHeight
();
...
...
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