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

#include <frmtool.hxx>

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

Public Member Functions

 SwBorderAttrs (const sw::BorderCacheOwner *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
 
sal_uInt16 CalcLineSpacing () const
 
tools::Long CalcLeft (const SwFrame *pCaller) const
 
tools::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 void * GetOwner () 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
 
void CalcLineSpacing_ ()
 

Private Attributes

const SwAttrSetm_rAttrSet
 
const SvxULSpaceItemm_rUL
 
std::unique_ptr< SvxFirstLineIndentItemm_pFirstLineIndent
 
std::unique_ptr< SvxTextLeftMarginItemm_pTextLeftMargin
 
std::unique_ptr< SvxRightMarginItemm_pRightMargin
 
std::shared_ptr< SvxLRSpaceItemm_xLR
 
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_bLineSpacing: 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
 
sal_uInt16 m_nLineSpacing
 

Additional Inherited Members

- Protected Attributes inherited from SwCacheObj
const void * m_pOwner
 

Detailed Description

Definition at line 308 of file frmtool.hxx.

Constructor & Destructor Documentation

◆ SwBorderAttrs()

SwBorderAttrs::SwBorderAttrs ( const sw::BorderCacheOwner pOwner,
const SwFrame pConstructor 
)

◆ ~SwBorderAttrs()

SwBorderAttrs::~SwBorderAttrs ( )
overridevirtual

Definition at line 2280 of file frmtool.cxx.

References sw::BorderCacheOwner::m_bInCache, and SwCacheObj::m_pOwner.

Member Function Documentation

◆ CalcBottom()

sal_uInt16 SwBorderAttrs::CalcBottom ( ) const
inline

◆ CalcBottom_()

void SwBorderAttrs::CalcBottom_ ( )
private

Definition at line 2305 of file frmtool.cxx.

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

Referenced by CalcBottom().

◆ CalcBottomLine()

sal_uInt16 SwBorderAttrs::CalcBottomLine ( ) const
inline

◆ CalcBottomLine_()

void SwBorderAttrs::CalcBottomLine_ ( )
private

◆ CalcJoinedWithNext()

void SwBorderAttrs::CalcJoinedWithNext ( const SwFrame _rFrame)
private

◆ CalcJoinedWithPrev()

void SwBorderAttrs::CalcJoinedWithPrev ( const SwFrame _rFrame,
const SwFrame _pPrevFrame 
)
private

◆ CalcLeft()

tools::Long SwBorderAttrs::CalcLeft ( const SwFrame pCaller) const

◆ CalcLeftLine()

sal_uInt16 SwBorderAttrs::CalcLeftLine ( ) const
inline

◆ CalcLeftLine_()

void SwBorderAttrs::CalcLeftLine_ ( )
private

◆ CalcLineSpacing()

sal_uInt16 SwBorderAttrs::CalcLineSpacing ( ) const
inline

◆ CalcLineSpacing_()

void SwBorderAttrs::CalcLineSpacing_ ( )
private

◆ CalcRight()

tools::Long SwBorderAttrs::CalcRight ( const SwFrame pCaller) const

◆ CalcRightLine()

sal_uInt16 SwBorderAttrs::CalcRightLine ( ) const
inline

◆ CalcRightLine_()

void SwBorderAttrs::CalcRightLine_ ( )
private

◆ CalcTop()

sal_uInt16 SwBorderAttrs::CalcTop ( ) const
inline

◆ CalcTop_()

void SwBorderAttrs::CalcTop_ ( )
private

◆ CalcTopLine()

sal_uInt16 SwBorderAttrs::CalcTopLine ( ) const
inline

◆ CalcTopLine_()

void SwBorderAttrs::CalcTopLine_ ( )
private

◆ CmpLeftRight()

bool SwBorderAttrs::CmpLeftRight ( const SwBorderAttrs rCmpAttrs,
const SwFrame pCaller,
const SwFrame pCmp 
) const
private

Definition at line 2505 of file frmtool.cxx.

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

Referenced by JoinWithCmp().

◆ GetAttrSet()

const SwAttrSet & SwBorderAttrs::GetAttrSet ( ) const
inline

◆ GetBottomLine()

sal_uInt16 SwBorderAttrs::GetBottomLine ( const SwFrame _rFrame) const
inline

◆ GetBottomLine_()

void SwBorderAttrs::GetBottomLine_ ( const SwFrame _rFrame)
private

◆ GetBox()

const SvxBoxItem & SwBorderAttrs::GetBox ( ) const
inline

◆ GetShadow()

const SvxShadowItem & SwBorderAttrs::GetShadow ( ) const
inline

◆ GetSize()

const Size & SwBorderAttrs::GetSize ( ) const
inline

◆ GetTopLine()

sal_uInt16 SwBorderAttrs::GetTopLine ( const SwFrame _rFrame,
const SwFrame _pPrevFrame = nullptr 
) const
inline

◆ GetTopLine_()

void SwBorderAttrs::GetTopLine_ ( const SwFrame _rFrame,
const SwFrame _pPrevFrame 
)
private

Definition at line 2628 of file frmtool.cxx.

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

Referenced by GetTopLine().

◆ GetULSpace()

const SvxULSpaceItem & SwBorderAttrs::GetULSpace ( ) const
inline

◆ IsLine()

bool SwBorderAttrs::IsLine ( ) const
inline

◆ IsLine_()

void SwBorderAttrs::IsLine_ ( )
private

◆ JoinedWithNext()

bool SwBorderAttrs::JoinedWithNext ( const SwFrame _rFrame) const

◆ JoinedWithPrev()

bool SwBorderAttrs::JoinedWithPrev ( const SwFrame _rFrame,
const SwFrame _pPrevFrame = nullptr 
) const

◆ JoinWithCmp()

bool SwBorderAttrs::JoinWithCmp ( const SwFrame _rCallerFrame,
const SwFrame _rCmpFrame 
) const
private

◆ SetGetCacheLine()

void SwBorderAttrs::SetGetCacheLine ( bool  bNew) const
inline

Member Data Documentation

◆ m_aFrameSize

const Size SwBorderAttrs::m_aFrameSize
private

Definition at line 318 of file frmtool.hxx.

Referenced by GetSize().

◆ m_bBottom

bool SwBorderAttrs::m_bBottom
private

Definition at line 327 of file frmtool.hxx.

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

◆ m_bBottomLine

bool SwBorderAttrs::m_bBottomLine
private

Definition at line 323 of file frmtool.hxx.

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

◆ m_bCachedGetBottomLine

bool SwBorderAttrs::m_bCachedGetBottomLine
private

Definition at line 335 of file frmtool.hxx.

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

◆ m_bCachedGetTopLine

bool SwBorderAttrs::m_bCachedGetTopLine
private

Definition at line 334 of file frmtool.hxx.

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

◆ m_bCachedJoinedWithNext

bool SwBorderAttrs::m_bCachedJoinedWithNext
mutableprivate

Definition at line 340 of file frmtool.hxx.

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

◆ m_bCachedJoinedWithPrev

bool SwBorderAttrs::m_bCachedJoinedWithPrev
mutableprivate

Definition at line 339 of file frmtool.hxx.

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

◆ m_bCacheGetLine

bool SwBorderAttrs::m_bCacheGetLine
private

◆ m_bIsLine

bool SwBorderAttrs::m_bIsLine
private

Definition at line 331 of file frmtool.hxx.

Referenced by IsLine(), and IsLine_().

◆ m_bJoinedWithNext

bool SwBorderAttrs::m_bJoinedWithNext
private

Definition at line 343 of file frmtool.hxx.

Referenced by CalcJoinedWithNext(), and JoinedWithNext().

◆ m_bJoinedWithPrev

bool SwBorderAttrs::m_bJoinedWithPrev
private

Definition at line 342 of file frmtool.hxx.

Referenced by CalcJoinedWithPrev(), and JoinedWithPrev().

◆ m_bLeftLine

bool SwBorderAttrs::m_bLeftLine
private

Definition at line 324 of file frmtool.hxx.

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

◆ m_bLine

bool SwBorderAttrs::m_bLine
private

Definition at line 328 of file frmtool.hxx.

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

◆ m_bLineSpacing

bool SwBorderAttrs::m_bLineSpacing
private

Definition at line 329 of file frmtool.hxx.

Referenced by CalcLineSpacing(), CalcLineSpacing_(), and SwBorderAttrs().

◆ m_bRightLine

bool SwBorderAttrs::m_bRightLine
private

Definition at line 325 of file frmtool.hxx.

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

◆ m_bTop

bool SwBorderAttrs::m_bTop
private

Definition at line 326 of file frmtool.hxx.

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

◆ m_bTopLine

bool SwBorderAttrs::m_bTopLine
private

Definition at line 322 of file frmtool.hxx.

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

◆ m_nBottom

sal_uInt16 SwBorderAttrs::m_nBottom
private

Definition at line 351 of file frmtool.hxx.

Referenced by CalcBottom(), and CalcBottom_().

◆ m_nBottomLine

sal_uInt16 SwBorderAttrs::m_nBottomLine
private

Definition at line 347 of file frmtool.hxx.

Referenced by CalcBottomLine(), and CalcBottomLine_().

◆ m_nGetBottomLine

sal_uInt16 SwBorderAttrs::m_nGetBottomLine
private

Definition at line 353 of file frmtool.hxx.

Referenced by GetBottomLine(), and GetBottomLine_().

◆ m_nGetTopLine

sal_uInt16 SwBorderAttrs::m_nGetTopLine
private

Definition at line 352 of file frmtool.hxx.

Referenced by GetTopLine(), and GetTopLine_().

◆ m_nLeftLine

sal_uInt16 SwBorderAttrs::m_nLeftLine
private

Definition at line 348 of file frmtool.hxx.

Referenced by CalcLeftLine(), and CalcLeftLine_().

◆ m_nLineSpacing

sal_uInt16 SwBorderAttrs::m_nLineSpacing
private

Definition at line 354 of file frmtool.hxx.

Referenced by CalcLineSpacing(), and CalcLineSpacing_().

◆ m_nRightLine

sal_uInt16 SwBorderAttrs::m_nRightLine
private

Definition at line 349 of file frmtool.hxx.

Referenced by CalcRightLine(), and CalcRightLine_().

◆ m_nTop

sal_uInt16 SwBorderAttrs::m_nTop
private

Definition at line 350 of file frmtool.hxx.

Referenced by CalcTop(), and CalcTop_().

◆ m_nTopLine

sal_uInt16 SwBorderAttrs::m_nTopLine
private

Definition at line 346 of file frmtool.hxx.

Referenced by CalcTopLine(), and CalcTopLine_().

◆ m_pFirstLineIndent

std::unique_ptr<SvxFirstLineIndentItem> SwBorderAttrs::m_pFirstLineIndent
private

Definition at line 312 of file frmtool.hxx.

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

◆ m_pRightMargin

std::unique_ptr<SvxRightMarginItem> SwBorderAttrs::m_pRightMargin
private

Definition at line 314 of file frmtool.hxx.

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

◆ m_pTextLeftMargin

std::unique_ptr<SvxTextLeftMarginItem> SwBorderAttrs::m_pTextLeftMargin
private

Definition at line 313 of file frmtool.hxx.

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

◆ m_rAttrSet

const SwAttrSet& SwBorderAttrs::m_rAttrSet
private

Definition at line 310 of file frmtool.hxx.

Referenced by CalcLineSpacing_(), CalcTop_(), GetAttrSet(), and SwBorderAttrs().

◆ m_rBox

const SvxBoxItem& SwBorderAttrs::m_rBox
private

◆ m_rShadow

const SvxShadowItem& SwBorderAttrs::m_rShadow
private

◆ m_rUL

const SvxULSpaceItem& SwBorderAttrs::m_rUL
private

Definition at line 311 of file frmtool.hxx.

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

◆ m_xLR

std::shared_ptr<SvxLRSpaceItem> SwBorderAttrs::m_xLR
private

Definition at line 315 of file frmtool.hxx.

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


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