51 #include <bitmaps.hlst>
60 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
99 if(MapUnit::MapPixel ==
GetGrafObject().GetGrafPrefMapMode().GetMapUnit())
110 double fRotate, fShearX;
111 rObjectMatrix.
decompose(aScale, aTranslate, fRotate, fShearX);
113 const double fOffsetX((aScale.
getX() - aPrefSize.
getWidth()) / 2.0);
114 const double fOffsetY((aScale.
getY() - aPrefSize.
getHeight()) / 2.0);
132 xRetval.push_back(xReferenceB);
160 aOutline.transform(rObjectMatrix);
171 double fRotate, fShearX;
172 rObjectMatrix.
decompose(aScale, aTranslate, fRotate, fShearX);
176 const double fDistance(200.0);
179 aScale.
setX(std::max(0.0, aScale.
getX() - (2.0 * fDistance)));
180 aScale.
setY(std::max(0.0, aScale.
getY() - (2.0 * fDistance)));
181 aTranslate.
setX(aTranslate.
getX() + fDistance);
182 aTranslate.
setY(aTranslate.
getY() + fDistance);
185 const BitmapEx aDraftBitmap(BMAP_GrafikEi);
200 const double fBitmapScaling(2.0);
201 const double fWidth(aPrefSize.getWidth() * fBitmapScaling);
202 const double fHeight(aPrefSize.getHeight() * fBitmapScaling);
210 fWidth, fHeight, fShearX, fRotate, aTranslate.
getX(), aTranslate.
getY()));
219 aScale.
setX(std::max(0.0, aScale.
getX() - (fWidth + fDistance)));
220 aTranslate.
setX(aTranslate.
getX() + fWidth + fDistance);
227 if (aDraftText.isEmpty())
232 if (!aDraftText.isEmpty())
256 aScale, fShearX, fRotate, aTranslate));
273 xBlockTextPrimitive->get2DDecomposition(xRetval, aViewInformation2D);
298 aLocalGrafInfo.
SetAlpha(255 - static_cast<sal_uInt8>(::
basegfx::fround(std::min(nTrans, sal_uInt16(100)) * 2.55)));
301 aLocalGrafInfo.
SetCrop(rCrop.GetLeft(), rCrop.GetTop(), rCrop.GetRight(), rCrop.GetBottom());
304 const bool bHasContent(0 != aLocalGrafInfo.
GetAlpha());
325 const double fRotate(nRotationAngle ?
toRadians(36000_deg100 - nRotationAngle) : 0.0);
327 aObjectRange.getWidth(), aObjectRange.getHeight(),
329 aObjectRange.getMinX(), aObjectRange.getMinY()));
340 #ifndef IOS // Enforce swap-in for tiled rendering for now, while we have no delayed updating mechanism
362 rVisitor.
visit(xReference);
386 return GraphicType::NONE == rGraphicObject.
GetType() || GraphicType::Default == rGraphicObject.
GetType();
void SetGamma(double fGamma)
constexpr TypedWhichId< SdrGrafGamma100Item > SDRATTR_GRAFGAMMA(SDRATTR_GRAF_FIRST+5)
const OUString & GetFileName() const
B2DPolygon const & createUnitPolygon()
const MapMode & GetPrefMapMode() const
SAL_WARN_UNUSED_RESULT 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.
void SetInvert(bool bInvert)
static const AllSettings & GetSettings()
periodic cubic Spline (ni)
void SetMirrorFlags(BmpMirrorFlags nMirrFlags)
constexpr TypedWhichId< SdrGrafRedItem > SDRATTR_GRAFRED(SDRATTR_GRAF_FIRST+0)
const GraphicObject & GetGraphicObject(bool bForceSwapIn=false) const
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.
sal_uInt8 GetAlpha() const
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
constexpr tools::Long getHeight() const
const ::std::vector< Color > ImpSvNumberformatScan::StandardColor COL_LIGHTRED
B2IRange fround(const B2DRange &rRange)
constexpr TypedWhichId< SdrGrafTransparenceItem > SDRATTR_GRAFTRANSPARENCE(SDRATTR_GRAF_FIRST+6)
#define DBG_ASSERT(sCon, aError)
constexpr TypedWhichId< SdrGrafLuminanceItem > SDRATTR_GRAFLUMINANCE(SDRATTR_GRAF_FIRST+3)
void SetAlpha(sal_uInt8 cAlpha)
void SetContrast(short nContrastPercent)
virtual void visit(const Primitive2DReference &)=0
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
constexpr TypedWhichId< SdrGrafBlueItem > SDRATTR_GRAFBLUE(SDRATTR_GRAF_FIRST+2)
void SetChannelG(short nChannelGPercent)
constexpr TypedWhichId< SdrGrafModeItem > SDRATTR_GRAFMODE(SDRATTR_GRAF_FIRST+8)
void SetMergedItem(const SfxPoolItem &rItem)
MapUnit GetMapUnit() const
void SetChannelR(short nChannelRPercent)
This class represents an embedded or linked bitmap graphic object.
constexpr TypedWhichId< SdrGrafCropItem > SDRATTR_GRAFCROP(SDRATTR_GRAF_FIRST+9)
GraphicType GetType() const
void SetChannelB(short nChannelBPercent)
constexpr TypedWhichId< SdrGrafGreenItem > SDRATTR_GRAFGREEN(SDRATTR_GRAF_FIRST+1)
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
virtual OutlinerParaObject * GetOutlinerParaObject() const override
void SetLuminance(short nLuminancePercent)
const SfxItemSet & GetMergedItemSet() const
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
void NbcSetText(const OUString &rStr)
Primitive2DReference createHiddenGeometryPrimitives2D(const basegfx::B2DHomMatrix &rMatrix)
basegfx::BColor getBColor() const
constexpr TypedWhichId< SdrGrafContrastItem > SDRATTR_GRAFCONTRAST(SDRATTR_GRAF_FIRST+4)
constexpr TypedWhichId< SdrGrafInvertItem > SDRATTR_GRAFINVERT(SDRATTR_GRAF_FIRST+7)
constexpr tools::Long getWidth() const
void SetCrop(tools::Long nLeft_100TH_MM, tools::Long nTop_100TH_MM, tools::Long nRight_100TH_MM, tools::Long nBottom_100TH_MM)
const SdrLineAttribute & getLine() const
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
static css::uno::Reference< css::awt::XBitmap > CreateVCLXBitmap(const BitmapEx &rBitmap)
const Size & GetSizePixel() const
const OUString & GetName() const
attribute::SdrLineFillEffectsTextAttribute createNewSdrLineFillEffectsTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bHasContent)
bool IsEmptyPresObj() const