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 |
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 SwAttrSet & | m_rAttrSet |
const SvxULSpaceItem & | m_rUL |
std::unique_ptr< SvxFirstLineIndentItem > | m_pFirstLineIndent |
std::unique_ptr< SvxTextLeftMarginItem > | m_pTextLeftMargin |
std::unique_ptr< SvxRightMarginItem > | m_pRightMargin |
std::shared_ptr< SvxLRSpaceItem > | m_xLR |
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 | |
Protected Attributes inherited from SwCacheObj | |
const void * | m_pOwner |
Definition at line 308 of file frmtool.hxx.
SwBorderAttrs::SwBorderAttrs | ( | const sw::BorderCacheOwner * | pOwner, |
const SwFrame * | pConstructor | ||
) |
Definition at line 2219 of file frmtool.cxx.
References SvxFirstLineIndentItem::Clone(), SvxLRSpaceItem::Clone(), SvxRightMarginItem::Clone(), SvxTextLeftMarginItem::Clone(), SwFrame::DynCastTextFrame(), SwAttrSet::GetFirstLineIndent(), GetFormat(), SwAttrSet::GetLRSpace(), SwAttrSet::GetRightMargin(), SwAttrSet::GetTextLeftMargin(), 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_pFirstLineIndent, m_pRightMargin, m_pTextLeftMargin, m_rAttrSet, m_xLR, pOwner, and RES_LR_SPACE().
|
overridevirtual |
Definition at line 2280 of file frmtool.cxx.
References sw::BorderCacheOwner::m_bInCache, and SwCacheObj::m_pOwner.
|
inline |
Definition at line 542 of file frmtool.hxx.
References CalcBottom_(), m_bBottom, and m_nBottom.
Referenced by SwCellFrame::Format(), SwHeadFootFrame::Format(), SwLayoutFrame::Format(), SwHeadFootFrame::FormatPrt(), SwHeadFootFrame::FormatSize(), lcl_CalcCellRstHeight(), lcl_CalcHeightOfFirstContentLine(), lcl_CalcTopAndBottomMargin(), and SwHeadFootFrame::ShrinkFrame().
|
private |
Definition at line 2305 of file frmtool.cxx.
References CalcBottomLine(), SvxULSpaceItem::GetLower(), m_bBottom, m_nBottom, and m_rUL.
Referenced by CalcBottom().
|
inline |
Definition at line 518 of file frmtool.hxx.
References CalcBottomLine_(), m_bBottomLine, and m_nBottomLine.
Referenced by CalcBottom_(), SwFlyFrame::Format(), SwTabFrame::Format(), SwHeadFootFrame::FormatPrt(), GetBottomLine_(), SwHeadFootFrame::GrowFrame(), SwPageFrame::MakeAll(), SwFlyFrame::MakeContentPos(), SwFlyFrameFormat::MakeGraphic(), SwFlyFrame::MakePrtArea(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 2458 of file frmtool.cxx.
References SvxBoxItem::CalcLineSpace(), SvxShadowItem::CalcShadowSpace(), m_bBottomLine, m_nBottomLine, m_rBox, and m_rShadow.
Referenced by CalcBottomLine().
|
private |
Definition at line 2573 of file frmtool.cxx.
References SwFrame::GetAttrSet(), SwFrame::GetNext(), SwAttrSet::GetParaConnectBorder(), SfxBoolItem::GetValue(), SwTextFrame::IsHiddenNow(), SwFrame::IsTextFrame(), JoinWithCmp(), m_bCachedJoinedWithNext, m_bCacheGetLine, and m_bJoinedWithNext.
Referenced by JoinedWithNext().
|
private |
Definition at line 2538 of file frmtool.cxx.
References SwFrame::GetAttrSet(), SwAttrSet::GetParaConnectBorder(), SwFrame::GetPrev(), SfxBoolItem::GetValue(), SwTextFrame::IsHiddenNow(), SwFrame::IsTextFrame(), JoinWithCmp(), m_bCachedJoinedWithPrev, m_bCacheGetLine, and m_bJoinedWithPrev.
Referenced by JoinedWithPrev().
tools::Long SwBorderAttrs::CalcLeft | ( | const SwFrame * | pCaller | ) | const |
Definition at line 2382 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_pFirstLineIndent, m_pRightMargin, m_pTextLeftMargin, m_xLR, 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 524 of file frmtool.hxx.
References CalcLeftLine_(), m_bLeftLine, and m_nLeftLine.
Referenced by CalcLeft(), CalcRight(), SwFlyFrame::Format(), SwTabFrame::Format(), SwPageFrame::MakeAll(), SwFlyFrame::MakePrtArea(), and SwVirtFlyDrawObj::NbcResize().
|
private |
Definition at line 2465 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 548 of file frmtool.hxx.
References CalcLineSpacing_(), m_bLineSpacing, and m_nLineSpacing.
Referenced by SwContentFrame::ShouldBwdMoved(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 2660 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 2311 of file frmtool.cxx.
References CalcLeftLine(), CalcRightLine(), 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(), m_pFirstLineIndent, m_pRightMargin, m_pTextLeftMargin, m_xLR, 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 530 of file frmtool.hxx.
References CalcRightLine_(), m_bRightLine, and m_nRightLine.
Referenced by CalcLeft(), CalcRight(), SwFlyFrame::Format(), SwTabFrame::Format(), SwPageFrame::MakeAll(), SwFlyFrameFormat::MakeGraphic(), SwContentFrame::MakePrtArea(), SwFlyFrame::MakePrtArea(), and SwVirtFlyDrawObj::NbcResize().
|
private |
Definition at line 2472 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 536 of file frmtool.hxx.
References CalcTop_(), m_bTop, and m_nTop.
Referenced by SwCellFrame::Format(), SwHeadFootFrame::Format(), SwLayoutFrame::Format(), SwHeadFootFrame::FormatPrt(), SwHeadFootFrame::FormatSize(), lcl_CalcCellRstHeight(), lcl_CalcHeightOfFirstContentLine(), lcl_CalcTopAndBottomMargin(), and SwHeadFootFrame::ShrinkFrame().
|
private |
Definition at line 2290 of file frmtool.cxx.
References CalcTopLine(), IDocumentSettingAccess::get(), SwAttrSet::GetDoc(), SwDoc::getIDocumentSettingAccess(), SvxULSpaceItem::GetUpper(), GUTTER_AT_TOP, m_bTop, m_nTop, m_rAttrSet, m_rUL, and m_xLR.
Referenced by CalcTop().
|
inline |
Definition at line 512 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 2451 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 2505 of file frmtool.cxx.
References CalcLeft(), CalcRight(), CmpLines(), GetBox(), SvxBoxItem::GetLeft(), and SvxBoxItem::GetRight().
Referenced by JoinWithCmp().
|
inline |
Definition at line 397 of file frmtool.hxx.
References m_rAttrSet.
Referenced by SwCellFrame::Format(), SwLayoutFrame::FormatWidthCols(), SwRootFrame::ImplCalcBrowseWidth(), SwContentFrame::MakeAll(), SwFlyFreeFrame::MakeAll(), SwTabFrame::MakeAll(), SwVirtFlyDrawObj::NbcResize(), and SwContentFrame::WouldFit_().
|
inline |
Definition at line 496 of file frmtool.hxx.
References GetBottomLine_(), m_bCachedGetBottomLine, and m_nGetBottomLine.
Referenced by SwFrame::PaintShadow(), SwFrame::PaintSwFrameShadowAndBorder(), and SwContentFrame::WouldFit_().
|
private |
Definition at line 2645 of file frmtool.cxx.
References CalcBottomLine(), JoinedWithNext(), m_bCachedGetBottomLine, m_bCacheGetLine, and m_nGetBottomLine.
Referenced by GetBottomLine().
|
inline |
Definition at line 399 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 400 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 414 of file frmtool.hxx.
References m_aFrameSize.
Referenced by SwCellFrame::Format(), SwFlyFrame::Format(), SwLayoutFrame::Format(), SwRowFrame::Format(), SwHeadFootFrame::FormatSize(), SwRootFrame::ImplCalcBrowseWidth(), and SwPageFrame::MakeAll().
|
inline |
Definition at line 487 of file frmtool.hxx.
References GetTopLine_(), m_bCachedGetTopLine, and m_nGetTopLine.
Referenced by SwFrame::PaintShadow(), and SwFrame::PaintSwFrameShadowAndBorder().
Definition at line 2628 of file frmtool.cxx.
References CalcTopLine(), JoinedWithPrev(), m_bCachedGetTopLine, m_bCacheGetLine, and m_nGetTopLine.
Referenced by GetTopLine().
|
inline |
Definition at line 398 of file frmtool.hxx.
References m_rUL.
Referenced by SwTabFrame::Format(), lcl_getContextualSpacing(), SwContentFrame::ShouldBwdMoved(), and SwContentFrame::WouldFit_().
|
inline |
Definition at line 554 of file frmtool.hxx.
References IsLine_(), m_bIsLine, and m_bLine.
Referenced by SwFrame::PaintSwFrameShadowAndBorder(), and SwFlyFreeFrame::supportsAutoContour().
|
private |
Definition at line 2479 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 2616 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 2604 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 2516 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 502 of file frmtool.hxx.
References m_bCachedGetBottomLine, m_bCachedGetTopLine, m_bCachedJoinedWithNext, m_bCachedJoinedWithPrev, and m_bCacheGetLine.
Referenced by SwFrame::PaintSwFrameShadowAndBorder().
|
private |
Definition at line 318 of file frmtool.hxx.
Referenced by GetSize().
|
private |
Definition at line 327 of file frmtool.hxx.
Referenced by CalcBottom(), CalcBottom_(), and SwBorderAttrs().
|
private |
Definition at line 323 of file frmtool.hxx.
Referenced by CalcBottomLine(), CalcBottomLine_(), and SwBorderAttrs().
|
private |
Definition at line 335 of file frmtool.hxx.
Referenced by GetBottomLine(), GetBottomLine_(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 334 of file frmtool.hxx.
Referenced by GetTopLine(), GetTopLine_(), SetGetCacheLine(), and SwBorderAttrs().
|
mutableprivate |
Definition at line 340 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), JoinedWithNext(), SetGetCacheLine(), and SwBorderAttrs().
|
mutableprivate |
Definition at line 339 of file frmtool.hxx.
Referenced by CalcJoinedWithPrev(), JoinedWithPrev(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 333 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), CalcJoinedWithPrev(), GetBottomLine_(), GetTopLine_(), SetGetCacheLine(), and SwBorderAttrs().
|
private |
Definition at line 331 of file frmtool.hxx.
|
private |
Definition at line 343 of file frmtool.hxx.
Referenced by CalcJoinedWithNext(), and JoinedWithNext().
|
private |
Definition at line 342 of file frmtool.hxx.
Referenced by CalcJoinedWithPrev(), and JoinedWithPrev().
|
private |
Definition at line 324 of file frmtool.hxx.
Referenced by CalcLeftLine(), CalcLeftLine_(), and SwBorderAttrs().
|
private |
Definition at line 328 of file frmtool.hxx.
Referenced by IsLine(), IsLine_(), and SwBorderAttrs().
|
private |
Definition at line 329 of file frmtool.hxx.
Referenced by CalcLineSpacing(), CalcLineSpacing_(), and SwBorderAttrs().
|
private |
Definition at line 325 of file frmtool.hxx.
Referenced by CalcRightLine(), CalcRightLine_(), and SwBorderAttrs().
|
private |
Definition at line 326 of file frmtool.hxx.
Referenced by CalcTop(), CalcTop_(), and SwBorderAttrs().
|
private |
Definition at line 322 of file frmtool.hxx.
Referenced by CalcTopLine(), CalcTopLine_(), and SwBorderAttrs().
|
private |
Definition at line 351 of file frmtool.hxx.
Referenced by CalcBottom(), and CalcBottom_().
|
private |
Definition at line 347 of file frmtool.hxx.
Referenced by CalcBottomLine(), and CalcBottomLine_().
|
private |
Definition at line 353 of file frmtool.hxx.
Referenced by GetBottomLine(), and GetBottomLine_().
|
private |
Definition at line 352 of file frmtool.hxx.
Referenced by GetTopLine(), and GetTopLine_().
|
private |
Definition at line 348 of file frmtool.hxx.
Referenced by CalcLeftLine(), and CalcLeftLine_().
|
private |
Definition at line 354 of file frmtool.hxx.
Referenced by CalcLineSpacing(), and CalcLineSpacing_().
|
private |
Definition at line 349 of file frmtool.hxx.
Referenced by CalcRightLine(), and CalcRightLine_().
|
private |
Definition at line 350 of file frmtool.hxx.
Referenced by CalcTop(), and CalcTop_().
|
private |
Definition at line 346 of file frmtool.hxx.
Referenced by CalcTopLine(), and CalcTopLine_().
|
private |
Definition at line 312 of file frmtool.hxx.
Referenced by CalcLeft(), CalcRight(), and SwBorderAttrs().
|
private |
Definition at line 314 of file frmtool.hxx.
Referenced by CalcLeft(), CalcRight(), and SwBorderAttrs().
|
private |
Definition at line 313 of file frmtool.hxx.
Referenced by CalcLeft(), CalcRight(), and SwBorderAttrs().
|
private |
Definition at line 310 of file frmtool.hxx.
Referenced by CalcLineSpacing_(), CalcTop_(), GetAttrSet(), and SwBorderAttrs().
|
private |
Definition at line 316 of file frmtool.hxx.
Referenced by CalcBottomLine_(), CalcLeftLine_(), CalcRightLine_(), CalcTopLine_(), GetBox(), IsLine_(), and JoinWithCmp().
|
private |
Definition at line 317 of file frmtool.hxx.
Referenced by CalcBottomLine_(), CalcLeftLine_(), CalcRightLine_(), CalcTopLine_(), GetShadow(), and JoinWithCmp().
|
private |
Definition at line 311 of file frmtool.hxx.
Referenced by CalcBottom_(), CalcTop_(), and GetULSpace().
|
private |
Definition at line 315 of file frmtool.hxx.
Referenced by CalcLeft(), CalcRight(), CalcTop_(), and SwBorderAttrs().