43 maSvgStyleAttributes(*this),
140 const sal_Int32 nLen(aContent.getLength());
161 if(GraphicType::Bitmap == rGraphic.
GetType())
195 if(fWidth <= 0.0 || fHeight <= 0.0)
210 css::uno::Sequence< sal_Int8 > aPass;
213 if(aPass.hasElements())
215 SvMemoryStream aStream(aPass.getArray(), aPass.getLength(), StreamMode::READ);
227 else if(!
maUrl.isEmpty())
232 aAbsUrl = rtl::Uri::convertRelToAbs(rPath,
maUrl);
233 }
catch (rtl::MalformedUriException & e) {
236 "caught rtl::MalformedUriException \""
237 << e.getMessage() <<
"\"");
240 if (!aAbsUrl.isEmpty() && rPath != aAbsUrl)
262 if(!aNewTarget.empty())
282 const double fHalfHeight((1.0 / fAspectRatio) * 0.5);
292 const double fHalfWidth(fAspectRatio * 0.5);
302 aNewTarget.resize(1);
310 if(aNewTarget.empty())
325 std::move(aNewTarget)));
337 std::move(aNewTarget)));
const Size & GetSizePixel() const
static GraphicFilter & GetGraphicFilter()
GraphicType GetType() const
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
B2DVector getRange() const
B2DPoint getMinimum() const
static void decode(css::uno::Sequence< sal_Int8 > &aPass, std::u16string_view sBuffer)
basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &aViewInformation) const
bool isMeetOrSlice() const
basegfx::B2DHomMatrix createMapping(const basegfx::B2DRange &rTarget, const basegfx::B2DRange &rSource) const
const OUString & getAbsolutePath() const
const SvgNode * findSvgNodeById(const OUString &rStr) const
find a node by its Id
virtual const SvgStyleAttributes * getSvgStyleAttributes() const override
SvgStyleAttributes maSvgStyleAttributes
use styles
SvgAspectRatio maSvgAspectRatio
variable scan values, dependent of given XAttributeList
const SvgNumber & getX() const
x content, set if found in current context
virtual ~SvgImageNode() override
virtual void parseAttribute(const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override
const SvgNumber & getHeight() const
height content, set if found in current context
const SvgNumber & getWidth() const
width content, set if found in current context
const std::optional< basegfx::B2DHomMatrix > & getTransform() const
transform content, set if found in current context
virtual void decomposeSvgNode(drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const override
SvgImageNode(SvgDocument &rDocument, SvgNode *pParent)
const SvgNumber & getY() const
y content, set if found in current context
void setTransform(const std::optional< basegfx::B2DHomMatrix > &pMatrix)
Display getDisplay() const
Display access #i121656#.
virtual void decomposeSvgNode(drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const
const SvgStyleAttributes * checkForCssStyle(const SvgStyleAttributes &rOriginal) const
helper to evtl. link to css style
virtual void parseAttribute(const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent)
void readLocalCssStyle(std::u16string_view aContent)
scan helper to read and interpret a local CssStyle to mpLocalCssStyle
const SvgDocument & getDocument() const
void add_postProcess(drawinglayer::primitive2d::Primitive2DContainer &rTarget, drawinglayer::primitive2d::Primitive2DContainer &&rSource, const std::optional< basegfx::B2DHomMatrix > &pTransform) const
void parseStyleAttribute(SVGToken aSVGToken, const OUString &rContent)
local attribute scanner
bool solve(Matrix &matrix, int rows, int cols, Vector &result, BaseType minPivot)
#define SAL_WARN(area, stream)
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
static void extractFromGraphic(const Graphic &rGraphic, drawinglayer::primitive2d::Primitive2DContainer &rEmbedded, basegfx::B2DRange &rViewBox, BitmapEx &rBitmapEx)
bool readSingleNumber(std::u16string_view rCandidate, SvgNumber &aNum)
basegfx::B2DHomMatrix readTransform(std::u16string_view rCandidate, InfoProvider const &rInfoProvider)
SvgAspectRatio readSvgAspectRatio(std::u16string_view rCandidate)
void readImageLink(const OUString &rCandidate, OUString &rXLink, OUString &rUrl, OUString &rData)