Kaydet (Commit) aa85e31b authored tarafından Armin Le Grand's avatar Armin Le Grand

#121656# removed const for return-by-value

üst bb9ad24b
...@@ -290,11 +290,11 @@ namespace svgio ...@@ -290,11 +290,11 @@ namespace svgio
void setStopColor(const SvgPaint& rStopColor) { maStopColor = rStopColor; } void setStopColor(const SvgPaint& rStopColor) { maStopColor = rStopColor; }
/// stroke-width content /// stroke-width content
const SvgNumber getStrokeWidth() const; SvgNumber getStrokeWidth() const;
void setStrokeWidth(const SvgNumber& rStrokeWidth = SvgNumber()) { maStrokeWidth = rStrokeWidth; } void setStrokeWidth(const SvgNumber& rStrokeWidth = SvgNumber()) { maStrokeWidth = rStrokeWidth; }
/// stop opacity content /// stop opacity content
const SvgNumber getStopOpacity() const; SvgNumber getStopOpacity() const;
void setStopOpacity(const SvgNumber& rStopOpacity = SvgNumber()) { maStopOpacity = rStopOpacity; } void setStopOpacity(const SvgNumber& rStopOpacity = SvgNumber()) { maStopOpacity = rStopOpacity; }
/// access to evtl. set fill gradient /// access to evtl. set fill gradient
...@@ -314,11 +314,11 @@ namespace svgio ...@@ -314,11 +314,11 @@ namespace svgio
void setSvgPatternNodeStroke(const SvgPatternNode* pNew) { mpSvgPatternNodeStroke = pNew; } void setSvgPatternNodeStroke(const SvgPatternNode* pNew) { mpSvgPatternNodeStroke = pNew; }
/// fill opacity content /// fill opacity content
const SvgNumber getFillOpacity() const; SvgNumber getFillOpacity() const;
void setFillOpacity(const SvgNumber& rFillOpacity = SvgNumber()) { maFillOpacity = rFillOpacity; } void setFillOpacity(const SvgNumber& rFillOpacity = SvgNumber()) { maFillOpacity = rFillOpacity; }
/// fill rule content /// fill rule content
const FillRule getFillRule() const; FillRule getFillRule() const;
void setFillRule(const FillRule aFillRule = FillRule_notset) { maFillRule = aFillRule; } void setFillRule(const FillRule aFillRule = FillRule_notset) { maFillRule = aFillRule; }
/// fill StrokeDasharray content /// fill StrokeDasharray content
...@@ -326,27 +326,27 @@ namespace svgio ...@@ -326,27 +326,27 @@ namespace svgio
void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray = SvgNumberVector()) { maStrokeDasharray = rStrokeDasharray; } void setStrokeDasharray(const SvgNumberVector& rStrokeDasharray = SvgNumberVector()) { maStrokeDasharray = rStrokeDasharray; }
/// #121221# StrokeDasharray needs a set state, it *may* be set to empty by purpose /// #121221# StrokeDasharray needs a set state, it *may* be set to empty by purpose
const bool getStrokeDasharraySet() const { return mbStrokeDasharraySet; } bool getStrokeDasharraySet() const { return mbStrokeDasharraySet; }
void setStrokeDasharraySet(bool bNew) { mbStrokeDasharraySet = bNew; } void setStrokeDasharraySet(bool bNew) { mbStrokeDasharraySet = bNew; }
/// StrokeDashOffset content /// StrokeDashOffset content
const SvgNumber getStrokeDashOffset() const; SvgNumber getStrokeDashOffset() const;
void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset = SvgNumber()) { maStrokeDashOffset = rStrokeDashOffset; } void setStrokeDashOffset(const SvgNumber& rStrokeDashOffset = SvgNumber()) { maStrokeDashOffset = rStrokeDashOffset; }
/// StrokeLinecap content /// StrokeLinecap content
const StrokeLinecap getStrokeLinecap() const; StrokeLinecap getStrokeLinecap() const;
void setStrokeLinecap(const StrokeLinecap aStrokeLinecap = StrokeLinecap_notset) { maStrokeLinecap = aStrokeLinecap; } void setStrokeLinecap(const StrokeLinecap aStrokeLinecap = StrokeLinecap_notset) { maStrokeLinecap = aStrokeLinecap; }
/// StrokeLinejoin content /// StrokeLinejoin content
const StrokeLinejoin getStrokeLinejoin() const; StrokeLinejoin getStrokeLinejoin() const;
void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin = StrokeLinejoin_notset) { maStrokeLinejoin = aStrokeLinejoin; } void setStrokeLinejoin(const StrokeLinejoin aStrokeLinejoin = StrokeLinejoin_notset) { maStrokeLinejoin = aStrokeLinejoin; }
/// StrokeMiterLimit content /// StrokeMiterLimit content
const SvgNumber getStrokeMiterLimit() const; SvgNumber getStrokeMiterLimit() const;
void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit = SvgNumber()) { maStrokeMiterLimit = rStrokeMiterLimit; } void setStrokeMiterLimit(const SvgNumber& rStrokeMiterLimit = SvgNumber()) { maStrokeMiterLimit = rStrokeMiterLimit; }
/// StrokeOpacity content /// StrokeOpacity content
const SvgNumber getStrokeOpacity() const; SvgNumber getStrokeOpacity() const;
void setStrokeOpacity(const SvgNumber& rStrokeOpacity = SvgNumber()) { maStrokeOpacity = rStrokeOpacity; } void setStrokeOpacity(const SvgNumber& rStrokeOpacity = SvgNumber()) { maStrokeOpacity = rStrokeOpacity; }
/// Font content /// Font content
...@@ -354,36 +354,36 @@ namespace svgio ...@@ -354,36 +354,36 @@ namespace svgio
void setFontFamily(const SvgStringVector& rSvgStringVector = SvgStringVector()) { maFontFamily = rSvgStringVector; } void setFontFamily(const SvgStringVector& rSvgStringVector = SvgStringVector()) { maFontFamily = rSvgStringVector; }
/// FontSize content /// FontSize content
const SvgNumber getFontSize() const; SvgNumber getFontSize() const;
void setFontSize(const SvgNumber& rFontSize = SvgNumber()) { maFontSize = rFontSize; } void setFontSize(const SvgNumber& rFontSize = SvgNumber()) { maFontSize = rFontSize; }
/// FontStretch content /// FontStretch content
const FontStretch getFontStretch() const; FontStretch getFontStretch() const;
void setFontStretch(const FontStretch aFontStretch = FontStretch_notset) { maFontStretch = aFontStretch; } void setFontStretch(const FontStretch aFontStretch = FontStretch_notset) { maFontStretch = aFontStretch; }
/// FontStyle content /// FontStyle content
const FontStyle getFontStyle() const; FontStyle getFontStyle() const;
void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; } void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; }
/// FontVariant content /// FontVariant content
const FontVariant getFontVariant() const; FontVariant getFontVariant() const;
void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; } void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; }
/// FontWeight content /// FontWeight content
const FontWeight getFontWeight() const; FontWeight getFontWeight() const;
void setFontWeight(const FontWeight aFontWeight = FontWeight_notset) { maFontWeight = aFontWeight; } void setFontWeight(const FontWeight aFontWeight = FontWeight_notset) { maFontWeight = aFontWeight; }
/// TextAlign content /// TextAlign content
const TextAlign getTextAlign() const; TextAlign getTextAlign() const;
void setTextAlign(const TextAlign aTextAlign = TextAlign_notset) { maTextAlign = aTextAlign; } void setTextAlign(const TextAlign aTextAlign = TextAlign_notset) { maTextAlign = aTextAlign; }
/// TextDecoration content /// TextDecoration content
const SvgStyleAttributes* getTextDecorationDefiningSvgStyleAttributes() const; const SvgStyleAttributes* getTextDecorationDefiningSvgStyleAttributes() const;
const TextDecoration getTextDecoration() const; TextDecoration getTextDecoration() const;
void setTextDecoration(const TextDecoration aTextDecoration = TextDecoration_notset) { maTextDecoration = aTextDecoration; } void setTextDecoration(const TextDecoration aTextDecoration = TextDecoration_notset) { maTextDecoration = aTextDecoration; }
/// TextAnchor content /// TextAnchor content
const TextAnchor getTextAnchor() const; TextAnchor getTextAnchor() const;
void setTextAnchor(const TextAnchor aTextAnchor = TextAnchor_notset) { maTextAnchor = aTextAnchor; } void setTextAnchor(const TextAnchor aTextAnchor = TextAnchor_notset) { maTextAnchor = aTextAnchor; }
/// Color content /// Color content
...@@ -391,7 +391,7 @@ namespace svgio ...@@ -391,7 +391,7 @@ namespace svgio
void setColor(const SvgPaint& rColor) { maColor = rColor; } void setColor(const SvgPaint& rColor) { maColor = rColor; }
/// Opacity content /// Opacity content
const SvgNumber getOpacity() const { return maOpacity; } SvgNumber getOpacity() const { return maOpacity; }
void setOpacity(const SvgNumber& rOpacity = SvgNumber()) { maOpacity = rOpacity; } void setOpacity(const SvgNumber& rOpacity = SvgNumber()) { maOpacity = rOpacity; }
// Title content // Title content
...@@ -411,17 +411,17 @@ namespace svgio ...@@ -411,17 +411,17 @@ namespace svgio
void setMaskXLink(const rtl::OUString& rNew) { maMaskXLink = rNew; } void setMaskXLink(const rtl::OUString& rNew) { maMaskXLink = rNew; }
// MarkerStartXLink content // MarkerStartXLink content
const rtl::OUString getMarkerStartXLink() const; rtl::OUString getMarkerStartXLink() const;
const SvgMarkerNode* accessMarkerStartXLink() const; const SvgMarkerNode* accessMarkerStartXLink() const;
void setMarkerStartXLink(const rtl::OUString& rNew) { maMarkerStartXLink = rNew; } void setMarkerStartXLink(const rtl::OUString& rNew) { maMarkerStartXLink = rNew; }
// MarkerMidXLink content // MarkerMidXLink content
const rtl::OUString getMarkerMidXLink() const; rtl::OUString getMarkerMidXLink() const;
const SvgMarkerNode* accessMarkerMidXLink() const; const SvgMarkerNode* accessMarkerMidXLink() const;
void setMarkerMidXLink(const rtl::OUString& rNew) { maMarkerMidXLink = rNew; } void setMarkerMidXLink(const rtl::OUString& rNew) { maMarkerMidXLink = rNew; }
// MarkerEndXLink content // MarkerEndXLink content
const rtl::OUString getMarkerEndXLink() const; rtl::OUString getMarkerEndXLink() const;
const SvgMarkerNode* accessMarkerEndXLink() const; const SvgMarkerNode* accessMarkerEndXLink() const;
void setMarkerEndXLink(const rtl::OUString& rNew) { maMarkerEndXLink = rNew; } void setMarkerEndXLink(const rtl::OUString& rNew) { maMarkerEndXLink = rNew; }
......
...@@ -1961,7 +1961,7 @@ namespace svgio ...@@ -1961,7 +1961,7 @@ namespace svgio
return 0; return 0;
} }
const SvgNumber SvgStyleAttributes::getStrokeWidth() const SvgNumber SvgStyleAttributes::getStrokeWidth() const
{ {
if(mbIsClipPathContent) if(mbIsClipPathContent)
{ {
...@@ -1983,7 +1983,7 @@ namespace svgio ...@@ -1983,7 +1983,7 @@ namespace svgio
return SvgNumber(1.0); return SvgNumber(1.0);
} }
const SvgNumber SvgStyleAttributes::getStopOpacity() const SvgNumber SvgStyleAttributes::getStopOpacity() const
{ {
if(maStopOpacity.isSet()) if(maStopOpacity.isSet())
{ {
...@@ -1994,7 +1994,7 @@ namespace svgio ...@@ -1994,7 +1994,7 @@ namespace svgio
return SvgNumber(1.0); return SvgNumber(1.0);
} }
const SvgNumber SvgStyleAttributes::getFillOpacity() const SvgNumber SvgStyleAttributes::getFillOpacity() const
{ {
if(mbIsClipPathContent) if(mbIsClipPathContent)
{ {
...@@ -2016,7 +2016,7 @@ namespace svgio ...@@ -2016,7 +2016,7 @@ namespace svgio
return SvgNumber(1.0); return SvgNumber(1.0);
} }
const FillRule SvgStyleAttributes::getFillRule() const FillRule SvgStyleAttributes::getFillRule() const
{ {
if(FillRule_notset != maFillRule) if(FillRule_notset != maFillRule)
{ {
...@@ -2057,7 +2057,7 @@ namespace svgio ...@@ -2057,7 +2057,7 @@ namespace svgio
return maStrokeDasharray; return maStrokeDasharray;
} }
const SvgNumber SvgStyleAttributes::getStrokeDashOffset() const SvgNumber SvgStyleAttributes::getStrokeDashOffset() const
{ {
if(maStrokeDashOffset.isSet()) if(maStrokeDashOffset.isSet())
{ {
...@@ -2075,7 +2075,7 @@ namespace svgio ...@@ -2075,7 +2075,7 @@ namespace svgio
return SvgNumber(0.0); return SvgNumber(0.0);
} }
const StrokeLinecap SvgStyleAttributes::getStrokeLinecap() const StrokeLinecap SvgStyleAttributes::getStrokeLinecap() const
{ {
if(maStrokeLinecap != StrokeLinecap_notset) if(maStrokeLinecap != StrokeLinecap_notset)
{ {
...@@ -2093,7 +2093,7 @@ namespace svgio ...@@ -2093,7 +2093,7 @@ namespace svgio
return StrokeLinecap_butt; return StrokeLinecap_butt;
} }
const StrokeLinejoin SvgStyleAttributes::getStrokeLinejoin() const StrokeLinejoin SvgStyleAttributes::getStrokeLinejoin() const
{ {
if(maStrokeLinejoin != StrokeLinejoin_notset) if(maStrokeLinejoin != StrokeLinejoin_notset)
{ {
...@@ -2111,7 +2111,7 @@ namespace svgio ...@@ -2111,7 +2111,7 @@ namespace svgio
return StrokeLinejoin_miter; return StrokeLinejoin_miter;
} }
const SvgNumber SvgStyleAttributes::getStrokeMiterLimit() const SvgNumber SvgStyleAttributes::getStrokeMiterLimit() const
{ {
if(maStrokeMiterLimit.isSet()) if(maStrokeMiterLimit.isSet())
{ {
...@@ -2129,7 +2129,7 @@ namespace svgio ...@@ -2129,7 +2129,7 @@ namespace svgio
return SvgNumber(4.0); return SvgNumber(4.0);
} }
const SvgNumber SvgStyleAttributes::getStrokeOpacity() const SvgNumber SvgStyleAttributes::getStrokeOpacity() const
{ {
if(maStrokeOpacity.isSet()) if(maStrokeOpacity.isSet())
{ {
...@@ -2165,7 +2165,7 @@ namespace svgio ...@@ -2165,7 +2165,7 @@ namespace svgio
return maFontFamily; return maFontFamily;
} }
const SvgNumber SvgStyleAttributes::getFontSize() const SvgNumber SvgStyleAttributes::getFontSize() const
{ {
if(maFontSize.isSet()) if(maFontSize.isSet())
{ {
...@@ -2183,7 +2183,7 @@ namespace svgio ...@@ -2183,7 +2183,7 @@ namespace svgio
return SvgNumber(12.0); return SvgNumber(12.0);
} }
const FontStretch SvgStyleAttributes::getFontStretch() const FontStretch SvgStyleAttributes::getFontStretch() const
{ {
if(maFontStretch != FontStretch_notset) if(maFontStretch != FontStretch_notset)
{ {
...@@ -2215,7 +2215,7 @@ namespace svgio ...@@ -2215,7 +2215,7 @@ namespace svgio
return FontStretch_normal; return FontStretch_normal;
} }
const FontStyle SvgStyleAttributes::getFontStyle() const FontStyle SvgStyleAttributes::getFontStyle() const
{ {
if(maFontStyle != FontStyle_notset) if(maFontStyle != FontStyle_notset)
{ {
...@@ -2233,7 +2233,7 @@ namespace svgio ...@@ -2233,7 +2233,7 @@ namespace svgio
return FontStyle_normal; return FontStyle_normal;
} }
const FontWeight SvgStyleAttributes::getFontWeight() const FontWeight SvgStyleAttributes::getFontWeight() const
{ {
if(maFontWeight != FontWeight_notset) if(maFontWeight != FontWeight_notset)
{ {
...@@ -2265,7 +2265,7 @@ namespace svgio ...@@ -2265,7 +2265,7 @@ namespace svgio
return FontWeight_400; return FontWeight_400;
} }
const TextAlign SvgStyleAttributes::getTextAlign() const TextAlign SvgStyleAttributes::getTextAlign() const
{ {
if(maTextAlign != TextAlign_notset) if(maTextAlign != TextAlign_notset)
{ {
...@@ -2301,7 +2301,7 @@ namespace svgio ...@@ -2301,7 +2301,7 @@ namespace svgio
return 0; return 0;
} }
const TextDecoration SvgStyleAttributes::getTextDecoration() const TextDecoration SvgStyleAttributes::getTextDecoration() const
{ {
const SvgStyleAttributes* pDefining = getTextDecorationDefiningSvgStyleAttributes(); const SvgStyleAttributes* pDefining = getTextDecorationDefiningSvgStyleAttributes();
...@@ -2316,7 +2316,7 @@ namespace svgio ...@@ -2316,7 +2316,7 @@ namespace svgio
} }
} }
const TextAnchor SvgStyleAttributes::getTextAnchor() const TextAnchor SvgStyleAttributes::getTextAnchor() const
{ {
if(maTextAnchor != TextAnchor_notset) if(maTextAnchor != TextAnchor_notset)
{ {
...@@ -2361,7 +2361,7 @@ namespace svgio ...@@ -2361,7 +2361,7 @@ namespace svgio
return 0; return 0;
} }
const rtl::OUString SvgStyleAttributes::getMarkerStartXLink() const rtl::OUString SvgStyleAttributes::getMarkerStartXLink() const
{ {
if(maMarkerStartXLink.getLength()) if(maMarkerStartXLink.getLength())
{ {
...@@ -2393,7 +2393,7 @@ namespace svgio ...@@ -2393,7 +2393,7 @@ namespace svgio
return mpMarkerStartXLink; return mpMarkerStartXLink;
} }
const rtl::OUString SvgStyleAttributes::getMarkerMidXLink() const rtl::OUString SvgStyleAttributes::getMarkerMidXLink() const
{ {
if(maMarkerMidXLink.getLength()) if(maMarkerMidXLink.getLength())
{ {
...@@ -2425,7 +2425,7 @@ namespace svgio ...@@ -2425,7 +2425,7 @@ namespace svgio
return mpMarkerMidXLink; return mpMarkerMidXLink;
} }
const rtl::OUString SvgStyleAttributes::getMarkerEndXLink() const rtl::OUString SvgStyleAttributes::getMarkerEndXLink() const
{ {
if(maMarkerEndXLink.getLength()) if(maMarkerEndXLink.getLength())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment