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
bcecf9b1
Kaydet (Commit)
bcecf9b1
authored
Mar 11, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tweat ExtMargins with same recurse protection as Margins
Change-Id: I24640971ea6ca89878043966293492a991f01008
üst
6aa5bdc3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
recurse-1.lwp
lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp
+0
-0
lwplayout.cxx
lotuswordpro/source/filter/lwplayout.cxx
+3
-2
lwplayout.hxx
lotuswordpro/source/filter/lwplayout.hxx
+13
-3
No files found.
lotuswordpro/qa/cppunit/data/fail/recurse-1.lwp
0 → 100644
Dosyayı görüntüle @
bcecf9b1
File added
lotuswordpro/source/filter/lwplayout.cxx
Dosyayı görüntüle @
bcecf9b1
...
...
@@ -78,6 +78,7 @@ LwpVirtualLayout::LwpVirtualLayout(LwpObjectHeader &objHdr, LwpSvStream* pStrm)
,
m_bGettingHasProtection
(
false
)
,
m_bGettingIsProtected
(
false
)
,
m_bGettingMarginsValue
(
false
)
,
m_bGettingExtMarginsValue
(
false
)
,
m_nAttributes
(
0
)
,
m_nAttributes2
(
0
)
,
m_nAttributes3
(
0
)
...
...
@@ -750,7 +751,7 @@ double LwpMiddleLayout::MarginsValue(const sal_uInt8 &nWhichSide)
* @param:
* @return:
*/
double
LwpMiddleLayout
::
Get
ExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
double
LwpMiddleLayout
::
ExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
{
double
fValue
=
0
;
if
(
m_nOverrideFlag
&
OVER_MARGINS
)
...
...
@@ -768,7 +769,7 @@ double LwpMiddleLayout::GetExtMarginsValue(const sal_uInt8 &nWhichSide)
fValue
=
pStyle
->
GetExtMarginsValue
(
nWhichSide
);
return
fValue
;
}
return
LwpVirtualLayout
::
Get
ExtMarginsValue
(
nWhichSide
);
return
LwpVirtualLayout
::
ExtMarginsValue
(
nWhichSide
);
}
/**
* @descr: Get the LwpBorderStuff object according to m_LayBorderStuff id.
...
...
lotuswordpro/source/filter/lwplayout.hxx
Dosyayı görüntüle @
bcecf9b1
...
...
@@ -99,7 +99,6 @@ public:
inline
virtual
sal_uInt16
GetNumCols
(){
return
1
;}
virtual
double
GetColWidth
(
sal_uInt16
nIndex
);
virtual
double
GetColGap
(
sal_uInt16
nIndex
);
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
bool
IsAutoGrow
(){
return
false
;}
virtual
bool
IsAutoGrowUp
(){
return
false
;}
virtual
bool
IsAutoGrowDown
(){
return
false
;}
...
...
@@ -154,6 +153,15 @@ public:
m_bGettingMarginsValue
=
false
;
return
fRet
;
}
double
GetExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
{
if
(
m_bGettingExtMarginsValue
)
throw
std
::
runtime_error
(
"recursion in layout"
);
m_bGettingExtMarginsValue
=
true
;
auto
fRet
=
ExtMarginsValue
(
nWhichSide
);
m_bGettingExtMarginsValue
=
false
;
return
fRet
;
}
OUString
GetStyleName
(){
return
m_StyleName
;}
bool
IsComplex
();
virtual
bool
IsAnchorPage
(){
return
false
;}
...
...
@@ -207,6 +215,7 @@ protected:
virtual
bool
HonorProtection
();
virtual
bool
IsProtected
();
virtual
double
MarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
double
ExtMarginsValue
(
const
sal_uInt8
&
/*nWhichSide*/
){
return
0
;}
virtual
bool
MarginsSameAsParent
();
protected
:
bool
m_bGettingHonorProtection
;
...
...
@@ -214,6 +223,7 @@ protected:
bool
m_bGettingHasProtection
;
bool
m_bGettingIsProtected
;
bool
m_bGettingMarginsValue
;
bool
m_bGettingExtMarginsValue
;
sal_uInt32
m_nAttributes
;
sal_uInt32
m_nAttributes2
;
sal_uInt32
m_nAttributes3
;
...
...
@@ -323,8 +333,6 @@ class LwpMiddleLayout : public LwpVirtualLayout
public
:
LwpMiddleLayout
(
LwpObjectHeader
&
objHdr
,
LwpSvStream
*
pStrm
);
virtual
~
LwpMiddleLayout
();
virtual
double
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
virtual
double
GetExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
LwpLayoutGeometry
*
GetGeometry
()
{
if
(
m_bGettingGeometry
)
...
...
@@ -379,6 +387,8 @@ public:
protected
:
void
Read
()
override
;
virtual
bool
MarginsSameAsParent
()
override
;
virtual
double
MarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
virtual
double
ExtMarginsValue
(
const
sal_uInt8
&
nWhichSide
)
override
;
private
:
LwpObjectID
m_BasedOnStyle
;
LwpLayoutGeometry
*
Geometry
();
...
...
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