LibreOffice Module sw (master)
1
|
#include <frmtool.hxx>
Public Member Functions | |
SwBorderAttrs (const sw::BorderCacheOwner *pOwner, const SwFrame *pConstructor) | |
virtual | ~SwBorderAttrs () override |
const SwAttrSet & | GetAttrSet () const |
const SvxULSpaceItem & | GetULSpace () const |
const SvxBoxItem & | GetBox () const |
const SvxShadowItem & | GetShadow () 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 Size & | GetSize () 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 |
![]() | |
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 SwAttrSet & | m_rAttrSet |
const SvxULSpaceItem & | m_rUL |
std::shared_ptr< SvxLRSpaceItem > | m_rLR |
const SvxBoxItem & | m_rBox |
const SvxShadowItem & | m_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 | |
![]() | |
const void * | m_pOwner |
Definition at line 297 of file frmtool.hxx.
SwBorderAttrs::SwBorderAttrs | ( | const sw::BorderCacheOwner * | pOwner, |
const SwFrame * | pConstructor | ||
) |
Definition at line 2155 of file frmtool.cxx.
References SwTextNode::ClearLRSpaceItemDueToListLevelIndents(), Clone(), SwTextFrame::GetTextNodeForParaProps(), SwFrame::IsNoTextFrame(), m_bBottom, m_bBottomLine, m_bCachedGetBottomLine, m_bCachedGetTopLine, m_bCachedJoinedWithNext, m_bCachedJoinedWithPrev, m_bCacheGetLine, m_bLeftLine, m_bLine, m_bLineSpacing, m_bRightLine, m_bTop, m_bTopLine, m_rLR, and RES_LR_SPACE().
|
overridevirtual |
Definition at line 2209 of file frmtool.cxx.
References sw::BorderCacheOwner::m_bInCache, and SwCacheObj::m_pOwner.
|
inline |
Definition at line 529 of file frmtool.hxx.
References CalcBottom_(), m_bBottom, and m_nBottom.
Referenced by SwHeadFootFrame::Format(), SwCellFrame::Format(), SwLayoutFrame::Format(), SwHeadFootFrame::FormatPrt(), SwHeadFootFrame::FormatSize(), lcl_CalcCellRstHeight(), lcl_CalcHeightOfFirstContentLine(), lcl_CalcTopAndBottomMargin(), and SwHeadFootFrame::ShrinkFrame().
|
private |
Definition at line 2237 of file frmtool.cxx.
References CalcBottomLine(), SvxULSpaceItem::GetLower(), m_bBottom, m_nBottom, and m_rUL.
Referenced by CalcBottom().
|
inline |
Definition at line 505 of file frmtool.hxx.
References CalcBottomLine_(), m_bBottomLine, and m_nBottomLine.
Referenced by CalcBottom_(), SwFlowFrame::CalcLowerSpace(), SwTabFrame::Format(), SwFlyFrame::Format(), SwHeadFootFrame::FormatPrt(), GetBottomLine_(), SwHeadFootFrame::GrowFrame(), SwPageFrame::MakeAll(), SwFlyFrame::MakeContentPos(), SwFlyFrameFormat::MakeGraphic(), SwFlyFrame::MakePrtArea(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 2377 of file frmtool.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), m_bBottomLine, m_nBottomLine, m_rBox, and m_rShadow.
Referenced by CalcBottomLine().
Definition at line 2492 of file frmtool.cxx.
References SwFrame::GetAttrSet(), SwFrame::GetNext(), SwAttrSet::GetParaConnectBorder(), SfxBoolItem::GetValue(), SwFrame::IsTextFrame(), JoinWithCmp(), m_bCachedJoinedWithNext, m_bCacheGetLine, and m_bJoinedWithNext.
Referenced by JoinedWithNext().
|
private |
Definition at line 2457 of file frmtool.cxx.
References SwFrame::GetAttrSet(), SwAttrSet::GetParaConnectBorder(), SwFrame::GetPrev(), SfxBoolItem::GetValue(), SwFrame::IsTextFrame(), JoinWithCmp(), m_bCachedJoinedWithPrev, m_bCacheGetLine, and m_bJoinedWithPrev.
Referenced by JoinedWithPrev().
tools::Long SwBorderAttrs::CalcLeft | ( | const SwFrame * | pCaller | ) | const |
Definition at line 2305 of file frmtool.cxx.
References CalcLeftLine(), CalcRightLine(), SwFrame::FindPrev(), FLOATTABLE_NOMARGINS, IDocumentSettingAccess::get(), sw::DocumentSettingManager::get(), SwTextFrame::GetDoc(), SwDoc::GetDocumentSettingManager(), SwLayoutFrame::GetFormat(), SwFormat::getIDocumentSettingAccess(), GetValue, GUTTER_AT_TOP, INVERT_BORDER_SPACING, SwFrame::IsCellFrame(), SwFrame::IsPageFrame(), SwFrame::IsRightToLeft(), SwFrame::IsTextFrame(), lcl_hasTabFrame(), m_rLR, and RES_RTL_GUTTER().
Referenced by CmpLeftRight(), SwCellFrame::Format(), SwLayoutFrame::Format(), SwTabFrame::Format(), SwHeadFootFrame::FormatPrt(), SwRootFrame::ImplCalcBrowseWidth(), lcl_CalcTopAndBottomMargin(), SwContentFrame::MakePrtArea(), and SwTestFormat::SwTestFormat().
|
inline |
Definition at line 511 of file frmtool.hxx.
References CalcLeftLine_(), m_bLeftLine, and m_nLeftLine.
Referenced by CalcLeft(), CalcRight(), SwTabFrame::Format(), SwFlyFrame::Format(), SwPageFrame::MakeAll(), SwFlyFrame::MakePrtArea(), and SwVirtFlyDrawObj::NbcResize().
|
private |
Definition at line 2384 of file frmtool.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), m_bLeftLine, m_nLeftLine, m_rBox, and m_rShadow.
Referenced by CalcLeftLine().
|
inline |
Definition at line 535 of file frmtool.hxx.
References CalcLineSpacing_(), m_bLineSpacing, and m_nLineSpacing.
Referenced by SwFlowFrame::CalcAddLowerSpaceAsLastInTableCell(), SwFlowFrame::CalcLowerSpace(), SwContentFrame::ShouldBwdMoved(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 2579 of file frmtool.cxx.
References SfxItemSet::Get(), SvxLineSpacingItem::GetInterLineSpaceRule(), SwAttrSet::GetLineSpacing(), SvxLineSpacingItem::GetPropLineSpace(), m_bLineSpacing, m_nLineSpacing, m_rAttrSet, and RES_CHRATR_FONTSIZE().
Referenced by CalcLineSpacing().
tools::Long SwBorderAttrs::CalcRight | ( | const SwFrame * | pCaller | ) | const |
Definition at line 2243 of file frmtool.cxx.
References CalcLeftLine(), CalcRightLine(), IDocumentSettingAccess::get(), SwLayoutFrame::GetFormat(), SwFormat::getIDocumentSettingAccess(), GetValue, GUTTER_AT_TOP, INVERT_BORDER_SPACING, SwFrame::IsCellFrame(), SwFrame::IsPageFrame(), SwFrame::IsRightToLeft(), SwFrame::IsTextFrame(), m_rLR, and RES_RTL_GUTTER().
Referenced by CmpLeftRight(), SwCellFrame::Format(), SwLayoutFrame::Format(), SwTabFrame::Format(), SwHeadFootFrame::FormatPrt(), SwRootFrame::ImplCalcBrowseWidth(), lcl_CalcTopAndBottomMargin(), SwContentFrame::MakePrtArea(), and SwTestFormat::SwTestFormat().
|
inline |
Definition at line 517 of file frmtool.hxx.
References CalcRightLine_(), m_bRightLine, and m_nRightLine.
Referenced by CalcLeft(), CalcRight(), SwTabFrame::Format(), SwFlyFrame::Format(), SwPageFrame::MakeAll(), SwFlyFrameFormat::MakeGraphic(), SwContentFrame::MakePrtArea(), SwFlyFrame::MakePrtArea(), and SwVirtFlyDrawObj::NbcResize().
|
private |
Definition at line 2391 of file frmtool.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), m_bRightLine, m_nRightLine, m_rBox, and m_rShadow.
Referenced by CalcRightLine().
|
inline |
Definition at line 523 of file frmtool.hxx.
References CalcTop_(), m_bTop, and m_nTop.
Referenced by SwHeadFootFrame::Format(), SwCellFrame::Format(), SwLayoutFrame::Format(), SwHeadFootFrame::FormatPrt(), SwHeadFootFrame::FormatSize(), lcl_CalcCellRstHeight(), lcl_CalcHeightOfFirstContentLine(), lcl_CalcTopAndBottomMargin(), and SwHeadFootFrame::ShrinkFrame().
|
private |
Definition at line 2219 of file frmtool.cxx.
References CalcTopLine(), IDocumentSettingAccess::get(), SwAttrSet::GetDoc(), SwDoc::getIDocumentSettingAccess(), SvxULSpaceItem::GetUpper(), GUTTER_AT_TOP, m_bTop, m_nTop, m_rAttrSet, m_rLR, and m_rUL.
Referenced by CalcTop().
|
inline |
Definition at line 499 of file frmtool.hxx.
References CalcTopLine_(), m_bTopLine, and m_nTopLine.
Referenced by CalcTop_(), SwFlyFrame::Format(), SwHeadFootFrame::FormatPrt(), GetTopLine_(), SwHeadFootFrame::GrowFrame(), SwPageFrame::MakeAll(), SwFlyFrame::MakeContentPos(), and SwFlyFrame::MakePrtArea().
|
private |
Definition at line 2370 of file frmtool.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), m_bTopLine, m_nTopLine, m_rBox, and m_rShadow.
Referenced by CalcTopLine().
|
private |
Definition at line 2424 of file frmtool.cxx.
References CalcLeft(), CalcRight(), CmpLines(), GetBox(), SvxBoxItem::GetLeft(), and SvxBoxItem::GetRight().
Referenced by JoinWithCmp().
|
inline |
Definition at line 384 of file frmtool.hxx.
References m_rAttrSet.
Referenced by SwCellFrame::Format(), SwLayoutFrame::FormatWidthCols(), SwRootFrame::ImplCalcBrowseWidth(), SwContentFrame::MakeAll(), SwFlyFreeFrame::MakeAll(), SwVirtFlyDrawObj::NbcResize(), and SwContentFrame::WouldFit_().
|
inline |
Definition at line 483 of file frmtool.hxx.
References GetBottomLine_(), m_bCachedGetBottomLine, and m_nGetBottomLine.
Referenced by SwFlowFrame::CalcLowerSpace(), SwFrame::PaintShadow(), SwFrame::PaintSwFrameShadowAndBorder(), and SwContentFrame::WouldFit_().
Definition at line 2564 of file frmtool.cxx.
References CalcBottomLine(), JoinedWithNext(), m_bCachedGetBottomLine, m_bCacheGetLine, and m_nGetBottomLine.
Referenced by GetBottomLine().
|
inline |
Definition at line 386 of file frmtool.hxx.
References m_rBox.
Referenced by CmpLeftRight(), SwCellFrame::Format(), JoinWithCmp(), lcl_CalcBorderRect(), lcl_GetCellFrameForBorderAttrs(), SwFrame::PaintSwFrameShadowAndBorder(), and SwFrame::UnionFrame().
|
inline |
Definition at line 387 of file frmtool.hxx.
References m_rShadow.
Referenced by JoinWithCmp(), lcl_CalcBorderRect(), SwFrame::PaintShadow(), SwTabFrame::PaintSwFrame(), SwFrame::PaintSwFrameShadowAndBorder(), and SwFrame::UnionFrame().
|
inline |
Definition at line 401 of file frmtool.hxx.
References m_aFrameSize.
Referenced by SwRowFrame::Format(), SwCellFrame::Format(), SwLayoutFrame::Format(), SwFlyFrame::Format(), SwHeadFootFrame::FormatSize(), SwRootFrame::ImplCalcBrowseWidth(), and SwPageFrame::MakeAll().
|
inline |
Definition at line 474 of file frmtool.hxx.
References GetTopLine_(), m_bCachedGetTopLine, and m_nGetTopLine.
Referenced by SwFlowFrame::CalcUpperSpace(), SwFrame::PaintShadow(), and SwFrame::PaintSwFrameShadowAndBorder().
Definition at line 2547 of file frmtool.cxx.
References CalcTopLine(), JoinedWithPrev(), m_bCachedGetTopLine, m_bCacheGetLine, and m_nGetTopLine.
Referenced by GetTopLine().
|
inline |
Definition at line 385 of file frmtool.hxx.
References m_rUL.
Referenced by SwFlowFrame::CalcAddLowerSpaceAsLastInTableCell(), SwFlowFrame::CalcLowerSpace(), SwFlowFrame::CalcUpperSpace(), SwTabFrame::Format(), lcl_getContextualSpacing(), SwContentFrame::ShouldBwdMoved(), and SwContentFrame::WouldFit_().
|
inline |
Definition at line 541 of file frmtool.hxx.
References IsLine_(), m_bIsLine, and m_bLine.
Referenced by SwFrame::PaintSwFrameShadowAndBorder().
|
private |
Definition at line 2398 of file frmtool.cxx.
References SvxBoxItem::GetBottom(), SvxBoxItem::GetLeft(), SvxBoxItem::GetRight(), SvxBoxItem::GetTop(), m_bIsLine, m_bLine, and m_rBox.
Referenced by IsLine().
bool SwBorderAttrs::JoinedWithNext | ( | const SwFrame & | _rFrame | ) | const |
Definition at line 2535 of file frmtool.cxx.
References CalcJoinedWithNext(), m_bCachedJoinedWithNext, and m_bJoinedWithNext.
Referenced by GetBottomLine_(), lcl_ExtendLeftAndRight(), and SwFrame::PaintSwFrameShadowAndBorder().
bool SwBorderAttrs::JoinedWithPrev | ( | const SwFrame & | _rFrame, |
const SwFrame * | _pPrevFrame = nullptr |
||
) | const |
Definition at line 2523 of file frmtool.cxx.
References CalcJoinedWithPrev(), m_bCachedJoinedWithPrev, and m_bJoinedWithPrev.
Referenced by GetTopLine_(), lcl_ExtendLeftAndRight(), SwContentFrame::MakeAll(), and SwFrame::PaintSwFrameShadowAndBorder().
|
private |
Definition at line 2435 of file frmtool.cxx.
References CmpLeftRight(), CmpLines(), SwBorderAttrAccess::Get(), SvxBoxItem::GetBottom(), GetBox(), SwFrame::GetCache(), GetShadow(), SvxBoxItem::GetTop(), m_rBox, and m_rShadow.
Referenced by CalcJoinedWithNext(), and CalcJoinedWithPrev().
|
inline |
Definition at line 489 of file frmtool.hxx.
References m_bCachedGetBottomLine, m_bCachedJoinedWithNext, m_bCachedJoinedWithPrev, and m_bCacheGetLine.
Referenced by SwFrame::PaintSwFrameShadowAndBorder().
|
private |
Definition at line 305 of file frmtool.hxx.
Referenced by GetSize().
|
private |
Definition at line 314 of file frmtool.hxx.
Referenced by CalcBottom(), CalcBottom_(), and SwBorderAttrs().
|
private |
Definition at line 310 of file frmtool.hxx.
Referenced by CalcBottomLine(), CalcBottomLine_(), and SwBorderAttrs().
|
private |
Definition at line 322 of file frmtool.hxx.
Referenced by GetBottomLine(), GetBottomLine_(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 321 of file frmtool.hxx.
Referenced by GetTopLine(), GetTopLine_(), and SwBorderAttrs().
|
mutableprivate |
Definition at line 327 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), JoinedWithNext(), SetGetCacheLine(), and SwBorderAttrs().
|
mutableprivate |
Definition at line 326 of file frmtool.hxx.
Referenced by CalcJoinedWithPrev(), JoinedWithPrev(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 320 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), CalcJoinedWithPrev(), GetBottomLine_(), GetTopLine_(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 318 of file frmtool.hxx.
|
private |
Definition at line 330 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), and JoinedWithNext().
|
private |
Definition at line 329 of file frmtool.hxx.
Referenced by CalcJoinedWithPrev(), and JoinedWithPrev().
|
private |
Definition at line 311 of file frmtool.hxx.
Referenced by CalcLeftLine(), CalcLeftLine_(), and SwBorderAttrs().
|
private |
Definition at line 315 of file frmtool.hxx.
Referenced by IsLine(), IsLine_(), and SwBorderAttrs().
|
private |
Definition at line 316 of file frmtool.hxx.
Referenced by CalcLineSpacing(), CalcLineSpacing_(), and SwBorderAttrs().
|
private |
Definition at line 312 of file frmtool.hxx.
Referenced by CalcRightLine(), CalcRightLine_(), and SwBorderAttrs().
|
private |
Definition at line 313 of file frmtool.hxx.
Referenced by CalcTop(), CalcTop_(), and SwBorderAttrs().
|
private |
Definition at line 309 of file frmtool.hxx.
Referenced by CalcTopLine(), CalcTopLine_(), and SwBorderAttrs().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcBottom(), and CalcBottom_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcBottomLine(), and CalcBottomLine_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by GetBottomLine(), and GetBottomLine_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by GetTopLine(), and GetTopLine_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcLeftLine(), and CalcLeftLine_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcLineSpacing(), and CalcLineSpacing_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcRightLine(), and CalcRightLine_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcTop(), and CalcTop_().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcTopLine(), and CalcTopLine_().
|
private |
Definition at line 299 of file frmtool.hxx.
Referenced by CalcLineSpacing_(), CalcTop_(), and GetAttrSet().
|
private |
Definition at line 303 of file frmtool.hxx.
Referenced by CalcBottomLine_(), CalcLeftLine_(), CalcRightLine_(), CalcTopLine_(), GetBox(), IsLine_(), and JoinWithCmp().
|
private |
Definition at line 302 of file frmtool.hxx.
Referenced by CalcLeft(), CalcRight(), CalcTop_(), and SwBorderAttrs().
|
private |
Definition at line 304 of file frmtool.hxx.
Referenced by CalcBottomLine_(), CalcLeftLine_(), CalcRightLine_(), CalcTopLine_(), GetShadow(), and JoinWithCmp().
|
private |
Definition at line 300 of file frmtool.hxx.
Referenced by CalcBottom_(), CalcTop_(), and GetULSpace().