/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SVGIO_INC_SVGIMAGENODE_HXX #define INCLUDED_SVGIO_INC_SVGIMAGENODE_HXX #include "svgnode.hxx" #include "svgstyleattributes.hxx" #include namespace svgio { namespace svgreader { class SvgImageNode : public SvgNode { private: /// use styles SvgStyleAttributes maSvgStyleAttributes; /// variable scan values, dependent of given XAttributeList SvgAspectRatio maSvgAspectRatio; std::unique_ptr mpaTransform; SvgNumber maX; SvgNumber maY; SvgNumber maWidth; SvgNumber maHeight; OUString maXLink; // internal link OUString maUrl; // external link OUString maMimeType; // mimetype and OUString maData; // base64 data public: 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; /// transform content, set if found in current context const basegfx::B2DHomMatrix* getTransform() const { return mpaTransform.get(); } void setTransform(const basegfx::B2DHomMatrix* pMatrix) { mpaTransform.reset(); if(pMatrix) mpaTransform.reset( new basegfx::B2DHomMatrix(*pMatrix) ); } /// x content, set if found in current context const SvgNumber& getX() const { return maX; } /// y content, set if found in current context const SvgNumber& getY() const { return maY; } /// width content, set if found in current context const SvgNumber& getWidth() const { return maWidth; } /// height content, set if found in current context const SvgNumber& getHeight() const { return maHeight; } }; } // end of namespace svgreader } // end of namespace svgio #endif // INCLUDED_SVGIO_INC_SVGIMAGENODE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ collabora/co-24.04.8'>distro/collabora/co-24.04.8 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-05-02throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewriteStephan Bergmann
2021-03-19Fix typo in commentStephan Bergmann
2021-02-02tdf#130978 Added comment to all published APImsrijita18
2020-11-21tdf#123936 Formatting files in module include with clang-formatPhilipp Hofer
2020-09-12Replace remaining uses of sal_CharJulien Nabet
2020-01-17Use std::vector in OInterfaceContainerHelper instead of SequenceNoel Grandin
2019-11-11fix move operatorNoel Grandin
2019-11-09missing move operator=Noel Grandin
2019-08-30new loplugin:noexceptmoveNoel Grandin
2019-08-09Fix typoAndrea Gelmini
2019-07-03Fix typoAndrea Gelmini
2019-07-03Fix typoAndrea Gelmini
2019-07-03Fix typoAndrea Gelmini
2019-06-07Fix typoAndrea Gelmini
2019-05-10an uno -> a unoCaolán McNamara
2019-03-08Fix @param documentation sectionsJulien Nabet
2019-03-03Make additional OTypeCollection::getTypes overload LIBO_INTERNAL_ONLYStephan Bergmann
2019-03-03revert ABI change from "expand out IMPL_XTYPEPROVIDER_START macro"Noel Grandin
2019-03-01expand out IMPL_XTYPEPROVIDER_START macroNoel Grandin
2018-11-16Fix typosAndrea Gelmini
2018-09-10tdf#42949 Fix IWYU warnings in include/cppuhelper/*Gabor Kelemen
2018-07-27cppuhelper: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann
2018-07-27cppuhelper: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann