37 bool bDoubleLine(
false);
38 bool bWaveLine(
false);
39 bool bBoldLine(
false);
40 const int* pDotDashArray(
nullptr);
45 static const int aDottedArray[] = { 1, 1, 0};
46 static const int aDotDashArray[] = { 1, 1, 4, 1, 0};
47 static const int aDashDotDotArray[] = { 1, 1, 1, 1, 4, 1, 0};
48 static const int aDashedArray[] = { 5, 2, 0};
49 static const int aLongDashArray[] = { 7, 2, 0};
53 double fRotate, fShearX;
69 pDotDashArray = aDottedArray;
74 pDotDashArray = aDashedArray;
79 pDotDashArray = aLongDashArray;
84 pDotDashArray = aDotDashArray;
89 pDotDashArray = aDashDotDotArray;
116 pDotDashArray = aDottedArray;
122 pDotDashArray = aDashedArray;
128 pDotDashArray = aLongDashArray;
134 pDotDashArray = aDotDashArray;
140 pDotDashArray = aDashDotDotArray;
158 fOffset -= 0.50 * fHeight;
174 std::vector< double > aDoubleArray;
176 for(
const int*
p = pDotDashArray; *
p; ++
p)
178 aDoubleArray.push_back(
static_cast<double>(*
p) * fHeight);
193 fShearX, fRotate, aTranslate));
199 double fWaveWidth(10.6 * fHeight);
219 rContainer.push_back(aNewPrimitive);
226 double fLineDist(2.3 * fHeight);
230 fLineDist = 6.3 * fHeight;
235 -aTranslate.
getX(), -aTranslate.
getY()));
236 aTransform.
rotate(-fRotate);
242 aTransform.
rotate(fRotate);
257 : maObjectTransformation(
std::move(aObjectTransformation)),
261 meTextLine(eTextLine),
262 maLineColor(rLineColor)
268 if(BufferedDecompositionPrimitive2D::operator==(rPrimitive))
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
void rotate(double fRadiant)
void translate(double fX, double fY)
void transform(const basegfx::B2DHomMatrix &rMatrix)
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
PolygonStrokePrimitive2D class.
PolygonWavePrimitive2D class.
TextLinePrimitive2D(basegfx::B2DHomMatrix aObjectTransformation, double fWidth, double fOffset, double fHeight, TextLine eTextLine, const basegfx::BColor &rLineColor)
constructor
virtual sal_uInt32 getPrimitive2DID() const override
provide unique ID
const basegfx::BColor & getLineColor() const
const basegfx::B2DHomMatrix & getObjectTransformation() const
data read access
TextLine getTextLine() const
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &rViewInformation) const override
local decomposition.
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
compare operator
#define PRIMITIVE2D_ID_TEXTLINEPRIMITIVE2D
B2DHomMatrix createTranslateB2DHomMatrix(double fTranslateX, double fTranslateY)
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
rtl::Reference< BasePrimitive2D > Primitive2DReference
@ TEXT_LINE_BOLDDASHDOTDOT