svgstyleattributes.cxx (e90e3a55) | svgstyleattributes.cxx (4374d266) |
---|---|
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 --- 205 unchanged lines hidden (view full) --- 214 215 const SvgStyleAttributes* SvgStyleAttributes::getParentStyle() const 216 { 217 if(getCssStyleParent()) 218 { 219 return getCssStyleParent(); 220 } 221 | 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 --- 205 unchanged lines hidden (view full) --- 214 215 const SvgStyleAttributes* SvgStyleAttributes::getParentStyle() const 216 { 217 if(getCssStyleParent()) 218 { 219 return getCssStyleParent(); 220 } 221 |
222 if(mrOwner.getParent()) | 222 if(mrOwner.supportsParentStyle() && mrOwner.getParent()) |
223 { 224 return mrOwner.getParent()->getSvgStyleAttributes(); 225 } 226 227 return 0; 228 } 229 230 void SvgStyleAttributes::add_text( --- 1644 unchanged lines hidden (view full) --- 1875 } 1876 default: 1877 { 1878 break; 1879 } 1880 } 1881 } 1882 | 223 { 224 return mrOwner.getParent()->getSvgStyleAttributes(); 225 } 226 227 return 0; 228 } 229 230 void SvgStyleAttributes::add_text( --- 1644 unchanged lines hidden (view full) --- 1875 } 1876 default: 1877 { 1878 break; 1879 } 1880 } 1881 } 1882 |
1883 // #125258# ask if fill is a direct hard attribute (no hierarchy) 1884 bool SvgStyleAttributes::isFillSet() const 1885 { 1886 if(mbIsClipPathContent) 1887 { 1888 return false; 1889 } 1890 else if(maFill.isSet()) 1891 { 1892 return true; 1893 } 1894 1895 return false; 1896 } 1897 |
|
1883 const basegfx::BColor* SvgStyleAttributes::getFill() const 1884 { 1885 if(mbIsClipPathContent) 1886 { 1887 static basegfx::BColor aBlack(0.0, 0.0, 0.0); 1888 1889 return &aBlack; 1890 } --- 697 unchanged lines hidden --- | 1898 const basegfx::BColor* SvgStyleAttributes::getFill() const 1899 { 1900 if(mbIsClipPathContent) 1901 { 1902 static basegfx::BColor aBlack(0.0, 0.0, 0.0); 1903 1904 return &aBlack; 1905 } --- 697 unchanged lines hidden --- |