54 #include <eventhandler.hxx>
55 #include <bitmaps.hlst>
66 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
105 if(MapUnit::MapPixel ==
GetGrafObject().GetGrafPrefMapMode().GetMapUnit())
116 double fRotate, fShearX;
117 rObjectMatrix.
decompose(aScale, aTranslate, fRotate, fShearX);
119 const double fOffsetX((aScale.
getX() - aPrefSize.
getWidth()) / 2.0);
120 const double fOffsetY((aScale.
getY() - aPrefSize.
getHeight()) / 2.0);
138 xRetval.push_back(xReferenceB);
166 aOutline.transform(rObjectMatrix);
177 double fRotate, fShearX;
178 rObjectMatrix.
decompose(aScale, aTranslate, fRotate, fShearX);
182 const double fDistance(200.0);
185 aScale.
setX(std::max(0.0, aScale.
getX() - (2.0 * fDistance)));
186 aScale.
setY(std::max(0.0, aScale.
getY() - (2.0 * fDistance)));
187 aTranslate.
setX(aTranslate.
getX() + fDistance);
188 aTranslate.
setY(aTranslate.
getY() + fDistance);
191 const BitmapEx aDraftBitmap(BMAP_GrafikEi);
206 const double fBitmapScaling(2.0);
207 const double fWidth(aPrefSize.getWidth() * fBitmapScaling);
208 const double fHeight(aPrefSize.getHeight() * fBitmapScaling);
216 fWidth, fHeight, fShearX, fRotate, aTranslate.
getX(), aTranslate.
getY()));
221 aDraftBitmap, aBitmapMatrix)));
224 aScale.
setX(std::max(0.0, aScale.
getX() - (fWidth + fDistance)));
225 aTranslate.
setX(aTranslate.
getX() + fWidth + fDistance);
232 if (aDraftText.isEmpty())
237 if (!aDraftText.isEmpty())
261 aScale, fShearX, fRotate, aTranslate));
279 xBlockTextPrimitive->get2DDecomposition(xRetval, aViewInformation2D);
308 aLocalGrafInfo.
SetCrop(rCrop.GetLeft(), rCrop.GetTop(), rCrop.GetRight(), rCrop.GetBottom());
325 const bool bRota180(18000 == nRotationAngle);
327 const sal_uInt16 nMirrorCase(bRota180 ? (bMirrored ? 3 : 4) : (bMirrored ? 2 : 1));
328 bool bHMirr((2 == nMirrorCase ) || (4 == nMirrorCase));
329 bool bVMirr((3 == nMirrorCase ) || (4 == nMirrorCase));
345 aLocalGrafInfo.
SetMirrorFlags((bHMirr ? BmpMirrorFlags::Horizontal : BmpMirrorFlags::NONE)|(bVMirr ? BmpMirrorFlags::Vertical : BmpMirrorFlags::NONE));
350 const double fRotate(nRotationAngle ? (36000 - nRotationAngle) *
F_PI18000 : 0.0);
352 aObjectRange.getWidth(), aObjectRange.getHeight(),
354 aObjectRange.getMinX(), aObjectRange.getMinY()));
365 #ifndef IOS // Enforce swap-in for tiled rendering for now, while we have no delayed updating mechanism
413 return GraphicType::NONE == rGraphicObject.
GetType() || GraphicType::Default == rGraphicObject.
GetType();
void SetTransparency(sal_uInt8 cTransparency)
void SetGamma(double fGamma)
const OUString & GetFileName() const
B2DPolygon const & createUnitPolygon()
const MapMode & GetPrefMapMode() const
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
virtual SdrText * getText(sal_Int32 nIndex) const override
returns the nth available text.
#define SDRATTR_GRAFGAMMA
periodic cubic Spline (ni)
void SetInvert(bool bInvert)
static const AllSettings & GetSettings()
void SetMirrorFlags(BmpMirrorFlags nMirrFlags)
constexpr::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
const GraphicObject & GetGraphicObject(bool bForceSwapIn=false) const
#define SDRATTR_GRAFINVERT
#define SDRATTR_GRAFGREEN
static void Free(SdrObject *&_rpObject)
void SetDrawMode(GraphicDrawMode eDrawMode)
Rectangle objects (rectangle, circle, ...)
static OutputDevice * GetDefaultDevice()
B2DHomMatrix createScaleShearXRotateTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
const Size & GetPrefSize() const
The transformation of a rectangle into a polygon, by using angle parameters from GeoStat.
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
B2IRange fround(const B2DRange &rRange)
attribute::SdrLineFillShadowTextAttribute createNewSdrLineFillShadowTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bHasContent)
#define DBG_ASSERT(sCon, aError)
void SetContrast(short nContrastPercent)
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
void SetCrop(long nLeft_100TH_MM, long nTop_100TH_MM, long nRight_100TH_MM, long nBottom_100TH_MM)
const SdrLineAttribute & getLine() const
void SetChannelG(short nChannelGPercent)
void SetMergedItem(const SfxPoolItem &rItem)
MapUnit GetMapUnit() const
void SetChannelR(short nChannelRPercent)
This class represents an embedded or linked bitmap graphic object.
GraphicType GetType() const
void SetChannelB(short nChannelBPercent)
Point PixelToLogic(const Point &rDevicePt) const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
virtual OutlinerParaObject * GetOutlinerParaObject() const override
#define SDRATTR_GRAFLUMINANCE
void SetLuminance(short nLuminancePercent)
const SfxItemSet & GetMergedItemSet() const
void NbcSetText(const OUString &rStr)
Primitive2DReference createHiddenGeometryPrimitives2D(const basegfx::B2DHomMatrix &rMatrix)
#define SDRATTR_GRAFTRANSPARENCE
css::uno::Reference< css::graphic::XPrimitive2D > Primitive2DReference
basegfx::BColor getBColor() const
#define SDRATTR_GRAFCONTRAST
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
const Size & GetSizePixel() const
sal_uInt8 GetTransparency() const
bool IsEmptyPresObj() const