svggradientstopnode.cxx (e2bf1e9d) svggradientstopnode.cxx (9d01bcde)
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

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

40 }
41
42 SvgGradientStopNode::~SvgGradientStopNode()
43 {
44 }
45
46 const SvgStyleAttributes* SvgGradientStopNode::getSvgStyleAttributes() const
47 {
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

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

40 }
41
42 SvgGradientStopNode::~SvgGradientStopNode()
43 {
44 }
45
46 const SvgStyleAttributes* SvgGradientStopNode::getSvgStyleAttributes() const
47 {
48 return &maSvgStyleAttributes;
48 static rtl::OUString aClassStr(rtl::OUString::createFromAscii("stop"));
49
50 return checkForCssStyle(aClassStr, maSvgStyleAttributes);
49 }
50
51 void SvgGradientStopNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
52 {
53 // call parent
54 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
55
56 // read style attributes
57 maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent);
58
59 // parse own
60 switch(aSVGToken)
61 {
62 case SVGTokenStyle:
63 {
51 }
52
53 void SvgGradientStopNode::parseAttribute(const rtl::OUString& rTokenName, SVGToken aSVGToken, const rtl::OUString& aContent)
54 {
55 // call parent
56 SvgNode::parseAttribute(rTokenName, aSVGToken, aContent);
57
58 // read style attributes
59 maSvgStyleAttributes.parseStyleAttribute(rTokenName, aSVGToken, aContent);
60
61 // parse own
62 switch(aSVGToken)
63 {
64 case SVGTokenStyle:
65 {
64 maSvgStyleAttributes.readStyle(aContent);
66 readLocalCssStyle(aContent);
65 break;
66 }
67 case SVGTokenOffset:
68 {
69 SvgNumber aNum;
70
71 if(readSingleNumber(aContent, aNum))
72 {

--- 19 unchanged lines hidden ---
67 break;
68 }
69 case SVGTokenOffset:
70 {
71 SvgNumber aNum;
72
73 if(readSingleNumber(aContent, aNum))
74 {

--- 19 unchanged lines hidden ---