LibreOffice Module starmath (master) 1
|
#include <rect.hxx>
Private Member Functions | |
void | CopyMBL (const SmRect &rRect) |
void | CopyAlignInfo (const SmRect &rRect) |
void | Union (const SmRect &rRect) |
Italic correction is NOT taken into account here! More... | |
SmRect::SmRect | ( | ) |
Definition at line 144 of file rect.cxx.
References nBorderWidth.
Referenced by SmMathSymbolNode::AdaptToX(), SmMathSymbolNode::AdaptToY(), SmRectangleNode::Arrange(), SmPolyLineNode::Arrange(), SmTextNode::Arrange(), SmSpecialNode::Arrange(), SmGlyphSpecialNode::Arrange(), SmMathSymbolNode::Arrange(), SmPlaceNode::Arrange(), SmErrorNode::Arrange(), SmTableNode::Arrange(), SmLineNode::Arrange(), SmMatrixNode::Arrange(), and SmBlankNode::Arrange().
SmRect::SmRect | ( | const OutputDevice & | rDev, |
const SmFormat * | pFormat, | ||
const OUString & | rText, | ||
sal_uInt16 | nBorderWidth | ||
) |
Definition at line 178 of file rect.cxx.
References bHasAlignInfo, bHasBaseline, tools::Rectangle::Bottom(), DIS_ORNAMENTSIZE, vcl::FONT, FONTNAME_MATH, GetAlignB(), FontMetric::GetAscent(), GetBottom(), Application::GetDefaultDevice(), SmFormat::GetDistance(), vcl::Font::GetFamilyName(), OutputDevice::GetFont(), OutputDevice::GetFontMetric(), vcl::Font::GetFontSize(), FontMetric::GetInternalLeading(), GetLeft(), OutputDevice::GetMapMode(), OutputDevice::GetOutDevType(), GetRight(), GetTop(), Size::Height(), IsEmpty(), tools::Rectangle::Left(), vcl::MAPMODE, nAlignB, nAlignM, nAlignT, nBaseline, nBorder, nBorderWidth, nGlyphBottom, nGlyphTop, nHiAttrFence, nItalicLeftSpace, nItalicRightSpace, nLoAttrFence, OUTDEV_PRINTER, OutputDevice::Pop(), OutputDevice::Push(), tools::Rectangle::Right(), SAL_WARN, SetBottom(), OutputDevice::SetFont(), OutputDevice::SetMapMode(), SetTop(), SmFromTo(), and tools::Rectangle::Top().
SmRect::SmRect | ( | tools::Long | nWidth, |
tools::Long | nHeight | ||
) |
Definition at line 265 of file rect.cxx.
References GetBottom(), GetTop(), nAlignB, nAlignM, nAlignT, nBorderWidth, nGlyphBottom, nGlyphTop, nHiAttrFence, and nLoAttrFence.
Point SmRect::AlignTo | ( | const SmRect & | rRect, |
RectPos | ePos, | ||
RectHorAlign | eHor, | ||
RectVerAlign | eVer | ||
) | const |
Definition at line 334 of file rect.cxx.
References Point::AdjustX(), Point::AdjustY(), Attribute, AttributeHi, AttributeLo, AttributeMid, Baseline, Bottom, Center, CenterY, ePos, GetAlignB(), GetAlignM(), GetAlignT(), GetBaseline(), GetBottom(), GetCenterY(), GetHeight(), GetHiAttrFence(), GetItalicCenterX(), GetItalicLeft(), GetItalicLeftSpace(), GetItalicRight(), GetItalicRightSpace(), GetItalicWidth(), GetLoAttrFence(), GetTop(), GetTopLeft(), GetWidth(), HasBaseline(), Left, Mid, Right, Point::setX(), Point::setY(), SmFromTo(), and Top.
Referenced by SmTableNode::Arrange(), SmLineNode::Arrange(), SmBinVerNode::Arrange(), SmSubSupNode::Arrange(), SmBraceNode::Arrange(), SmBracebodyNode::Arrange(), SmOperNode::Arrange(), SmAttributeNode::Arrange(), and SmMatrixNode::Arrange().
SmRect SmRect::AsGlyphRect | ( | ) | const |
Definition at line 613 of file rect.cxx.
References nGlyphBottom, nGlyphTop, SetBottom(), and SetTop().
Referenced by SmGlyphSpecialNode::Arrange().
|
inline |
Definition at line 211 of file rect.hxx.
References GetItalicLeft(), GetItalicSize(), and GetTop().
Referenced by SmSelectionRectanglesVisitor::DefaultVisit(), and SmDrawingVisitor::Visit().
|
private |
Definition at line 165 of file rect.cxx.
References bHasAlignInfo, bHasBaseline, nAlignB, nAlignM, nAlignT, nBaseline, nHiAttrFence, and nLoAttrFence.
Referenced by ExtendBy().
|
inlineprivate |
Definition at line 195 of file rect.hxx.
References bHasBaseline, nAlignM, and nBaseline.
Referenced by ExtendBy().
SmRect & SmRect::ExtendBy | ( | const SmRect & | rRect, |
RectCopyMBL | eCopyMode | ||
) |
Definition at line 461 of file rect.cxx.
References Arg, bHasBaseline, CopyAlignInfo(), CopyMBL(), GetAlignB(), GetAlignT(), GetHiAttrFence(), GetItalicLeft(), GetItalicRight(), GetLeft(), GetLoAttrFence(), GetRight(), HasAlignInfo(), HasBaseline(), nAlignB, nAlignM, nAlignT, nHiAttrFence, nLoAttrFence, None, SetItalicSpaces(), This, Union(), and Xor.
Referenced by SmTableNode::Arrange(), SmLineNode::Arrange(), SmUnHorNode::Arrange(), SmRootNode::Arrange(), SmBinHorNode::Arrange(), SmBinVerNode::Arrange(), SmBinDiagonalNode::Arrange(), SmSubSupNode::Arrange(), SmBraceNode::Arrange(), SmBracebodyNode::Arrange(), SmVerticalBraceNode::Arrange(), SmOperNode::Arrange(), SmAttributeNode::Arrange(), SmMatrixNode::Arrange(), and ExtendBy().
SmRect & SmRect::ExtendBy | ( | const SmRect & | rRect, |
RectCopyMBL | eCopyMode, | ||
bool | bKeepVerAlignParams | ||
) |
depends not on 'HasBaseline'
Definition at line 525 of file rect.cxx.
References bHasAlignInfo, ExtendBy(), GetAlignB(), GetAlignM(), GetAlignT(), HasAlignInfo(), nAlignB, nAlignM, nAlignT, and nBaseline.
void SmRect::ExtendBy | ( | const SmRect & | rRect, |
RectCopyMBL | eCopyMode, | ||
tools::Long | nNewAlignM | ||
) |
Definition at line 511 of file rect.cxx.
References ExtendBy(), HasAlignInfo(), and nAlignM.
|
inline |
Definition at line 151 of file rect.hxx.
References nAlignB.
Referenced by AlignTo(), SmSubSupNode::Arrange(), ExtendBy(), and SmRect().
|
inline |
Definition at line 150 of file rect.hxx.
References nAlignM.
Referenced by AlignTo(), SmTableNode::Arrange(), and ExtendBy().
|
inline |
Definition at line 149 of file rect.hxx.
References nAlignT.
Referenced by AlignTo(), SmSubSupNode::Arrange(), and ExtendBy().
|
inline |
Definition at line 204 of file rect.hxx.
References HasBaseline(), nBaseline, and SAL_WARN_IF.
Referenced by AlignTo(), SmTableNode::Arrange(), and GetBaselineOffset().
|
inline |
Definition at line 147 of file rect.hxx.
References GetBaseline(), and GetTop().
Referenced by SmDrawingVisitor::DrawTextNode().
|
inline |
Definition at line 113 of file rect.hxx.
References nBorderWidth.
Referenced by SmTextNode::Arrange(), SmSpecialNode::Arrange(), SmGlyphSpecialNode::Arrange(), SmMathSymbolNode::Arrange(), SmPlaceNode::Arrange(), SmErrorNode::Arrange(), SmTableNode::Arrange(), SmLineNode::Arrange(), SmBlankNode::Arrange(), and SmDrawingVisitor::Visit().
|
inline |
Definition at line 128 of file rect.hxx.
References GetHeight(), and GetTop().
Referenced by AlignTo(), SmBinDiagonalNode::Arrange(), GetCenterY(), SmBinDiagonalNode::GetOperPosSize(), IsInsideItalicRect(), IsInsideRect(), SetTop(), SmRect(), and Union().
|
inline |
Definition at line 130 of file rect.hxx.
References GetBottom(), and GetTop().
Referenced by AlignTo().
|
inline |
Definition at line 132 of file rect.hxx.
References GetSize(), and Size::Height().
Referenced by AlignTo(), SmSubSupNode::Arrange(), SmBracebodyNode::Arrange(), SmOperNode::Arrange(), SmCaretLinesVisitor::DefaultVisit(), SmCaretPos2LineVisitor::DefaultVisit(), GetBottom(), GetItalicSize(), IsEmpty(), SmCaretLinesVisitor::Visit(), SmCaretPos2LineVisitor::Visit(), and SmSelectionRectanglesVisitor::Visit().
|
inline |
Definition at line 137 of file rect.hxx.
References nHiAttrFence.
Referenced by AlignTo(), and ExtendBy().
|
inline |
Definition at line 141 of file rect.hxx.
References GetItalicLeft(), and GetItalicRight().
Referenced by AlignTo(), and SmMatrixNode::Arrange().
|
inline |
Definition at line 140 of file rect.hxx.
References GetItalicLeftSpace(), and GetLeft().
Referenced by AlignTo(), AsRectangle(), ExtendBy(), GetItalicCenterX(), SmBinDiagonalNode::GetOperPosSize(), and IsInsideItalicRect().
|
inline |
Definition at line 134 of file rect.hxx.
References nItalicLeftSpace.
Referenced by AlignTo(), GetItalicLeft(), GetItalicWidth(), and SmGraphicWidget::SetCursor().
|
inline |
Definition at line 142 of file rect.hxx.
References GetItalicRightSpace(), and GetRight().
Referenced by AlignTo(), SmBinDiagonalNode::Arrange(), ExtendBy(), GetItalicCenterX(), SmBinDiagonalNode::GetOperPosSize(), and IsInsideItalicRect().
|
inline |
Definition at line 135 of file rect.hxx.
References nItalicRightSpace.
Referenced by AlignTo(), GetItalicRight(), and GetItalicWidth().
|
inline |
Definition at line 155 of file rect.hxx.
References GetHeight(), and GetItalicWidth().
Referenced by AsRectangle(), and SmGraphicWidget::SetCursor().
|
inline |
Definition at line 143 of file rect.hxx.
References GetItalicLeftSpace(), GetItalicRightSpace(), and GetWidth().
Referenced by AlignTo(), SmTableNode::Arrange(), SmBinVerNode::Arrange(), SmVerticalBraceNode::Arrange(), SmMatrixNode::Arrange(), and GetItalicSize().
|
inline |
Definition at line 127 of file rect.hxx.
References GetTopLeft(), and Point::X().
Referenced by SmMatrixNode::Arrange(), SmCaretLinesVisitor::DefaultVisit(), ExtendBy(), SmGraphicAccessible::getIndexAtPoint(), GetItalicLeft(), GetRight(), IsInsideRect(), SetRight(), SmRect(), Union(), SmCaretLinesVisitor::Visit(), and SmCaretPos2LineVisitor::Visit().
|
inline |
Definition at line 138 of file rect.hxx.
References nLoAttrFence.
Referenced by AlignTo(), and ExtendBy().
|
inline |
Definition at line 129 of file rect.hxx.
References GetLeft(), and GetWidth().
Referenced by SmCaretLinesVisitor::DefaultVisit(), ExtendBy(), GetItalicRight(), IsInsideRect(), SetLeft(), SmRect(), Union(), and SmCaretLinesVisitor::Visit().
|
inline |
Definition at line 153 of file rect.hxx.
References aSize.
Referenced by SmGraphicAccessible::getCharacterBounds(), GetHeight(), SmGraphicAccessible::getIndexAtPoint(), and GetWidth().
|
inline |
Definition at line 126 of file rect.hxx.
References GetTopLeft(), and Point::Y().
Referenced by AlignTo(), SmBinDiagonalNode::Arrange(), SmMatrixNode::Arrange(), AsRectangle(), SmCaretLinesVisitor::DefaultVisit(), GetBaselineOffset(), GetBottom(), GetCenterY(), SmBinDiagonalNode::GetOperPosSize(), IsInsideItalicRect(), IsInsideRect(), SetBottom(), SmRect(), Union(), SmCaretLinesVisitor::Visit(), and SmCaretPos2LineVisitor::Visit().
|
inline |
Definition at line 124 of file rect.hxx.
References aTopLeft.
Referenced by AlignTo(), SmCaretPos2LineVisitor::DefaultVisit(), SmDrawingVisitor::DrawChildren(), SmGraphicAccessible::getCharacterBounds(), SmGraphicAccessible::getIndexAtPoint(), GetLeft(), GetTop(), SmNode::MoveTo(), MoveTo(), SmGraphicWidget::SetCursor(), SmDrawingVisitor::Visit(), and SmSelectionRectanglesVisitor::Visit().
|
inline |
Definition at line 131 of file rect.hxx.
References GetSize(), and Size::Width().
Referenced by AlignTo(), SmUnHorNode::Arrange(), SmBinHorNode::Arrange(), SmCaretLinesVisitor::DefaultVisit(), SmCaretPos2LineVisitor::DefaultVisit(), SmDrawingVisitor::DrawTextNode(), GetItalicWidth(), GetRight(), IsEmpty(), and SmDrawingVisitor::Visit().
|
inline |
|
inline |
Definition at line 145 of file rect.hxx.
References bHasBaseline.
Referenced by AlignTo(), SmTableNode::Arrange(), ExtendBy(), and GetBaseline().
|
inline |
Definition at line 161 of file rect.hxx.
References GetHeight(), and GetWidth().
bool SmRect::IsInsideItalicRect | ( | const Point & | rPoint | ) | const |
Definition at line 605 of file rect.cxx.
References GetBottom(), GetItalicLeft(), GetItalicRight(), GetTop(), Point::X(), and Point::Y().
bool SmRect::IsInsideRect | ( | const Point & | rPoint | ) | const |
Definition at line 596 of file rect.cxx.
References GetBottom(), GetLeft(), GetRight(), GetTop(), Point::X(), and Point::Y().
Referenced by SmNode::FindRectClosestTo().
void SmRect::Move | ( | const Point & | rPosition | ) |
Definition at line 317 of file rect.cxx.
References aTopLeft, nAlignB, nAlignM, nAlignT, nBaseline, nGlyphBottom, nGlyphTop, nHiAttrFence, nLoAttrFence, and Point::Y().
Referenced by SmMatrixNode::Arrange(), SmNode::Move(), and MoveTo().
|
inline |
Definition at line 159 of file rect.hxx.
References GetTopLeft(), and Move().
Referenced by SmBracebodyNode::Arrange().
tools::Long SmRect::OrientedDist | ( | const Point & | rPoint | ) | const |
Definition at line 552 of file rect.cxx.
References Point::setX(), Point::setY(), Point::X(), and Point::Y().
Referenced by SmNode::FindRectClosestTo(), SmGraphicAccessible::getIndexAtPoint(), and SmGraphicWidget::MouseButtonDown().
void SmRect::SetBottom | ( | tools::Long | nBottom | ) |
Definition at line 301 of file rect.cxx.
References aSize, GetTop(), and Size::setHeight().
Referenced by AsGlyphRect(), SmRect(), and Union().
|
inline |
Definition at line 186 of file rect.hxx.
References nItalicLeftSpace, and nItalicRightSpace.
Referenced by SmLineNode::Arrange(), SmBlankNode::Arrange(), and ExtendBy().
void SmRect::SetLeft | ( | tools::Long | nLeft | ) |
Definition at line 285 of file rect.cxx.
References aSize, aTopLeft, GetRight(), Size::setWidth(), and Point::setX().
Referenced by Union().
void SmRect::SetRight | ( | tools::Long | nRight | ) |
void SmRect::SetTop | ( | tools::Long | nTop | ) |
Definition at line 308 of file rect.cxx.
References aSize, aTopLeft, GetBottom(), Size::setHeight(), and Point::setY().
Referenced by AsGlyphRect(), SmRect(), and Union().
|
inline |
Definition at line 117 of file rect.hxx.
References aSize, and Size::setWidth().
Referenced by SmLineNode::Arrange(), and SmBlankNode::Arrange().
|
private |
Italic correction is NOT taken into account here!
Definition at line 420 of file rect.cxx.
References GetBottom(), GetLeft(), GetRight(), GetTop(), IsEmpty(), nGlyphBottom, nGlyphTop, SetBottom(), SetLeft(), SetRight(), and SetTop().
Referenced by ExtendBy().
|
private |
Definition at line 86 of file rect.hxx.
Referenced by GetSize(), SetBottom(), SetLeft(), SetRight(), SetTop(), and SetWidth().
|
private |
|
private |
Definition at line 99 of file rect.hxx.
Referenced by CopyAlignInfo(), ExtendBy(), HasAlignInfo(), and SmRect().
|
private |
Definition at line 98 of file rect.hxx.
Referenced by CopyAlignInfo(), CopyMBL(), ExtendBy(), HasBaseline(), and SmRect().
|
private |
Definition at line 90 of file rect.hxx.
Referenced by CopyAlignInfo(), ExtendBy(), GetAlignB(), Move(), and SmRect().
|
private |
Definition at line 89 of file rect.hxx.
Referenced by CopyAlignInfo(), CopyMBL(), ExtendBy(), GetAlignM(), Move(), and SmRect().
|
private |
Definition at line 88 of file rect.hxx.
Referenced by CopyAlignInfo(), ExtendBy(), GetAlignT(), Move(), and SmRect().
|
private |
Definition at line 87 of file rect.hxx.
Referenced by CopyAlignInfo(), CopyMBL(), ExtendBy(), GetBaseline(), Move(), and SmRect().
|
private |
Definition at line 97 of file rect.hxx.
Referenced by GetBorderWidth(), and SmRect().
|
private |
|
private |
|
private |
Definition at line 96 of file rect.hxx.
Referenced by CopyAlignInfo(), ExtendBy(), GetHiAttrFence(), Move(), and SmRect().
|
private |
Definition at line 93 of file rect.hxx.
Referenced by GetItalicLeftSpace(), SetItalicSpaces(), and SmRect().
|
private |
Definition at line 94 of file rect.hxx.
Referenced by GetItalicRightSpace(), SetItalicSpaces(), and SmRect().
|
private |
Definition at line 95 of file rect.hxx.
Referenced by CopyAlignInfo(), ExtendBy(), GetLoAttrFence(), Move(), and SmRect().