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

Of course Writer needs its own rectangles. More...

#include <swrect.hxx>

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

Public Member Functions

 SwRect ()
 
 SwRect (const SwRect &rRect)
 
 SwRect (const Point &rLT, const Size &rSize)
 
 SwRect (const Point &rLT, const Point &rRB)
 
 SwRect (tools::Long X, tools::Long Y, tools::Long Width, tools::Long Height)
 
 SwRect (const tools::Rectangle &rRect)
 
void Chg (const Point &rNP, const Size &rNS)
 
void Pos (const Point &rNew)
 
void Pos (const tools::Long nNewX, const tools::Long nNewY)
 
void SSize (const Size &rNew)
 
void SSize (const tools::Long nHeight, const tools::Long nWidth)
 
void Width (tools::Long nNew)
 
void Height (tools::Long nNew)
 
void Left (const tools::Long nLeft)
 
void Right (const tools::Long nRight)
 
void Top (const tools::Long nTop)
 
void Bottom (const tools::Long nBottom)
 
const PointPos () const
 
const SizeSSize () const
 
tools::Long Width () const
 
tools::Long Height () const
 
tools::Long Left () const
 
tools::Long Right () const
 
tools::Long Top () const
 
tools::Long Bottom () const
 
PointPos ()
 
Point Center () const
 
void Justify ()
 
SwRectUnion (const SwRect &rRect)
 
SwRectIntersection (const SwRect &rRect)
 
SwRectIntersection_ (const SwRect &rRect)
 
bool IsInside (const Point &rPOINT) const
 
bool IsNear (const Point &rPoint, tools::Long nTolerance) const
 
bool IsInside (const SwRect &rRect) const
 
bool IsOver (const SwRect &rRect) const
 
bool HasArea () const
 
bool IsEmpty () const
 
void Clear ()
 
SwRectoperator= (const SwRect &rRect)
 
bool operator== (const SwRect &rRect) const
 
bool operator!= (const SwRect &rRect) const
 
SwRectoperator+= (const Point &rPt)
 
SwRectoperator-= (const Point &rPt)
 
tools::Rectangle SVRect () const
 
void dumpAsXmlAttributes (xmlTextWriterPtr writer) const
 
void Top_ (const tools::Long nTop)
 
void Bottom_ (const tools::Long nBottom)
 
void Left_ (const tools::Long nLeft)
 
void Right_ (const tools::Long nRight)
 
void Width_ (const tools::Long nNew)
 
void Height_ (const tools::Long nNew)
 
tools::Long Top_ () const
 
tools::Long Bottom_ () const
 
tools::Long Left_ () const
 
tools::Long Right_ () const
 
tools::Long Width_ () const
 
tools::Long Height_ () const
 
void SubTop (const tools::Long nSub)
 
void AddTop (const tools::Long nAdd)
 
void AddBottom (const tools::Long nAdd)
 
void AddLeft (const tools::Long nAdd)
 
void SubLeft (const tools::Long nSub)
 
void AddRight (const tools::Long nAdd)
 
void AddWidth (const tools::Long nAdd)
 
void AddHeight (const tools::Long nAdd)
 
void SetPosX (const tools::Long nNew)
 
void SetPosY (const tools::Long nNew)
 
void SetLeftAndWidth (tools::Long nLeft, tools::Long nNew)
 
void SetTopAndHeight (tools::Long nTop, tools::Long nNew)
 
void SetRightAndWidth (tools::Long nRight, tools::Long nNew)
 
void SetBottomAndHeight (tools::Long nBottom, tools::Long nNew)
 
void SetUpperLeftCorner (const Point &rNew)
 
void SetUpperRightCorner (const Point &rNew)
 
void SetLowerLeftCorner (const Point &rNew)
 
Size Size_ () const
 
Point TopLeft () const
 
Point TopRight () const
 
Point BottomLeft () const
 
Point BottomRight () const
 
Size SwappedSize () const
 
tools::Long GetLeftDistance (tools::Long) const
 
tools::Long GetBottomDistance (tools::Long) const
 
tools::Long GetRightDistance (tools::Long) const
 
tools::Long GetTopDistance (tools::Long) const
 
bool OverStepLeft (tools::Long) const
 
bool OverStepBottom (tools::Long) const
 
bool OverStepTop (tools::Long) const
 
bool OverStepRight (tools::Long) const
 

Private Attributes

Point m_Point
 
Size m_Size
 

Friends

SvStreamWriteSwRect (SvStream &rStream, const SwRect &rRect)
 

Detailed Description

Of course Writer needs its own rectangles.

This is half-open so m_Point.X() + m_Size.getWidth() is not included. Note the tools Rectangle is (usually? sometimes?) closed so there's a SVRect() to subtract 1 for the conversion.

Definition at line 35 of file swrect.hxx.

Constructor & Destructor Documentation

SwRect::SwRect ( )
inline

Definition at line 305 of file swrect.hxx.

References m_Size.

Referenced by Intersection_().

SwRect::SwRect ( const SwRect rRect)
inline

Definition at line 310 of file swrect.hxx.

References m_Size.

SwRect::SwRect ( const Point rLT,
const Size rSize 
)
inline

Definition at line 315 of file swrect.hxx.

References m_Size.

SwRect::SwRect ( const Point rLT,
const Point rRB 
)
inline

Definition at line 320 of file swrect.hxx.

References m_Size, X, and Y.

SwRect::SwRect ( tools::Long  X,
tools::Long  Y,
tools::Long  Width,
tools::Long  Height 
)
inline

Definition at line 325 of file swrect.hxx.

References m_Size.

SwRect::SwRect ( const tools::Rectangle rRect)

Member Function Documentation

void SwRect::AddBottom ( const tools::Long  nAdd)
void SwRect::AddHeight ( const tools::Long  nAdd)
void SwRect::AddLeft ( const tools::Long  nAdd)
void SwRect::AddRight ( const tools::Long  nAdd)
void SwRect::AddTop ( const tools::Long  nAdd)
void SwRect::AddWidth ( const tools::Long  nAdd)
void SwRect::Bottom ( const tools::Long  nBottom)
inline

Definition at line 209 of file swrect.hxx.

References m_Point, m_Size, and Size::setHeight().

