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
9fe07a3f
Kaydet (Commit)
9fe07a3f
authored
Mar 30, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwPageFtnInfo
Change-Id: I5ccad27938941d5b1311bb4fd15353ea8ea34d77
üst
1621c972
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
59 deletions
+60
-59
pagedesc.hxx
sw/inc/pagedesc.hxx
+26
-25
pagedesc.cxx
sw/source/core/layout/pagedesc.cxx
+34
-34
No files found.
sw/inc/pagedesc.hxx
Dosyayı görüntüle @
9fe07a3f
...
...
@@ -42,33 +42,34 @@ enum SwFtnAdj
/// Footnote information.
class
SW_DLLPUBLIC
SwPageFtnInfo
{
SwTwips
nMaxHeight
;
///< maximum height of the footnote area.
sal_uLong
nLineWidth
;
///< width of separator line
editeng
::
SvxBorderStyle
eLineStyle
;
///< Style of the separator line
Color
aLineColor
;
///< color of the separator line
Fraction
aWidth
;
///< percentage width of the separator line.
SwFtnAdj
eAdj
;
///< line adjustment.
SwTwips
nTopDist
;
///< distance between body and separator.
SwTwips
nBottomDist
;
///< distance between separator and first footnote
private
:
SwTwips
m_nMaxHeight
;
///< maximum height of the footnote area.
sal_uLong
m_nLineWidth
;
///< width of separator line
editeng
::
SvxBorderStyle
m_eLineStyle
;
///< Style of the separator line
Color
m_LineColor
;
///< color of the separator line
Fraction
m_Width
;
///< percentage width of the separator line.
SwFtnAdj
m_eAdjust
;
///< line adjustment.
SwTwips
m_nTopDist
;
///< distance between body and separator.
SwTwips
m_nBottomDist
;
///< distance between separator and first footnote
public
:
SwTwips
GetHeight
()
const
{
return
nMaxHeight
;
}
sal_uLong
GetLineWidth
()
const
{
return
nLineWidth
;
}
const
Color
&
GetLineColor
()
const
{
return
a
LineColor
;}
editeng
::
SvxBorderStyle
GetLineStyle
()
const
{
return
eLineStyle
;
}
const
Fraction
&
GetWidth
()
const
{
return
a
Width
;
}
SwFtnAdj
GetAdj
()
const
{
return
eAdj
;
}
SwTwips
GetTopDist
()
const
{
return
nTopDist
;
}
SwTwips
GetBottomDist
()
const
{
return
nBottomDist
;
}
void
SetHeight
(
SwTwips
nNew
)
{
nMaxHeight
=
nNew
;
}
void
SetLineWidth
(
sal_uLong
nSet
)
{
nLineWidth
=
nSet
;
}
void
SetLineStyle
(
editeng
::
SvxBorderStyle
eSet
)
{
eLineStyle
=
eSet
;
}
void
SetLineColor
(
const
Color
&
rCol
)
{
a
LineColor
=
rCol
;}
void
SetWidth
(
const
Fraction
&
rNew
){
a
Width
=
rNew
;
}
void
SetAdj
(
SwFtnAdj
eNew
)
{
eAdj
=
eNew
;
}
void
SetTopDist
(
SwTwips
nNew
)
{
nTopDist
=
nNew
;
}
void
SetBottomDist
(
SwTwips
nNew
)
{
nBottomDist
=
nNew
;
}
SwTwips
GetHeight
()
const
{
return
m_
nMaxHeight
;
}
sal_uLong
GetLineWidth
()
const
{
return
m_
nLineWidth
;
}
const
Color
&
GetLineColor
()
const
{
return
m_
LineColor
;}
editeng
::
SvxBorderStyle
GetLineStyle
()
const
{
return
m_
eLineStyle
;
}
const
Fraction
&
GetWidth
()
const
{
return
m_
Width
;
}
SwFtnAdj
GetAdj
()
const
{
return
m_eAdjust
;
}
SwTwips
GetTopDist
()
const
{
return
m_
nTopDist
;
}
SwTwips
GetBottomDist
()
const
{
return
m_
nBottomDist
;
}
void
SetHeight
(
SwTwips
const
nNew
)
{
m_
nMaxHeight
=
nNew
;
}
void
SetLineWidth
(
sal_uLong
const
nSet
)
{
m_
nLineWidth
=
nSet
;
}
void
SetLineStyle
(
editeng
::
SvxBorderStyle
const
eSet
)
{
m_eLineStyle
=
eSet
;
}
void
SetLineColor
(
const
Color
&
rCol
)
{
m_
LineColor
=
rCol
;}
void
SetWidth
(
const
Fraction
&
rNew
)
{
m_
Width
=
rNew
;
}
void
SetAdj
(
SwFtnAdj
const
eNew
)
{
m_eAdjust
=
eNew
;
}
void
SetTopDist
(
SwTwips
const
nNew
)
{
m_
nTopDist
=
nNew
;
}
void
SetBottomDist
(
SwTwips
const
nNew
)
{
m_
nBottomDist
=
nNew
;
}
SwPageFtnInfo
();
SwPageFtnInfo
(
const
SwPageFtnInfo
&
);
...
...
sw/source/core/layout/pagedesc.cxx
Dosyayı görüntüle @
9fe07a3f
...
...
@@ -355,54 +355,54 @@ SwPageDesc* SwPageDesc::GetByName(SwDoc& rDoc, const OUString& rName)
return
0
;
}
SwPageFtnInfo
::
SwPageFtnInfo
()
:
nMaxHeight
(
0
),
nLineWidth
(
10
),
eLineStyle
(
table
::
BorderLineStyle
::
SOLID
),
aWidth
(
25
,
100
),
nTopDist
(
57
),
//1mm
nBottomDist
(
57
)
{
eAdj
=
FRMDIR_HORI_RIGHT_TOP
==
GetDefaultFrameDirection
(
GetAppLanguage
())
?
SwPageFtnInfo
::
SwPageFtnInfo
()
:
m_nMaxHeight
(
0
)
,
m_nLineWidth
(
10
)
,
m_eLineStyle
(
table
::
BorderLineStyle
::
SOLID
)
,
m_Width
(
25
,
100
)
,
m_nTopDist
(
57
)
//1mm
,
m_
nBottomDist
(
57
)
{
m_eAdjust
=
FRMDIR_HORI_RIGHT_TOP
==
GetDefaultFrameDirection
(
GetAppLanguage
())
?
FTNADJ_RIGHT
:
FTNADJ_LEFT
;
}
SwPageFtnInfo
::
SwPageFtnInfo
(
const
SwPageFtnInfo
&
rCpy
)
:
nMaxHeight
(
rCpy
.
GetHeight
()
),
nLineWidth
(
rCpy
.
nLineWidth
),
eLineStyle
(
rCpy
.
eLineStyle
),
aLineColor
(
rCpy
.
aLineColor
),
aWidth
(
rCpy
.
GetWidth
()
),
eAdj
(
rCpy
.
GetAdj
()
),
nTopDist
(
rCpy
.
GetTopDist
()
),
nBottomDist
(
rCpy
.
GetBottomDist
()
)
SwPageFtnInfo
::
SwPageFtnInfo
(
const
SwPageFtnInfo
&
rCpy
)
:
m_nMaxHeight
(
rCpy
.
GetHeight
())
,
m_nLineWidth
(
rCpy
.
m_nLineWidth
)
,
m_eLineStyle
(
rCpy
.
m_eLineStyle
)
,
m_LineColor
(
rCpy
.
m_LineColor
)
,
m_Width
(
rCpy
.
GetWidth
())
,
m_eAdjust
(
rCpy
.
GetAdj
())
,
m_nTopDist
(
rCpy
.
GetTopDist
())
,
m_nBottomDist
(
rCpy
.
GetBottomDist
()
)
{
}
SwPageFtnInfo
&
SwPageFtnInfo
::
operator
=
(
const
SwPageFtnInfo
&
rCpy
)
{
nMaxHeight
=
rCpy
.
GetHeight
();
nLineWidth
=
rCpy
.
nLineWidth
;
eLineStyle
=
rCpy
.
eLineStyle
;
aLineColor
=
rCpy
.
a
LineColor
;
aWidth
=
rCpy
.
GetWidth
();
eAdj
=
rCpy
.
GetAdj
();
nTopDist
=
rCpy
.
GetTopDist
();
nBottomDist
=
rCpy
.
GetBottomDist
();
m_
nMaxHeight
=
rCpy
.
GetHeight
();
m_nLineWidth
=
rCpy
.
m_
nLineWidth
;
m_eLineStyle
=
rCpy
.
m_
eLineStyle
;
m_LineColor
=
rCpy
.
m_
LineColor
;
m_Width
=
rCpy
.
GetWidth
();
m_eAdjust
=
rCpy
.
GetAdj
();
m_
nTopDist
=
rCpy
.
GetTopDist
();
m_
nBottomDist
=
rCpy
.
GetBottomDist
();
return
*
this
;
}
bool
SwPageFtnInfo
::
operator
==
(
const
SwPageFtnInfo
&
rCmp
)
const
{
return
(
nMaxHeight
==
rCmp
.
GetHeight
()
&&
nLineWidth
==
rCmp
.
nLineWidth
&&
eLineStyle
==
rCmp
.
eLineStyle
&&
aLineColor
==
rCmp
.
aLineColor
&&
aWidth
==
rCmp
.
GetWidth
()
&&
eAdj
==
rCmp
.
GetAdj
()
&&
nTopDist
==
rCmp
.
GetTopDist
()
&&
nBottomDist
==
rCmp
.
GetBottomDist
()
);
return
m_nMaxHeight
==
rCmp
.
GetHeight
()
&&
m_nLineWidth
==
rCmp
.
m_nLineWidth
&&
m_eLineStyle
==
rCmp
.
m_eLineStyle
&&
m_LineColor
==
rCmp
.
m_LineColor
&&
m_Width
==
rCmp
.
GetWidth
()
&&
m_eAdjust
==
rCmp
.
GetAdj
()
&&
m_nTopDist
==
rCmp
.
GetTopDist
()
&&
m_nBottomDist
==
rCmp
.
GetBottomDist
(
);
}
SwPageDescExt
::
SwPageDescExt
(
const
SwPageDesc
&
rPageDesc
,
SwDoc
*
_pDoc
)
...
...
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