/* -*- 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_SVGPOLYNODE_HXX #define INCLUDED_SVGIO_INC_SVGPOLYNODE_HXX #include "svgnode.hxx" #include "svgstyleattributes.hxx" #include #include namespace svgio { namespace svgreader { class SvgPolyNode : public SvgNode { private: /// use styles SvgStyleAttributes maSvgStyleAttributes; /// variable scan values, dependent of given XAttributeList std::unique_ptr mpPolygon; std::unique_ptr mpaTransform; bool const mbIsPolyline : 1; // true = polyline, false = polygon public: SvgPolyNode( SvgDocument& rDocument, SvgNode* pParent, bool bIsPolyline); virtual ~SvgPolyNode() 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; /// Polygon content, set if found in current context void setPolygon(const basegfx::B2DPolygon* pPolygon) { mpPolygon.reset(); if(pPolygon) mpPolygon.reset(new basegfx::B2DPolygon(*pPolygon)); } /// 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)); } }; } // end of namespace svgreader } // end of namespace svgio #endif // INCLUDED_SVGIO_INC_SVGPOLYNODE_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ > LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-07-20Fix typosAndrea Gelmini
2016-05-30Resolves: tdf#97879 loop in style hierarchy on odt loopCaolán McNamara
2016-01-11tdf#96480: ODF import: eliminate duplicate cross reference heading bookmarksMichael Stahl
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin
2015-10-01remove old standalone Sun bug numbersNoel Grandin
2015-09-29tdf#94559: first step to remove rtti.hxxOliver Specht
2015-09-29Nobody would go down the corridor anymoreMiklos Vajna
2015-08-29o3tl/cow_wrapper: remove boost dependencyDaniel Robertson
2015-08-27Clean up sEmptyStephan Bergmann
2015-06-17Replace boost::scoped_array<T> with std::unique_ptr<T[]>Takeshi Abe
2015-06-08loplugin:cstylecast: deal with remaining pointer castsStephan Bergmann
2015-05-29loplugin:loopvartoosmallNoel Grandin
2015-05-18Related tdf#88056: use better-fitting <text:page-name>Katarina Behrens
2015-04-22tdf#88056: Implement import of page title field from ODFKatarina Behrens
2015-04-08text:p is not allowed as child element of draw:frameMarkus Mohrhard
2015-04-07loplugin:staticmethodsNoel Grandin
2015-02-17boost->stdCaolán McNamara
2015-02-16boost::foo_ptr->std::foo_ptrCaolán McNamara
2015-02-10cppcheck: cstyleCastCaolán McNamara
2015-01-19fdo#39440 reduce scope of local variablesMichael Weghorn
2015-01-06fdo#84938: convert TEXT_PROP_MAP #defines to 'enum class'Noel Grandin
2014-12-27fdo#84714 ODT import: read <loext:table> inside <draw:custom-shape>Miklos Vajna
2014-12-12xmloff: Use appropriate OUString functions on string constantsStephan Bergmann
2014-12-10fdo#87110: xmloff: don't catch IllegalArgumentException hereMichael Stahl
2014-11-28xmloff: avoid assertion because AutoCorrect document doesn't ...Michael Stahl
2014-11-25xmloff: replace DBG_ASSERTs in txtimp.cxxMichael Stahl
2014-11-18cppuhelper: clean up public headers with include-what-you-useMichael Stahl
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-11-14fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
2014-11-11xmloff: XML_DROPDOWN should be XML_DROP_DOWNMichael Stahl
2014-11-05fdo#38835 strip out OUString globalsNoel Grandin
2014-10-01loplugin: cstylecastNoel Grandin
2014-09-23loplugin: cstylecast, update PTR_CAST macro to use static_castNoel Grandin
2014-07-25Apply pimpl to XMLPropertySetMapper.Kohei Yoshida
2014-07-02drop UniReference in favour of rtl::ReferenceNoel Grandin
2014-04-15xmloff: sal_Bool->boolNoel Grandin
2014-04-14typo: choosen -> chosenThomas Arnhold
2014-03-31xmloff: sal_Bool->boolNoel Grandin
2014-03-31xmloff: sal_Bool->boolNoel Grandin
2014-03-13xmloff,vbahelper: prefer passing OUString and OString by referenceNoel Grandin
2014-02-06typo fixes in commentsAndras Timar
2014-02-03Remove needless SAL_DLLPRIVATE annotationsStephan Bergmann
2014-01-28bool improvementsStephan Bergmann