LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwBorderAttrs Class Reference

#include <frmtool.hxx>

Inheritance diagram for SwBorderAttrs:
[legend]
Collaboration diagram for SwBorderAttrs:
[legend]

Public Member Functions

 SwBorderAttrs (const SwModify *pOwner, const SwFrame *pConstructor)
 
virtual ~SwBorderAttrs () override
 
const SwAttrSetGetAttrSet () const
 
const SvxULSpaceItemGetULSpace () const
 
const SvxBoxItemGetBox () const
 
const SvxShadowItemGetShadow () const
 
sal_uInt16 CalcTopLine () const
 
sal_uInt16 CalcBottomLine () const
 
sal_uInt16 CalcLeftLine () const
 
sal_uInt16 CalcRightLine () const
 
sal_uInt16 CalcTop () const
 
sal_uInt16 CalcBottom () const
 
long CalcLeft (const SwFrame *pCaller) const
 
long CalcRight (const SwFrame *pCaller) const
 
bool IsLine () const
 
const SizeGetSize () const
 
sal_uInt16 GetTopLine (const SwFrame &_rFrame, const SwFrame *_pPrevFrame=nullptr) const
 
sal_uInt16 GetBottomLine (const SwFrame &_rFrame) const
 
void SetGetCacheLine (bool bNew) const
 
bool JoinedWithPrev (const SwFrame &_rFrame, const SwFrame *_pPrevFrame=nullptr) const
 
bool JoinedWithNext (const SwFrame &_rFrame) const
 
- Public Member Functions inherited from SwCacheObj
 SwCacheObj (const void *pOwner)
 
virtual ~SwCacheObj ()
 
const voidGetOwner () const
 
bool IsOwner (const void *pNew) const
 
sal_uInt16 GetCachePos () const
 
bool IsLocked () const
 
void Lock ()
 
void Unlock ()
 

Private Member Functions

void CalcTopLine_ ()
 
void CalcBottomLine_ ()
 
void CalcLeftLine_ ()
 
void CalcRightLine_ ()
 
void CalcTop_ ()
 
void CalcBottom_ ()
 
void IsLine_ ()
 
void GetTopLine_ (const SwFrame &_rFrame, const SwFrame *_pPrevFrame)
 
void GetBottomLine_ (const SwFrame &_rFrame)
 
void CalcJoinedWithPrev (const SwFrame &_rFrame, const SwFrame *_pPrevFrame)
 
void CalcJoinedWithNext (const SwFrame &_rFrame)
 
bool JoinWithCmp (const SwFrame &_rCallerFrame, const SwFrame &_rCmpFrame) const
 
bool CmpLeftRight (const SwBorderAttrs &rCmpAttrs, const SwFrame *pCaller, const SwFrame *pCmp) const
 

Private Attributes

const SwAttrSetm_rAttrSet
 
const SvxULSpaceItemm_rUL
 
std::shared_ptr< SvxLRSpaceItemm_rLR
 
const SvxBoxItemm_rBox
 
const SvxShadowItemm_rShadow
 
const Size m_aFrameSize
 
bool m_bTopLine: 1
 
bool m_bBottomLine: 1
 
bool m_bLeftLine: 1
 
bool m_bRightLine: 1
 
bool m_bTop: 1
 
bool m_bBottom: 1
 
bool m_bLine: 1
 
bool m_bIsLine: 1
 
bool m_bCacheGetLine: 1
 
bool m_bCachedGetTopLine: 1
 
bool m_bCachedGetBottomLine: 1
 
bool m_bCachedJoinedWithPrev: 1
 
bool m_bCachedJoinedWithNext: 1
 
bool m_bJoinedWithPrev:1
 
bool m_bJoinedWithNext:1
 
sal_uInt16 m_nTopLine
 
sal_uInt16 m_nBottomLine
 
sal_uInt16 m_nLeftLine
 
sal_uInt16 m_nRightLine
 
sal_uInt16 m_nTop
 
sal_uInt16 m_nBottom
 
sal_uInt16 m_nGetTopLine
 
sal_uInt16 m_nGetBottomLine
 

Additional Inherited Members

- Protected Attributes inherited from SwCacheObj
const voidm_pOwner
 

Detailed Description

Definition at line 281 of file frmtool.hxx.

Constructor & Destructor Documentation

