svgpolynode.cxx (e2bf1e9d) | svgpolynode.cxx (311ea6ab) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 38 unchanged lines hidden (view full) --- 47 SvgPolyNode::~SvgPolyNode() 48 { 49 if(mpaTransform) delete mpaTransform; 50 if(mpPolygon) delete mpPolygon; 51 } 52 53 const SvgStyleAttributes* SvgPolyNode::getSvgStyleAttributes() const 54 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 38 unchanged lines hidden (view full) --- 47 SvgPolyNode::~SvgPolyNode() 48 { 49 if(mpaTransform) delete mpaTransform; 50 if(mpPolygon) delete mpPolygon; 51 } 52 53 const SvgStyleAttributes* SvgPolyNode::getSvgStyleAttributes() const 54 { |
55 static rtl::OUString aClassStr(rtl::OUString::createFromAscii("poly")); 56 maSvgStyleAttributes.checkForCssStyle(aClassStr); | 55 static rtl::OUString aClassStrA(rtl::OUString::createFromAscii("polygon")); 56 static rtl::OUString aClassStrB(rtl::OUString::createFromAscii("polyline")); 57 maSvgStyleAttributes.checkForCssStyle(mbIsPolyline? aClassStrB : aClassStrA); |
57 58 return &maSvgStyleAttributes; 59 } 60 61 void SvgPolyNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent) 62 { 63 // call parent 64 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent); --- 68 unchanged lines hidden --- | 58 59 return &maSvgStyleAttributes; 60 } 61 62 void SvgPolyNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent) 63 { 64 // call parent 65 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent); --- 68 unchanged lines hidden --- |