Referenced by objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwAccPreviewData::AdjustLogicPgRectToVisibleArea(), ww8::CellInfo::bottom(), SwFillData::Bottom(), SwTextFormatter::CalcBottomLine(), SwFEShell::CalcBoundRect(), SwTextAdjuster::CalcDropRepaint(), SwRootFrame::CalcFrameRects(), SwTextFly::CalcMinBottom(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), SwEditWin::ChangeFly(), SwViewShell::CheckInvalidForPaint(), SwDoc::ChgAnchor(), SwLayoutFrame::ChgLowersProp(), SwTextFrame::ChgThisLines(), SwTextPaintInfo::DrawCheckBox(), DrawFillAttributes(), DrawGraphic(), SwTextPainter::DrawTextLine(), SwView::ExecTabWin(), SwTextFrame::FillCursorPos(), SwRootFrame::FillSelection(), SwLayAction::FormatContent(), SwLayAction::FormatLayout(), SwTextFrame::FormatLine(), SwHeadFootFrame::FormatSize(), SwAccessibleTable::getAccessibleRowExtentAt(), SwPostItMgr::GetBottomScrollRect(), SwCursorShell::GetContentAtPos(), SwLayoutFrame::GetContentPos(), SwPageFrame::GetContentPosition(), SwTextFrame::GetFootnoteLine(), GetMergeSel(), SwPageFrame::GetModelPositionForViewPoint(), SwRootFrame::GetModelPositionForViewPoint(), SwFEShell::GetMousePageDesc(), SwRootFrame::GetNextPrevContentPos(), SwRootFrame::GetPageAtPos(), SwFEShell::GetPageNumber(), SwAnchoredObject::GetRelCharY(), SwAccessibleTableData_Impl::GetSelection(), SwDoc::GetTabBorders(), SwCursorShell::GotoFlyAnchor(), IMPL_LINK(), IMPL_LINK_NOARG(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos(), SwLayAction::InternalAction(), Intersection(), SwSelPaintRects::Invalidate(), SwRootFrame::IsBetweenPages(), IsFrameInTableSel(), IsInside(), IsOver(), SwPageFrame::IsOverHeaderFooterArea(), SwLayAction::IsShortCut(), SwPostItMgr::LayoutPostIts(), lcl_CalcDownDist(), lcl_CheckFlowBack(), lcl_CreateRectangleDelimiterPrimitives(), lcl_dbg_out(), lcl_FindAnchorPos(), lcl_FindFirstInvaContent(), lcl_FindFrame(), lcl_Inside(), lcl_NotifyNeighbours(), lcl_PaintShadow(), lcl_ShrinkFly(), Notify(), Notify_Background(), SwRegionRects::operator-=(), SwPageFrame::PaintDecorators(), SwViewShell::PaintDesktop(), SwTextFrame::PaintExtraData(), SwPageFrame::PaintNotesSidebar(), SwNoTextFrame::PaintPicture(), SwViewOption::PaintPostIts(), SwColumnFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSubsidiaryLines(), SwPageFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSwFrame(), SwTextFrame::PaintSwFrame(), SwTextFrame::Prepare(), ww8::WW8TableInfo::processSwTableByLayout(), SwLayoutFrame::RefreshExtraData(), SwPageFrame::RefreshExtraData(), SwPostItMgr::ScrollbarHit(), SwFEShell::SetChainMarker(), SwDoc::SetTabBorders(), SwView::SetZoom_(), SwViewShell::SmoothScroll(), SwView::StateTabWin(), SwAlignRect(), SwArrowPortion::SwArrowPortion(), SwLayAction::TurboAction_(), Union(), SwTextFrame::UnitUp_(), SwFlyFrameAttrMgr::ValidateMetrics(), SwViewShell::VisPortChgd(), and SwTextFrame::WouldFit().

tools::Long SwRect::Bottom ( ) const
inline

Definition at line 247 of file swrect.hxx.

References Size::getHeight(), m_Point, and m_Size.

Referenced by dumpAsXmlAttributes(), Intersection(), IsInside(), IsNear(), IsOver(), and Union().

void SwRect::Bottom_ ( const tools::Long  nBottom)

Definition at line 151 of file swrect.cxx.

References m_Point, m_Size, and Size::setHeight().

tools::Long SwRect::Bottom_ ( ) const

Definition at line 158 of file swrect.cxx.

References Size::getHeight(), m_Point, and m_Size.

Point SwRect::BottomLeft ( ) const
Point SwRect::BottomRight ( ) const
Point SwRect::Center ( ) const
void SwRect::Chg ( const Point rNP,
const Size rNS 
)
inline
void SwRect::Clear ( )
inline
void SwRect::dumpAsXmlAttributes ( xmlTextWriterPtr  writer) const

Definition at line 221 of file swrect.cxx.

References Bottom(), Height(), Left(), Right(), Top(), and Width().

Referenced by SwAnchoredObject::dumpAsXml(), and SwFrame::dumpInfosAsXml().

tools::Long SwRect::GetBottomDistance ( tools::Long  nLim) const

Definition at line 181 of file swrect.cxx.

References Size::getHeight(), m_Point, and m_Size.

tools::Long SwRect::GetLeftDistance ( tools::Long  nLimit) const

Definition at line 180 of file swrect.cxx.

References m_Point.

tools::Long SwRect::GetRightDistance ( tools::Long  nLim) const

Definition at line 183 of file swrect.cxx.

References Size::getWidth(), m_Point, and m_Size.

tools::Long SwRect::GetTopDistance ( tools::Long  nLimit) const

Definition at line 182 of file swrect.cxx.

References m_Point.

bool SwRect::HasArea ( ) const
inline

Definition at line 288 of file swrect.hxx.

References IsEmpty().

Referenced by SwRootFrame::CalcFrameRects(), SwTextPaintInfo::CalcRect(), SwFlyFrame::CalcRel(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwSaveClip::ChgClip_(), SwRootFrame::DeleteEmptySct_(), SwLayIdle::DoIdleJob_(), SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawBackground(), SwTextPaintInfo::DrawBorder(), SwTextPaintInfo::DrawCheckBox(), DrawGraphic(), SwTextPaintInfo::DrawLineBreak(), SwTextPaintInfo::DrawRedArrow(), SwTextPaintInfo::DrawTab(), SwLayVout::Enter(), SwView::ExecSmartTagPopup(), SwView::ExecSpellPopup(), SwTextFrame::FillSelection(), SwFEShell::FindAnchorPos(), SwTextFrame::Format_(), SwLayAction::FormatLayoutTab(), SwFlyFreeFrame::GetUnclippedFrame(), SwViewShell::HasInvalidRect(), SwViewShell::ImplEndAction(), SwViewShellImp::Init(), lcl_IsDropFlyInter(), lcl_NotifyBackgroundOfObj(), SwCursorShell::MakeSelVisible(), SwVirtFlyDrawObj::NbcResize(), Notify(), SwDrawContact::NotifyBackgrdOfAllVirtObjs(), SwTextInputFieldPortion::Paint(), SwGrfNumPortion::Paint(), SwLayAction::PaintContent_(), SwViewShell::PaintDesktop(), SwPageFrame::PaintGrid(), SwFootnoteContFrame::PaintLine(), SwTextFrame::PaintSwFrame(), SwFrame::PaintSwFrameBackground(), SwTextFrame::Prepare(), SwPageFrame::PrepareFooter(), SwPageFrame::RefreshExtraData(), SwLayoutFrame::RefreshLaySubsidiary(), SwPageFrame::RefreshSubsidiary(), SwFrame::Retouch(), SwViewShell::SetBrowseBorder(), SwSelPaintRects::Show(), sw_ChangeOffset(), SwAlignRect(), SwPageFrame::UpdateAttr_(), and SwCursorShell::UpdateCursor().

void SwRect::Height ( tools::Long  nNew)
inline

Definition at line 191 of file swrect.hxx.

References m_Size, and Size::setHeight().

Referenced by Add(), SwDrawView::AddCustomHdl(), SwTextFrame::AdjustFrame(), objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwFrame::AdjustNeighbourhood(), SwTextFormatter::BuildMultiPortion(), SwWrtShell::CalcAndSetScale(), CalcArea(), SwTextFormatter::CalcBottomLine(), SwFEShell::CalcBoundRect(), CalcContent(), SwTextFrame::CalcFitToContent(), SwTextAdjuster::CalcFlyPortion(), SwTextFrame::CalcFollow(), SwRootFrame::CalcFrameRects(), myImplHelpers::CalcHdFtDist(), SwTextFrame::CalcLineSpace(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwFlyFrame::CalcRel(), SwDoc::CalculateNonBlankPages(), SwDoc::CalculatePagesForPrinting(), SwDoc::Chain(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwSectionFrame::CheckClipping(), SwLayHelper::CheckFlyCache_(), SwLayHelper::CheckInsert(), SwPageFrame::CheckPageHeightValidForHideWhitespace(), SwRootFrame::CheckViewLayout(), SwLayoutFrame::ChgLowersProp(), SwFlyFrame::ChgSize(), SwTextShell::CreateInsertFrameItemSet(), SwSectionFrame::DelEmpty(), DrawGraphic(), SwTextPaintInfo::DrawRedArrow(), SwTextPainter::DrawTextLine(), SwView::ExecTabWin(), SwFrameShell::Execute(), SwGrfShell::Execute(), SwTextFrame::FillCursorPos(), SwShellTableCursor::FillRects(), SwTextFrame::FirstLineHeight(), SwRowFrame::Format(), SwBodyFrame::Format(), SwNoTextFrame::Format(), SwTextFrame::Format(), SwTextFrame::FormatAdjust(), SwTextFrame::FormatEmpty(), SwLayAction::FormatLayout(), SwTextFrame::FormatLine(), SwHeadFootFrame::FormatPrt(), SwTextFrame::FormatQuick(), SwHeadFootFrame::FormatSize(), SwFlyFrame::FrameSizeChg(), SwTextFrame::GetAutoPos(), SwFrame::GetBottomMargin(), SwNoTextFrame::GetCharRect(), SwTextCursor::GetCharRect(), SwTextFrame::GetCharRect(), SwTextCursor::GetCharRect_(), SwPageFrame::GetContentHeight(), SwLayoutFrame::GetContentPos(), SwFlyFrame::GetContour(), SwTextFrame::GetDropRect_(), SwFrameAreaDefinition::getFrameAreaTransformation(), SwFrameAreaDefinition::getFramePrintAreaTransformation(), SwTextFormatter::GetFrameRstHeight(), SwFEShell::GetGraphicDefaultSize(), objectpositioning::SwAnchoredObjectPosition::GetHoriAlignmentValues(), SwPostItHelper::getLayoutHeight(), SwTextFrame::GetModelPositionForViewPoint_(), SwFrame::GetNextSctLeaf(), SwAnchoredDrawObject::GetObjBoundRect(), SwFrame::GetPrtBottom(), SwTableLine::GetTableLineHeight(), SwFootnoteBossFrame::GetVarSpace(), objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues(), SwHeadFootFrame::GrowFrame(), SwFootnoteContFrame::GrowFrame(), ww8::CellInfo::height(), SwFEShell::ImpEndCreate(), IMPL_LINK(), IMPL_LINK_NOARG(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos(), SwFlyFrame::InsertColumns(), SwWrtShell::InsertObject(), InvaPercentFlys(), SwPostItMgr::IsHit(), SwEditShell::IsMoveLeftMargin(), SwCursor::IsSelOvr(), SwFlyFrame::IsShowUnfloatButton(), lcl_CalcAutoWidth(), lcl_CalcCellRstHeight(), lcl_CalcContentHeight(), lcl_CalcDownDist(), lcl_CalculateRepaintRect(), lcl_DrawGraphic(), lcl_DrawSpecial(), lcl_GetPrintUIOptions(), lcl_LayoutFrameEnsureMinHeight(), lcl_PaintShadow(), lcl_SetOtherLineHeight(), SwLayoutFrame::MakeAll(), SwPageFrame::MakeAll(), SwFrame::MakeBelowPos(), MakeNxt(), SwFrame::MakePos(), SwCursorShell::MakeSelVisible(), SwViewShell::MakeVisible(), SwEditWin::MouseMove(), SwFEShell::MoveAnchor(), SwLayouter::MoveBwdSuppressed(), SwCursorShell::MoveColumn(), SwVirtFlyDrawObj::NbcResize(), SwRegionRects::operator-=(), PaintCharacterBorder(), SwTextFrame::PaintEmpty(), SwTextFrame::PaintExtraData(), SwPageFrame::PaintGrid(), SwPageFrame::PaintNotesSidebar(), SwViewOption::PaintPostIts(), SwFrame::PaintSwFrameShadowAndBorder(), SwContentFrame::Paste(), SwTextFrame::Prepare(), SwViewShell::PrintOrPDFExport(), SwPageFrame::PrtWithoutHeaderAndFooter(), SwWrtShell::PushCursor(), SwImplProtocol::Record_(), SwFrame::ReinitializeFrameSizeAttrFlags(), SwFEShell::RequestObjectResize(), SwAnchoredObject::ResetLastCharRectHeight(), SwFlyAtContentFrame::SetAbsPos(), SwViewShellImp::SetFirstVisPage(), SetLineHeight(), SwFrame::SetMaxBottom(), SwVisibleCursor::SetPosAndShow(), SwTable::SetRowHeight(), SwFrame::SetTopBottomMargins(), SwSectionIndentTabPage::SetWrtShell(), SwView::SetZoom_(), SwHeadFootFrame::ShrinkFrame(), SwViewShell::SmoothScroll(), SwTabFrame::Split(), SwView::StateTabWin(), Sub(), SwAlignRect(), SwTextFrame::SwapWidthAndHeight(), SwArrowPortion::SwArrowPortion(), SwFixPortion::SwFixPortion(), SwFlyFrame::SwFlyFrame(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchVerticalToHorizontal(), SwPageFrame::SwPageFrame(), SwEnhancedPDFExportHelper::SwRectToPDFRect(), SwPageFrame::UpdateAttr_(), SwFlyFrame::UpdateAttr_(), SwFlyFrameAttrMgr::ValidateMetrics(), ValidateText(), SwTextFrame::WouldFit(), SwContentFrame::WouldFit_(), SwLayoutCache::Write(), WriteSwRect(), and SwLayNotify::~SwLayNotify().

tools::Long SwRect::Height ( ) const
inline

Definition at line 231 of file swrect.hxx.

References Size::Height(), and m_Size.

Referenced by Center(), and dumpAsXmlAttributes().

void SwRect::Height_ ( const tools::Long  nNew)

Definition at line 147 of file swrect.cxx.

References m_Size, and Size::setHeight().

tools::Long SwRect::Height_ ( ) const

Definition at line 154 of file swrect.cxx.

References Size::getHeight(), and m_Size.

SwRect & SwRect::Intersection ( const SwRect rRect)
SwRect & SwRect::Intersection_ ( const SwRect rRect)
bool SwRect::IsEmpty ( ) const
inline
bool SwRect::IsInside ( const Point rPOINT) const
bool SwRect::IsInside ( const SwRect rRect) const

Definition at line 93 of file swrect.cxx.

References Bottom(), Left(), Right(), and Top().

bool SwRect::IsNear ( const Point rPoint,
tools::Long  nTolerance 
) const

Definition at line 114 of file swrect.cxx.

References Bottom(), IsInside(), Left(), Right(), and Top().

Referenced by SwFEShell::GetBox(), and lcl_FindFrameInTab().

bool SwRect::IsOver ( const SwRect rRect) const

Definition at line 123 of file swrect.cxx.

References Bottom(), Left(), Right(), and Top().

Referenced by SwViewShellImp::AddPaintRect(), SwContourCache::CalcBoundRect(), SwTabFrame::CalcFlyOffsets(), SwTextFly::CalcLeftMargin(), SwTextFly::CalcRightMargin(), SwViewShell::CheckInvalidForPaint(), CheckSplitCells(), ChkChartSel(), SwLayIdle::DoIdleJob(), DrawGraphic(), SwTextFly::DrawTextOpaque(), SwShellTableCursor::FillRects(), SwLayoutFrame::FillSelection(), SwPageFrame::FillSelection(), SwTextFrame::FillSelection(), FindPage(), SwTextFly::ForEach(), SwLayAction::FormatLayoutTab(), GetAutoSumSel(), SwNoTextFrame::GetCharRect(), SwDPage::GetGridFrameList(), GetMergeSel(), SwRootFrame::GetPageAtPos(), SwAccessibleTableData_Impl::GetSelection(), GetTableSel(), Intersection(), SwCursorShell::IsCursorVisible(), SwNode::IsInVisibleArea(), SwFlyFrame::IsPaint(), SwAccessibleFrame::IsShowing(), lcl_CheckFlowBack(), lcl_CollectCells(), lcl_NotifyNeighbours(), lcl_PaintShadow(), lcl_SubtractFlys(), MakeSelUnions(), SwRootFrame::MakeTableCursors(), Notify_Background(), SwRegionRects::operator-=(), SwAnchoredObject::OverlapsPrevColumn(), sw::FlyContentPortion::Paint(), SwGrfNumPortion::Paint(), SwCursorShell::Paint(), SwFrame::PaintBorderLine(), SwLayoutFrame::PaintColLines(), SwViewShell::PaintDesktop(), SwLayoutFrame::PaintSubsidiaryLines(), SwNoTextFrame::PaintSwFrame(), SwLayoutFrame::PaintSwFrame(), SwFlyFrame::PaintSwFrame(), SwRootFrame::PaintSwFrame(), SwFrame::PaintSwFrameBackground(), SwLayAction::PaintWithoutFlys(), SwLayoutFrame::RefreshLaySubsidiary(), SwViewShellImp::SetFirstVisPage(), SwFEShell::ShouldObjectBeSelected(), SwVisibleCursor::Show(), Sub(), SwAccessibleChildSList_const_iterator::SwAccessibleChildSList_const_iterator(), and SwLayIdle::SwLayIdle().

void SwRect::Justify ( )
void SwRect::Left ( const tools::Long  nLeft)
inline

Definition at line 195 of file swrect.hxx.

References Size::AdjustWidth(), m_Point, and m_Size.

Referenced by ww8::WW8TableCellGrid::addShadowCells(), SwTextFrame::AdjustFrame(), objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwAccPreviewData::AdjustLogicPgRectToVisibleArea(), SwFrame::AdjustNeighbourhood(), SwAnchoredDrawObject::AdjustPositioningAttr(), SwFEShell::CalcBoundRect(), CalcClipRect(), SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), SwRootFrame::CalcFrameRects(), SwTextFly::CalcLeftMargin(), SwTextPainter::CalcPaintOfst(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwTextAdjuster::CalcRightMargin(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwLayHelper::CheckFlyCache_(), SwViewShell::CheckInvalidForPaint(), SwLayoutFrame::ChgLowersProp(), SwAccessibleTableData_Impl::CollectData(), SwTextMargin::CtorInitTextMargin(), SwTextPaintInfo::DrawCheckBox(), DrawFillAttributes(), DrawGraphic(), SwTextPainter::DrawTextLine(), SwView::ExecTabWin(), SwTextFrame::FillCursorPos(), SwViewShell::FillPrtDoc(), SwShellTableCursor::FillRects(), SwRowFrame::Format(), SwTabFrame::Format(), SwTextFrame::FormatAdjust(), SwLayAction::FormatLayout(), SwLayAction::FormatLayoutFly(), SwHeadFootFrame::FormatPrt(), SwAccessibleTable::getAccessibleColumn(), SwAccessibleTable::getAccessibleColumnExtentAt(), SwTextFrameInfo::GetBigIndent(), SwPageFrame::GetBorderAndShadowBoundRect(), SwPostItMgr::GetBottomScrollRect(), sw::access::SwAccessibleChild::GetBounds(), sw::access::SwAccessibleChild::GetBox(), SwTextCursor::GetCharRect(), SwTextCursor::GetCharRect_(), SwCursorShell::GetContentAtPos(), SwLayoutFrame::GetContentPos(), SwFlyFrame::GetContour(), SwFEShell::GetCurMouseTabColNum(), SwAccessibleParagraph::GetCurrentTabStop(), SwTextFrame::GetDropRect_(), SwTextCursor::GetEndCharRect(), SwTextFrame::GetFootnoteLine(), SwFrameAreaDefinition::getFrameAreaTransformation(), SwFrameAreaDefinition::getFramePrintAreaTransformation(), SwPageFrame::GetHorizontalShadowRect(), SwCallLink::getLayoutFrame(), GetLeftMargin(), SwFrame::GetLeftMargin(), SwTextFrameInfo::GetLineStart(), SwTextFormatInfo::GetLineWidth(), GetMergeSel(), SwPageFrame::GetModelPositionForViewPoint(), SwTextFrame::GetModelPositionForViewPoint_(), SwRootFrame::GetNextPrevContentPos(), SwAnchoredObject::GetObjRectWithSpaces(), SwViewShell::GetPageNumAndSetOffsetForPDF(), SwTextFrame::GetPaintSwRect(), SwFrame::GetPrtLeft(), SwFrame::GetPrtRight(), SwAnchoredObject::GetRelCharX(), SwFrame::GetRightMargin(), SwAccessibleTableData_Impl::GetSelection(), SwDoc::GetTabBorders(), SwDoc::GetTabRows(), SwFEShell::GetTabRows_(), SwPostItMgr::GetTopScrollRect(), TransformableSwFrame::getUntransformedFramePrintArea(), SwCursorShell::GotoFlyAnchor(), SwFEShell::ImpEndCreate(), IMPL_LINK(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos(), SwRootFrame::ImplCalcBrowseWidth(), SwFEShell::InsertDrawObj(), SwMailMergeLayoutPage::InsertGreeting(), Intersection(), SwAccessibleContext::InvalidateChildPosOrSize(), SwTextFly::IsAnyObj(), SwRootFrame::IsBetweenPages(), IsFrameBehind(), IsFrameInTableSel(), SwPostItMgr::IsHit(), IsInside(), IsOver(), SwLayAction::IsShortCut(), SwPostItMgr::LayoutPostIts(), lcl_AdjustPositioningAttr(), lcl_CalcDownDist(), lcl_CreateRectangleDelimiterPrimitives(), lcl_dbg_out(), lcl_DrawGraphic(), lcl_DrawSpecial(), lcl_FindCntDiff(), lcl_FindFrame(), lcl_PaintShadow(), lcl_ShrinkFly(), lcl_UpDown(), ww8::CellInfo::left(), SwFillData::Left(), SwPageFrame::MakeAll(), SwFlyInContentFrame::MakeAll(), SwFlyFrameFormat::MakeGraphic(), SwAnchoredDrawObject::MakeObjPos(), SwFEShell::MoveAnchor(), SwCursorShell::MoveCursorToNum(), SwVirtFlyDrawObj::NbcMove(), SwTextFormatter::NewTabPortion(), Notify(), Notify_Background(), SwRegionRects::operator-=(), SwTextInputFieldPortion::Paint(), SwPageFrame::PaintBorderAndShadow(), PaintCharacterBorder(), SwPageFrame::PaintDecorators(), SwViewShell::PaintDesktop(), SwPageFrame::PaintGrid(), SwPageFrame::PaintNotesSidebar(), SwNoTextFrame::PaintPicture(), SwViewOption::PaintPostIts(), SwLayoutFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSwFrame(), SwFrame::PaintSwFrameShadowAndBorder(), ww8::WW8TableInfo::processSwTableByLayout(), SwImplProtocol::Record_(), SwCursorShell::RefreshBlockCursor(), SwFEShell::RequestObjectResize(), SwPostItMgr::ScrollbarHit(), SwCursorShell::sendLOKCursorUpdates(), SwFlyAtContentFrame::SetAbsPos(), SwFlyCntPortion::SetBase(), SwFEShell::SetFlyPos(), SwFrame::SetLeftRightMargins(), SwFrame::SetMaxRight(), SwFrame::SetMinLeft(), SwAnchoredDrawObject::SetObjLeft_(), SwVisibleCursor::SetPosAndShow(), SwAnchoredDrawObject::SetPositioningAttr(), SwFrame::SetRightLeftMargins(), SwDoc::SetTabBorders(), SwViewShell::SmoothScroll(), SwView::StateTabWin(), SwAlignRect(), SwArrowPortion::SwArrowPortion(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), SwTextFrame::SwitchVerticalToHorizontal(), Union(), SwFlyFrame::UpdateAttr_(), SwCursorShell::UpdateCursor(), SwCursor::UpDown(), SwFlyFrameAttrMgr::ValidateMetrics(), SwViewShell::VisPortChgd(), SwTextFrame::WouldFit(), SwLayoutCache::Write(), WriteSwRect(), SwView::WriteUserData(), and SwView::WriteUserDataSequence().

tools::Long SwRect::Left ( ) const
inline

Definition at line 235 of file swrect.hxx.

References m_Point.

Referenced by Center(), dumpAsXmlAttributes(), Intersection(), IsInside(), IsNear(), IsOver(), and Union().

void SwRect::Left_ ( const tools::Long  nLeft)

Definition at line 148 of file swrect.cxx.

References Size::AdjustWidth(), m_Point, and m_Size.

Referenced by SwRootFrame::CheckViewLayout().

tools::Long SwRect::Left_ ( ) const

Definition at line 155 of file swrect.cxx.

References m_Point.

bool SwRect::operator!= ( const SwRect rRect) const
inline

Definition at line 263 of file swrect.hxx.

References m_Point, and m_Size.

SwRect & SwRect::operator+= ( const Point rPt)
inline

Definition at line 268 of file swrect.hxx.

References m_Point.

SwRect & SwRect::operator-= ( const Point rPt)
inline

Definition at line 273 of file swrect.hxx.

References m_Point.

SwRect & SwRect::operator= ( const SwRect rRect)
inline

Definition at line 253 of file swrect.hxx.

References m_Point, and m_Size.

bool SwRect::operator== ( const SwRect rRect) const
inline

Definition at line 259 of file swrect.hxx.

References m_Point, and m_Size.

bool SwRect::OverStepBottom ( tools::Long  nLimit) const

Definition at line 187 of file swrect.cxx.

References Size::getHeight(), m_Point, and m_Size.

bool SwRect::OverStepLeft ( tools::Long  nLimit) const

Definition at line 185 of file swrect.cxx.

References Size::getWidth(), m_Point, and m_Size.

bool SwRect::OverStepRight ( tools::Long  nLimit) const

Definition at line 191 of file swrect.cxx.

References Size::getWidth(), m_Point, and m_Size.

bool SwRect::OverStepTop ( tools::Long  nLimit) const

Definition at line 189 of file swrect.cxx.

References Size::getHeight(), m_Point, and m_Size.

void SwRect::Pos ( const Point rNew)
inline

Definition at line 169 of file swrect.hxx.

References m_Point.

Referenced by SwDrawView::AddCustomHdl(), SwAnchoredObject::AddLastCharY(), SwFrame::AdjustNeighbourhood(), SwWrtShell::CalcAndSetScale(), SwFEShell::CalcBoundRect(), CalcClipRect(), SwTextFrame::CalcFitToContent(), SwTextAdjuster::CalcFlyPortion(), SwRootFrame::CalcFrameRects(), FormFieldButton::CalcPosAndSize(), SwTextFrame::CalcPreps(), SwPagePreviewLayout::CalcPreviewDataForPage(), SwHTMLParser::CallEndAction(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwLayHelper::CheckFlyCache_(), SwLayHelper::CheckInsert(), SwVirtFlyDrawObj::CheckMacroHit(), SwRootFrame::CheckViewLayout(), SwFEShell::Copy(), SwFEShell::CopyDrawSel(), SwTextIter::CtorInitTextIter(), DrawGraphic(), SwTextPaintInfo::DrawRedArrow(), SwLayVout::Enter(), SwView::ExecTabWin(), SwTextFrame::FillCursorPos(), SwFEShell::FindAnchorPos(), SwFrameFormat::FindLayoutRect(), SwLayVout::Flush_(), SwBodyFrame::Format(), SwCellFrame::Format(), SwFlyFrame::Format(), SwLayAction::FormatLayout(), SwTextFrame::FormatQuick(), SwHeadFootFrame::FormatSize(), SwFEShell::GetAnchorObjDiff(), SwTextFrame::GetAutoPos(), SwFrame::GetBackgroundBrush(), SwFEShell::GetBestObject(), GetBodyTextNode(), SwAccessibleTableData_Impl::GetCellAtPos(), SwNoTextFrame::GetCharRect(), SwTextCursor::GetCharRect(), SwTextFrame::GetCharRect(), SwTextCursor::GetCharRect_(), SwCursorShell::GetContentAtPos(), SwLayoutFrame::GetContentPos(), SwPageFrame::GetContentPosition(), SwTextCursor::GetEndCharRect(), SwFrame::GetFrameAnchorPos(), SwNoTextFrame::GetGrfArea(), SwFrameFormat::GetIMapObject(), SwAccessibleParagraph::getIndexAtPoint(), SwVirtFlyDrawObj::getInnerBound(), SwPostItHelper::getLayoutInfos(), SwRootFrame::GetNextPrevContentPos(), SwVirtFlyDrawObj::getOuterBound(), SwRootFrame::GetPageAtPos(), SwViewShell::GetPageNumAndSetOffsetForPDF(), SwRootFrame::GetPagePos(), SwTextFrame::GetPaintSwRect(), SwXTextDocument::getPostIts(), SwFrame::GetRelPos(), SwAnchoredObject::GetRelPosToAnchorFrame(), SwAnchoredObject::GetRelPosToChar(), SwAnchoredObject::GetRelPosToLine(), SwAnchoredObject::GetRelPosToPageFrame(), SwTextFly::GetTop(), SwFEShell::GotoFly(), SwCursorShell::GotoFooterText(), SwCursorShell::GotoHeaderText(), SwFEShell::GotoObj(), SwLayoutFrame::GrowFrame(), SwFootnoteContFrame::GrowFrame(), SwContentFrame::GrowFrame(), IMPL_LINK(), IMPL_LINK_NOARG(), SwTextFly::InitAnchoredObjList(), InsertGridFrame(), SwWrtShell::InsertObject(), SwBaseShell::InsertURLButton(), Is_Lower_Of(), SwTextFly::IsAnyFrame(), SwTextFly::IsAnyObj(), IsFrameInSameContext(), SwFEShell::IsURLGrfAtPos(), lcl_CalcBorderRect(), lcl_FindAnchorLayPos(), lcl_FindBasePos(), lcl_FindFrame(), lcl_FrameRect(), lcl_GetCharRectInsideField(), lcl_GetPos(), lcl_IsDropFlyInter(), lcl_NotifyContent(), lcl_NotifyNeighbours(), lcl_PaintReplacement(), lcl_PointToPrt(), lcl_ProjectOntoClosestTableFrame(), lcl_SetAnchor(), lcl_SetPos(), lcl_SubtractFlys(), SwRootFrame::MakeAll(), SwFrame::MakeBelowPos(), SwFlyFrame::MakeContentPos(), SwEnhancedPDFExportHelper::MakeHeaderFooterLinks(), SwFrame::MakeLeftPos(), SwFlyFrame::MakeObjPos(), SwFrame::MakePos(), SwContentFrame::MakePrtArea(), SwFrame::MakeRightPos(), SwFlyAtContentFrame::Modify(), SwEditWin::MouseMove(), SwLayouter::MoveBwdSuppressed(), SwCursorShell::MoveColumn(), SwContentFrame::MoveFootnoteCntFwd(), Notify(), SwDrawContact::NotifyBackgrdOfAllVirtObjs(), operator<<(), AttributeOutputBase::OutputFlyFrame(), WW8AttributeOutput::OutputFlyFrame_Impl(), SwColumnFrame::PaintBreak(), SwLayoutFrame::PaintColLines(), SwTextFrame::PaintEmpty(), SwPageFrame::PaintGrid(), SwFootnoteContFrame::PaintLine(), SwNoTextFrame::PaintPicture(), SwHeadFootFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSubsidiaryLines(), SwNoTextFrame::PaintSwFrame(), SwTabFrame::PaintSwFrame(), SwFlyFrame::PaintSwFrame(), SwFootnoteContFrame::PaintSwFrameShadowAndBorder(), SwFrame::PaintSwFrameShadowAndBorder(), SwWrtShell::PopCursor(), SwTransferable::PrivateDrop(), SwTransferable::PrivatePaste(), SwPageFrame::PrtWithoutHeaderAndFooter(), SwWrtShell::PushCursor(), SwImplProtocol::Record_(), SwPagePreviewWin::RepaintCoreRect(), SwDPage::RequestHelp(), SwFEShell::RequestObjectResize(), SwFEShell::SelectObj(), SwFEShell::SelFlyGrabCursor(), SwFEShell::SetChainMarker(), SwRootFrame::SetCurrPage(), SwFEShell::SetFlyFrameAttr(), SwFEShell::SetFlyPos(), SwFEShell::SetFrameFormat(), SwFlyFrame::SetObjLeft_(), SwFlyFrame::SetObjTop_(), SwVisibleCursor::SetPosAndShow(), SetSwVisArea(), SwContentFrame::ShouldBwdMoved(), SwTabFrame::ShouldBwdMoved(), SwRowFrame::ShrinkFrame(), SwLayoutFrame::ShrinkFrame(), SwContentFrame::ShrinkFrame(), SwViewShell::SmoothScroll(), QuickHelpData::Start(), SwView::StateTabWin(), sw_ChkAndSetNewAnchor(), SwAlignGrfRect(), SwTextFrame::SwapWidthAndHeight(), SwFlyFrame::SwFlyFrame(), SwTestFormat::SwTestFormat(), SwFrameAreaDefinition::transform_translate(), SwCursor::UpDown(), SwFlyFrameAttrMgr::ValidateMetrics(), SwViewShell::VisPortChgd(), and SwFlyNotify::~SwFlyNotify().

void SwRect::Pos ( const tools::Long  nNewX,
const tools::Long  nNewY 
)
inline

Definition at line 173 of file swrect.hxx.

References m_Point.

const Point & SwRect::Pos ( ) const
inline

Definition at line 215 of file swrect.hxx.

References m_Point, and Point.

Referenced by TopLeft().

Point & SwRect::Pos ( )
inline

Definition at line 219 of file swrect.hxx.

References m_Point, and Point.

void SwRect::Right ( const tools::Long  nRight)
inline

Definition at line 200 of file swrect.hxx.

References m_Point, m_Size, and Size::setWidth().

Referenced by objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwAccPreviewData::AdjustLogicPgRectToVisibleArea(), SwAnchoredDrawObject::AdjustPositioningAttr(), SwTextFly::AnchoredObjToRect(), SwFEShell::CalcBoundRect(), SwTextFormatter::CalcFlyWidth(), SwTextFrame::CalcFollow(), SwRootFrame::CalcFrameRects(), SwEditWin::ChangeFly(), SwViewShell::CheckInvalidForPaint(), ChkChartSel(), SwTextPaintInfo::DrawCheckBox(), DrawFillAttributes(), DrawGraphic(), SwTextPainter::DrawTextLine(), SwView::ExecTabWin(), SwTextFrame::FillCursorPos(), SwShellTableCursor::FillRects(), SwLayAction::FormatLayout(), SwAccessibleTable::getAccessibleColumnExtentAt(), SwPageFrame::GetBorderAndShadowBoundRect(), SwPostItMgr::GetBottomScrollRect(), SwTextCursor::GetCharRect(), SwCursorShell::GetContentAtPos(), SwLayoutFrame::GetContentPos(), SwAccessibleParagraph::getIndexAtPoint(), GetMergeSel(), SwPageFrame::GetModelPositionForViewPoint(), SwRootFrame::GetModelPositionForViewPoint(), SwTextFrame::GetPaintSwRect(), SwAccessibleTableData_Impl::GetSelection(), SwDoc::GetTabBorders(), SwPostItMgr::GetTopScrollRect(), SwCursorShell::GotoFlyAnchor(), IMPL_LINK(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos(), SwRootFrame::ImplCalcBrowseWidth(), Intersection(), SwSelPaintRects::Invalidate(), SwTextFly::IsAnyObj(), SwRootFrame::IsBetweenPages(), IsFrameInTableSel(), SwPostItMgr::IsHit(), IsInside(), IsOver(), SwLayAction::IsShortCut(), SwPostItMgr::LayoutPostIts(), lcl_AdjustPositioningAttr(), lcl_CalcDownDist(), lcl_CreateRectangleDelimiterPrimitives(), lcl_dbg_out(), lcl_FindFrame(), lcl_PaintShadow(), lcl_ShrinkFly(), SwAnchoredDrawObject::MakeObjPos(), SwTextFormatter::NewTabPortion(), Notify(), Notify_Background(), SwPageFrame::PaintBorderAndShadow(), SwPageFrame::PaintDecorators(), SwViewShell::PaintDesktop(), SwPageFrame::PaintNotesSidebar(), SwNoTextFrame::PaintPicture(), SwViewOption::PaintPostIts(), SwLayoutFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSwFrame(), ww8::WW8TableInfo::processSwTableByLayout(), ww8::CellInfo::right(), SwFillData::Right(), SwPostItMgr::ScrollbarHit(), SwFlyAtContentFrame::SetAbsPos(), SwFEShell::SetChainMarker(), SwDoc::SetTabBorders(), SwContentFrame::ShrinkFrame(), SwViewShell::SmoothScroll(), SwView::StateTabWin(), SwAlignRect(), SwArrowPortion::SwArrowPortion(), SwTextFrame::SwitchLTRtoRTL(), Union(), and SwFlyFrameAttrMgr::ValidateMetrics().

tools::Long SwRect::Right ( ) const
inline

Definition at line 239 of file swrect.hxx.

References Size::getWidth(), m_Point, and m_Size.

Referenced by dumpAsXmlAttributes(), Intersection(), IsInside(), IsNear(), IsOver(), and Union().

void SwRect::Right_ ( const tools::Long  nRight)

Definition at line 149 of file swrect.cxx.

References m_Point, m_Size, and Size::setWidth().

tools::Long SwRect::Right_ ( ) const

Definition at line 156 of file swrect.cxx.

References Size::getWidth(), m_Point, and m_Size.

void SwRect::SetBottomAndHeight ( tools::Long  nBottom,
tools::Long  nNew 
)

Definition at line 209 of file swrect.cxx.

References m_Point, m_Size, and Size::setHeight().

void SwRect::SetLeftAndWidth ( tools::Long  nLeft,
tools::Long  nNew 
)

Definition at line 194 of file swrect.cxx.

References m_Point, m_Size, and Size::setWidth().

void SwRect::SetLowerLeftCorner ( const Point rNew)

Definition at line 218 of file swrect.cxx.

References Size::getHeight(), m_Point, m_Size, and Point.

void SwRect::SetPosX ( const tools::Long  nNew)

Definition at line 168 of file swrect.cxx.

References m_Point.

void SwRect::SetPosY ( const tools::Long  nNew)

Definition at line 169 of file swrect.cxx.

References m_Point.

void SwRect::SetRightAndWidth ( tools::Long  nRight,
tools::Long  nNew 
)

Definition at line 204 of file swrect.cxx.

References m_Point, m_Size, and Size::setWidth().

void SwRect::SetTopAndHeight ( tools::Long  nTop,
tools::Long  nNew 
)

Definition at line 199 of file swrect.cxx.

References m_Point, m_Size, and Size::setHeight().

Referenced by SwTextFrame::Format().

void SwRect::SetUpperLeftCorner ( const Point rNew)

Definition at line 214 of file swrect.cxx.

References m_Point.

void SwRect::SetUpperRightCorner ( const Point rNew)

Definition at line 216 of file swrect.cxx.

References Size::getWidth(), m_Point, m_Size, and Point.

Size SwRect::Size_ ( ) const

Definition at line 171 of file swrect.cxx.

References SSize().

void SwRect::SSize ( const Size rNew)
inline

Definition at line 178 of file swrect.hxx.

References m_Size.

Referenced by objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), AdjustSizeChgNotify(), SwWrtShell::CalcAndSetScale(), SwFEShell::CalcBoundRect(), CalcClipRect(), FormFieldButton::CalcPosAndSize(), SwTextFrame::CalcPreps(), SwPagePreviewLayout::CalcPreviewDataForPage(), SwPagePreviewLayout::CalcPreviewLayoutSizes(), SwRootFrame::CheckViewLayout(), SwLayoutFrame::ChgLowersProp(), SwFlyFrame::ChgSize(), SwRootFrame::ChgSize(), SwFrame::ChgSize(), DrawGraphic(), SwTextFrame::EmptyHeight(), FindPage(), SwLayVout::Flush_(), SwTextFrame::FormatAdjust(), SwLayAction::FormatLayoutTab(), SwTextFrame::FormatQuick(), SwFrame::GetBackgroundBrush(), SwAccessibleContext::getBoundsImpl(), SwNoTextFrame::GetCharRect(), SwTextCursor::GetCharRect_(), SwLayoutFrame::GetContentPos(), SwPageFrame::GetContentPosition(), SwViewShell::GetDocSize(), SwTextCursor::GetEndCharRect(), SwFEShell::GetGraphicDefaultSize(), SwNoTextFrame::GetGrfArea(), SwFrameFormat::GetIMapObject(), SwVirtFlyDrawObj::getInnerBound(), SwOLEObj::GetOleRef(), SwVirtFlyDrawObj::getOuterBound(), SwRootFrame::GetPageAtPos(), SwViewShell::GetPageSize(), SwTextFrame::GetParHeight(), SwXTextDocument::getPostIts(), SwNoTextFrame::GetSize(), SwCursorShell::GotoFlyAnchor(), IMPL_LINK(), SwViewShellImp::Init(), sw::DocumentDrawModelManager::InitDrawModel(), SwTextFly::IsAnyFrame(), SwTextFly::IsAnyObj(), lcl_FrameRect(), lcl_PaintReplacement(), SwPageFrame::MakeAll(), SwRootFrame::MakeAll(), SwFlyFrameFormat::MakeGraphic(), SwVirtFlyDrawObj::NbcResize(), Notify(), operator<<(), SwViewShell::PaintDesktop(), SwNoTextFrame::PaintPicture(), SwNoTextFrame::PaintSwFrame(), SwViewShell::PrintProspect(), SwPagePreviewWin::RepaintCoreRect(), SwFEShell::RequestObjectResize(), SwFlyCntPortion::SetBase(), SwViewShellImp::SetFirstVisPage(), SwVisibleCursor::SetPosAndShow(), SwViewShell::SmoothScroll(), SwAlignGrfRect(), SwPageFrame::SwPageFrame(), SwFlyFrameAttrMgr::ValidateMetrics(), SwViewShell::VisPortChgd(), SwTextFrame::WouldFit(), SwContentNotify::~SwContentNotify(), SwFlyNotify::~SwFlyNotify(), and SwLayNotify::~SwLayNotify().

void SwRect::SSize ( const tools::Long  nHeight,
const tools::Long  nWidth 
)
inline

Definition at line 182 of file swrect.hxx.

References m_Size, Size::setHeight(), and Size::setWidth().

const Size & SwRect::SSize ( ) const
inline

Definition at line 223 of file swrect.hxx.

References m_Size.

Referenced by Intersection(), and Size_().

void SwRect::SubLeft ( const tools::Long  nSub)

Definition at line 163 of file swrect.cxx.

References Size::AdjustWidth(), m_Point, and m_Size.

Referenced by SwRootFrame::CheckViewLayout().

void SwRect::SubTop ( const tools::Long  nSub)

Definition at line 166 of file swrect.cxx.

References Size::AdjustHeight(), m_Point, and m_Size.

tools::Rectangle SwRect::SVRect ( ) const
inline

Definition at line 280 of file swrect.hxx.

References Size::getHeight(), Size::getWidth(), IsEmpty(), m_Point, m_Size, and SAL_WARN_IF.

Referenced by SwWrtShell::CalcAndSetScale(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwDoc::ChgAnchor(), SwSaveClip::ChgClip_(), SwDrawContact::DisconnectFromLayout(), SwTextPaintInfo::DrawBackBrush(), SwTextPaintInfo::DrawCheckBox(), DrawGraphic(), SwTextPaintInfo::DrawPostIts(), SwTextPaintInfo::DrawRect(), SwViewOption::DrawRect(), SwViewOption::DrawRectPrinter(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwView::ExecSmartTagPopup(), SwView::ExecSpellPopup(), SwAccessibleContext::getAccessibleAtPoint(), SwPageFrame::GetBorderAndShadowBoundRect(), SwAccessibleContext::getBoundsImpl(), SwAccessibleParagraph::getCharacterBounds(), SwFlyFrame::GetContour(), SwAccessibleParagraph::GetCurrentTabStop(), SwPageFrame::GetHorizontalShadowRect(), SwAccessibleParagraph::getIndexAtPoint(), SwAccessibleParagraph::getNumberOfLineWithCaret(), SwAnchoredDrawObject::GetObjBoundRect(), SwDocShell::GetVisArea(), SwFEShell::ImpEndCreate(), SwViewShellImp::Init(), SwTransferable::InitOle(), InsertGridFrame(), SwViewShell::InvalidateWindows(), IsScrollMDI(), lcl_AdjustPositioningAttr(), lcl_AdjustRectToPixelSize(), lcl_correctlyAlignRect(), lcl_DrawGraphic(), lcl_implDrawGraphicBackgrd(), lcl_PaintShadow(), lcl_PaintTransparentFormControls(), SwEnhancedPDFExportHelper::MakeHeaderFooterLinks(), SwPagePreviewLayout::MarkNewSelectedPage(), SwVirtFlyDrawObj::NbcCrop(), SwVirtFlyDrawObj::NbcMove(), SwViewShell::OnGraphicArrived(), SwTextInputFieldPortion::Paint(), SwHiddenTextPortion::Paint(), SwViewShell::Paint(), SwPagePreviewLayout::Paint(), SwPageFrame::PaintBorderAndShadow(), SwViewShellImp::PaintLayer(), SwPageFrame::PaintMarginArea(), SwPageFrame::PaintNotesSidebar(), SwPagePreviewLayout::PaintSelectMarkAtPage(), SwNoTextFrame::PaintSwFrame(), SwRootFrame::PaintSwFrame(), SwFrame::PaintSwFrameBackground(), SwViewShell::PrtOle2(), SwPaintQueue::Repaint(), SwDPage::RequestHelp(), SwEditWin::RequestHelp(), ScrollMDI(), SwAccessibleParagraph::scrollSubstringTo(), SwFEShell::SelectObj(), sw::mark::DropDownFieldmark::SendLOKMessage(), SwTaggedPDFHelper::SetAttributes(), SwFEShell::SetObjRect(), SwVirtFlyDrawObj::SetRect(), SwSelPaintRects::Show(), SwViewShell::SmoothScroll(), SwAlignGrfRect(), SwAlignRect(), SwDrawContact::SwClientNotify(), SwInsertChart::SwInsertChart(), SwDrawView::TakeDragLimit(), SwEditWin::UpdatePointer(), SwPageBreakWin::UpdatePosition(), and SwViewShell::VisPortChgd().

Size SwRect::SwappedSize ( ) const

Definition at line 172 of file swrect.cxx.

References Size::getHeight(), Size::getWidth(), and m_Size.

void SwRect::Top ( const tools::Long  nTop)
inline

Definition at line 204 of file swrect.hxx.

References Size::AdjustHeight(), m_Point, and m_Size.

Referenced by ww8::WW8TableCellGrid::addShadowCells(), SwTextFrame::AdjustFrame(), objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwAccPreviewData::AdjustLogicPgRectToVisibleArea(), SwFrame::AdjustNeighbourhood(), SwAnchoredDrawObject::AdjustPositioningAttr(), SwTextFormatter::CalcBottomLine(), SwFEShell::CalcBoundRect(), SwTextAdjuster::CalcDropRepaint(), SwTextAdjuster::CalcFlyPortion(), SwTextFormatter::CalcFlyWidth(), SwTextFrame::CalcFollow(), SwTextFrame::CalcLineSpace(), SwTextFly::CalcMinBottom(), objectpositioning::SwToContentAnchoredObjectPosition::CalcOverlap(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwLayHelper::CheckFlyCache_(), SwViewShell::CheckInvalidForPaint(), SwFrame::CheckPageDescs(), SwLayoutFrame::ChgLowersProp(), SwTextFrame::ChgThisLines(), SwAccessibleTableData_Impl::CollectData(), SwTextPaintInfo::DrawCheckBox(), DrawFillAttributes(), DrawGraphic(), SwTextPainter::DrawTextLine(), SwView::ExecTabWin(), SwTextFrame::FillCursorPos(), SwContentType::FillMemberList(), SwViewShell::FillPrtDoc(), SwShellTableCursor::FillRects(), SwRootFrame::FillSelection(), SwNode::FindOutlineNodeOfLevel(), SwRowFrame::Format(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), SwLayAction::FormatContent(), SwLayAction::FormatLayout(), SwLayAction::FormatLayoutFly(), SwTextFrame::FormatLine(), SwHeadFootFrame::FormatPrt(), SwHeadFootFrame::FormatSize(), SwAccessibleTable::getAccessibleRow(), SwAccessibleTable::getAccessibleRowExtentAt(), SwFrame::GetBottomMargin(), sw::access::SwAccessibleChild::GetBounds(), sw::access::SwAccessibleChild::GetBox(), SwTextCursor::GetCharRect(), SwTextFrame::GetCharRect(), SwTextCursor::GetCharRect_(), SwCursorShell::GetContentAtPos(), SwPageFrame::GetContentHeight(), SwLayoutFrame::GetContentPos(), SwFlyFrame::GetContour(), SwTextFrame::GetDropRect_(), SwFrameAreaDefinition::getFrameAreaTransformation(), SwFrameAreaDefinition::getFramePrintAreaTransformation(), SwTextFormatter::GetFrameRstHeight(), GetMergeSel(), SwPageFrame::GetModelPositionForViewPoint(), SwTextFrame::GetModelPositionForViewPoint_(), SwRootFrame::GetNextPrevContentPos(), SwCursorShell::GetNextPrevPageNum(), SwFrame::GetNextSctLeaf(), SwAnchoredObject::GetObjRectWithSpaces(), SwFEShell::GetPageNumber(), SwFrame::GetPrtBottom(), SwFrame::GetPrtTop(), SwAnchoredObject::GetRelCharY(), ww8::WW8TableCellGrid::getRowSpansOfRow(), SwAccessibleTableData_Impl::GetSelection(), SwDoc::GetTabBorders(), ww8::WW8TableCellGrid::getTableBoxesOfRow(), SwDoc::GetTabRows(), SwFEShell::GetTabRows_(), SwFrame::GetTopMargin(), SwPostItMgr::GetTopScrollRect(), TransformableSwFrame::getUntransformedFramePrintArea(), ww8::WW8TableCellGrid::getWidthsOfRow(), SwCursorShell::GotoFlyAnchor(), SwHeadFootFrame::GrowFrame(), SwFEShell::ImpEndCreate(), IMPL_LINK(), IMPL_LINK_NOARG(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos(), objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos(), SwContentType::Init(), SwRootFrame::Init(), ww8::WW8TableCellGrid::insert(), SwFEShell::InsertDrawObj(), SwMailMergeLayoutPage::InsertGreeting(), SwFrame::InsertPage(), SwLayAction::InternalAction(), Intersection(), SwAccessibleContext::InvalidateChildPosOrSize(), SwRootFrame::IsBetweenPages(), IsFrameBehind(), IsFrameInTableSel(), SwPostItMgr::IsHit(), IsInside(), IsOver(), SwPageFrame::IsOverHeaderFooterArea(), SwLayAction::IsShortCut(), SwFlyFrame::IsShowUnfloatButton(), lcl_AdjustPositioningAttr(), lcl_CalcDownDist(), lcl_CreateRectangleDelimiterPrimitives(), lcl_dbg_out(), lcl_DrawGraphic(), lcl_DrawSpecial(), lcl_FindCnt(), lcl_FindCntDiff(), lcl_FindFirstInvaContent(), lcl_FindFirstInvaObj(), lcl_FindFrame(), lcl_Inside(), lcl_IsInvaLay(), lcl_NotifyNeighbours(), lcl_PaintShadow(), lcl_ShrinkFly(), SwPageFrame::MakeAll(), SwFlyFrameFormat::MakeGraphic(), SwFrame::MakePos(), SwCursorShell::MakeSelVisible(), SwFEShell::MoveAnchor(), SwCursorShell::MoveCursorToNum(), SwTextFormatter::NewTabPortion(), Notify(), Notify_Background(), SwRegionRects::operator-=(), PaintCharacterBorder(), SwViewShell::PaintDesktop(), SwTextFrame::PaintExtraData(), SwPageFrame::PaintGrid(), SwPageFrame::PaintNotesSidebar(), SwNoTextFrame::PaintPicture(), SwViewOption::PaintPostIts(), SwLayoutFrame::PaintSubsidiaryLines(), SwLayoutFrame::PaintSwFrame(), SwTextFrame::PaintSwFrame(), SwFrame::PaintSwFrameBackground(), SwFrame::PaintSwFrameShadowAndBorder(), SwContentFrame::Paste(), SwTextFrame::Prepare(), ww8::WW8TableInfo::processSwTableByLayout(), SwWrtShell::PushCursor(), SwImplProtocol::Record_(), SwCursorShell::RefreshBlockCursor(), SwLayoutFrame::RefreshExtraData(), SwPageFrame::RefreshExtraData(), SwRootFrame::RemoveSuperfluous(), SwFEShell::RequestObjectResize(), SwPostItMgr::ScrollbarHit(), SwCursorShell::sendLOKCursorUpdates(), SwFlyAtContentFrame::SetAbsPos(), SwFlyCntPortion::SetBase(), SwViewShellImp::SetFirstVisPage(), SwFEShell::SetFlyPos(), SwFrame::SetMaxBottom(), SwAnchoredDrawObject::SetObjTop_(), SwAnchoredDrawObject::SetPositioningAttr(), SwDoc::SetTabBorders(), SwFrame::SetTopBottomMargins(), SwView::SetZoom_(), SwHeadFootFrame::ShrinkFrame(), SwViewShell::SmoothScroll(), SwView::StateTabWin(), SwAlignRect(), SwArrowPortion::SwArrowPortion(), SwTextFrame::SwClientNotify(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchVerticalToHorizontal(), ww8::CellInfo::top(), SwLayAction::TurboAction_(), Union(), SwTextFrame::UnitDown_(), SwContentFrame::UpdateAttr_(), SwFlyFrame::UpdateAttr_(), SwTabFrame::UpdateAttr_(), SwCursorShell::UpdateCursor(), SwPageBreakWin::UpdatePosition(), SwCursor::UpDown(), SwFlyFrameAttrMgr::ValidateMetrics(), SwViewShell::VisPortChgd(), SwLayoutCache::Write(), WriteSwRect(), SwView::WriteUserData(), and SwView::WriteUserDataSequence().

tools::Long SwRect::Top ( ) const
inline

Definition at line 243 of file swrect.hxx.

References m_Point.

Referenced by Center(), dumpAsXmlAttributes(), Intersection(), IsInside(), IsNear(), IsOver(), and Union().

void SwRect::Top_ ( const tools::Long  nTop)

Definition at line 150 of file swrect.cxx.

References Size::AdjustHeight(), m_Point, and m_Size.

tools::Long SwRect::Top_ ( ) const

Definition at line 157 of file swrect.cxx.

References m_Point.

Point SwRect::TopLeft ( ) const
Point SwRect::TopRight ( ) const
SwRect & SwRect::Union ( const SwRect rRect)
void SwRect::Width ( tools::Long  nNew)
inline

Definition at line 187 of file swrect.hxx.

References m_Size, and Size::setWidth().

Referenced by Add(), SwTextFrame::AdjustFrame(), objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside(), SwFrame::AdjustNeighbourhood(), SwTextFly::AnchoredObjToRect(), SwAutoFormat::BuildEnum(), SwTextFormatter::BuildMultiPortion(), SwWrtShell::CalcAndSetScale(), CalcArea(), SwContourCache::CalcBoundRect(), SwFEShell::CalcBoundRect(), CalcClipRect(), CalcContent(), SwTextFrame::CalcFitToContent(), SwTextAdjuster::CalcFlyPortion(), SwTextFrame::CalcFollow(), SwRootFrame::CalcFrameRects(), objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition(), objectpositioning::SwAsCharAnchoredObjectPosition::CalcPosition(), SwTextFrame::CalcPreps(), SwLayoutFrame::CalcRel(), SwFlyFrame::CalcRel(), SwEditWin::ChangeFly(), SwFlyFreeFrame::CheckClip(), SwSectionFrame::CheckClipping(), SwLayHelper::CheckFlyCache_(), SwRootFrame::CheckViewLayout(), SwLayoutFrame::ChgLowersProp(), SwFlyFrame::ChgSize(), SwTextShell::CreateInsertFrameItemSet(), SwTextMargin::CtorInitTextMargin(), SwAutoFormat::DoTable(), DrawGraphic(), SwTextPaintInfo::DrawRedArrow(), SwTextShell::ExecIdx(), SwView::ExecTabWin(), SwFrameShell::Execute(), SwTableShell::Execute(), SwGrfShell::Execute(), SwXMLExport::ExportTableAutoStyles(), SwTextFrame::FillCursorPos(), SwTextFrame::FirstLineHeight(), SwRowFrame::Format(), SwBodyFrame::Format(), SwNoTextFrame::Format(), SwTabFrame::Format(), SwTextFrame::Format_(), SwTextFrame::FormatAdjust(), SwLayAction::FormatLayout(), SwHeadFootFrame::FormatPrt(), SwFlyFrame::FrameSizeChg(), SwTextFrame::GetAutoPos(), SwHTMLTableLayout::GetBrowseWidth(), SwViewShell::GetBrowseWidth(), SwHTMLTableLayout::GetBrowseWidthByTabFrame(), SwNoTextFrame::GetCharRect(), SwTextCursor::GetCharRect(), SwTextFrame::GetCharRect(), SwTextCursor::GetCharRect_(), SwLayoutFrame::GetContentPos(), SwFlyFrame::GetContour(), SwTextFrame::GetDropRect_(), SwFrameAreaDefinition::getFrameAreaTransformation(), SwFrameAreaDefinition::getFramePrintAreaTransformation(), SwFEShell::GetGraphicDefaultSize(), SwPageFrame::GetHorizontalShadowRect(), SwTextFormatInfo::GetLineWidth(), GetMergeSel(), SwXTextField::getPropertyValue(), SwFrame::GetPrtRight(), SwFrame::GetRightMargin(), SwFEShell::GetSectionWidth(), SwTableLine::GetTableLineHeight(), AttributeOutputBase::GetTablePageSize(), GetTableWidth(), sw::DefaultToxTabStopTokenHandler::HandleTabStopToken(), SwFEShell::ImpEndCreate(), IMPL_LINK(), IMPL_LINK_NOARG(), SwRootFrame::ImplCalcBrowseWidth(), SwFlyFrame::InsertColumns(), SwWrtShell::InsertObject(), SwWrtShell::InsertOleObject(), SwBaseShell::InsertRegionDialog(), SwTextFrameInfo::IsFilled(), SwEditShell::IsMoveLeftMargin(), lcl_CalcAutoWidth(), lcl_CalcColValues(), lcl_CalcDownDist(), lcl_CalcSubColValues(), lcl_CalcWish(), lcl_DrawGraphic(), lcl_DrawSpecial(), lcl_GetCharRectInsideField(), lcl_PaintShadow(), SwNoTextFrame::MakeAll(), SwPageFrame::MakeAll(), SwFlyInContentFrame::MakeAll(), SwFrame::MakeLeftPos(), MakeNxt(), SwFrame::MakePos(), SwContentFrame::MakePrtArea(), SwFrame::MakeRightPos(), MakeSelUnions(), SwFEShell::MoveAnchor(), SwLayouter::MoveBwdSuppressed(), SwCursorShell::MoveColumn(), SwVirtFlyDrawObj::NbcMove(), SwVirtFlyDrawObj::NbcResize(), SwRegionRects::operator-=(), OutHTML_SwTableNode(), SwParaDlg::PageCreated(), SwTextInputFieldPortion::Paint(), SwPageFrame::PaintBorderAndShadow(), PaintCharacterBorder(), SwPageFrame::PaintGrid(), SwViewOption::PaintPostIts(), SwFrame::PaintSwFrameShadowAndBorder(), SwContentFrame::Paste(), SwPageFrame::Paste(), SwTabPortion::PreFormat(), SwImplProtocol::Record_(), SwFEShell::RequestObjectResize(), SwFlyAtContentFrame::SetAbsPos(), SwFEShell::SetColRowWidthHeight(), SwTable::SetColWidth(), SwFrame::SetLeftRightMargins(), SwFrame::SetMaxRight(), SwFrame::SetMinLeft(), SwVisibleCursor::SetPosAndShow(), SwAnchoredDrawObject::SetPositioningAttr(), SwFrame::SetRightLeftMargins(), SwNumPositionTabPage::SetWrtShell(), SwSectionIndentTabPage::SetWrtShell(), SwViewShell::SmoothScroll(), SwView::StateTabWin(), Sub(), SwAlignRect(), SwTextFrame::SwapWidthAndHeight(), SwColumnDlg::SwColumnDlg(), SwFlyFrame::SwFlyFrame(), SwTextFrame::SwitchHorizontalToVertical(), SwTextFrame::SwitchLTRtoRTL(), SwTextFrame::SwitchVerticalToHorizontal(), SwPageFrame::SwPageFrame(), SwPageFrame::UpdateAttr_(), SwFlyFrame::UpdateAttr_(), SwEditWin::UpdatePointer(), SwFlyFrameAttrMgr::ValidateMetrics(), ValidateText(), ww8::CellInfo::width(), SwTextFrame::WouldFit(), SwContentFrame::WouldFit_(), SwLayoutCache::Write(), PlcDrawObj::WritePlc(), WriteSwRect(), and SwLayNotify::~SwLayNotify().

tools::Long SwRect::Width ( ) const
inline

Definition at line 227 of file swrect.hxx.

References m_Size, and Size::Width().

Referenced by Center(), and dumpAsXmlAttributes().

void SwRect::Width_ ( const tools::Long  nNew)

Definition at line 146 of file swrect.cxx.

References m_Size, and Size::setWidth().

tools::Long SwRect::Width_ ( ) const

Definition at line 153 of file swrect.cxx.

References Size::getWidth(), and m_Size.

Friends And Related Function Documentation

SvStream& WriteSwRect ( SvStream rStream,
const SwRect rRect 
)
friend

Definition at line 232 of file swrect.cxx.

Member Data Documentation

Point SwRect::m_Point
private
Size SwRect::m_Size
private

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