SwBorderAttrs::SwBorderAttrs ( const SwModify pOwner,
const SwFrame pConstructor 
)
SwBorderAttrs::~SwBorderAttrs ( )
overridevirtual

Definition at line 2086 of file frmtool.cxx.

References SwCacheObj::m_pOwner, and SwModify::SetInCache().

Member Function Documentation

sal_uInt16 SwBorderAttrs::CalcBottom ( ) const
inline
void SwBorderAttrs::CalcBottom_ ( )
private

Definition at line 2102 of file frmtool.cxx.

References CalcBottomLine(), SvxULSpaceItem::GetLower(), m_bBottom, m_nBottom, and m_rUL.

Referenced by CalcBottom().

sal_uInt16 SwBorderAttrs::CalcBottomLine ( ) const
inline
void SwBorderAttrs::CalcBottomLine_ ( )
private
void SwBorderAttrs::CalcJoinedWithNext ( const SwFrame _rFrame)
private
void SwBorderAttrs::CalcJoinedWithPrev ( const SwFrame _rFrame,
const SwFrame _pPrevFrame 
)
private
long SwBorderAttrs::CalcLeft ( const SwFrame pCaller) const
sal_uInt16 SwBorderAttrs::CalcLeftLine ( ) const
inline
void SwBorderAttrs::CalcLeftLine_ ( )
private
long SwBorderAttrs::CalcRight ( const SwFrame pCaller) const
sal_uInt16 SwBorderAttrs::CalcRightLine ( ) const
inline
void SwBorderAttrs::CalcRightLine_ ( )
private
sal_uInt16 SwBorderAttrs::CalcTop ( ) const
inline
void SwBorderAttrs::CalcTop_ ( )
private

Definition at line 2096 of file frmtool.cxx.

References CalcTopLine(), SvxULSpaceItem::GetUpper(), m_bTop, m_nTop, and m_rUL.

Referenced by CalcTop().

sal_uInt16 SwBorderAttrs::CalcTopLine ( ) const
inline
void SwBorderAttrs::CalcTopLine_ ( )
private
bool SwBorderAttrs::CmpLeftRight ( const SwBorderAttrs rCmpAttrs,
const SwFrame pCaller,
const SwFrame pCmp 
) const
private

Definition at line 2261 of file frmtool.cxx.

References CalcLeft(), CalcRight(), CmpLines(), GetBox(), SvxBoxItem::GetLeft(), and SvxBoxItem::GetRight().

Referenced by JoinWithCmp().

const SwAttrSet& SwBorderAttrs::GetAttrSet ( ) const
inline
sal_uInt16 SwBorderAttrs::GetBottomLine ( const SwFrame _rFrame) const
inline
void SwBorderAttrs::GetBottomLine_ ( const SwFrame _rFrame)
private
const SvxBoxItem& SwBorderAttrs::GetBox ( ) const
inline
const SvxShadowItem& SwBorderAttrs::GetShadow ( ) const
inline
const Size& SwBorderAttrs::GetSize ( ) const
inline
sal_uInt16 SwBorderAttrs::GetTopLine ( const SwFrame _rFrame,
const SwFrame _pPrevFrame = nullptr 
) const
inline
void SwBorderAttrs::GetTopLine_ ( const SwFrame _rFrame,
const SwFrame _pPrevFrame 
)
private

Definition at line 2384 of file frmtool.cxx.

References CalcTopLine(), JoinedWithPrev(), m_bCachedGetTopLine, m_bCacheGetLine, and m_nGetTopLine.

Referenced by GetTopLine().

const SvxULSpaceItem& SwBorderAttrs::GetULSpace ( ) const
inline
bool SwBorderAttrs::IsLine ( ) const
inline

Definition at line 514 of file frmtool.hxx.

References IsLine_(), m_bIsLine, and m_bLine.

Referenced by SwFrame::PaintSwFrameShadowAndBorder().

void SwBorderAttrs::IsLine_ ( )
private
bool SwBorderAttrs::JoinedWithNext ( const SwFrame _rFrame) const
bool SwBorderAttrs::JoinedWithPrev ( const SwFrame _rFrame,
const SwFrame _pPrevFrame = nullptr 
) const
bool SwBorderAttrs::JoinWithCmp ( const SwFrame _rCallerFrame,
const SwFrame _rCmpFrame 
) const
private
void SwBorderAttrs::SetGetCacheLine ( bool  bNew) const
inline

Member Data Documentation

