svgpolynode.cxx (311ea6ab) svgpolynode.cxx (50b37974)
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

--- 40 unchanged lines hidden (view full) ---

49 if(mpaTransform) delete mpaTransform;
50 if(mpPolygon) delete mpPolygon;
51 }
52
53 const SvgStyleAttributes* SvgPolyNode::getSvgStyleAttributes() const
54 {
55 static rtl::OUString aClassStrA(rtl::OUString::createFromAscii("polygon"));
56 static rtl::OUString aClassStrB(rtl::OUString::createFromAscii("polyline"));
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

--- 40 unchanged lines hidden (view full) ---

49 if(mpaTransform) delete mpaTransform;
50 if(mpPolygon) delete mpPolygon;
51 }
52
53 const SvgStyleAttributes* SvgPolyNode::getSvgStyleAttributes() const
54 {
55 static rtl::OUString aClassStrA(rtl::OUString::createFromAscii("polygon"));
56 static rtl::OUString aClassStrB(rtl::OUString::createFromAscii("polyline"));
57 maSvgStyleAttributes.checkForCssStyle(mbIsPolyline? aClassStrB : aClassStrA);
58
57
59 return &maSvgStyleAttributes;
58 return checkForCssStyle(mbIsPolyline? aClassStrB : aClassStrA, 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);
66
67 // read style attributes

--- 66 unchanged lines hidden ---
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);
65
66 // read style attributes

--- 66 unchanged lines hidden ---