58 virtual void create2DDecomposition(
68 double fDiscreteLineWidth,
86 virtual sal_uInt32 getPrimitive2DID()
const override;
91void AnchorPrimitive::create2DDecomposition(
104 rContainer.push_back(aTriangle);
122 rContainer.push_back(aSolidLine);
126 std::vector< double > aDotDashArray;
127 const double fDistance(3.0 * 15.0);
128 const double fDashLen(5.0 * 15.0);
130 aDotDashArray.push_back(fDashLen);
131 aDotDashArray.push_back(fDistance);
134 std::move(aDotDashArray),
135 fDistance + fDashLen);
141 std::move(aStrokeAttribute)));
143 rContainer.push_back(aStrokedLine);
157 rContainer.push_back(aLineTop);
163 if(drawinglayer::primitive2d::DiscreteMetricDependentPrimitive2D::operator==(rPrimitive))
165 const AnchorPrimitive& rCompare =
static_cast< const AnchorPrimitive&
>(rPrimitive);
168 && getLine() == rCompare.getLine()
171 && getColor() == rCompare.getColor()
173 && getLineSolid() == rCompare.getLineSolid());
179sal_uInt32 AnchorPrimitive::getPrimitive2DID()
const
186 const SwRect& aAnchorRect,
188 const Point& aLineStart,
189 const Point& aLineEnd,
190 const Color& aColorAnchor )
192 std::unique_ptr<AnchorOverlayObject> pAnchorOverlayObject;
200 if ( xOverlayManager.is() )
211 xOverlayManager->add(*pAnchorOverlayObject);
216 return pAnchorOverlayObject;
226 const Color& rBaseColor)
227 : OverlayObjectWithBasePosition(rBasePos, rBaseColor)
229 , maThirdPosition(rThirdPos)
230 , maFourthPosition(rFourthPos)
231 , maFifthPosition(rFifthPos)
232 , maSixthPosition(rSixthPos)
233 , maSeventhPosition(rSeventhPos)
283 static const double aDiscreteLineWidth(1.6);
basegfx::B2DPolygon maLineTop
basegfx::B2DPolygon maLine
basegfx::B2DPolygon maTriangle
const AnchorState maAnchorState
double mfDiscreteLineWidth
basegfx::B2DPoint maSecondPosition
constexpr tools::Long Y() const
constexpr tools::Long X() const
SdrPaintWindow * GetPaintWindow(sal_uInt32 nIndex) const
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
Of course Writer needs its own rectangles.
void Bottom(const tools::Long nBottom)
void Left(const tools::Long nLeft)
virtual SdrView * GetDrawView() const override
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
void setClosed(bool bNew)
void remove(OverlayObject &rOverlayObject)
const basegfx::B2DPoint & getBasePosition() const
basegfx::B2DPoint maBasePosition
const Color & getBaseColor() const
OverlayManager * getOverlayManager() const
#define PRIMITIVE2D_ID_SWSIDEBARANCHORPRIMITIVE
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)