const Size SwBorderAttrs::m_aFrameSize
private

Definition at line 289 of file frmtool.hxx.

Referenced by GetSize().

bool SwBorderAttrs::m_bBottom
private

Definition at line 298 of file frmtool.hxx.

Referenced by CalcBottom(), CalcBottom_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bBottomLine
private

Definition at line 294 of file frmtool.hxx.

Referenced by CalcBottomLine(), CalcBottomLine_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bCachedGetBottomLine
private

Definition at line 305 of file frmtool.hxx.

Referenced by GetBottomLine(), GetBottomLine_(), SetGetCacheLine(), and SwBorderAttrs().

bool SwBorderAttrs::m_bCachedGetTopLine
private

Definition at line 304 of file frmtool.hxx.

Referenced by GetTopLine(), GetTopLine_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bCachedJoinedWithNext
mutableprivate

Definition at line 310 of file frmtool.hxx.

Referenced by CalcJoinedWithNext(), JoinedWithNext(), SetGetCacheLine(), and SwBorderAttrs().

bool SwBorderAttrs::m_bCachedJoinedWithPrev
mutableprivate

Definition at line 309 of file frmtool.hxx.

Referenced by CalcJoinedWithPrev(), JoinedWithPrev(), SetGetCacheLine(), and SwBorderAttrs().

bool SwBorderAttrs::m_bCacheGetLine
private
bool SwBorderAttrs::m_bIsLine
private

Definition at line 301 of file frmtool.hxx.

Referenced by IsLine(), and IsLine_().

bool SwBorderAttrs::m_bJoinedWithNext
private

Definition at line 313 of file frmtool.hxx.

Referenced by CalcJoinedWithNext(), and JoinedWithNext().

bool SwBorderAttrs::m_bJoinedWithPrev
private

Definition at line 312 of file frmtool.hxx.

Referenced by CalcJoinedWithPrev(), and JoinedWithPrev().

bool SwBorderAttrs::m_bLeftLine
private

Definition at line 295 of file frmtool.hxx.

Referenced by CalcLeftLine(), CalcLeftLine_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bLine
private

Definition at line 299 of file frmtool.hxx.

Referenced by IsLine(), IsLine_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bRightLine
private

Definition at line 296 of file frmtool.hxx.

Referenced by CalcRightLine(), CalcRightLine_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bTop
private

Definition at line 297 of file frmtool.hxx.

Referenced by CalcTop(), CalcTop_(), and SwBorderAttrs().

bool SwBorderAttrs::m_bTopLine
private

Definition at line 293 of file frmtool.hxx.

Referenced by CalcTopLine(), CalcTopLine_(), and SwBorderAttrs().

sal_uInt16 SwBorderAttrs::m_nBottom
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcBottom(), and CalcBottom_().

sal_uInt16 SwBorderAttrs::m_nBottomLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcBottomLine(), and CalcBottomLine_().

sal_uInt16 SwBorderAttrs::m_nGetBottomLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by GetBottomLine(), and GetBottomLine_().

sal_uInt16 SwBorderAttrs::m_nGetTopLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by GetTopLine(), and GetTopLine_().

sal_uInt16 SwBorderAttrs::m_nLeftLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcLeftLine(), and CalcLeftLine_().

sal_uInt16 SwBorderAttrs::m_nRightLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcRightLine(), and CalcRightLine_().

sal_uInt16 SwBorderAttrs::m_nTop
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcTop(), and CalcTop_().

sal_uInt16 SwBorderAttrs::m_nTopLine
private

Definition at line 316 of file frmtool.hxx.

Referenced by CalcTopLine(), and CalcTopLine_().

const SwAttrSet& SwBorderAttrs::m_rAttrSet
private

Definition at line 283 of file frmtool.hxx.

Referenced by GetAttrSet().

const SvxBoxItem& SwBorderAttrs::m_rBox
private
std::shared_ptr<SvxLRSpaceItem> SwBorderAttrs::m_rLR
private

Definition at line 286 of file frmtool.hxx.

Referenced by CalcLeft(), CalcRight(), and SwBorderAttrs().

const SvxShadowItem& SwBorderAttrs::m_rShadow
private
const SvxULSpaceItem& SwBorderAttrs::m_rUL
private

Definition at line 284 of file frmtool.hxx.

Referenced by CalcBottom_(), CalcTop_(), and GetULSpace().


The documentation for this class was generated from the following files: