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);
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())
245 pRectObj->NbcSetText(aDraftText);
249 SdrText* pSdrText(pRectObj->getText(0));
256 aScale, fShearX, fRotate, aTranslate));
273 xBlockTextPrimitive->get2DDecomposition(xRetval, aViewInformation2D);
294 aLocalGrafInfo.
SetAlpha(255 -
static_cast<sal_uInt8>(::basegfx::fround(std::min(nTrans, sal_uInt16(100)) * 2.55)));
297 aLocalGrafInfo.
SetCrop(rCrop.GetLeft(), rCrop.GetTop(), rCrop.GetRight(), rCrop.GetBottom());
300 const bool bHasContent(0 != aLocalGrafInfo.
GetAlpha());
321 const double fRotate(nRotationAngle ?
toRadians(36000_deg100 - nRotationAngle) : 0.0);
323 aObjectRange.getWidth(), aObjectRange.getHeight(),
325 aObjectRange.getMinX(), aObjectRange.getMinY()));
358 rVisitor.
visit(xReference);
382 return GraphicType::NONE == rGraphicObject.
GetType() || GraphicType::Default == rGraphicObject.
GetType();
static OutputDevice * GetDefaultDevice()
static const AllSettings & GetSettings()
const MapMode & GetPrefMapMode() const
const Size & GetPrefSize() const
const Size & GetSizePixel() const
basegfx::BColor getBColor() const
The transformation of a rectangle into a polygon, by using angle parameters from GeoStat.
Degree100 m_nRotationAngle
void SetGamma(double fGamma)
void SetChannelR(short nChannelRPercent)
void SetMirrorFlags(BmpMirrorFlags nMirrFlags)
void SetContrast(short nContrastPercent)
void SetChannelB(short nChannelBPercent)
sal_uInt8 GetAlpha() const
void SetCrop(tools::Long nLeft_100TH_MM, tools::Long nTop_100TH_MM, tools::Long nRight_100TH_MM, tools::Long nBottom_100TH_MM)
void SetInvert(bool bInvert)
void SetDrawMode(GraphicDrawMode eDrawMode)
void SetLuminance(short nLuminancePercent)
void SetAlpha(sal_uInt8 cAlpha)
void SetChannelG(short nChannelGPercent)
GraphicType GetType() const
MapUnit GetMapUnit() const
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
This class represents an embedded or linked bitmap graphic object.
const OUString & GetFileName() const
const GraphicObject & GetGraphicObject(bool bForceSwapIn=false) const
bool IsEmptyPresObj() const
virtual const OUString & GetName() const
const SfxItemSet & GetMergedItemSet() const
Rectangle objects (rectangle, circle, ...)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
constexpr tools::Long getHeight() const
constexpr tools::Long getWidth() const
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
void transform(const basegfx::B2DHomMatrix &rMatrix)
const SdrLineAttribute & getLine() const
virtual void visit(const Primitive2DReference &)=0
constexpr ::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
#define DBG_ASSERT(sCon, aError)
constexpr TypedWhichId< SvxColorItem > EE_CHAR_COLOR(EE_CHAR_START+0)
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
B2DHomMatrix createScaleShearXRotateTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
B2DPolygon const & createUnitPolygon()
Primitive2DReference createHiddenGeometryPrimitives2D(const basegfx::B2DHomMatrix &rMatrix)
attribute::SdrLineFillEffectsTextAttribute createNewSdrLineFillEffectsTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bHasContent, bool bSuppressShadow)
constexpr TypedWhichId< SdrGrafGreenItem > SDRATTR_GRAFGREEN(SDRATTR_GRAF_FIRST+1)
constexpr TypedWhichId< SdrGrafLuminanceItem > SDRATTR_GRAFLUMINANCE(SDRATTR_GRAF_FIRST+3)
constexpr TypedWhichId< SdrGrafRedItem > SDRATTR_GRAFRED(SDRATTR_GRAF_FIRST+0)
constexpr TypedWhichId< SdrGrafInvertItem > SDRATTR_GRAFINVERT(SDRATTR_GRAF_FIRST+7)
constexpr TypedWhichId< SdrGrafModeItem > SDRATTR_GRAFMODE(SDRATTR_GRAF_FIRST+8)
constexpr TypedWhichId< SdrGrafContrastItem > SDRATTR_GRAFCONTRAST(SDRATTR_GRAF_FIRST+4)
constexpr TypedWhichId< SdrGrafGamma100Item > SDRATTR_GRAFGAMMA(SDRATTR_GRAF_FIRST+5)
constexpr TypedWhichId< SdrGrafCropItem > SDRATTR_GRAFCROP(SDRATTR_GRAF_FIRST+9)
constexpr TypedWhichId< SdrGrafTransparenceItem > SDRATTR_GRAFTRANSPARENCE(SDRATTR_GRAF_FIRST+6)
constexpr TypedWhichId< SdrGrafBlueItem > SDRATTR_GRAFBLUE(SDRATTR_GRAF_FIRST+2)
@ Text
closed free-hand line