22 #include <libxml/xmlwriter.h>
29 m_Point( rRect.
Left(), rRect.
Top() )
99 return (
Left() <= rRect.
Left()) && (rRect.
Left()<= nRight) &&
100 (
Left() <= nrRight) && (nrRight <= nRight) &&
101 (
Top() <= rRect.
Top()) && (rRect.
Top() <= nBottom) &&
102 (
Top() <= nrBottom) && (nrBottom <= nBottom);
107 return (
Left() <= rPoint.X()) &&
108 (
Top() <= rPoint.Y()) &&
109 (
Right() >= rPoint.X()) &&
116 bool bIsNearby = (((
Left() - nTolerance) <= rPoint.X()) &&
117 ((
Top() - nTolerance) <= rPoint.Y()) &&
118 ((
Right() + nTolerance) >= rPoint.X()) &&
119 ((
Bottom() + nTolerance) >= rPoint.Y()));
120 return IsInside(rPoint) || bIsNearby;
223 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"left"),
"%li",
Left());
224 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"top"),
"%li",
Top());
225 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"width"),
"%li",
Width());
226 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"height"),
"%li",
Height());
227 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"bottom"),
"%li",
Bottom());
228 xmlTextWriterWriteFormatAttribute(writer, BAD_CAST(
"right"),
"%li",
Right());
bool OverStepBottom(tools::Long) const
void Right(const tools::Long nRight)
tools::Long GetRightDistance(tools::Long) const
SwRect & Union(const SwRect &rRect)
void setWidth(tools::Long nWidth)
SvStream & WriteInt32(sal_Int32 nInt32)
void SubLeft(const tools::Long nSub)
void Left(const tools::Long nLeft)
tools::Long getWidth() const
tools::Long Right() const
tools::Long Height() const
Of course Writer needs its own rectangles.
void SetRightAndWidth(tools::Long nRight, tools::Long nNew)
void SetTopAndHeight(tools::Long nTop, tools::Long nNew)
void AddTop(const tools::Long nAdd)
SwRect & Intersection_(const SwRect &rRect)
tools::Long Right_() const
tools::Long Bottom() const
bool OverStepRight(tools::Long) const
SwRect & Intersection(const SwRect &rRect)
void Width(tools::Long nNew)
bool OverStepLeft(tools::Long) const
Point BottomRight() const
tools::Long getHeight() const
struct _xmlTextWriter * xmlTextWriterPtr
void SetLeftAndWidth(tools::Long nLeft, tools::Long nNew)
const Size & SSize() const
void AddBottom(const tools::Long nAdd)
tools::Long Height_() const
tools::Long Width() const
void AddHeight(const tools::Long nAdd)
void AddWidth(const tools::Long nAdd)
tools::Long Left_() const
void AddRight(const tools::Long nAdd)
void SetPosX(const tools::Long nNew)
void SetUpperLeftCorner(const Point &rNew)
tools::Long GetTopDistance(tools::Long) const
void AddLeft(const tools::Long nAdd)
void Bottom(const tools::Long nBottom)
void SubTop(const tools::Long nSub)
void SetUpperRightCorner(const Point &rNew)
tools::Long Width_() const
tools::Long GetBottomDistance(tools::Long) const
void SetLowerLeftCorner(const Point &rNew)
bool IsInside(const Point &rPOINT) const
bool OverStepTop(tools::Long) const
tools::Long AdjustWidth(tools::Long n)
void Top(const tools::Long nTop)
tools::Long Height() const
tools::Long Bottom_() const
SvStream & WriteChar(char nChar)
tools::Long AdjustHeight(tools::Long n)
void SetPosY(const tools::Long nNew)
void setHeight(tools::Long nHeight)
void SetBottomAndHeight(tools::Long nBottom, tools::Long nNew)
tools::Long GetLeftDistance(tools::Long) const
bool IsNear(const Point &rPoint, tools::Long nTolerance) const
bool IsOver(const SwRect &rRect) const
tools::Long Width() const
void Height(tools::Long nNew)
const Point & Pos() const
void dumpAsXmlAttributes(xmlTextWriterPtr writer) const
SvStream & WriteSwRect(SvStream &rStream, const SwRect &rRect)