Kaydet (Commit) 9fe07a3f authored tarafından Michael Stahl's avatar Michael Stahl

sw: prefix members of SwPageFtnInfo

Change-Id: I5ccad27938941d5b1311bb4fd15353ea8ea34d77
üst 1621c972
...@@ -42,33 +42,34 @@ enum SwFtnAdj ...@@ -42,33 +42,34 @@ enum SwFtnAdj
/// Footnote information. /// Footnote information.
class SW_DLLPUBLIC SwPageFtnInfo class SW_DLLPUBLIC SwPageFtnInfo
{ {
SwTwips nMaxHeight; ///< maximum height of the footnote area. private:
sal_uLong nLineWidth; ///< width of separator line SwTwips m_nMaxHeight; ///< maximum height of the footnote area.
editeng::SvxBorderStyle eLineStyle; ///< Style of the separator line sal_uLong m_nLineWidth; ///< width of separator line
Color aLineColor; ///< color of the separator line editeng::SvxBorderStyle m_eLineStyle; ///< Style of the separator line
Fraction aWidth; ///< percentage width of the separator line. Color m_LineColor; ///< color of the separator line
SwFtnAdj eAdj; ///< line adjustment. Fraction m_Width; ///< percentage width of the separator line.
SwTwips nTopDist; ///< distance between body and separator. SwFtnAdj m_eAdjust; ///< line adjustment.
SwTwips nBottomDist; ///< distance between separator and first footnote SwTwips m_nTopDist; ///< distance between body and separator.
SwTwips m_nBottomDist; ///< distance between separator and first footnote
public: public:
SwTwips GetHeight() const { return nMaxHeight; } SwTwips GetHeight() const { return m_nMaxHeight; }
sal_uLong GetLineWidth() const { return nLineWidth; } sal_uLong GetLineWidth() const { return m_nLineWidth; }
const Color& GetLineColor() const { return aLineColor;} const Color& GetLineColor() const { return m_LineColor;}
editeng::SvxBorderStyle GetLineStyle() const { return eLineStyle; } editeng::SvxBorderStyle GetLineStyle() const { return m_eLineStyle; }
const Fraction& GetWidth() const { return aWidth; } const Fraction& GetWidth() const { return m_Width; }
SwFtnAdj GetAdj() const { return eAdj; } SwFtnAdj GetAdj() const { return m_eAdjust; }
SwTwips GetTopDist()const { return nTopDist; } SwTwips GetTopDist() const { return m_nTopDist; }
SwTwips GetBottomDist() const { return nBottomDist; } SwTwips GetBottomDist() const { return m_nBottomDist; }
void SetHeight( SwTwips nNew ) { nMaxHeight = nNew; } void SetHeight(SwTwips const nNew) { m_nMaxHeight = nNew; }
void SetLineWidth(sal_uLong nSet ) { nLineWidth = nSet; } void SetLineWidth(sal_uLong const nSet) { m_nLineWidth = nSet; }
void SetLineStyle( editeng::SvxBorderStyle eSet ) { eLineStyle = eSet; } void SetLineStyle(editeng::SvxBorderStyle const eSet) {m_eLineStyle = eSet;}
void SetLineColor(const Color& rCol ) { aLineColor = rCol;} void SetLineColor(const Color& rCol) { m_LineColor = rCol;}
void SetWidth( const Fraction &rNew){ aWidth = rNew; } void SetWidth(const Fraction & rNew) { m_Width = rNew; }
void SetAdj ( SwFtnAdj eNew ) { eAdj = eNew; } void SetAdj(SwFtnAdj const eNew) { m_eAdjust = eNew; }
void SetTopDist ( SwTwips nNew ) { nTopDist = nNew; } void SetTopDist (SwTwips const nNew) { m_nTopDist = nNew; }
void SetBottomDist( SwTwips nNew ) { nBottomDist = nNew; } void SetBottomDist(SwTwips const nNew) { m_nBottomDist = nNew; }
SwPageFtnInfo(); SwPageFtnInfo();
SwPageFtnInfo( const SwPageFtnInfo& ); SwPageFtnInfo( const SwPageFtnInfo& );
......
...@@ -355,54 +355,54 @@ SwPageDesc* SwPageDesc::GetByName(SwDoc& rDoc, const OUString& rName) ...@@ -355,54 +355,54 @@ SwPageDesc* SwPageDesc::GetByName(SwDoc& rDoc, const OUString& rName)
return 0; return 0;
} }
SwPageFtnInfo::SwPageFtnInfo() : SwPageFtnInfo::SwPageFtnInfo()
nMaxHeight( 0 ), : m_nMaxHeight( 0 )
nLineWidth(10), , m_nLineWidth(10)
eLineStyle( table::BorderLineStyle::SOLID ), , m_eLineStyle( table::BorderLineStyle::SOLID )
aWidth( 25, 100 ), , m_Width( 25, 100 )
nTopDist( 57 ), //1mm , m_nTopDist( 57 ) //1mm
nBottomDist( 57 ) , m_nBottomDist( 57 )
{ {
eAdj = FRMDIR_HORI_RIGHT_TOP == GetDefaultFrameDirection(GetAppLanguage()) ? m_eAdjust = FRMDIR_HORI_RIGHT_TOP == GetDefaultFrameDirection(GetAppLanguage()) ?
FTNADJ_RIGHT : FTNADJ_RIGHT :
FTNADJ_LEFT; FTNADJ_LEFT;
} }
SwPageFtnInfo::SwPageFtnInfo( const SwPageFtnInfo &rCpy ) : SwPageFtnInfo::SwPageFtnInfo( const SwPageFtnInfo &rCpy )
nMaxHeight( rCpy.GetHeight() ), : m_nMaxHeight(rCpy.GetHeight())
nLineWidth(rCpy.nLineWidth), , m_nLineWidth(rCpy.m_nLineWidth)
eLineStyle(rCpy.eLineStyle), , m_eLineStyle(rCpy.m_eLineStyle)
aLineColor(rCpy.aLineColor), , m_LineColor(rCpy.m_LineColor)
aWidth( rCpy.GetWidth() ), , m_Width(rCpy.GetWidth())
eAdj( rCpy.GetAdj() ), , m_eAdjust(rCpy.GetAdj())
nTopDist( rCpy.GetTopDist() ), , m_nTopDist(rCpy.GetTopDist())
nBottomDist( rCpy.GetBottomDist() ) , m_nBottomDist(rCpy.GetBottomDist())
{ {
} }
SwPageFtnInfo &SwPageFtnInfo::operator=( const SwPageFtnInfo& rCpy ) SwPageFtnInfo &SwPageFtnInfo::operator=( const SwPageFtnInfo& rCpy )
{ {
nMaxHeight = rCpy.GetHeight(); m_nMaxHeight = rCpy.GetHeight();
nLineWidth = rCpy.nLineWidth; m_nLineWidth = rCpy.m_nLineWidth;
eLineStyle = rCpy.eLineStyle; m_eLineStyle = rCpy.m_eLineStyle;
aLineColor = rCpy.aLineColor; m_LineColor = rCpy.m_LineColor;
aWidth = rCpy.GetWidth(); m_Width = rCpy.GetWidth();
eAdj = rCpy.GetAdj(); m_eAdjust = rCpy.GetAdj();
nTopDist = rCpy.GetTopDist(); m_nTopDist = rCpy.GetTopDist();
nBottomDist = rCpy.GetBottomDist(); m_nBottomDist = rCpy.GetBottomDist();
return *this; return *this;
} }
bool SwPageFtnInfo::operator==( const SwPageFtnInfo& rCmp ) const bool SwPageFtnInfo::operator==( const SwPageFtnInfo& rCmp ) const
{ {
return ( nMaxHeight == rCmp.GetHeight() && return m_nMaxHeight == rCmp.GetHeight()
nLineWidth == rCmp.nLineWidth && && m_nLineWidth == rCmp.m_nLineWidth
eLineStyle == rCmp.eLineStyle && && m_eLineStyle == rCmp.m_eLineStyle
aLineColor == rCmp.aLineColor && && m_LineColor == rCmp.m_LineColor
aWidth == rCmp.GetWidth() && && m_Width == rCmp.GetWidth()
eAdj == rCmp.GetAdj() && && m_eAdjust == rCmp.GetAdj()
nTopDist == rCmp.GetTopDist() && && m_nTopDist == rCmp.GetTopDist()
nBottomDist== rCmp.GetBottomDist() ); && m_nBottomDist== rCmp.GetBottomDist();
} }
SwPageDescExt::SwPageDescExt(const SwPageDesc & rPageDesc, SwDoc * _pDoc) SwPageDescExt::SwPageDescExt(const SwPageDesc & rPageDesc, SwDoc * _pDoc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment