LibreOffice Module svgio (master) 1
|
#include <svgimagenode.hxx>
Public Member Functions | |
SvgImageNode (SvgDocument &rDocument, SvgNode *pParent) | |
virtual | ~SvgImageNode () override |
virtual const SvgStyleAttributes * | getSvgStyleAttributes () const override |
virtual void | parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) override |
virtual void | decomposeSvgNode (drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const override |
const std::optional< basegfx::B2DHomMatrix > & | getTransform () const |
transform content, set if found in current context More... | |
void | setTransform (const std::optional< basegfx::B2DHomMatrix > &pMatrix) |
const SvgNumber & | getX () const |
x content, set if found in current context More... | |
const SvgNumber & | getY () const |
y content, set if found in current context More... | |
const SvgNumber & | getWidth () const |
width content, set if found in current context More... | |
const SvgNumber & | getHeight () const |
height content, set if found in current context More... | |
Public Member Functions inherited from svgio::svgreader::SvgNode | |
SvgNode (SVGToken aType, SvgDocument &rDocument, SvgNode *pParent) | |
virtual | ~SvgNode () override |
SvgNode (const SvgNode &)=delete | |
SvgNode & | operator= (const SvgNode &)=delete |
void | accept (Visitor &rVisitor) |
void | readLocalCssStyle (std::u16string_view aContent) |
scan helper to read and interpret a local CssStyle to mpLocalCssStyle More... | |
void | parseAttributes (const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) |
style helpers More... | |
virtual const SvgStyleAttributes * | getSvgStyleAttributes () const |
virtual void | parseAttribute (const OUString &rTokenName, SVGToken aSVGToken, const OUString &aContent) |
virtual void | decomposeSvgNode (drawinglayer::primitive2d::Primitive2DContainer &rTarget, bool bReferenced) const |
virtual bool | supportsParentStyle () const |
#i125258# tell if this node is allowed to have a parent style (e.g. defs do not) More... | |
SVGToken | getType () const |
basic data read access More... | |
const SvgDocument & | getDocument () const |
const SvgNode * | getParent () const |
const std::vector< std::unique_ptr< SvgNode > > & | getChildren () const |
virtual basegfx::B2DRange | getCurrentViewPort () const override |
InfoProvider support for %, em and ex values. More... | |
virtual double | getCurrentFontSizeInherited () const override |
return font size of node inherited from parents More... | |
virtual double | getCurrentXHeightInherited () const override |
return xheight of node inherited from parents More... | |
double | getCurrentFontSize () const |
double | getCurrentXHeight () const |
std::optional< OUString > const & | getId () const |
Id access. More... | |
void | setId (OUString const &) |
std::optional< OUString > const & | getClass () const |
Class access. More... | |
void | setClass (OUString const &) |
XmlSpace | getXmlSpace () const |
XmlSpace access. More... | |
void | setXmlSpace (XmlSpace eXmlSpace) |
Display | getDisplay () const |
Display access #i121656#. More... | |
void | setDisplay (Display eDisplay) |
void | setAlternativeParent (const SvgNode *pAlternativeParent=nullptr) |
alternative parent More... | |
bool | hasLocalCssStyle () |
Check if there is a local css style. More... | |
Public Member Functions inherited from svgio::svgreader::InfoProvider | |
virtual | ~InfoProvider () |
virtual basegfx::B2DRange | getCurrentViewPort () const =0 |
virtual double | getCurrentFontSizeInherited () const =0 |
return font size of node inherited from parents More... | |
virtual double | getCurrentXHeightInherited () const =0 |
return xheight of node inherited from parents More... | |
Private Attributes | |
SvgStyleAttributes | maSvgStyleAttributes |
use styles More... | |
SvgAspectRatio | maSvgAspectRatio |
variable scan values, dependent of given XAttributeList More... | |
std::optional< basegfx::B2DHomMatrix > | mpaTransform |
SvgNumber | maX |
SvgNumber | maY |
SvgNumber | maWidth |
SvgNumber | maHeight |
OUString | maXLink |
OUString | maUrl |
OUString | maData |
Additional Inherited Members | |
Protected Member Functions inherited from svgio::svgreader::SvgNode | |
const SvgStyleAttributes * | checkForCssStyle (const SvgStyleAttributes &rOriginal) const |
helper to evtl. link to css style More... | |
void | fillCssStyleVector (const SvgStyleAttributes &rOriginal) |
helper for filling the CssStyle vector once dependent on mbCssStyleVectorBuilt More... | |
void | addCssStyle (const SvgDocument &rDocument, const OUString &aConcatenated) |
void | fillCssStyleVectorUsingHierarchyAndSelectors (const SvgNode &rCurrent, const OUString &aConcatenated) |
void | fillCssStyleVectorUsingParent (const SvgNode &rCurrent) |
Definition at line 28 of file svgimagenode.hxx.
svgio::svgreader::SvgImageNode::SvgImageNode | ( | SvgDocument & | rDocument, |
SvgNode * | pParent | ||
) |
Definition at line 39 of file svgimagenode.cxx.
References svgio::svgreader::Rect.
|
overridevirtual |
Definition at line 51 of file svgimagenode.cxx.
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 184 of file svgimagenode.cxx.
References svgio::svgreader::SvgStyleAttributes::add_postProcess(), svgio::svgreader::SvgAspectRatio::createMapping(), basegfx::utils::createPolygonFromRect(), basegfx::utils::createScaleTranslateB2DHomMatrix(), comphelper::Base64::decode(), svgio::svgreader::SvgNode::decomposeSvgNode(), basegfx::fTools::equal(), ERRCODE_NONE, svgio::svgreader::extractFromGraphic(), svgio::svgreader::SvgDocument::findSvgNodeById(), svgio::svgreader::SvgDocument::getAbsolutePath(), drawinglayer::primitive2d::Primitive2DContainer::getB2DRange(), svgio::svgreader::SvgNode::getDisplay(), svgio::svgreader::SvgNode::getDocument(), GraphicFilter::GetGraphicFilter(), getHeight(), basegfx::B2DRange::getMinimum(), basegfx::B2DRange::getRange(), BitmapEx::GetSizePixel(), getSvgStyleAttributes(), getTransform(), getWidth(), getX(), getY(), Size::Height(), BitmapEx::IsEmpty(), basegfx::B2DHomMatrix::isIdentity(), svgio::svgreader::SvgAspectRatio::isMeetOrSlice(), maData, maSvgAspectRatio, maUrl, maXLink, basegfx::fTools::more(), svgio::svgreader::None, rTarget, SAL_WARN, solve(), u, Size::Width(), svgio::svgreader::xcoordinate, and svgio::svgreader::ycoordinate.
|
inline |
height content, set if found in current context
Definition at line 72 of file svgimagenode.hxx.
References maHeight.
Referenced by decomposeSvgNode().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 55 of file svgimagenode.cxx.
References svgio::svgreader::SvgNode::checkForCssStyle(), and maSvgStyleAttributes.
Referenced by decomposeSvgNode().
|
inline |
transform content, set if found in current context
Definition at line 59 of file svgimagenode.hxx.
References mpaTransform.
Referenced by decomposeSvgNode().
|
inline |
width content, set if found in current context
Definition at line 69 of file svgimagenode.hxx.
References maWidth.
Referenced by decomposeSvgNode().
|
inline |
x content, set if found in current context
Definition at line 63 of file svgimagenode.hxx.
References maX.
Referenced by decomposeSvgNode().
|
inline |
y content, set if found in current context
Definition at line 66 of file svgimagenode.hxx.
References maY.
Referenced by decomposeSvgNode().
|
overridevirtual |
Reimplemented from svgio::svgreader::SvgNode.
Definition at line 60 of file svgimagenode.cxx.
References svgio::svgreader::Height, svgio::svgreader::Href, basegfx::B2DHomMatrix::isIdentity(), svgio::svgreader::SvgNumber::isPositive(), maData, maHeight, maSvgAspectRatio, maSvgStyleAttributes, maUrl, maWidth, maX, maXLink, maY, svgio::svgreader::SvgNode::parseAttribute(), svgio::svgreader::SvgStyleAttributes::parseStyleAttribute(), svgio::svgreader::PreserveAspectRatio, svgio::svgreader::readImageLink(), svgio::svgreader::SvgNode::readLocalCssStyle(), svgio::svgreader::readSingleNumber(), svgio::svgreader::readSvgAspectRatio(), svgio::svgreader::readTransform(), setTransform(), svgio::svgreader::Style, svgio::svgreader::Transform, svgio::svgreader::Width, svgio::svgreader::X, svgio::svgreader::XlinkHref, and svgio::svgreader::Y.
|
inline |
Definition at line 60 of file svgimagenode.hxx.
References mpaTransform.
Referenced by parseAttribute().
|
private |
Definition at line 46 of file svgimagenode.hxx.
Referenced by decomposeSvgNode(), and parseAttribute().
|
private |
Definition at line 41 of file svgimagenode.hxx.
Referenced by getHeight(), and parseAttribute().
|
private |
variable scan values, dependent of given XAttributeList
Definition at line 35 of file svgimagenode.hxx.
Referenced by decomposeSvgNode(), and parseAttribute().
|
private |
use styles
Definition at line 32 of file svgimagenode.hxx.
Referenced by getSvgStyleAttributes(), and parseAttribute().
|
private |
Definition at line 44 of file svgimagenode.hxx.
Referenced by decomposeSvgNode(), and parseAttribute().
|
private |
Definition at line 40 of file svgimagenode.hxx.
Referenced by getWidth(), and parseAttribute().
|
private |
Definition at line 38 of file svgimagenode.hxx.
Referenced by getX(), and parseAttribute().
|
private |
Definition at line 43 of file svgimagenode.hxx.
Referenced by decomposeSvgNode(), and parseAttribute().
|
private |
Definition at line 39 of file svgimagenode.hxx.
Referenced by getY(), and parseAttribute().
|
private |
Definition at line 37 of file svgimagenode.hxx.
Referenced by getTransform(), and setTransform().