From 14d0fbe96c6abdb9da80e99953aec672f999948c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Dec 2020 19:22:19 +0900 Subject: Renaming of files in preparation for code style tools. Signed-off-by: Michele Calgaro --- ksvg/dom/CMakeLists.txt | 92 +++--- ksvg/dom/Makefile.am | 42 +-- ksvg/dom/SVGAElement.cc | 78 ----- ksvg/dom/SVGAElement.cpp | 78 +++++ ksvg/dom/SVGAltGlyphDefElement.cc | 65 ----- ksvg/dom/SVGAltGlyphDefElement.cpp | 65 +++++ ksvg/dom/SVGAltGlyphElement.cc | 78 ----- ksvg/dom/SVGAltGlyphElement.cpp | 78 +++++ ksvg/dom/SVGAngle.cc | 118 -------- ksvg/dom/SVGAngle.cpp | 118 ++++++++ ksvg/dom/SVGAnimateColorElement.cc | 65 ----- ksvg/dom/SVGAnimateColorElement.cpp | 65 +++++ ksvg/dom/SVGAnimateElement.cc | 65 ----- ksvg/dom/SVGAnimateElement.cpp | 65 +++++ ksvg/dom/SVGAnimateMotionElement.cc | 63 ---- ksvg/dom/SVGAnimateMotionElement.cpp | 63 ++++ ksvg/dom/SVGAnimateTransformElement.cc | 65 ----- ksvg/dom/SVGAnimateTransformElement.cpp | 65 +++++ ksvg/dom/SVGAnimatedAngle.cc | 77 ----- ksvg/dom/SVGAnimatedAngle.cpp | 77 +++++ ksvg/dom/SVGAnimatedBoolean.cc | 82 ------ ksvg/dom/SVGAnimatedBoolean.cpp | 82 ++++++ ksvg/dom/SVGAnimatedEnumeration.cc | 82 ------ ksvg/dom/SVGAnimatedEnumeration.cpp | 82 ++++++ ksvg/dom/SVGAnimatedInteger.cc | 82 ------ ksvg/dom/SVGAnimatedInteger.cpp | 82 ++++++ ksvg/dom/SVGAnimatedLength.cc | 77 ----- ksvg/dom/SVGAnimatedLength.cpp | 77 +++++ ksvg/dom/SVGAnimatedLengthList.cc | 76 ----- ksvg/dom/SVGAnimatedLengthList.cpp | 76 +++++ ksvg/dom/SVGAnimatedNumber.cc | 82 ------ ksvg/dom/SVGAnimatedNumber.cpp | 82 ++++++ ksvg/dom/SVGAnimatedNumberList.cc | 76 ----- ksvg/dom/SVGAnimatedNumberList.cpp | 76 +++++ ksvg/dom/SVGAnimatedPathData.cc | 89 ------ ksvg/dom/SVGAnimatedPathData.cpp | 89 ++++++ ksvg/dom/SVGAnimatedPoints.cc | 77 ----- ksvg/dom/SVGAnimatedPoints.cpp | 77 +++++ ksvg/dom/SVGAnimatedPreserveAspectRatio.cc | 77 ----- ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp | 77 +++++ ksvg/dom/SVGAnimatedRect.cc | 77 ----- ksvg/dom/SVGAnimatedRect.cpp | 77 +++++ ksvg/dom/SVGAnimatedString.cc | 82 ------ ksvg/dom/SVGAnimatedString.cpp | 82 ++++++ ksvg/dom/SVGAnimatedTransformList.cc | 77 ----- ksvg/dom/SVGAnimatedTransformList.cpp | 77 +++++ ksvg/dom/SVGAnimationElement.cc | 91 ------ ksvg/dom/SVGAnimationElement.cpp | 91 ++++++ ksvg/dom/SVGCSSRule.cc | 64 ----- ksvg/dom/SVGCSSRule.cpp | 64 +++++ ksvg/dom/SVGCircleElement.cc | 90 ------ ksvg/dom/SVGCircleElement.cpp | 90 ++++++ ksvg/dom/SVGClipPathElement.cc | 77 ----- ksvg/dom/SVGClipPathElement.cpp | 77 +++++ ksvg/dom/SVGColor.cc | 103 ------- ksvg/dom/SVGColor.cpp | 103 +++++++ ksvg/dom/SVGColorProfileElement.cc | 103 ------- ksvg/dom/SVGColorProfileElement.cpp | 103 +++++++ ksvg/dom/SVGColorProfileRule.cc | 101 ------- ksvg/dom/SVGColorProfileRule.cpp | 101 +++++++ ksvg/dom/SVGComponentTransferFunctionElement.cc | 110 ------- ksvg/dom/SVGComponentTransferFunctionElement.cpp | 110 +++++++ ksvg/dom/SVGCursorElement.cc | 81 ------ ksvg/dom/SVGCursorElement.cpp | 81 ++++++ ksvg/dom/SVGDefinitionSrcElement.cc | 65 ----- ksvg/dom/SVGDefinitionSrcElement.cpp | 65 +++++ ksvg/dom/SVGDefsElement.cc | 70 ----- ksvg/dom/SVGDefsElement.cpp | 70 +++++ ksvg/dom/SVGDescElement.cc | 67 ----- ksvg/dom/SVGDescElement.cpp | 67 +++++ ksvg/dom/SVGDocument.cc | 136 --------- ksvg/dom/SVGDocument.cpp | 136 +++++++++ ksvg/dom/SVGElement.cc | 122 -------- ksvg/dom/SVGElement.cpp | 122 ++++++++ ksvg/dom/SVGElementInstance.cc | 115 -------- ksvg/dom/SVGElementInstance.cpp | 115 ++++++++ ksvg/dom/SVGElementInstanceList.cc | 77 ----- ksvg/dom/SVGElementInstanceList.cpp | 77 +++++ ksvg/dom/SVGEllipseElement.cc | 96 ------- ksvg/dom/SVGEllipseElement.cpp | 96 +++++++ ksvg/dom/SVGEvent.cc | 185 ------------ ksvg/dom/SVGEvent.cpp | 185 ++++++++++++ ksvg/dom/SVGExternalResourcesRequired.cc | 63 ---- ksvg/dom/SVGExternalResourcesRequired.cpp | 63 ++++ ksvg/dom/SVGFEBlendElement.cc | 86 ------ ksvg/dom/SVGFEBlendElement.cpp | 86 ++++++ ksvg/dom/SVGFEColorMatrixElement.cc | 87 ------ ksvg/dom/SVGFEColorMatrixElement.cpp | 87 ++++++ ksvg/dom/SVGFEComponentTransferElement.cc | 73 ----- ksvg/dom/SVGFEComponentTransferElement.cpp | 73 +++++ ksvg/dom/SVGFECompositeElement.cc | 111 ------- ksvg/dom/SVGFECompositeElement.cpp | 111 +++++++ ksvg/dom/SVGFEConvolveMatrixElement.cc | 138 --------- ksvg/dom/SVGFEConvolveMatrixElement.cpp | 138 +++++++++ ksvg/dom/SVGFEDiffuseLightingElement.cc | 86 ------ ksvg/dom/SVGFEDiffuseLightingElement.cpp | 86 ++++++ ksvg/dom/SVGFEDisplacementMapElement.cc | 99 ------- ksvg/dom/SVGFEDisplacementMapElement.cpp | 99 +++++++ ksvg/dom/SVGFEDistantLightElement.cc | 78 ----- ksvg/dom/SVGFEDistantLightElement.cpp | 78 +++++ ksvg/dom/SVGFEFloodElement.cc | 74 ----- ksvg/dom/SVGFEFloodElement.cpp | 74 +++++ ksvg/dom/SVGFEFuncAElement.cc | 65 ----- ksvg/dom/SVGFEFuncAElement.cpp | 65 +++++ ksvg/dom/SVGFEFuncBElement.cc | 65 ----- ksvg/dom/SVGFEFuncBElement.cpp | 65 +++++ ksvg/dom/SVGFEFuncGElement.cc | 65 ----- ksvg/dom/SVGFEFuncGElement.cpp | 65 +++++ ksvg/dom/SVGFEFuncRElement.cc | 65 ----- ksvg/dom/SVGFEFuncRElement.cpp | 65 +++++ ksvg/dom/SVGFEGaussianBlurElement.cc | 92 ------ ksvg/dom/SVGFEGaussianBlurElement.cpp | 92 ++++++ ksvg/dom/SVGFEImageElement.cc | 70 ----- ksvg/dom/SVGFEImageElement.cpp | 70 +++++ ksvg/dom/SVGFEMergeElement.cc | 66 ----- ksvg/dom/SVGFEMergeElement.cpp | 66 +++++ ksvg/dom/SVGFEMergeNodeElement.cc | 72 ----- ksvg/dom/SVGFEMergeNodeElement.cpp | 72 +++++ ksvg/dom/SVGFEMorphologyElement.cc | 93 ------ ksvg/dom/SVGFEMorphologyElement.cpp | 93 ++++++ ksvg/dom/SVGFEOffsetElement.cc | 86 ------ ksvg/dom/SVGFEOffsetElement.cpp | 86 ++++++ ksvg/dom/SVGFEPointLightElement.cc | 84 ------ ksvg/dom/SVGFEPointLightElement.cpp | 84 ++++++ ksvg/dom/SVGFESpecularLightingElement.cc | 92 ------ ksvg/dom/SVGFESpecularLightingElement.cpp | 92 ++++++ ksvg/dom/SVGFESpotLightElement.cc | 114 -------- ksvg/dom/SVGFESpotLightElement.cpp | 114 ++++++++ ksvg/dom/SVGFETileElement.cc | 73 ----- ksvg/dom/SVGFETileElement.cpp | 73 +++++ ksvg/dom/SVGFETurbulenceElement.cc | 105 ------- ksvg/dom/SVGFETurbulenceElement.cpp | 105 +++++++ ksvg/dom/SVGFilterElement.cc | 126 -------- ksvg/dom/SVGFilterElement.cpp | 126 ++++++++ ksvg/dom/SVGFilterPrimitiveStandardAttributes.cc | 86 ------ ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp | 86 ++++++ ksvg/dom/SVGFitToViewBox.cc | 70 ----- ksvg/dom/SVGFitToViewBox.cpp | 70 +++++ ksvg/dom/SVGFontElement.cc | 67 ----- ksvg/dom/SVGFontElement.cpp | 67 +++++ ksvg/dom/SVGFontFaceElement.cc | 65 ----- ksvg/dom/SVGFontFaceElement.cpp | 65 +++++ ksvg/dom/SVGFontFaceFormatElement.cc | 65 ----- ksvg/dom/SVGFontFaceFormatElement.cpp | 65 +++++ ksvg/dom/SVGFontFaceNameElement.cc | 65 ----- ksvg/dom/SVGFontFaceNameElement.cpp | 65 +++++ ksvg/dom/SVGFontFaceSrcElement.cc | 65 ----- ksvg/dom/SVGFontFaceSrcElement.cpp | 65 +++++ ksvg/dom/SVGFontFaceUriElement.cc | 65 ----- ksvg/dom/SVGFontFaceUriElement.cpp | 65 +++++ ksvg/dom/SVGForeignObjectElement.cc | 95 ------ ksvg/dom/SVGForeignObjectElement.cpp | 95 ++++++ ksvg/dom/SVGGElement.cc | 70 ----- ksvg/dom/SVGGElement.cpp | 70 +++++ ksvg/dom/SVGGlyphElement.cc | 66 ----- ksvg/dom/SVGGlyphElement.cpp | 66 +++++ ksvg/dom/SVGGlyphRefElement.cc | 79 ----- ksvg/dom/SVGGlyphRefElement.cpp | 79 +++++ ksvg/dom/SVGGradientElement.cc | 78 ----- ksvg/dom/SVGGradientElement.cpp | 78 +++++ ksvg/dom/SVGHKernElement.cc | 65 ----- ksvg/dom/SVGHKernElement.cpp | 65 +++++ ksvg/dom/SVGICCColor.cc | 83 ------ ksvg/dom/SVGICCColor.cpp | 83 ++++++ ksvg/dom/SVGImageElement.cc | 104 ------- ksvg/dom/SVGImageElement.cpp | 104 +++++++ ksvg/dom/SVGLangSpace.cc | 80 ------ ksvg/dom/SVGLangSpace.cpp | 80 ++++++ ksvg/dom/SVGLength.cc | 133 --------- ksvg/dom/SVGLength.cpp | 133 +++++++++ ksvg/dom/SVGLengthList.cc | 113 -------- ksvg/dom/SVGLengthList.cpp | 113 ++++++++ ksvg/dom/SVGLineElement.cc | 96 ------- ksvg/dom/SVGLineElement.cpp | 96 +++++++ ksvg/dom/SVGLinearGradientElement.cc | 90 ------ ksvg/dom/SVGLinearGradientElement.cpp | 90 ++++++ ksvg/dom/SVGLocatable.cc | 95 ------ ksvg/dom/SVGLocatable.cpp | 95 ++++++ ksvg/dom/SVGMPathElement.cc | 67 ----- ksvg/dom/SVGMPathElement.cpp | 67 +++++ ksvg/dom/SVGMarkerElement.cc | 127 -------- ksvg/dom/SVGMarkerElement.cpp | 127 ++++++++ ksvg/dom/SVGMaskElement.cc | 107 ------- ksvg/dom/SVGMaskElement.cpp | 107 +++++++ ksvg/dom/SVGMatrix.cc | 208 -------------- ksvg/dom/SVGMatrix.cpp | 208 ++++++++++++++ ksvg/dom/SVGMetadataElement.cc | 65 ----- ksvg/dom/SVGMetadataElement.cpp | 65 +++++ ksvg/dom/SVGMissingGlyphElement.cc | 66 ----- ksvg/dom/SVGMissingGlyphElement.cpp | 66 +++++ ksvg/dom/SVGNumber.cc | 76 ----- ksvg/dom/SVGNumber.cpp | 76 +++++ ksvg/dom/SVGNumberList.cc | 113 -------- ksvg/dom/SVGNumberList.cpp | 113 ++++++++ ksvg/dom/SVGPaint.cc | 91 ------ ksvg/dom/SVGPaint.cpp | 91 ++++++ ksvg/dom/SVGPathElement.cc | 198 ------------- ksvg/dom/SVGPathElement.cpp | 198 +++++++++++++ ksvg/dom/SVGPathSeg.cc | 67 ----- ksvg/dom/SVGPathSeg.cpp | 67 +++++ ksvg/dom/SVGPathSegArc.cc | 236 --------------- ksvg/dom/SVGPathSegArc.cpp | 236 +++++++++++++++ ksvg/dom/SVGPathSegClosePath.cc | 44 --- ksvg/dom/SVGPathSegClosePath.cpp | 44 +++ ksvg/dom/SVGPathSegCurvetoCubic.cc | 212 -------------- ksvg/dom/SVGPathSegCurvetoCubic.cpp | 212 ++++++++++++++ ksvg/dom/SVGPathSegCurvetoCubicSmooth.cc | 164 ----------- ksvg/dom/SVGPathSegCurvetoCubicSmooth.cpp | 164 +++++++++++ ksvg/dom/SVGPathSegCurvetoQuadratic.cc | 164 ----------- ksvg/dom/SVGPathSegCurvetoQuadratic.cpp | 164 +++++++++++ ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cc | 116 -------- ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cpp | 116 ++++++++ ksvg/dom/SVGPathSegLineto.cc | 116 -------- ksvg/dom/SVGPathSegLineto.cpp | 116 ++++++++ ksvg/dom/SVGPathSegLinetoHorizontal.cc | 92 ------ ksvg/dom/SVGPathSegLinetoHorizontal.cpp | 92 ++++++ ksvg/dom/SVGPathSegLinetoVertical.cc | 92 ------ ksvg/dom/SVGPathSegLinetoVertical.cpp | 92 ++++++ ksvg/dom/SVGPathSegList.cc | 112 -------- ksvg/dom/SVGPathSegList.cpp | 112 ++++++++ ksvg/dom/SVGPathSegMoveto.cc | 116 -------- ksvg/dom/SVGPathSegMoveto.cpp | 116 ++++++++ ksvg/dom/SVGPatternElement.cc | 115 -------- ksvg/dom/SVGPatternElement.cpp | 115 ++++++++ ksvg/dom/SVGPoint.cc | 95 ------ ksvg/dom/SVGPoint.cpp | 95 ++++++ ksvg/dom/SVGPointList.cc | 114 -------- ksvg/dom/SVGPointList.cpp | 114 ++++++++ ksvg/dom/SVGPolygonElement.cc | 84 ------ ksvg/dom/SVGPolygonElement.cpp | 84 ++++++ ksvg/dom/SVGPolylineElement.cc | 85 ------ ksvg/dom/SVGPolylineElement.cpp | 85 ++++++ ksvg/dom/SVGPreserveAspectRatio.cc | 79 ----- ksvg/dom/SVGPreserveAspectRatio.cpp | 79 +++++ ksvg/dom/SVGRadialGradientElement.cc | 96 ------- ksvg/dom/SVGRadialGradientElement.cpp | 96 +++++++ ksvg/dom/SVGRect.cc | 112 -------- ksvg/dom/SVGRect.cpp | 112 ++++++++ ksvg/dom/SVGRectElement.cc | 107 ------- ksvg/dom/SVGRectElement.cpp | 107 +++++++ ksvg/dom/SVGSVGElement.cc | 335 ---------------------- ksvg/dom/SVGSVGElement.cpp | 335 ++++++++++++++++++++++ ksvg/dom/SVGScriptElement.cc | 79 ----- ksvg/dom/SVGScriptElement.cpp | 79 +++++ ksvg/dom/SVGSetElement.cc | 65 ----- ksvg/dom/SVGSetElement.cpp | 65 +++++ ksvg/dom/SVGStopElement.cc | 73 ----- ksvg/dom/SVGStopElement.cpp | 73 +++++ ksvg/dom/SVGStringList.cc | 113 -------- ksvg/dom/SVGStringList.cpp | 113 ++++++++ ksvg/dom/SVGStylable.cc | 74 ----- ksvg/dom/SVGStylable.cpp | 74 +++++ ksvg/dom/SVGStyleElement.cc | 113 -------- ksvg/dom/SVGStyleElement.cpp | 113 ++++++++ ksvg/dom/SVGSwitchElement.cc | 70 ----- ksvg/dom/SVGSwitchElement.cpp | 70 +++++ ksvg/dom/SVGSymbolElement.cc | 69 ----- ksvg/dom/SVGSymbolElement.cpp | 69 +++++ ksvg/dom/SVGTRefElement.cc | 66 ----- ksvg/dom/SVGTRefElement.cpp | 66 +++++ ksvg/dom/SVGTSpanElement.cc | 65 ----- ksvg/dom/SVGTSpanElement.cpp | 65 +++++ ksvg/dom/SVGTests.cc | 81 ------ ksvg/dom/SVGTests.cpp | 81 ++++++ ksvg/dom/SVGTextContentElement.cc | 120 -------- ksvg/dom/SVGTextContentElement.cpp | 120 ++++++++ ksvg/dom/SVGTextElement.cc | 68 ----- ksvg/dom/SVGTextElement.cpp | 68 +++++ ksvg/dom/SVGTextPathElement.cc | 87 ------ ksvg/dom/SVGTextPathElement.cpp | 87 ++++++ ksvg/dom/SVGTextPositioningElement.cc | 85 ------ ksvg/dom/SVGTextPositioningElement.cpp | 85 ++++++ ksvg/dom/SVGTitleElement.cc | 67 ----- ksvg/dom/SVGTitleElement.cpp | 67 +++++ ksvg/dom/SVGTransform.cc | 117 -------- ksvg/dom/SVGTransform.cpp | 117 ++++++++ ksvg/dom/SVGTransformList.cc | 127 -------- ksvg/dom/SVGTransformList.cpp | 127 ++++++++ ksvg/dom/SVGTransformable.cc | 65 ----- ksvg/dom/SVGTransformable.cpp | 65 +++++ ksvg/dom/SVGURIReference.cc | 61 ---- ksvg/dom/SVGURIReference.cpp | 61 ++++ ksvg/dom/SVGUseElement.cc | 109 ------- ksvg/dom/SVGUseElement.cpp | 109 +++++++ ksvg/dom/SVGVKernElement.cc | 65 ----- ksvg/dom/SVGVKernElement.cpp | 65 +++++ ksvg/dom/SVGViewElement.cc | 75 ----- ksvg/dom/SVGViewElement.cpp | 75 +++++ ksvg/dom/SVGViewSpec.cc | 105 ------- ksvg/dom/SVGViewSpec.cpp | 105 +++++++ ksvg/dom/SVGWindow.cc | 173 ----------- ksvg/dom/SVGWindow.cpp | 173 +++++++++++ ksvg/dom/SVGZoomAndPan.cc | 68 ----- ksvg/dom/SVGZoomAndPan.cpp | 68 +++++ ksvg/dom/SVGZoomEvent.cc | 97 ------- ksvg/dom/SVGZoomEvent.cpp | 97 +++++++ 296 files changed, 13781 insertions(+), 13781 deletions(-) delete mode 100644 ksvg/dom/SVGAElement.cc create mode 100644 ksvg/dom/SVGAElement.cpp delete mode 100644 ksvg/dom/SVGAltGlyphDefElement.cc create mode 100644 ksvg/dom/SVGAltGlyphDefElement.cpp delete mode 100644 ksvg/dom/SVGAltGlyphElement.cc create mode 100644 ksvg/dom/SVGAltGlyphElement.cpp delete mode 100644 ksvg/dom/SVGAngle.cc create mode 100644 ksvg/dom/SVGAngle.cpp delete mode 100644 ksvg/dom/SVGAnimateColorElement.cc create mode 100644 ksvg/dom/SVGAnimateColorElement.cpp delete mode 100644 ksvg/dom/SVGAnimateElement.cc create mode 100644 ksvg/dom/SVGAnimateElement.cpp delete mode 100644 ksvg/dom/SVGAnimateMotionElement.cc create mode 100644 ksvg/dom/SVGAnimateMotionElement.cpp delete mode 100644 ksvg/dom/SVGAnimateTransformElement.cc create mode 100644 ksvg/dom/SVGAnimateTransformElement.cpp delete mode 100644 ksvg/dom/SVGAnimatedAngle.cc create mode 100644 ksvg/dom/SVGAnimatedAngle.cpp delete mode 100644 ksvg/dom/SVGAnimatedBoolean.cc create mode 100644 ksvg/dom/SVGAnimatedBoolean.cpp delete mode 100644 ksvg/dom/SVGAnimatedEnumeration.cc create mode 100644 ksvg/dom/SVGAnimatedEnumeration.cpp delete mode 100644 ksvg/dom/SVGAnimatedInteger.cc create mode 100644 ksvg/dom/SVGAnimatedInteger.cpp delete mode 100644 ksvg/dom/SVGAnimatedLength.cc create mode 100644 ksvg/dom/SVGAnimatedLength.cpp delete mode 100644 ksvg/dom/SVGAnimatedLengthList.cc create mode 100644 ksvg/dom/SVGAnimatedLengthList.cpp delete mode 100644 ksvg/dom/SVGAnimatedNumber.cc create mode 100644 ksvg/dom/SVGAnimatedNumber.cpp delete mode 100644 ksvg/dom/SVGAnimatedNumberList.cc create mode 100644 ksvg/dom/SVGAnimatedNumberList.cpp delete mode 100644 ksvg/dom/SVGAnimatedPathData.cc create mode 100644 ksvg/dom/SVGAnimatedPathData.cpp delete mode 100644 ksvg/dom/SVGAnimatedPoints.cc create mode 100644 ksvg/dom/SVGAnimatedPoints.cpp delete mode 100644 ksvg/dom/SVGAnimatedPreserveAspectRatio.cc create mode 100644 ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp delete mode 100644 ksvg/dom/SVGAnimatedRect.cc create mode 100644 ksvg/dom/SVGAnimatedRect.cpp delete mode 100644 ksvg/dom/SVGAnimatedString.cc create mode 100644 ksvg/dom/SVGAnimatedString.cpp delete mode 100644 ksvg/dom/SVGAnimatedTransformList.cc create mode 100644 ksvg/dom/SVGAnimatedTransformList.cpp delete mode 100644 ksvg/dom/SVGAnimationElement.cc create mode 100644 ksvg/dom/SVGAnimationElement.cpp delete mode 100644 ksvg/dom/SVGCSSRule.cc create mode 100644 ksvg/dom/SVGCSSRule.cpp delete mode 100644 ksvg/dom/SVGCircleElement.cc create mode 100644 ksvg/dom/SVGCircleElement.cpp delete mode 100644 ksvg/dom/SVGClipPathElement.cc create mode 100644 ksvg/dom/SVGClipPathElement.cpp delete mode 100644 ksvg/dom/SVGColor.cc create mode 100644 ksvg/dom/SVGColor.cpp delete mode 100644 ksvg/dom/SVGColorProfileElement.cc create mode 100644 ksvg/dom/SVGColorProfileElement.cpp delete mode 100644 ksvg/dom/SVGColorProfileRule.cc create mode 100644 ksvg/dom/SVGColorProfileRule.cpp delete mode 100644 ksvg/dom/SVGComponentTransferFunctionElement.cc create mode 100644 ksvg/dom/SVGComponentTransferFunctionElement.cpp delete mode 100644 ksvg/dom/SVGCursorElement.cc create mode 100644 ksvg/dom/SVGCursorElement.cpp delete mode 100644 ksvg/dom/SVGDefinitionSrcElement.cc create mode 100644 ksvg/dom/SVGDefinitionSrcElement.cpp delete mode 100644 ksvg/dom/SVGDefsElement.cc create mode 100644 ksvg/dom/SVGDefsElement.cpp delete mode 100644 ksvg/dom/SVGDescElement.cc create mode 100644 ksvg/dom/SVGDescElement.cpp delete mode 100644 ksvg/dom/SVGDocument.cc create mode 100644 ksvg/dom/SVGDocument.cpp delete mode 100644 ksvg/dom/SVGElement.cc create mode 100644 ksvg/dom/SVGElement.cpp delete mode 100644 ksvg/dom/SVGElementInstance.cc create mode 100644 ksvg/dom/SVGElementInstance.cpp delete mode 100644 ksvg/dom/SVGElementInstanceList.cc create mode 100644 ksvg/dom/SVGElementInstanceList.cpp delete mode 100644 ksvg/dom/SVGEllipseElement.cc create mode 100644 ksvg/dom/SVGEllipseElement.cpp delete mode 100644 ksvg/dom/SVGEvent.cc create mode 100644 ksvg/dom/SVGEvent.cpp delete mode 100644 ksvg/dom/SVGExternalResourcesRequired.cc create mode 100644 ksvg/dom/SVGExternalResourcesRequired.cpp delete mode 100644 ksvg/dom/SVGFEBlendElement.cc create mode 100644 ksvg/dom/SVGFEBlendElement.cpp delete mode 100644 ksvg/dom/SVGFEColorMatrixElement.cc create mode 100644 ksvg/dom/SVGFEColorMatrixElement.cpp delete mode 100644 ksvg/dom/SVGFEComponentTransferElement.cc create mode 100644 ksvg/dom/SVGFEComponentTransferElement.cpp delete mode 100644 ksvg/dom/SVGFECompositeElement.cc create mode 100644 ksvg/dom/SVGFECompositeElement.cpp delete mode 100644 ksvg/dom/SVGFEConvolveMatrixElement.cc create mode 100644 ksvg/dom/SVGFEConvolveMatrixElement.cpp delete mode 100644 ksvg/dom/SVGFEDiffuseLightingElement.cc create mode 100644 ksvg/dom/SVGFEDiffuseLightingElement.cpp delete mode 100644 ksvg/dom/SVGFEDisplacementMapElement.cc create mode 100644 ksvg/dom/SVGFEDisplacementMapElement.cpp delete mode 100644 ksvg/dom/SVGFEDistantLightElement.cc create mode 100644 ksvg/dom/SVGFEDistantLightElement.cpp delete mode 100644 ksvg/dom/SVGFEFloodElement.cc create mode 100644 ksvg/dom/SVGFEFloodElement.cpp delete mode 100644 ksvg/dom/SVGFEFuncAElement.cc create mode 100644 ksvg/dom/SVGFEFuncAElement.cpp delete mode 100644 ksvg/dom/SVGFEFuncBElement.cc create mode 100644 ksvg/dom/SVGFEFuncBElement.cpp delete mode 100644 ksvg/dom/SVGFEFuncGElement.cc create mode 100644 ksvg/dom/SVGFEFuncGElement.cpp delete mode 100644 ksvg/dom/SVGFEFuncRElement.cc create mode 100644 ksvg/dom/SVGFEFuncRElement.cpp delete mode 100644 ksvg/dom/SVGFEGaussianBlurElement.cc create mode 100644 ksvg/dom/SVGFEGaussianBlurElement.cpp delete mode 100644 ksvg/dom/SVGFEImageElement.cc create mode 100644 ksvg/dom/SVGFEImageElement.cpp delete mode 100644 ksvg/dom/SVGFEMergeElement.cc create mode 100644 ksvg/dom/SVGFEMergeElement.cpp delete mode 100644 ksvg/dom/SVGFEMergeNodeElement.cc create mode 100644 ksvg/dom/SVGFEMergeNodeElement.cpp delete mode 100644 ksvg/dom/SVGFEMorphologyElement.cc create mode 100644 ksvg/dom/SVGFEMorphologyElement.cpp delete mode 100644 ksvg/dom/SVGFEOffsetElement.cc create mode 100644 ksvg/dom/SVGFEOffsetElement.cpp delete mode 100644 ksvg/dom/SVGFEPointLightElement.cc create mode 100644 ksvg/dom/SVGFEPointLightElement.cpp delete mode 100644 ksvg/dom/SVGFESpecularLightingElement.cc create mode 100644 ksvg/dom/SVGFESpecularLightingElement.cpp delete mode 100644 ksvg/dom/SVGFESpotLightElement.cc create mode 100644 ksvg/dom/SVGFESpotLightElement.cpp delete mode 100644 ksvg/dom/SVGFETileElement.cc create mode 100644 ksvg/dom/SVGFETileElement.cpp delete mode 100644 ksvg/dom/SVGFETurbulenceElement.cc create mode 100644 ksvg/dom/SVGFETurbulenceElement.cpp delete mode 100644 ksvg/dom/SVGFilterElement.cc create mode 100644 ksvg/dom/SVGFilterElement.cpp delete mode 100644 ksvg/dom/SVGFilterPrimitiveStandardAttributes.cc create mode 100644 ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp delete mode 100644 ksvg/dom/SVGFitToViewBox.cc create mode 100644 ksvg/dom/SVGFitToViewBox.cpp delete mode 100644 ksvg/dom/SVGFontElement.cc create mode 100644 ksvg/dom/SVGFontElement.cpp delete mode 100644 ksvg/dom/SVGFontFaceElement.cc create mode 100644 ksvg/dom/SVGFontFaceElement.cpp delete mode 100644 ksvg/dom/SVGFontFaceFormatElement.cc create mode 100644 ksvg/dom/SVGFontFaceFormatElement.cpp delete mode 100644 ksvg/dom/SVGFontFaceNameElement.cc create mode 100644 ksvg/dom/SVGFontFaceNameElement.cpp delete mode 100644 ksvg/dom/SVGFontFaceSrcElement.cc create mode 100644 ksvg/dom/SVGFontFaceSrcElement.cpp delete mode 100644 ksvg/dom/SVGFontFaceUriElement.cc create mode 100644 ksvg/dom/SVGFontFaceUriElement.cpp delete mode 100644 ksvg/dom/SVGForeignObjectElement.cc create mode 100644 ksvg/dom/SVGForeignObjectElement.cpp delete mode 100644 ksvg/dom/SVGGElement.cc create mode 100644 ksvg/dom/SVGGElement.cpp delete mode 100644 ksvg/dom/SVGGlyphElement.cc create mode 100644 ksvg/dom/SVGGlyphElement.cpp delete mode 100644 ksvg/dom/SVGGlyphRefElement.cc create mode 100644 ksvg/dom/SVGGlyphRefElement.cpp delete mode 100644 ksvg/dom/SVGGradientElement.cc create mode 100644 ksvg/dom/SVGGradientElement.cpp delete mode 100644 ksvg/dom/SVGHKernElement.cc create mode 100644 ksvg/dom/SVGHKernElement.cpp delete mode 100644 ksvg/dom/SVGICCColor.cc create mode 100644 ksvg/dom/SVGICCColor.cpp delete mode 100644 ksvg/dom/SVGImageElement.cc create mode 100644 ksvg/dom/SVGImageElement.cpp delete mode 100644 ksvg/dom/SVGLangSpace.cc create mode 100644 ksvg/dom/SVGLangSpace.cpp delete mode 100644 ksvg/dom/SVGLength.cc create mode 100644 ksvg/dom/SVGLength.cpp delete mode 100644 ksvg/dom/SVGLengthList.cc create mode 100644 ksvg/dom/SVGLengthList.cpp delete mode 100644 ksvg/dom/SVGLineElement.cc create mode 100644 ksvg/dom/SVGLineElement.cpp delete mode 100644 ksvg/dom/SVGLinearGradientElement.cc create mode 100644 ksvg/dom/SVGLinearGradientElement.cpp delete mode 100644 ksvg/dom/SVGLocatable.cc create mode 100644 ksvg/dom/SVGLocatable.cpp delete mode 100644 ksvg/dom/SVGMPathElement.cc create mode 100644 ksvg/dom/SVGMPathElement.cpp delete mode 100644 ksvg/dom/SVGMarkerElement.cc create mode 100644 ksvg/dom/SVGMarkerElement.cpp delete mode 100644 ksvg/dom/SVGMaskElement.cc create mode 100644 ksvg/dom/SVGMaskElement.cpp delete mode 100644 ksvg/dom/SVGMatrix.cc create mode 100644 ksvg/dom/SVGMatrix.cpp delete mode 100644 ksvg/dom/SVGMetadataElement.cc create mode 100644 ksvg/dom/SVGMetadataElement.cpp delete mode 100644 ksvg/dom/SVGMissingGlyphElement.cc create mode 100644 ksvg/dom/SVGMissingGlyphElement.cpp delete mode 100644 ksvg/dom/SVGNumber.cc create mode 100644 ksvg/dom/SVGNumber.cpp delete mode 100644 ksvg/dom/SVGNumberList.cc create mode 100644 ksvg/dom/SVGNumberList.cpp delete mode 100644 ksvg/dom/SVGPaint.cc create mode 100644 ksvg/dom/SVGPaint.cpp delete mode 100644 ksvg/dom/SVGPathElement.cc create mode 100644 ksvg/dom/SVGPathElement.cpp delete mode 100644 ksvg/dom/SVGPathSeg.cc create mode 100644 ksvg/dom/SVGPathSeg.cpp delete mode 100644 ksvg/dom/SVGPathSegArc.cc create mode 100644 ksvg/dom/SVGPathSegArc.cpp delete mode 100644 ksvg/dom/SVGPathSegClosePath.cc create mode 100644 ksvg/dom/SVGPathSegClosePath.cpp delete mode 100644 ksvg/dom/SVGPathSegCurvetoCubic.cc create mode 100644 ksvg/dom/SVGPathSegCurvetoCubic.cpp delete mode 100644 ksvg/dom/SVGPathSegCurvetoCubicSmooth.cc create mode 100644 ksvg/dom/SVGPathSegCurvetoCubicSmooth.cpp delete mode 100644 ksvg/dom/SVGPathSegCurvetoQuadratic.cc create mode 100644 ksvg/dom/SVGPathSegCurvetoQuadratic.cpp delete mode 100644 ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cc create mode 100644 ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cpp delete mode 100644 ksvg/dom/SVGPathSegLineto.cc create mode 100644 ksvg/dom/SVGPathSegLineto.cpp delete mode 100644 ksvg/dom/SVGPathSegLinetoHorizontal.cc create mode 100644 ksvg/dom/SVGPathSegLinetoHorizontal.cpp delete mode 100644 ksvg/dom/SVGPathSegLinetoVertical.cc create mode 100644 ksvg/dom/SVGPathSegLinetoVertical.cpp delete mode 100644 ksvg/dom/SVGPathSegList.cc create mode 100644 ksvg/dom/SVGPathSegList.cpp delete mode 100644 ksvg/dom/SVGPathSegMoveto.cc create mode 100644 ksvg/dom/SVGPathSegMoveto.cpp delete mode 100644 ksvg/dom/SVGPatternElement.cc create mode 100644 ksvg/dom/SVGPatternElement.cpp delete mode 100644 ksvg/dom/SVGPoint.cc create mode 100644 ksvg/dom/SVGPoint.cpp delete mode 100644 ksvg/dom/SVGPointList.cc create mode 100644 ksvg/dom/SVGPointList.cpp delete mode 100644 ksvg/dom/SVGPolygonElement.cc create mode 100644 ksvg/dom/SVGPolygonElement.cpp delete mode 100644 ksvg/dom/SVGPolylineElement.cc create mode 100644 ksvg/dom/SVGPolylineElement.cpp delete mode 100644 ksvg/dom/SVGPreserveAspectRatio.cc create mode 100644 ksvg/dom/SVGPreserveAspectRatio.cpp delete mode 100644 ksvg/dom/SVGRadialGradientElement.cc create mode 100644 ksvg/dom/SVGRadialGradientElement.cpp delete mode 100644 ksvg/dom/SVGRect.cc create mode 100644 ksvg/dom/SVGRect.cpp delete mode 100644 ksvg/dom/SVGRectElement.cc create mode 100644 ksvg/dom/SVGRectElement.cpp delete mode 100644 ksvg/dom/SVGSVGElement.cc create mode 100644 ksvg/dom/SVGSVGElement.cpp delete mode 100644 ksvg/dom/SVGScriptElement.cc create mode 100644 ksvg/dom/SVGScriptElement.cpp delete mode 100644 ksvg/dom/SVGSetElement.cc create mode 100644 ksvg/dom/SVGSetElement.cpp delete mode 100644 ksvg/dom/SVGStopElement.cc create mode 100644 ksvg/dom/SVGStopElement.cpp delete mode 100644 ksvg/dom/SVGStringList.cc create mode 100644 ksvg/dom/SVGStringList.cpp delete mode 100644 ksvg/dom/SVGStylable.cc create mode 100644 ksvg/dom/SVGStylable.cpp delete mode 100644 ksvg/dom/SVGStyleElement.cc create mode 100644 ksvg/dom/SVGStyleElement.cpp delete mode 100644 ksvg/dom/SVGSwitchElement.cc create mode 100644 ksvg/dom/SVGSwitchElement.cpp delete mode 100644 ksvg/dom/SVGSymbolElement.cc create mode 100644 ksvg/dom/SVGSymbolElement.cpp delete mode 100644 ksvg/dom/SVGTRefElement.cc create mode 100644 ksvg/dom/SVGTRefElement.cpp delete mode 100644 ksvg/dom/SVGTSpanElement.cc create mode 100644 ksvg/dom/SVGTSpanElement.cpp delete mode 100644 ksvg/dom/SVGTests.cc create mode 100644 ksvg/dom/SVGTests.cpp delete mode 100644 ksvg/dom/SVGTextContentElement.cc create mode 100644 ksvg/dom/SVGTextContentElement.cpp delete mode 100644 ksvg/dom/SVGTextElement.cc create mode 100644 ksvg/dom/SVGTextElement.cpp delete mode 100644 ksvg/dom/SVGTextPathElement.cc create mode 100644 ksvg/dom/SVGTextPathElement.cpp delete mode 100644 ksvg/dom/SVGTextPositioningElement.cc create mode 100644 ksvg/dom/SVGTextPositioningElement.cpp delete mode 100644 ksvg/dom/SVGTitleElement.cc create mode 100644 ksvg/dom/SVGTitleElement.cpp delete mode 100644 ksvg/dom/SVGTransform.cc create mode 100644 ksvg/dom/SVGTransform.cpp delete mode 100644 ksvg/dom/SVGTransformList.cc create mode 100644 ksvg/dom/SVGTransformList.cpp delete mode 100644 ksvg/dom/SVGTransformable.cc create mode 100644 ksvg/dom/SVGTransformable.cpp delete mode 100644 ksvg/dom/SVGURIReference.cc create mode 100644 ksvg/dom/SVGURIReference.cpp delete mode 100644 ksvg/dom/SVGUseElement.cc create mode 100644 ksvg/dom/SVGUseElement.cpp delete mode 100644 ksvg/dom/SVGVKernElement.cc create mode 100644 ksvg/dom/SVGVKernElement.cpp delete mode 100644 ksvg/dom/SVGViewElement.cc create mode 100644 ksvg/dom/SVGViewElement.cpp delete mode 100644 ksvg/dom/SVGViewSpec.cc create mode 100644 ksvg/dom/SVGViewSpec.cpp delete mode 100644 ksvg/dom/SVGWindow.cc create mode 100644 ksvg/dom/SVGWindow.cpp delete mode 100644 ksvg/dom/SVGZoomAndPan.cc create mode 100644 ksvg/dom/SVGZoomAndPan.cpp delete mode 100644 ksvg/dom/SVGZoomEvent.cc create mode 100644 ksvg/dom/SVGZoomEvent.cpp (limited to 'ksvg/dom') diff --git a/ksvg/dom/CMakeLists.txt b/ksvg/dom/CMakeLists.txt index 8d6658e9..08f0ab03 100644 --- a/ksvg/dom/CMakeLists.txt +++ b/ksvg/dom/CMakeLists.txt @@ -76,50 +76,50 @@ install( FILES tde_add_library( ksvgdom STATIC_PIC SOURCES - SVGLength.cc SVGAnimatedLength.cc SVGNumber.cc SVGAnimatedNumber.cc - SVGPoint.cc SVGTSpanElement.cc SVGTRefElement.cc SVGAnimatedLengthList.cc - SVGAnimatedNumberList.cc SVGTransformList.cc SVGAElement.cc - SVGAnimatedTransformList.cc SVGRectElement.cc SVGCircleElement.cc - SVGEllipseElement.cc SVGLineElement.cc SVGPolylineElement.cc - SVGPolygonElement.cc SVGTextPositioningElement.cc SVGTextContentElement.cc - SVGTextElement.cc SVGImageElement.cc SVGUseElement.cc SVGMatrix.cc - SVGTransform.cc SVGPointList.cc SVGDocument.cc SVGAnimatedEnumeration.cc - SVGDefsElement.cc SVGLocatable.cc SVGTransformable.cc SVGStylable.cc - SVGGElement.cc SVGAngle.cc SVGAnimatedAngle.cc SVGColor.cc SVGPathElement.cc - SVGPathSegList.cc SVGTests.cc SVGLangSpace.cc SVGStringList.cc SVGPathSeg.cc - SVGPathSegClosePath.cc SVGPathSegMoveto.cc SVGPathSegLinetoHorizontal.cc - SVGPathSegLinetoVertical.cc SVGPathSegLineto.cc SVGPathSegCurvetoCubic.cc - SVGDescElement.cc SVGTitleElement.cc SVGExternalResourcesRequired.cc - SVGAnimatedBoolean.cc SVGNumberList.cc SVGPathSegCurvetoCubicSmooth.cc - SVGPathSegCurvetoQuadratic.cc SVGAnimatedRect.cc SVGAnimatedString.cc - SVGPathSegCurvetoQuadraticSmooth.cc SVGPathSegArc.cc SVGURIReference.cc - SVGAnimatedInteger.cc SVGLengthList.cc SVGSVGElement.cc SVGRect.cc - SVGFitToViewBox.cc SVGAnimatedPreserveAspectRatio.cc SVGPreserveAspectRatio.cc - SVGElement.cc SVGStyleElement.cc SVGClipPathElement.cc SVGMaskElement.cc - SVGColorProfileElement.cc SVGColorProfileRule.cc SVGZoomAndPan.cc - SVGScriptElement.cc SVGSwitchElement.cc SVGSymbolElement.cc - SVGDefinitionSrcElement.cc SVGFontFaceElement.cc SVGFontFaceFormatElement.cc - SVGFontFaceNameElement.cc SVGFontFaceSrcElement.cc SVGHKernElement.cc - SVGMetadataElement.cc SVGVKernElement.cc SVGCursorElement.cc - SVGForeignObjectElement.cc SVGFontFaceUriElement.cc SVGElementInstance.cc - SVGElementInstanceList.cc SVGAnimatedPoints.cc SVGAnimatedPathData.cc - SVGMarkerElement.cc SVGViewSpec.cc SVGViewElement.cc SVGFilterElement.cc - SVGFilterPrimitiveStandardAttributes.cc SVGFEBlendElement.cc - SVGFEColorMatrixElement.cc SVGFEComponentTransferElement.cc - SVGComponentTransferFunctionElement.cc SVGFEFuncAElement.cc - SVGFEFuncBElement.cc SVGFEFuncGElement.cc SVGFEFuncRElement.cc - SVGFECompositeElement.cc SVGFEConvolveMatrixElement.cc SVGFEFloodElement.cc - SVGFEGaussianBlurElement.cc SVGFEDiffuseLightingElement.cc - SVGFEDistantLightElement.cc SVGFEPointLightElement.cc - SVGFESpotLightElement.cc SVGFEDisplacementMapElement.cc SVGFEMergeElement.cc - SVGFEMergeNodeElement.cc SVGFEImageElement.cc SVGFEMorphologyElement.cc - SVGFEOffsetElement.cc SVGFESpecularLightingElement.cc SVGFETileElement.cc - SVGFETurbulenceElement.cc SVGAnimationElement.cc SVGAnimateElement.cc - SVGSetElement.cc SVGAnimateMotionElement.cc SVGAnimateColorElement.cc - SVGAnimateTransformElement.cc SVGEvent.cc SVGZoomEvent.cc SVGICCColor.cc - SVGCSSRule.cc SVGGradientElement.cc SVGRadialGradientElement.cc - SVGLinearGradientElement.cc SVGStopElement.cc SVGPatternElement.cc - SVGMPathElement.cc SVGFontElement.cc SVGAltGlyphElement.cc - SVGGlyphRefElement.cc SVGAltGlyphDefElement.cc SVGGlyphElement.cc - SVGMissingGlyphElement.cc SVGPaint.cc SVGTextPathElement.cc SVGWindow.cc + SVGLength.cpp SVGAnimatedLength.cpp SVGNumber.cpp SVGAnimatedNumber.cpp + SVGPoint.cpp SVGTSpanElement.cpp SVGTRefElement.cpp SVGAnimatedLengthList.cpp + SVGAnimatedNumberList.cpp SVGTransformList.cpp SVGAElement.cpp + SVGAnimatedTransformList.cpp SVGRectElement.cpp SVGCircleElement.cpp + SVGEllipseElement.cpp SVGLineElement.cpp SVGPolylineElement.cpp + SVGPolygonElement.cpp SVGTextPositioningElement.cpp SVGTextContentElement.cpp + SVGTextElement.cpp SVGImageElement.cpp SVGUseElement.cpp SVGMatrix.cpp + SVGTransform.cpp SVGPointList.cpp SVGDocument.cpp SVGAnimatedEnumeration.cpp + SVGDefsElement.cpp SVGLocatable.cpp SVGTransformable.cpp SVGStylable.cpp + SVGGElement.cpp SVGAngle.cpp SVGAnimatedAngle.cpp SVGColor.cpp SVGPathElement.cpp + SVGPathSegList.cpp SVGTests.cpp SVGLangSpace.cpp SVGStringList.cpp SVGPathSeg.cpp + SVGPathSegClosePath.cpp SVGPathSegMoveto.cpp SVGPathSegLinetoHorizontal.cpp + SVGPathSegLinetoVertical.cpp SVGPathSegLineto.cpp SVGPathSegCurvetoCubic.cpp + SVGDescElement.cpp SVGTitleElement.cpp SVGExternalResourcesRequired.cpp + SVGAnimatedBoolean.cpp SVGNumberList.cpp SVGPathSegCurvetoCubicSmooth.cpp + SVGPathSegCurvetoQuadratic.cpp SVGAnimatedRect.cpp SVGAnimatedString.cpp + SVGPathSegCurvetoQuadraticSmooth.cpp SVGPathSegArc.cpp SVGURIReference.cpp + SVGAnimatedInteger.cpp SVGLengthList.cpp SVGSVGElement.cpp SVGRect.cpp + SVGFitToViewBox.cpp SVGAnimatedPreserveAspectRatio.cpp SVGPreserveAspectRatio.cpp + SVGElement.cpp SVGStyleElement.cpp SVGClipPathElement.cpp SVGMaskElement.cpp + SVGColorProfileElement.cpp SVGColorProfileRule.cpp SVGZoomAndPan.cpp + SVGScriptElement.cpp SVGSwitchElement.cpp SVGSymbolElement.cpp + SVGDefinitionSrcElement.cpp SVGFontFaceElement.cpp SVGFontFaceFormatElement.cpp + SVGFontFaceNameElement.cpp SVGFontFaceSrcElement.cpp SVGHKernElement.cpp + SVGMetadataElement.cpp SVGVKernElement.cpp SVGCursorElement.cpp + SVGForeignObjectElement.cpp SVGFontFaceUriElement.cpp SVGElementInstance.cpp + SVGElementInstanceList.cpp SVGAnimatedPoints.cpp SVGAnimatedPathData.cpp + SVGMarkerElement.cpp SVGViewSpec.cpp SVGViewElement.cpp SVGFilterElement.cpp + SVGFilterPrimitiveStandardAttributes.cpp SVGFEBlendElement.cpp + SVGFEColorMatrixElement.cpp SVGFEComponentTransferElement.cpp + SVGComponentTransferFunctionElement.cpp SVGFEFuncAElement.cpp + SVGFEFuncBElement.cpp SVGFEFuncGElement.cpp SVGFEFuncRElement.cpp + SVGFECompositeElement.cpp SVGFEConvolveMatrixElement.cpp SVGFEFloodElement.cpp + SVGFEGaussianBlurElement.cpp SVGFEDiffuseLightingElement.cpp + SVGFEDistantLightElement.cpp SVGFEPointLightElement.cpp + SVGFESpotLightElement.cpp SVGFEDisplacementMapElement.cpp SVGFEMergeElement.cpp + SVGFEMergeNodeElement.cpp SVGFEImageElement.cpp SVGFEMorphologyElement.cpp + SVGFEOffsetElement.cpp SVGFESpecularLightingElement.cpp SVGFETileElement.cpp + SVGFETurbulenceElement.cpp SVGAnimationElement.cpp SVGAnimateElement.cpp + SVGSetElement.cpp SVGAnimateMotionElement.cpp SVGAnimateColorElement.cpp + SVGAnimateTransformElement.cpp SVGEvent.cpp SVGZoomEvent.cpp SVGICCColor.cpp + SVGCSSRule.cpp SVGGradientElement.cpp SVGRadialGradientElement.cpp + SVGLinearGradientElement.cpp SVGStopElement.cpp SVGPatternElement.cpp + SVGMPathElement.cpp SVGFontElement.cpp SVGAltGlyphElement.cpp + SVGGlyphRefElement.cpp SVGAltGlyphDefElement.cpp SVGGlyphElement.cpp + SVGMissingGlyphElement.cpp SVGPaint.cpp SVGTextPathElement.cpp SVGWindow.cpp ) diff --git a/ksvg/dom/Makefile.am b/ksvg/dom/Makefile.am index 9b6b1cf7..7c51c022 100644 --- a/ksvg/dom/Makefile.am +++ b/ksvg/dom/Makefile.am @@ -31,27 +31,27 @@ myinclude_HEADERS = SVGAElement.h SVGAltGlyphElement.h SVGAltGlyphDefElement.h S SVGTitleElement.h SVGTransform.h SVGTransformList.h SVGTransformable.h SVGURIReference.h SVGUnitTypes.h \ SVGUseElement.h SVGVKernElement.h SVGViewElement.h SVGViewSpec.h SVGWindow.h SVGZoomAndPan.h SVGZoomEvent.h -libksvgdom_la_SOURCES = SVGLength.cc SVGAnimatedLength.cc SVGNumber.cc SVGAnimatedNumber.cc SVGPoint.cc SVGTSpanElement.cc SVGTRefElement.cc \ - SVGAnimatedLengthList.cc SVGAnimatedNumberList.cc SVGTransformList.cc SVGAElement.cc SVGAnimatedTransformList.cc \ - SVGRectElement.cc SVGCircleElement.cc SVGEllipseElement.cc SVGLineElement.cc SVGPolylineElement.cc SVGPolygonElement.cc \ - SVGTextPositioningElement.cc SVGTextContentElement.cc SVGTextElement.cc SVGImageElement.cc SVGUseElement.cc \ - SVGMatrix.cc SVGTransform.cc SVGPointList.cc SVGDocument.cc SVGAnimatedEnumeration.cc SVGDefsElement.cc \ - SVGLocatable.cc SVGTransformable.cc SVGStylable.cc SVGGElement.cc SVGAngle.cc SVGAnimatedAngle.cc \ - SVGColor.cc SVGPathElement.cc SVGPathSegList.cc SVGTests.cc SVGLangSpace.cc SVGStringList.cc \ - SVGPathSeg.cc SVGPathSegClosePath.cc SVGPathSegMoveto.cc SVGPathSegLinetoHorizontal.cc SVGPathSegLinetoVertical.cc SVGPathSegLineto.cc \ - SVGPathSegCurvetoCubic.cc SVGDescElement.cc SVGTitleElement.cc SVGExternalResourcesRequired.cc SVGAnimatedBoolean.cc SVGNumberList.cc \ - SVGPathSegCurvetoCubicSmooth.cc SVGPathSegCurvetoQuadratic.cc SVGAnimatedRect.cc SVGAnimatedString.cc \ - SVGPathSegCurvetoQuadraticSmooth.cc SVGPathSegArc.cc SVGURIReference.cc SVGAnimatedInteger.cc SVGLengthList.cc \ - SVGSVGElement.cc SVGRect.cc SVGFitToViewBox.cc SVGAnimatedPreserveAspectRatio.cc SVGPreserveAspectRatio.cc SVGElement.cc \ - SVGStyleElement.cc SVGClipPathElement.cc SVGMaskElement.cc SVGColorProfileElement.cc SVGColorProfileRule.cc SVGZoomAndPan.cc SVGScriptElement.cc \ - SVGSwitchElement.cc SVGSymbolElement.cc \ - SVGDefinitionSrcElement.cc SVGFontFaceElement.cc SVGFontFaceFormatElement.cc SVGFontFaceNameElement.cc SVGFontFaceSrcElement.cc SVGHKernElement.cc SVGMetadataElement.cc SVGVKernElement.cc SVGCursorElement.cc SVGForeignObjectElement.cc SVGFontFaceUriElement.cc \ - SVGElementInstance.cc SVGElementInstanceList.cc SVGAnimatedPoints.cc SVGAnimatedPathData.cc SVGMarkerElement.cc SVGViewSpec.cc SVGViewElement.cc \ - SVGFilterElement.cc SVGFilterPrimitiveStandardAttributes.cc SVGFEBlendElement.cc SVGFEColorMatrixElement.cc SVGFEComponentTransferElement.cc SVGComponentTransferFunctionElement.cc SVGFEFuncAElement.cc SVGFEFuncBElement.cc SVGFEFuncGElement.cc SVGFEFuncRElement.cc SVGFECompositeElement.cc SVGFEConvolveMatrixElement.cc SVGFEFloodElement.cc SVGFEGaussianBlurElement.cc SVGFEDiffuseLightingElement.cc SVGFEDistantLightElement.cc SVGFEPointLightElement.cc SVGFESpotLightElement.cc SVGFEDisplacementMapElement.cc SVGFEMergeElement.cc SVGFEMergeNodeElement.cc SVGFEImageElement.cc SVGFEMorphologyElement.cc SVGFEOffsetElement.cc SVGFESpecularLightingElement.cc SVGFETileElement.cc SVGFETurbulenceElement.cc \ - SVGAnimationElement.cc SVGAnimateElement.cc SVGSetElement.cc SVGAnimateMotionElement.cc SVGAnimateColorElement.cc SVGAnimateTransformElement.cc \ - SVGEvent.cc SVGZoomEvent.cc SVGICCColor.cc SVGCSSRule.cc \ - SVGGradientElement.cc SVGRadialGradientElement.cc SVGLinearGradientElement.cc SVGStopElement.cc SVGPatternElement.cc SVGMPathElement.cc \ - SVGFontElement.cc SVGAltGlyphElement.cc SVGGlyphRefElement.cc SVGAltGlyphDefElement.cc SVGGlyphElement.cc SVGMissingGlyphElement.cc SVGPaint.cc SVGTextPathElement.cc SVGWindow.cc +libksvgdom_la_SOURCES = SVGLength.cpp SVGAnimatedLength.cpp SVGNumber.cpp SVGAnimatedNumber.cpp SVGPoint.cpp SVGTSpanElement.cpp SVGTRefElement.cpp \ + SVGAnimatedLengthList.cpp SVGAnimatedNumberList.cpp SVGTransformList.cpp SVGAElement.cpp SVGAnimatedTransformList.cpp \ + SVGRectElement.cpp SVGCircleElement.cpp SVGEllipseElement.cpp SVGLineElement.cpp SVGPolylineElement.cpp SVGPolygonElement.cpp \ + SVGTextPositioningElement.cpp SVGTextContentElement.cpp SVGTextElement.cpp SVGImageElement.cpp SVGUseElement.cpp \ + SVGMatrix.cpp SVGTransform.cpp SVGPointList.cpp SVGDocument.cpp SVGAnimatedEnumeration.cpp SVGDefsElement.cpp \ + SVGLocatable.cpp SVGTransformable.cpp SVGStylable.cpp SVGGElement.cpp SVGAngle.cpp SVGAnimatedAngle.cpp \ + SVGColor.cpp SVGPathElement.cpp SVGPathSegList.cpp SVGTests.cpp SVGLangSpace.cpp SVGStringList.cpp \ + SVGPathSeg.cpp SVGPathSegClosePath.cpp SVGPathSegMoveto.cpp SVGPathSegLinetoHorizontal.cpp SVGPathSegLinetoVertical.cpp SVGPathSegLineto.cpp \ + SVGPathSegCurvetoCubic.cpp SVGDescElement.cpp SVGTitleElement.cpp SVGExternalResourcesRequired.cpp SVGAnimatedBoolean.cpp SVGNumberList.cpp \ + SVGPathSegCurvetoCubicSmooth.cpp SVGPathSegCurvetoQuadratic.cpp SVGAnimatedRect.cpp SVGAnimatedString.cpp \ + SVGPathSegCurvetoQuadraticSmooth.cpp SVGPathSegArc.cpp SVGURIReference.cpp SVGAnimatedInteger.cpp SVGLengthList.cpp \ + SVGSVGElement.cpp SVGRect.cpp SVGFitToViewBox.cpp SVGAnimatedPreserveAspectRatio.cpp SVGPreserveAspectRatio.cpp SVGElement.cpp \ + SVGStyleElement.cpp SVGClipPathElement.cpp SVGMaskElement.cpp SVGColorProfileElement.cpp SVGColorProfileRule.cpp SVGZoomAndPan.cpp SVGScriptElement.cpp \ + SVGSwitchElement.cpp SVGSymbolElement.cpp \ + SVGDefinitionSrcElement.cpp SVGFontFaceElement.cpp SVGFontFaceFormatElement.cpp SVGFontFaceNameElement.cpp SVGFontFaceSrcElement.cpp SVGHKernElement.cpp SVGMetadataElement.cpp SVGVKernElement.cpp SVGCursorElement.cpp SVGForeignObjectElement.cpp SVGFontFaceUriElement.cpp \ + SVGElementInstance.cpp SVGElementInstanceList.cpp SVGAnimatedPoints.cpp SVGAnimatedPathData.cpp SVGMarkerElement.cpp SVGViewSpec.cpp SVGViewElement.cpp \ + SVGFilterElement.cpp SVGFilterPrimitiveStandardAttributes.cpp SVGFEBlendElement.cpp SVGFEColorMatrixElement.cpp SVGFEComponentTransferElement.cpp SVGComponentTransferFunctionElement.cpp SVGFEFuncAElement.cpp SVGFEFuncBElement.cpp SVGFEFuncGElement.cpp SVGFEFuncRElement.cpp SVGFECompositeElement.cpp SVGFEConvolveMatrixElement.cpp SVGFEFloodElement.cpp SVGFEGaussianBlurElement.cpp SVGFEDiffuseLightingElement.cpp SVGFEDistantLightElement.cpp SVGFEPointLightElement.cpp SVGFESpotLightElement.cpp SVGFEDisplacementMapElement.cpp SVGFEMergeElement.cpp SVGFEMergeNodeElement.cpp SVGFEImageElement.cpp SVGFEMorphologyElement.cpp SVGFEOffsetElement.cpp SVGFESpecularLightingElement.cpp SVGFETileElement.cpp SVGFETurbulenceElement.cpp \ + SVGAnimationElement.cpp SVGAnimateElement.cpp SVGSetElement.cpp SVGAnimateMotionElement.cpp SVGAnimateColorElement.cpp SVGAnimateTransformElement.cpp \ + SVGEvent.cpp SVGZoomEvent.cpp SVGICCColor.cpp SVGCSSRule.cpp \ + SVGGradientElement.cpp SVGRadialGradientElement.cpp SVGLinearGradientElement.cpp SVGStopElement.cpp SVGPatternElement.cpp SVGMPathElement.cpp \ + SVGFontElement.cpp SVGAltGlyphElement.cpp SVGGlyphRefElement.cpp SVGAltGlyphDefElement.cpp SVGGlyphElement.cpp SVGMissingGlyphElement.cpp SVGPaint.cpp SVGTextPathElement.cpp SVGWindow.cpp libksvgdom_la_METASOURCES = AUTO diff --git a/ksvg/dom/SVGAElement.cc b/ksvg/dom/SVGAElement.cc deleted file mode 100644 index de7b1a20..00000000 --- a/ksvg/dom/SVGAElement.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAElement.h" -#include "SVGAElementImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGAElement::SVGAElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() -{ - impl = 0; -} - -SVGAElement::SVGAElement(const SVGAElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGAElement &SVGAElement::operator=(const SVGAElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAElement::SVGAElement(SVGAElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAElement::~SVGAElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGAElement::target() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->target()); -} diff --git a/ksvg/dom/SVGAElement.cpp b/ksvg/dom/SVGAElement.cpp new file mode 100644 index 00000000..de7b1a20 --- /dev/null +++ b/ksvg/dom/SVGAElement.cpp @@ -0,0 +1,78 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAElement.h" +#include "SVGAElementImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGAElement::SVGAElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() +{ + impl = 0; +} + +SVGAElement::SVGAElement(const SVGAElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGAElement &SVGAElement::operator=(const SVGAElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAElement::SVGAElement(SVGAElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAElement::~SVGAElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGAElement::target() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->target()); +} diff --git a/ksvg/dom/SVGAltGlyphDefElement.cc b/ksvg/dom/SVGAltGlyphDefElement.cc deleted file mode 100644 index caeddbd9..00000000 --- a/ksvg/dom/SVGAltGlyphDefElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAltGlyphDefElement.h" -#include "SVGAltGlyphDefElementImpl.h" - -using namespace KSVG; - -SVGAltGlyphDefElement::SVGAltGlyphDefElement() : SVGElement() -{ - impl = 0; -} - -SVGAltGlyphDefElement::SVGAltGlyphDefElement(const SVGAltGlyphDefElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGAltGlyphDefElement &SVGAltGlyphDefElement::operator=(const SVGAltGlyphDefElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAltGlyphDefElement::SVGAltGlyphDefElement(SVGAltGlyphDefElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAltGlyphDefElement::~SVGAltGlyphDefElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGAltGlyphDefElement.cpp b/ksvg/dom/SVGAltGlyphDefElement.cpp new file mode 100644 index 00000000..caeddbd9 --- /dev/null +++ b/ksvg/dom/SVGAltGlyphDefElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAltGlyphDefElement.h" +#include "SVGAltGlyphDefElementImpl.h" + +using namespace KSVG; + +SVGAltGlyphDefElement::SVGAltGlyphDefElement() : SVGElement() +{ + impl = 0; +} + +SVGAltGlyphDefElement::SVGAltGlyphDefElement(const SVGAltGlyphDefElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGAltGlyphDefElement &SVGAltGlyphDefElement::operator=(const SVGAltGlyphDefElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAltGlyphDefElement::SVGAltGlyphDefElement(SVGAltGlyphDefElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAltGlyphDefElement::~SVGAltGlyphDefElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGAltGlyphElement.cc b/ksvg/dom/SVGAltGlyphElement.cc deleted file mode 100644 index c21d7623..00000000 --- a/ksvg/dom/SVGAltGlyphElement.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAltGlyphElement.h" -#include "SVGAltGlyphElementImpl.h" - -using namespace KSVG; - -SVGAltGlyphElement::SVGAltGlyphElement() : SVGTextPositioningElement(), SVGURIReference() -{ - impl = 0; -} - -SVGAltGlyphElement::SVGAltGlyphElement(const SVGAltGlyphElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGAltGlyphElement &SVGAltGlyphElement::operator=(const SVGAltGlyphElement &other) -{ - SVGTextPositioningElement::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAltGlyphElement::SVGAltGlyphElement(SVGAltGlyphElementImpl *other) : SVGTextPositioningElement(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAltGlyphElement::~SVGAltGlyphElement() -{ - if(impl) - impl->deref(); -} - -DOM::DOMString SVGAltGlyphElement::format() -{ - if(!impl) return DOM::DOMString(); - return impl->format(); -} - -DOM::DOMString SVGAltGlyphElement::glyphRef() -{ - if(!impl) return DOM::DOMString(); - return impl->glyphRef(); -} diff --git a/ksvg/dom/SVGAltGlyphElement.cpp b/ksvg/dom/SVGAltGlyphElement.cpp new file mode 100644 index 00000000..c21d7623 --- /dev/null +++ b/ksvg/dom/SVGAltGlyphElement.cpp @@ -0,0 +1,78 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAltGlyphElement.h" +#include "SVGAltGlyphElementImpl.h" + +using namespace KSVG; + +SVGAltGlyphElement::SVGAltGlyphElement() : SVGTextPositioningElement(), SVGURIReference() +{ + impl = 0; +} + +SVGAltGlyphElement::SVGAltGlyphElement(const SVGAltGlyphElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGAltGlyphElement &SVGAltGlyphElement::operator=(const SVGAltGlyphElement &other) +{ + SVGTextPositioningElement::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAltGlyphElement::SVGAltGlyphElement(SVGAltGlyphElementImpl *other) : SVGTextPositioningElement(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAltGlyphElement::~SVGAltGlyphElement() +{ + if(impl) + impl->deref(); +} + +DOM::DOMString SVGAltGlyphElement::format() +{ + if(!impl) return DOM::DOMString(); + return impl->format(); +} + +DOM::DOMString SVGAltGlyphElement::glyphRef() +{ + if(!impl) return DOM::DOMString(); + return impl->glyphRef(); +} diff --git a/ksvg/dom/SVGAngle.cc b/ksvg/dom/SVGAngle.cc deleted file mode 100644 index bb1aac60..00000000 --- a/ksvg/dom/SVGAngle.cc +++ /dev/null @@ -1,118 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAngle.h" -#include "SVGAngleImpl.h" - -using namespace KSVG; - -SVGAngle::SVGAngle() -{ - impl = new SVGAngleImpl(); - impl->ref(); -} - -SVGAngle::SVGAngle(const SVGAngle &other) : impl(0) -{ - (*this) = other; -} - -SVGAngle &SVGAngle::operator =(const SVGAngle &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAngle::SVGAngle(SVGAngleImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAngle::~SVGAngle() -{ - if(impl) - impl->deref(); -} - -unsigned short SVGAngle::unitType() const -{ - if(!impl) return SVG_ANGLETYPE_UNKNOWN; - return impl->unitType(); -} - -void SVGAngle::setValue(float value) -{ - if(impl) - impl->setValue(value); -} - -float SVGAngle::value() const -{ - if(!impl) return -1; - return impl->value(); -} - -void SVGAngle::setValueInSpecifiedUnits(float valueInSpecifiedUnits) -{ - if(impl) - impl->setValueInSpecifiedUnits(valueInSpecifiedUnits); -} - -float SVGAngle::valueInSpecifiedUnits() const -{ - if(!impl) return -1; - return impl->valueInSpecifiedUnits(); -} - -void SVGAngle::setValueAsString(const DOM::DOMString &valueAsString) -{ - if(impl) - impl->setValueAsString(valueAsString); -} - -DOM::DOMString SVGAngle::valueAsString() const -{ - if(!impl) return DOM::DOMString(); - return impl->valueAsString(); -} - -void SVGAngle::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) -{ - if(impl) - impl->newValueSpecifiedUnits(unitType, valueInSpecifiedUnits); -} - -void SVGAngle::convertToSpecifiedUnits(unsigned short unitType) -{ - if(impl) - impl->convertToSpecifiedUnits(unitType); -} diff --git a/ksvg/dom/SVGAngle.cpp b/ksvg/dom/SVGAngle.cpp new file mode 100644 index 00000000..bb1aac60 --- /dev/null +++ b/ksvg/dom/SVGAngle.cpp @@ -0,0 +1,118 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAngle.h" +#include "SVGAngleImpl.h" + +using namespace KSVG; + +SVGAngle::SVGAngle() +{ + impl = new SVGAngleImpl(); + impl->ref(); +} + +SVGAngle::SVGAngle(const SVGAngle &other) : impl(0) +{ + (*this) = other; +} + +SVGAngle &SVGAngle::operator =(const SVGAngle &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAngle::SVGAngle(SVGAngleImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAngle::~SVGAngle() +{ + if(impl) + impl->deref(); +} + +unsigned short SVGAngle::unitType() const +{ + if(!impl) return SVG_ANGLETYPE_UNKNOWN; + return impl->unitType(); +} + +void SVGAngle::setValue(float value) +{ + if(impl) + impl->setValue(value); +} + +float SVGAngle::value() const +{ + if(!impl) return -1; + return impl->value(); +} + +void SVGAngle::setValueInSpecifiedUnits(float valueInSpecifiedUnits) +{ + if(impl) + impl->setValueInSpecifiedUnits(valueInSpecifiedUnits); +} + +float SVGAngle::valueInSpecifiedUnits() const +{ + if(!impl) return -1; + return impl->valueInSpecifiedUnits(); +} + +void SVGAngle::setValueAsString(const DOM::DOMString &valueAsString) +{ + if(impl) + impl->setValueAsString(valueAsString); +} + +DOM::DOMString SVGAngle::valueAsString() const +{ + if(!impl) return DOM::DOMString(); + return impl->valueAsString(); +} + +void SVGAngle::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) +{ + if(impl) + impl->newValueSpecifiedUnits(unitType, valueInSpecifiedUnits); +} + +void SVGAngle::convertToSpecifiedUnits(unsigned short unitType) +{ + if(impl) + impl->convertToSpecifiedUnits(unitType); +} diff --git a/ksvg/dom/SVGAnimateColorElement.cc b/ksvg/dom/SVGAnimateColorElement.cc deleted file mode 100644 index 32a5f153..00000000 --- a/ksvg/dom/SVGAnimateColorElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimateColorElement.h" -#include "SVGAnimateColorElementImpl.h" - -using namespace KSVG; - -SVGAnimateColorElement::SVGAnimateColorElement() : SVGAnimationElement() -{ - impl = 0; -} - -SVGAnimateColorElement::SVGAnimateColorElement(const SVGAnimateColorElement &other) : SVGAnimationElement(other), impl(0) -{ - (*this) = other; -} - -SVGAnimateColorElement &SVGAnimateColorElement::operator=(const SVGAnimateColorElement &other) -{ - SVGAnimationElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimateColorElement::SVGAnimateColorElement(SVGAnimateColorElementImpl *other) : SVGAnimationElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimateColorElement::~SVGAnimateColorElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGAnimateColorElement.cpp b/ksvg/dom/SVGAnimateColorElement.cpp new file mode 100644 index 00000000..32a5f153 --- /dev/null +++ b/ksvg/dom/SVGAnimateColorElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimateColorElement.h" +#include "SVGAnimateColorElementImpl.h" + +using namespace KSVG; + +SVGAnimateColorElement::SVGAnimateColorElement() : SVGAnimationElement() +{ + impl = 0; +} + +SVGAnimateColorElement::SVGAnimateColorElement(const SVGAnimateColorElement &other) : SVGAnimationElement(other), impl(0) +{ + (*this) = other; +} + +SVGAnimateColorElement &SVGAnimateColorElement::operator=(const SVGAnimateColorElement &other) +{ + SVGAnimationElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimateColorElement::SVGAnimateColorElement(SVGAnimateColorElementImpl *other) : SVGAnimationElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimateColorElement::~SVGAnimateColorElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGAnimateElement.cc b/ksvg/dom/SVGAnimateElement.cc deleted file mode 100644 index 1370b93d..00000000 --- a/ksvg/dom/SVGAnimateElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimateElement.h" -#include "SVGAnimateElementImpl.h" - -using namespace KSVG; - -SVGAnimateElement::SVGAnimateElement() : SVGAnimationElement() -{ - impl = 0; -} - -SVGAnimateElement::SVGAnimateElement(const SVGAnimateElement &other) : SVGAnimationElement(other), impl(0) -{ - (*this) = other; -} - -SVGAnimateElement &SVGAnimateElement::operator=(const SVGAnimateElement &other) -{ - SVGAnimationElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimateElement::SVGAnimateElement(SVGAnimateElementImpl *other) : SVGAnimationElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimateElement::~SVGAnimateElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGAnimateElement.cpp b/ksvg/dom/SVGAnimateElement.cpp new file mode 100644 index 00000000..1370b93d --- /dev/null +++ b/ksvg/dom/SVGAnimateElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimateElement.h" +#include "SVGAnimateElementImpl.h" + +using namespace KSVG; + +SVGAnimateElement::SVGAnimateElement() : SVGAnimationElement() +{ + impl = 0; +} + +SVGAnimateElement::SVGAnimateElement(const SVGAnimateElement &other) : SVGAnimationElement(other), impl(0) +{ + (*this) = other; +} + +SVGAnimateElement &SVGAnimateElement::operator=(const SVGAnimateElement &other) +{ + SVGAnimationElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimateElement::SVGAnimateElement(SVGAnimateElementImpl *other) : SVGAnimationElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimateElement::~SVGAnimateElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGAnimateMotionElement.cc b/ksvg/dom/SVGAnimateMotionElement.cc deleted file mode 100644 index 8b1b7d2c..00000000 --- a/ksvg/dom/SVGAnimateMotionElement.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimateMotionElement.h" -#include "SVGAnimateMotionElementImpl.h" - -using namespace KSVG; - -SVGAnimateMotionElement::SVGAnimateMotionElement() : SVGAnimationElement() -{ - impl = 0; -} - -SVGAnimateMotionElement::SVGAnimateMotionElement(const SVGAnimateMotionElement &other) : SVGAnimationElement(), impl(0) -{ - (*this) = other; -} - -SVGAnimateMotionElement &SVGAnimateMotionElement::operator =(const SVGAnimateMotionElement &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimateMotionElement::SVGAnimateMotionElement(SVGAnimateMotionElementImpl *other) : SVGAnimationElement() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimateMotionElement::~SVGAnimateMotionElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGAnimateMotionElement.cpp b/ksvg/dom/SVGAnimateMotionElement.cpp new file mode 100644 index 00000000..8b1b7d2c --- /dev/null +++ b/ksvg/dom/SVGAnimateMotionElement.cpp @@ -0,0 +1,63 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimateMotionElement.h" +#include "SVGAnimateMotionElementImpl.h" + +using namespace KSVG; + +SVGAnimateMotionElement::SVGAnimateMotionElement() : SVGAnimationElement() +{ + impl = 0; +} + +SVGAnimateMotionElement::SVGAnimateMotionElement(const SVGAnimateMotionElement &other) : SVGAnimationElement(), impl(0) +{ + (*this) = other; +} + +SVGAnimateMotionElement &SVGAnimateMotionElement::operator =(const SVGAnimateMotionElement &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimateMotionElement::SVGAnimateMotionElement(SVGAnimateMotionElementImpl *other) : SVGAnimationElement() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimateMotionElement::~SVGAnimateMotionElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGAnimateTransformElement.cc b/ksvg/dom/SVGAnimateTransformElement.cc deleted file mode 100644 index 3bc6a04b..00000000 --- a/ksvg/dom/SVGAnimateTransformElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimateTransformElement.h" -#include "SVGAnimateTransformElementImpl.h" - -using namespace KSVG; - -SVGAnimateTransformElement::SVGAnimateTransformElement() : SVGAnimationElement() -{ - impl = 0; -} - -SVGAnimateTransformElement::SVGAnimateTransformElement(const SVGAnimateTransformElement &other) : SVGAnimationElement(other), impl(0) -{ - (*this) = other; -} - -SVGAnimateTransformElement &SVGAnimateTransformElement::operator=(const SVGAnimateTransformElement &other) -{ - SVGAnimationElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimateTransformElement::SVGAnimateTransformElement(SVGAnimateTransformElementImpl *other) : SVGAnimationElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimateTransformElement::~SVGAnimateTransformElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGAnimateTransformElement.cpp b/ksvg/dom/SVGAnimateTransformElement.cpp new file mode 100644 index 00000000..3bc6a04b --- /dev/null +++ b/ksvg/dom/SVGAnimateTransformElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimateTransformElement.h" +#include "SVGAnimateTransformElementImpl.h" + +using namespace KSVG; + +SVGAnimateTransformElement::SVGAnimateTransformElement() : SVGAnimationElement() +{ + impl = 0; +} + +SVGAnimateTransformElement::SVGAnimateTransformElement(const SVGAnimateTransformElement &other) : SVGAnimationElement(other), impl(0) +{ + (*this) = other; +} + +SVGAnimateTransformElement &SVGAnimateTransformElement::operator=(const SVGAnimateTransformElement &other) +{ + SVGAnimationElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimateTransformElement::SVGAnimateTransformElement(SVGAnimateTransformElementImpl *other) : SVGAnimationElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimateTransformElement::~SVGAnimateTransformElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGAnimatedAngle.cc b/ksvg/dom/SVGAnimatedAngle.cc deleted file mode 100644 index f602defe..00000000 --- a/ksvg/dom/SVGAnimatedAngle.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedAngle.h" -#include "SVGAnimatedAngleImpl.h" -#include "SVGAngle.h" - -using namespace KSVG; - -SVGAnimatedAngle::SVGAnimatedAngle() -{ - impl = new SVGAnimatedAngleImpl(); - impl->ref(); -} - -SVGAnimatedAngle::SVGAnimatedAngle(const SVGAnimatedAngle &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedAngle &SVGAnimatedAngle::operator=(const SVGAnimatedAngle &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedAngle::SVGAnimatedAngle(SVGAnimatedAngleImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedAngle::~SVGAnimatedAngle() -{ - if(impl) - impl->deref(); -} - -SVGAngle SVGAnimatedAngle::baseVal() const -{ - if(!impl) return SVGAngle(0); - return SVGAngle(impl->baseVal()); -} - -SVGAngle SVGAnimatedAngle::animVal() const -{ - if(!impl) return SVGAngle(0); - return SVGAngle(impl->animVal()); -} diff --git a/ksvg/dom/SVGAnimatedAngle.cpp b/ksvg/dom/SVGAnimatedAngle.cpp new file mode 100644 index 00000000..f602defe --- /dev/null +++ b/ksvg/dom/SVGAnimatedAngle.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedAngle.h" +#include "SVGAnimatedAngleImpl.h" +#include "SVGAngle.h" + +using namespace KSVG; + +SVGAnimatedAngle::SVGAnimatedAngle() +{ + impl = new SVGAnimatedAngleImpl(); + impl->ref(); +} + +SVGAnimatedAngle::SVGAnimatedAngle(const SVGAnimatedAngle &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedAngle &SVGAnimatedAngle::operator=(const SVGAnimatedAngle &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedAngle::SVGAnimatedAngle(SVGAnimatedAngleImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedAngle::~SVGAnimatedAngle() +{ + if(impl) + impl->deref(); +} + +SVGAngle SVGAnimatedAngle::baseVal() const +{ + if(!impl) return SVGAngle(0); + return SVGAngle(impl->baseVal()); +} + +SVGAngle SVGAnimatedAngle::animVal() const +{ + if(!impl) return SVGAngle(0); + return SVGAngle(impl->animVal()); +} diff --git a/ksvg/dom/SVGAnimatedBoolean.cc b/ksvg/dom/SVGAnimatedBoolean.cc deleted file mode 100644 index 29e24a67..00000000 --- a/ksvg/dom/SVGAnimatedBoolean.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedBoolean.h" -#include "SVGAnimatedBooleanImpl.h" - -using namespace KSVG; - -SVGAnimatedBoolean::SVGAnimatedBoolean() -{ - impl = new SVGAnimatedBooleanImpl(); - impl->ref(); -} - -SVGAnimatedBoolean::SVGAnimatedBoolean(const SVGAnimatedBoolean &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedBoolean &SVGAnimatedBoolean::operator=(const SVGAnimatedBoolean &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedBoolean::SVGAnimatedBoolean(SVGAnimatedBooleanImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedBoolean::~SVGAnimatedBoolean() -{ - if(impl) - impl->deref(); -} - -void SVGAnimatedBoolean::setBaseVal(bool baseVal) -{ - if(impl) - impl->setBaseVal(baseVal); -} - -bool SVGAnimatedBoolean::baseVal() const -{ - if(!impl) return false; - return impl->baseVal(); -} - -bool SVGAnimatedBoolean::animVal() const -{ - if(!impl) return false; - return impl->animVal(); -} diff --git a/ksvg/dom/SVGAnimatedBoolean.cpp b/ksvg/dom/SVGAnimatedBoolean.cpp new file mode 100644 index 00000000..29e24a67 --- /dev/null +++ b/ksvg/dom/SVGAnimatedBoolean.cpp @@ -0,0 +1,82 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedBoolean.h" +#include "SVGAnimatedBooleanImpl.h" + +using namespace KSVG; + +SVGAnimatedBoolean::SVGAnimatedBoolean() +{ + impl = new SVGAnimatedBooleanImpl(); + impl->ref(); +} + +SVGAnimatedBoolean::SVGAnimatedBoolean(const SVGAnimatedBoolean &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedBoolean &SVGAnimatedBoolean::operator=(const SVGAnimatedBoolean &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedBoolean::SVGAnimatedBoolean(SVGAnimatedBooleanImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedBoolean::~SVGAnimatedBoolean() +{ + if(impl) + impl->deref(); +} + +void SVGAnimatedBoolean::setBaseVal(bool baseVal) +{ + if(impl) + impl->setBaseVal(baseVal); +} + +bool SVGAnimatedBoolean::baseVal() const +{ + if(!impl) return false; + return impl->baseVal(); +} + +bool SVGAnimatedBoolean::animVal() const +{ + if(!impl) return false; + return impl->animVal(); +} diff --git a/ksvg/dom/SVGAnimatedEnumeration.cc b/ksvg/dom/SVGAnimatedEnumeration.cc deleted file mode 100644 index 061dc0df..00000000 --- a/ksvg/dom/SVGAnimatedEnumeration.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedEnumerationImpl.h" - -using namespace KSVG; - -SVGAnimatedEnumeration::SVGAnimatedEnumeration() -{ - impl = new SVGAnimatedEnumerationImpl(); - impl->ref(); -} - -SVGAnimatedEnumeration::SVGAnimatedEnumeration(const SVGAnimatedEnumeration &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedEnumeration &SVGAnimatedEnumeration::operator=(const SVGAnimatedEnumeration &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedEnumeration::SVGAnimatedEnumeration(SVGAnimatedEnumerationImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedEnumeration::~SVGAnimatedEnumeration() -{ - if(impl) - impl->deref(); -} - -void SVGAnimatedEnumeration::setBaseVal(unsigned short baseVal) -{ - if(impl) - impl->setBaseVal(baseVal); -} - -unsigned short SVGAnimatedEnumeration::baseVal() const -{ - if(!impl) return 0; - return impl->baseVal(); -} - -unsigned short SVGAnimatedEnumeration::animVal() const -{ - if(!impl) return 0; - return impl->animVal(); -} diff --git a/ksvg/dom/SVGAnimatedEnumeration.cpp b/ksvg/dom/SVGAnimatedEnumeration.cpp new file mode 100644 index 00000000..061dc0df --- /dev/null +++ b/ksvg/dom/SVGAnimatedEnumeration.cpp @@ -0,0 +1,82 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedEnumerationImpl.h" + +using namespace KSVG; + +SVGAnimatedEnumeration::SVGAnimatedEnumeration() +{ + impl = new SVGAnimatedEnumerationImpl(); + impl->ref(); +} + +SVGAnimatedEnumeration::SVGAnimatedEnumeration(const SVGAnimatedEnumeration &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedEnumeration &SVGAnimatedEnumeration::operator=(const SVGAnimatedEnumeration &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedEnumeration::SVGAnimatedEnumeration(SVGAnimatedEnumerationImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedEnumeration::~SVGAnimatedEnumeration() +{ + if(impl) + impl->deref(); +} + +void SVGAnimatedEnumeration::setBaseVal(unsigned short baseVal) +{ + if(impl) + impl->setBaseVal(baseVal); +} + +unsigned short SVGAnimatedEnumeration::baseVal() const +{ + if(!impl) return 0; + return impl->baseVal(); +} + +unsigned short SVGAnimatedEnumeration::animVal() const +{ + if(!impl) return 0; + return impl->animVal(); +} diff --git a/ksvg/dom/SVGAnimatedInteger.cc b/ksvg/dom/SVGAnimatedInteger.cc deleted file mode 100644 index ab91c1cf..00000000 --- a/ksvg/dom/SVGAnimatedInteger.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedInteger.h" -#include "SVGAnimatedIntegerImpl.h" - -using namespace KSVG; - -SVGAnimatedInteger::SVGAnimatedInteger() -{ - impl = new SVGAnimatedIntegerImpl(); - impl->ref(); -} - -SVGAnimatedInteger::SVGAnimatedInteger(const SVGAnimatedInteger &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedInteger &SVGAnimatedInteger::operator=(const SVGAnimatedInteger &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedInteger::SVGAnimatedInteger(SVGAnimatedIntegerImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedInteger::~SVGAnimatedInteger() -{ - if(impl) - impl->deref(); -} - -void SVGAnimatedInteger::setBaseVal(long baseVal) -{ - if(impl) - impl->setBaseVal(baseVal); -} - -long SVGAnimatedInteger::baseVal() const -{ - if(!impl) return -1; - return impl->baseVal(); -} - -long SVGAnimatedInteger::animVal() const -{ - if(!impl) return -1; - return impl->animVal(); -} diff --git a/ksvg/dom/SVGAnimatedInteger.cpp b/ksvg/dom/SVGAnimatedInteger.cpp new file mode 100644 index 00000000..ab91c1cf --- /dev/null +++ b/ksvg/dom/SVGAnimatedInteger.cpp @@ -0,0 +1,82 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedInteger.h" +#include "SVGAnimatedIntegerImpl.h" + +using namespace KSVG; + +SVGAnimatedInteger::SVGAnimatedInteger() +{ + impl = new SVGAnimatedIntegerImpl(); + impl->ref(); +} + +SVGAnimatedInteger::SVGAnimatedInteger(const SVGAnimatedInteger &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedInteger &SVGAnimatedInteger::operator=(const SVGAnimatedInteger &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedInteger::SVGAnimatedInteger(SVGAnimatedIntegerImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedInteger::~SVGAnimatedInteger() +{ + if(impl) + impl->deref(); +} + +void SVGAnimatedInteger::setBaseVal(long baseVal) +{ + if(impl) + impl->setBaseVal(baseVal); +} + +long SVGAnimatedInteger::baseVal() const +{ + if(!impl) return -1; + return impl->baseVal(); +} + +long SVGAnimatedInteger::animVal() const +{ + if(!impl) return -1; + return impl->animVal(); +} diff --git a/ksvg/dom/SVGAnimatedLength.cc b/ksvg/dom/SVGAnimatedLength.cc deleted file mode 100644 index 4e1cb06b..00000000 --- a/ksvg/dom/SVGAnimatedLength.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedLength.h" -#include "SVGAnimatedLengthImpl.h" -#include "SVGLength.h" - -using namespace KSVG; - -SVGAnimatedLength::SVGAnimatedLength() -{ - impl = new SVGAnimatedLengthImpl(); - impl->ref(); -} - -SVGAnimatedLength::SVGAnimatedLength(const SVGAnimatedLength &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedLength &SVGAnimatedLength::operator=(const SVGAnimatedLength &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedLength::SVGAnimatedLength(SVGAnimatedLengthImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedLength::~SVGAnimatedLength() -{ - if(impl) - impl->deref(); -} - -SVGLength SVGAnimatedLength::baseVal() const -{ - if(!impl) return SVGLength(0); - return SVGLength(impl->baseVal()); -} - -SVGLength SVGAnimatedLength::animVal() const -{ - if(!impl) return SVGLength(0); - return SVGLength(impl->animVal()); -} diff --git a/ksvg/dom/SVGAnimatedLength.cpp b/ksvg/dom/SVGAnimatedLength.cpp new file mode 100644 index 00000000..4e1cb06b --- /dev/null +++ b/ksvg/dom/SVGAnimatedLength.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedLength.h" +#include "SVGAnimatedLengthImpl.h" +#include "SVGLength.h" + +using namespace KSVG; + +SVGAnimatedLength::SVGAnimatedLength() +{ + impl = new SVGAnimatedLengthImpl(); + impl->ref(); +} + +SVGAnimatedLength::SVGAnimatedLength(const SVGAnimatedLength &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedLength &SVGAnimatedLength::operator=(const SVGAnimatedLength &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedLength::SVGAnimatedLength(SVGAnimatedLengthImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedLength::~SVGAnimatedLength() +{ + if(impl) + impl->deref(); +} + +SVGLength SVGAnimatedLength::baseVal() const +{ + if(!impl) return SVGLength(0); + return SVGLength(impl->baseVal()); +} + +SVGLength SVGAnimatedLength::animVal() const +{ + if(!impl) return SVGLength(0); + return SVGLength(impl->animVal()); +} diff --git a/ksvg/dom/SVGAnimatedLengthList.cc b/ksvg/dom/SVGAnimatedLengthList.cc deleted file mode 100644 index 2921c4b5..00000000 --- a/ksvg/dom/SVGAnimatedLengthList.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedLengthList.h" -#include "SVGAnimatedLengthListImpl.h" - -using namespace KSVG; - -SVGAnimatedLengthList::SVGAnimatedLengthList() -{ - impl = new SVGAnimatedLengthListImpl(); - impl->ref(); -} - -SVGAnimatedLengthList::SVGAnimatedLengthList(const SVGAnimatedLengthList &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedLengthList &SVGAnimatedLengthList::operator=(const SVGAnimatedLengthList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedLengthList::SVGAnimatedLengthList(SVGAnimatedLengthListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedLengthList::~SVGAnimatedLengthList() -{ - if(impl) - impl->deref(); -} - -SVGLengthList SVGAnimatedLengthList::baseVal() const -{ - if(!impl) return 0; - return impl->animVal(); -} - -SVGLengthList SVGAnimatedLengthList::animVal() const -{ - if(!impl) return 0; - return impl->baseVal(); -} diff --git a/ksvg/dom/SVGAnimatedLengthList.cpp b/ksvg/dom/SVGAnimatedLengthList.cpp new file mode 100644 index 00000000..2921c4b5 --- /dev/null +++ b/ksvg/dom/SVGAnimatedLengthList.cpp @@ -0,0 +1,76 @@ +/* + Copyright (C) 2002 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedLengthList.h" +#include "SVGAnimatedLengthListImpl.h" + +using namespace KSVG; + +SVGAnimatedLengthList::SVGAnimatedLengthList() +{ + impl = new SVGAnimatedLengthListImpl(); + impl->ref(); +} + +SVGAnimatedLengthList::SVGAnimatedLengthList(const SVGAnimatedLengthList &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedLengthList &SVGAnimatedLengthList::operator=(const SVGAnimatedLengthList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedLengthList::SVGAnimatedLengthList(SVGAnimatedLengthListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedLengthList::~SVGAnimatedLengthList() +{ + if(impl) + impl->deref(); +} + +SVGLengthList SVGAnimatedLengthList::baseVal() const +{ + if(!impl) return 0; + return impl->animVal(); +} + +SVGLengthList SVGAnimatedLengthList::animVal() const +{ + if(!impl) return 0; + return impl->baseVal(); +} diff --git a/ksvg/dom/SVGAnimatedNumber.cc b/ksvg/dom/SVGAnimatedNumber.cc deleted file mode 100644 index 78dab4a6..00000000 --- a/ksvg/dom/SVGAnimatedNumber.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedNumberImpl.h" - -using namespace KSVG; - -SVGAnimatedNumber::SVGAnimatedNumber() -{ - impl = new SVGAnimatedNumberImpl(); - impl->ref(); -} - -SVGAnimatedNumber::SVGAnimatedNumber(const SVGAnimatedNumber &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedNumber &SVGAnimatedNumber::operator=(const SVGAnimatedNumber &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedNumber::SVGAnimatedNumber(SVGAnimatedNumberImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedNumber::~SVGAnimatedNumber() -{ - if(impl) - impl->deref(); -} - -void SVGAnimatedNumber::setBaseVal(float baseVal) -{ - if(impl) - impl->setBaseVal(baseVal); -} - -float SVGAnimatedNumber::baseVal() const -{ - if(!impl) return -1; - return impl->baseVal(); -} - -float SVGAnimatedNumber::animVal() const -{ - if(!impl) return -1; - return impl->animVal(); -} diff --git a/ksvg/dom/SVGAnimatedNumber.cpp b/ksvg/dom/SVGAnimatedNumber.cpp new file mode 100644 index 00000000..78dab4a6 --- /dev/null +++ b/ksvg/dom/SVGAnimatedNumber.cpp @@ -0,0 +1,82 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedNumberImpl.h" + +using namespace KSVG; + +SVGAnimatedNumber::SVGAnimatedNumber() +{ + impl = new SVGAnimatedNumberImpl(); + impl->ref(); +} + +SVGAnimatedNumber::SVGAnimatedNumber(const SVGAnimatedNumber &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedNumber &SVGAnimatedNumber::operator=(const SVGAnimatedNumber &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedNumber::SVGAnimatedNumber(SVGAnimatedNumberImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedNumber::~SVGAnimatedNumber() +{ + if(impl) + impl->deref(); +} + +void SVGAnimatedNumber::setBaseVal(float baseVal) +{ + if(impl) + impl->setBaseVal(baseVal); +} + +float SVGAnimatedNumber::baseVal() const +{ + if(!impl) return -1; + return impl->baseVal(); +} + +float SVGAnimatedNumber::animVal() const +{ + if(!impl) return -1; + return impl->animVal(); +} diff --git a/ksvg/dom/SVGAnimatedNumberList.cc b/ksvg/dom/SVGAnimatedNumberList.cc deleted file mode 100644 index cf4fb8ae..00000000 --- a/ksvg/dom/SVGAnimatedNumberList.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2002 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedNumberList.h" -#include "SVGAnimatedNumberListImpl.h" - -using namespace KSVG; - -SVGAnimatedNumberList::SVGAnimatedNumberList() -{ - impl = new SVGAnimatedNumberListImpl(); - impl->ref(); -} - -SVGAnimatedNumberList::SVGAnimatedNumberList(const SVGAnimatedNumberList &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedNumberList &SVGAnimatedNumberList::operator=(const SVGAnimatedNumberList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedNumberList::SVGAnimatedNumberList(SVGAnimatedNumberListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedNumberList::~SVGAnimatedNumberList() -{ - if(impl) - impl->deref(); -} - -SVGNumberList SVGAnimatedNumberList::baseVal() const -{ - if(!impl) return 0; - return impl->animVal(); -} - -SVGNumberList SVGAnimatedNumberList::animVal() const -{ - if(!impl) return 0; - return impl->baseVal(); -} diff --git a/ksvg/dom/SVGAnimatedNumberList.cpp b/ksvg/dom/SVGAnimatedNumberList.cpp new file mode 100644 index 00000000..cf4fb8ae --- /dev/null +++ b/ksvg/dom/SVGAnimatedNumberList.cpp @@ -0,0 +1,76 @@ +/* + Copyright (C) 2002 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedNumberList.h" +#include "SVGAnimatedNumberListImpl.h" + +using namespace KSVG; + +SVGAnimatedNumberList::SVGAnimatedNumberList() +{ + impl = new SVGAnimatedNumberListImpl(); + impl->ref(); +} + +SVGAnimatedNumberList::SVGAnimatedNumberList(const SVGAnimatedNumberList &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedNumberList &SVGAnimatedNumberList::operator=(const SVGAnimatedNumberList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedNumberList::SVGAnimatedNumberList(SVGAnimatedNumberListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedNumberList::~SVGAnimatedNumberList() +{ + if(impl) + impl->deref(); +} + +SVGNumberList SVGAnimatedNumberList::baseVal() const +{ + if(!impl) return 0; + return impl->animVal(); +} + +SVGNumberList SVGAnimatedNumberList::animVal() const +{ + if(!impl) return 0; + return impl->baseVal(); +} diff --git a/ksvg/dom/SVGAnimatedPathData.cc b/ksvg/dom/SVGAnimatedPathData.cc deleted file mode 100644 index 98b3c739..00000000 --- a/ksvg/dom/SVGAnimatedPathData.cc +++ /dev/null @@ -1,89 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedPathData.h" -#include "SVGAnimatedPathDataImpl.h" -#include "SVGPathSegList.h" - -using namespace KSVG; - -SVGAnimatedPathData::SVGAnimatedPathData() -{ - impl = new SVGAnimatedPathDataImpl(); - impl->ref(); -} - -SVGAnimatedPathData::SVGAnimatedPathData(const SVGAnimatedPathData &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedPathData &SVGAnimatedPathData::operator=(const SVGAnimatedPathData &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedPathData::SVGAnimatedPathData(SVGAnimatedPathDataImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedPathData::~SVGAnimatedPathData() -{ - if(impl) - impl->deref(); -} - -SVGPathSegList SVGAnimatedPathData::pathSegList() const -{ - if(!impl) return SVGPathSegList(0); - return SVGPathSegList(impl->pathSegList()); -} - -SVGPathSegList SVGAnimatedPathData::normalizedPathSegList() const -{ - if(!impl) return SVGPathSegList(0); - return SVGPathSegList(impl->normalizedPathSegList()); -} - -SVGPathSegList SVGAnimatedPathData::animatedPathSegList() const -{ - if(!impl) return SVGPathSegList(0); - return SVGPathSegList(impl->animatedPathSegList()); -} - -SVGPathSegList SVGAnimatedPathData::animatedNormalizedPathSegList() const -{ - if(!impl) return SVGPathSegList(0); - return SVGPathSegList(impl->animatedNormalizedPathSegList()); -} diff --git a/ksvg/dom/SVGAnimatedPathData.cpp b/ksvg/dom/SVGAnimatedPathData.cpp new file mode 100644 index 00000000..98b3c739 --- /dev/null +++ b/ksvg/dom/SVGAnimatedPathData.cpp @@ -0,0 +1,89 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedPathData.h" +#include "SVGAnimatedPathDataImpl.h" +#include "SVGPathSegList.h" + +using namespace KSVG; + +SVGAnimatedPathData::SVGAnimatedPathData() +{ + impl = new SVGAnimatedPathDataImpl(); + impl->ref(); +} + +SVGAnimatedPathData::SVGAnimatedPathData(const SVGAnimatedPathData &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedPathData &SVGAnimatedPathData::operator=(const SVGAnimatedPathData &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedPathData::SVGAnimatedPathData(SVGAnimatedPathDataImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedPathData::~SVGAnimatedPathData() +{ + if(impl) + impl->deref(); +} + +SVGPathSegList SVGAnimatedPathData::pathSegList() const +{ + if(!impl) return SVGPathSegList(0); + return SVGPathSegList(impl->pathSegList()); +} + +SVGPathSegList SVGAnimatedPathData::normalizedPathSegList() const +{ + if(!impl) return SVGPathSegList(0); + return SVGPathSegList(impl->normalizedPathSegList()); +} + +SVGPathSegList SVGAnimatedPathData::animatedPathSegList() const +{ + if(!impl) return SVGPathSegList(0); + return SVGPathSegList(impl->animatedPathSegList()); +} + +SVGPathSegList SVGAnimatedPathData::animatedNormalizedPathSegList() const +{ + if(!impl) return SVGPathSegList(0); + return SVGPathSegList(impl->animatedNormalizedPathSegList()); +} diff --git a/ksvg/dom/SVGAnimatedPoints.cc b/ksvg/dom/SVGAnimatedPoints.cc deleted file mode 100644 index 2b91f989..00000000 --- a/ksvg/dom/SVGAnimatedPoints.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedPoints.h" -#include "SVGAnimatedPointsImpl.h" -#include "SVGPointList.h" - -using namespace KSVG; - -SVGAnimatedPoints::SVGAnimatedPoints() -{ - impl = new SVGAnimatedPointsImpl(); - impl->ref(); -} - -SVGAnimatedPoints::SVGAnimatedPoints(const SVGAnimatedPoints &other) : impl(0) -{ - (*this) = other;; -} - -SVGAnimatedPoints &SVGAnimatedPoints::operator=(const SVGAnimatedPoints &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedPoints::SVGAnimatedPoints(SVGAnimatedPointsImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedPoints::~SVGAnimatedPoints() -{ - if(impl) - impl->deref(); -} - -SVGPointList SVGAnimatedPoints::points() const -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->points()); -} - -SVGPointList SVGAnimatedPoints::animatedPoints() const -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->animatedPoints()); -} diff --git a/ksvg/dom/SVGAnimatedPoints.cpp b/ksvg/dom/SVGAnimatedPoints.cpp new file mode 100644 index 00000000..2b91f989 --- /dev/null +++ b/ksvg/dom/SVGAnimatedPoints.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedPoints.h" +#include "SVGAnimatedPointsImpl.h" +#include "SVGPointList.h" + +using namespace KSVG; + +SVGAnimatedPoints::SVGAnimatedPoints() +{ + impl = new SVGAnimatedPointsImpl(); + impl->ref(); +} + +SVGAnimatedPoints::SVGAnimatedPoints(const SVGAnimatedPoints &other) : impl(0) +{ + (*this) = other;; +} + +SVGAnimatedPoints &SVGAnimatedPoints::operator=(const SVGAnimatedPoints &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedPoints::SVGAnimatedPoints(SVGAnimatedPointsImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedPoints::~SVGAnimatedPoints() +{ + if(impl) + impl->deref(); +} + +SVGPointList SVGAnimatedPoints::points() const +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->points()); +} + +SVGPointList SVGAnimatedPoints::animatedPoints() const +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->animatedPoints()); +} diff --git a/ksvg/dom/SVGAnimatedPreserveAspectRatio.cc b/ksvg/dom/SVGAnimatedPreserveAspectRatio.cc deleted file mode 100644 index 2f3d3e17..00000000 --- a/ksvg/dom/SVGAnimatedPreserveAspectRatio.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedPreserveAspectRatio.h" -#include "SVGAnimatedPreserveAspectRatioImpl.h" -#include "SVGPreserveAspectRatio.h" - -using namespace KSVG; - -SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio() -{ - impl = new SVGAnimatedPreserveAspectRatioImpl(); - impl->ref(); -} - -SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(const SVGAnimatedPreserveAspectRatio &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedPreserveAspectRatio &SVGAnimatedPreserveAspectRatio::operator=(const SVGAnimatedPreserveAspectRatio &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(SVGAnimatedPreserveAspectRatioImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedPreserveAspectRatio::~SVGAnimatedPreserveAspectRatio() -{ - if(impl) - impl->deref(); -} - -SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::baseVal() const -{ - if(!impl) return SVGPreserveAspectRatio(0); - return SVGPreserveAspectRatio(impl->baseVal()); -} - -SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::animVal() const -{ - if(!impl) return SVGPreserveAspectRatio(0); - return SVGPreserveAspectRatio(impl->animVal()); -} diff --git a/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp b/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp new file mode 100644 index 00000000..2f3d3e17 --- /dev/null +++ b/ksvg/dom/SVGAnimatedPreserveAspectRatio.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedPreserveAspectRatio.h" +#include "SVGAnimatedPreserveAspectRatioImpl.h" +#include "SVGPreserveAspectRatio.h" + +using namespace KSVG; + +SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio() +{ + impl = new SVGAnimatedPreserveAspectRatioImpl(); + impl->ref(); +} + +SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(const SVGAnimatedPreserveAspectRatio &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedPreserveAspectRatio &SVGAnimatedPreserveAspectRatio::operator=(const SVGAnimatedPreserveAspectRatio &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedPreserveAspectRatio::SVGAnimatedPreserveAspectRatio(SVGAnimatedPreserveAspectRatioImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedPreserveAspectRatio::~SVGAnimatedPreserveAspectRatio() +{ + if(impl) + impl->deref(); +} + +SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::baseVal() const +{ + if(!impl) return SVGPreserveAspectRatio(0); + return SVGPreserveAspectRatio(impl->baseVal()); +} + +SVGPreserveAspectRatio SVGAnimatedPreserveAspectRatio::animVal() const +{ + if(!impl) return SVGPreserveAspectRatio(0); + return SVGPreserveAspectRatio(impl->animVal()); +} diff --git a/ksvg/dom/SVGAnimatedRect.cc b/ksvg/dom/SVGAnimatedRect.cc deleted file mode 100644 index 29cf0518..00000000 --- a/ksvg/dom/SVGAnimatedRect.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedRect.h" -#include "SVGAnimatedRectImpl.h" -#include "SVGRect.h" - -using namespace KSVG; - -SVGAnimatedRect::SVGAnimatedRect() -{ - impl = new SVGAnimatedRectImpl(); - impl->ref(); -} - -SVGAnimatedRect::SVGAnimatedRect(const SVGAnimatedRect &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedRect &SVGAnimatedRect::operator=(const SVGAnimatedRect &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedRect::SVGAnimatedRect(SVGAnimatedRectImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedRect::~SVGAnimatedRect() -{ - if(impl) - impl->deref(); -} - -SVGRect SVGAnimatedRect::baseVal() const -{ - if(!impl) return SVGRect(0); - return SVGRect(impl->baseVal()); -} - -SVGRect SVGAnimatedRect::animVal() const -{ - if(!impl) return SVGRect(0); - return SVGRect(impl->animVal()); -} diff --git a/ksvg/dom/SVGAnimatedRect.cpp b/ksvg/dom/SVGAnimatedRect.cpp new file mode 100644 index 00000000..29cf0518 --- /dev/null +++ b/ksvg/dom/SVGAnimatedRect.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedRect.h" +#include "SVGAnimatedRectImpl.h" +#include "SVGRect.h" + +using namespace KSVG; + +SVGAnimatedRect::SVGAnimatedRect() +{ + impl = new SVGAnimatedRectImpl(); + impl->ref(); +} + +SVGAnimatedRect::SVGAnimatedRect(const SVGAnimatedRect &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedRect &SVGAnimatedRect::operator=(const SVGAnimatedRect &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedRect::SVGAnimatedRect(SVGAnimatedRectImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedRect::~SVGAnimatedRect() +{ + if(impl) + impl->deref(); +} + +SVGRect SVGAnimatedRect::baseVal() const +{ + if(!impl) return SVGRect(0); + return SVGRect(impl->baseVal()); +} + +SVGRect SVGAnimatedRect::animVal() const +{ + if(!impl) return SVGRect(0); + return SVGRect(impl->animVal()); +} diff --git a/ksvg/dom/SVGAnimatedString.cc b/ksvg/dom/SVGAnimatedString.cc deleted file mode 100644 index ba69c6e1..00000000 --- a/ksvg/dom/SVGAnimatedString.cc +++ /dev/null @@ -1,82 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedString.h" -#include "SVGAnimatedStringImpl.h" - -using namespace KSVG; - -SVGAnimatedString::SVGAnimatedString() -{ - impl = new SVGAnimatedStringImpl(); - impl->ref(); -} - -SVGAnimatedString::SVGAnimatedString(const SVGAnimatedString &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedString &SVGAnimatedString::operator=(const SVGAnimatedString &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedString::SVGAnimatedString(SVGAnimatedStringImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedString::~SVGAnimatedString() -{ - if(impl) - impl->deref(); -} - -void SVGAnimatedString::setBaseVal(const DOM::DOMString &baseVal) -{ - if(impl) - impl->setBaseVal(baseVal); -} - -DOM::DOMString SVGAnimatedString::baseVal() const -{ - if(!impl) return DOM::DOMString(); - return impl->baseVal(); -} - -DOM::DOMString SVGAnimatedString::animVal() const -{ - if(!impl) return DOM::DOMString(); - return impl->animVal(); -} diff --git a/ksvg/dom/SVGAnimatedString.cpp b/ksvg/dom/SVGAnimatedString.cpp new file mode 100644 index 00000000..ba69c6e1 --- /dev/null +++ b/ksvg/dom/SVGAnimatedString.cpp @@ -0,0 +1,82 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedString.h" +#include "SVGAnimatedStringImpl.h" + +using namespace KSVG; + +SVGAnimatedString::SVGAnimatedString() +{ + impl = new SVGAnimatedStringImpl(); + impl->ref(); +} + +SVGAnimatedString::SVGAnimatedString(const SVGAnimatedString &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedString &SVGAnimatedString::operator=(const SVGAnimatedString &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedString::SVGAnimatedString(SVGAnimatedStringImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedString::~SVGAnimatedString() +{ + if(impl) + impl->deref(); +} + +void SVGAnimatedString::setBaseVal(const DOM::DOMString &baseVal) +{ + if(impl) + impl->setBaseVal(baseVal); +} + +DOM::DOMString SVGAnimatedString::baseVal() const +{ + if(!impl) return DOM::DOMString(); + return impl->baseVal(); +} + +DOM::DOMString SVGAnimatedString::animVal() const +{ + if(!impl) return DOM::DOMString(); + return impl->animVal(); +} diff --git a/ksvg/dom/SVGAnimatedTransformList.cc b/ksvg/dom/SVGAnimatedTransformList.cc deleted file mode 100644 index 7a8cbe49..00000000 --- a/ksvg/dom/SVGAnimatedTransformList.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimatedTransformList.h" -#include "SVGAnimatedTransformListImpl.h" -#include "SVGTransformList.h" - -using namespace KSVG; - -SVGAnimatedTransformList::SVGAnimatedTransformList() -{ - impl = new SVGAnimatedTransformListImpl(); - impl->ref(); -} - -SVGAnimatedTransformList::SVGAnimatedTransformList(const SVGAnimatedTransformList &other) : impl(0) -{ - (*this) = other; -} - -SVGAnimatedTransformList &SVGAnimatedTransformList::operator=(const SVGAnimatedTransformList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimatedTransformList::SVGAnimatedTransformList(SVGAnimatedTransformListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimatedTransformList::~SVGAnimatedTransformList() -{ - if(impl) - impl->deref(); -} - -SVGTransformList SVGAnimatedTransformList::baseVal() const -{ - if(!impl) return SVGTransformList(0); - return SVGTransformList(impl->baseVal()); -} - -SVGTransformList SVGAnimatedTransformList::animVal() const -{ - if(!impl) return SVGTransformList(0); - return SVGTransformList(impl->animVal()); -} diff --git a/ksvg/dom/SVGAnimatedTransformList.cpp b/ksvg/dom/SVGAnimatedTransformList.cpp new file mode 100644 index 00000000..7a8cbe49 --- /dev/null +++ b/ksvg/dom/SVGAnimatedTransformList.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimatedTransformList.h" +#include "SVGAnimatedTransformListImpl.h" +#include "SVGTransformList.h" + +using namespace KSVG; + +SVGAnimatedTransformList::SVGAnimatedTransformList() +{ + impl = new SVGAnimatedTransformListImpl(); + impl->ref(); +} + +SVGAnimatedTransformList::SVGAnimatedTransformList(const SVGAnimatedTransformList &other) : impl(0) +{ + (*this) = other; +} + +SVGAnimatedTransformList &SVGAnimatedTransformList::operator=(const SVGAnimatedTransformList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimatedTransformList::SVGAnimatedTransformList(SVGAnimatedTransformListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimatedTransformList::~SVGAnimatedTransformList() +{ + if(impl) + impl->deref(); +} + +SVGTransformList SVGAnimatedTransformList::baseVal() const +{ + if(!impl) return SVGTransformList(0); + return SVGTransformList(impl->baseVal()); +} + +SVGTransformList SVGAnimatedTransformList::animVal() const +{ + if(!impl) return SVGTransformList(0); + return SVGTransformList(impl->animVal()); +} diff --git a/ksvg/dom/SVGAnimationElement.cc b/ksvg/dom/SVGAnimationElement.cc deleted file mode 100644 index 0cc1ce3b..00000000 --- a/ksvg/dom/SVGAnimationElement.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGAnimationElement.h" -#include "SVGAnimationElementImpl.h" - -using namespace KSVG; - -SVGAnimationElement::SVGAnimationElement() : SVGElement(), SVGTests(), SVGExternalResourcesRequired() -{ - impl = 0; -} - -SVGAnimationElement::SVGAnimationElement(const SVGAnimationElement &other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0) -{ - (*this) = other; -} - -SVGAnimationElement &SVGAnimationElement::operator=(const SVGAnimationElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGExternalResourcesRequired::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGAnimationElement::SVGAnimationElement(SVGAnimationElementImpl *other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGAnimationElement::~SVGAnimationElement() -{ - if(impl) - impl->deref(); -} - -SVGElement SVGAnimationElement::targetElement() const -{ - if(!impl) return SVGElement(0); - return SVGElement(impl->targetElement()); -} - -float SVGAnimationElement::getStartTime() -{ - if(!impl) return -1; - return impl->getStartTime(); -} - -float SVGAnimationElement::getCurrentTime() -{ - if(!impl) return -1; - return impl->getCurrentTime(); -} - -float SVGAnimationElement::getSimpleDuration() -{ - if(!impl) return -1; - return impl->getSimpleDuration(); -} diff --git a/ksvg/dom/SVGAnimationElement.cpp b/ksvg/dom/SVGAnimationElement.cpp new file mode 100644 index 00000000..0cc1ce3b --- /dev/null +++ b/ksvg/dom/SVGAnimationElement.cpp @@ -0,0 +1,91 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGAnimationElement.h" +#include "SVGAnimationElementImpl.h" + +using namespace KSVG; + +SVGAnimationElement::SVGAnimationElement() : SVGElement(), SVGTests(), SVGExternalResourcesRequired() +{ + impl = 0; +} + +SVGAnimationElement::SVGAnimationElement(const SVGAnimationElement &other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0) +{ + (*this) = other; +} + +SVGAnimationElement &SVGAnimationElement::operator=(const SVGAnimationElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGExternalResourcesRequired::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGAnimationElement::SVGAnimationElement(SVGAnimationElementImpl *other) : SVGElement(other), SVGTests(other), SVGExternalResourcesRequired(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGAnimationElement::~SVGAnimationElement() +{ + if(impl) + impl->deref(); +} + +SVGElement SVGAnimationElement::targetElement() const +{ + if(!impl) return SVGElement(0); + return SVGElement(impl->targetElement()); +} + +float SVGAnimationElement::getStartTime() +{ + if(!impl) return -1; + return impl->getStartTime(); +} + +float SVGAnimationElement::getCurrentTime() +{ + if(!impl) return -1; + return impl->getCurrentTime(); +} + +float SVGAnimationElement::getSimpleDuration() +{ + if(!impl) return -1; + return impl->getSimpleDuration(); +} diff --git a/ksvg/dom/SVGCSSRule.cc b/ksvg/dom/SVGCSSRule.cc deleted file mode 100644 index 0cb02c97..00000000 --- a/ksvg/dom/SVGCSSRule.cc +++ /dev/null @@ -1,64 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGCSSRule.h" -#include "SVGCSSRuleImpl.h" - -using namespace KSVG; - -SVGCSSRule::SVGCSSRule() //: css::CSSRule() -{ - impl = new SVGCSSRuleImpl(); - impl->ref(); -} - -SVGCSSRule::SVGCSSRule(const SVGCSSRule &other) : /*css::CSSRule(),*/ impl(0) -{ - (*this) = other; -} - -SVGCSSRule &SVGCSSRule::operator=(const SVGCSSRule &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGCSSRule::SVGCSSRule(SVGCSSRuleImpl *other) //: css::CSSRule() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGCSSRule::~SVGCSSRule() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGCSSRule.cpp b/ksvg/dom/SVGCSSRule.cpp new file mode 100644 index 00000000..0cb02c97 --- /dev/null +++ b/ksvg/dom/SVGCSSRule.cpp @@ -0,0 +1,64 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGCSSRule.h" +#include "SVGCSSRuleImpl.h" + +using namespace KSVG; + +SVGCSSRule::SVGCSSRule() //: css::CSSRule() +{ + impl = new SVGCSSRuleImpl(); + impl->ref(); +} + +SVGCSSRule::SVGCSSRule(const SVGCSSRule &other) : /*css::CSSRule(),*/ impl(0) +{ + (*this) = other; +} + +SVGCSSRule &SVGCSSRule::operator=(const SVGCSSRule &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGCSSRule::SVGCSSRule(SVGCSSRuleImpl *other) //: css::CSSRule() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGCSSRule::~SVGCSSRule() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGCircleElement.cc b/ksvg/dom/SVGCircleElement.cc deleted file mode 100644 index 746160e6..00000000 --- a/ksvg/dom/SVGCircleElement.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGCircleElement.h" -#include "SVGCircleElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGCircleElement::SVGCircleElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGCircleElement::SVGCircleElement(const SVGCircleElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGCircleElement &SVGCircleElement::operator=(const SVGCircleElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGCircleElement::SVGCircleElement(SVGCircleElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGCircleElement::~SVGCircleElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGCircleElement::cx() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cx()); -} - -SVGAnimatedLength SVGCircleElement::cy() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cy()); -} - -SVGAnimatedLength SVGCircleElement::r() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->r()); -} diff --git a/ksvg/dom/SVGCircleElement.cpp b/ksvg/dom/SVGCircleElement.cpp new file mode 100644 index 00000000..746160e6 --- /dev/null +++ b/ksvg/dom/SVGCircleElement.cpp @@ -0,0 +1,90 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGCircleElement.h" +#include "SVGCircleElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGCircleElement::SVGCircleElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGCircleElement::SVGCircleElement(const SVGCircleElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGCircleElement &SVGCircleElement::operator=(const SVGCircleElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGCircleElement::SVGCircleElement(SVGCircleElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGCircleElement::~SVGCircleElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGCircleElement::cx() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cx()); +} + +SVGAnimatedLength SVGCircleElement::cy() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cy()); +} + +SVGAnimatedLength SVGCircleElement::r() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->r()); +} diff --git a/ksvg/dom/SVGClipPathElement.cc b/ksvg/dom/SVGClipPathElement.cc deleted file mode 100644 index e6c66f7f..00000000 --- a/ksvg/dom/SVGClipPathElement.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGClipPathElement.h" -#include "SVGClipPathElementImpl.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGClipPathElement::SVGClipPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGClipPathElement::SVGClipPathElement(const SVGClipPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - (*this) = other; -} - -SVGClipPathElement &SVGClipPathElement::operator=(const SVGClipPathElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGClipPathElement::SVGClipPathElement(SVGClipPathElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGClipPathElement::~SVGClipPathElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedEnumeration SVGClipPathElement::clipPathUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->clipPathUnits()); -} diff --git a/ksvg/dom/SVGClipPathElement.cpp b/ksvg/dom/SVGClipPathElement.cpp new file mode 100644 index 00000000..e6c66f7f --- /dev/null +++ b/ksvg/dom/SVGClipPathElement.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGClipPathElement.h" +#include "SVGClipPathElementImpl.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGClipPathElement::SVGClipPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGClipPathElement::SVGClipPathElement(const SVGClipPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + (*this) = other; +} + +SVGClipPathElement &SVGClipPathElement::operator=(const SVGClipPathElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGClipPathElement::SVGClipPathElement(SVGClipPathElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGClipPathElement::~SVGClipPathElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedEnumeration SVGClipPathElement::clipPathUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->clipPathUnits()); +} diff --git a/ksvg/dom/SVGColor.cc b/ksvg/dom/SVGColor.cc deleted file mode 100644 index 2a7947ab..00000000 --- a/ksvg/dom/SVGColor.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option); any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGColor.h" -#include "SVGICCColor.h" -#include "SVGColorImpl.h" - -using namespace KSVG; - -SVGColor::SVGColor() -{ - // FIXME: no icc color support... - impl = new SVGColorImpl(0); - impl->ref(); -} - -SVGColor::SVGColor(const SVGColor &other) : impl(0) -{ - (*this) = other; -} - -SVGColor &SVGColor::operator=(const SVGColor &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; - -} - -SVGColor::SVGColor(SVGColorImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGColor::~SVGColor() -{ - if(impl) - impl->deref(); -} - -unsigned short SVGColor::colorType() const -{ - if(!impl) return SVG_COLORTYPE_UNKNOWN; - return impl->colorType(); -} - -DOM::RGBColor SVGColor::rgbColor() const -{ - if(!impl) return DOM::RGBColor(); - return impl->rgbColor(); -} - -SVGICCColor SVGColor::iccColor() const -{ - if(!impl) return SVGICCColor(); - return impl->iccColor(); -} - -void SVGColor::setRGBColor(const DOM::DOMString &rgbColor) -{ - if(impl) - impl->setRGBColor(rgbColor); -} - -void SVGColor::setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) -{ - if(impl) - impl->setRGBColorICCColor(rgbColor, iccColor); -} - -void SVGColor::setColor(unsigned short colorType, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) -{ - if(impl) - impl->setColor(colorType, rgbColor, iccColor); -} diff --git a/ksvg/dom/SVGColor.cpp b/ksvg/dom/SVGColor.cpp new file mode 100644 index 00000000..2a7947ab --- /dev/null +++ b/ksvg/dom/SVGColor.cpp @@ -0,0 +1,103 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option); any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGColor.h" +#include "SVGICCColor.h" +#include "SVGColorImpl.h" + +using namespace KSVG; + +SVGColor::SVGColor() +{ + // FIXME: no icc color support... + impl = new SVGColorImpl(0); + impl->ref(); +} + +SVGColor::SVGColor(const SVGColor &other) : impl(0) +{ + (*this) = other; +} + +SVGColor &SVGColor::operator=(const SVGColor &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; + +} + +SVGColor::SVGColor(SVGColorImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGColor::~SVGColor() +{ + if(impl) + impl->deref(); +} + +unsigned short SVGColor::colorType() const +{ + if(!impl) return SVG_COLORTYPE_UNKNOWN; + return impl->colorType(); +} + +DOM::RGBColor SVGColor::rgbColor() const +{ + if(!impl) return DOM::RGBColor(); + return impl->rgbColor(); +} + +SVGICCColor SVGColor::iccColor() const +{ + if(!impl) return SVGICCColor(); + return impl->iccColor(); +} + +void SVGColor::setRGBColor(const DOM::DOMString &rgbColor) +{ + if(impl) + impl->setRGBColor(rgbColor); +} + +void SVGColor::setRGBColorICCColor(const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) +{ + if(impl) + impl->setRGBColorICCColor(rgbColor, iccColor); +} + +void SVGColor::setColor(unsigned short colorType, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) +{ + if(impl) + impl->setColor(colorType, rgbColor, iccColor); +} diff --git a/ksvg/dom/SVGColorProfileElement.cc b/ksvg/dom/SVGColorProfileElement.cc deleted file mode 100644 index fa86f4f5..00000000 --- a/ksvg/dom/SVGColorProfileElement.cc +++ /dev/null @@ -1,103 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGColorProfileElement.h" -#include "SVGColorProfileElementImpl.h" -#include "SVGRenderingIntent.h" - -using namespace KSVG; - -SVGColorProfileElement::SVGColorProfileElement() : SVGElement(), SVGURIReference() -{ - impl = 0; -} - -SVGColorProfileElement::SVGColorProfileElement(const SVGColorProfileElement &other) : SVGElement(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGColorProfileElement &SVGColorProfileElement::operator=(const SVGColorProfileElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGColorProfileElement::SVGColorProfileElement(SVGColorProfileElementImpl *other) : SVGElement(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGColorProfileElement::~SVGColorProfileElement() -{ - if(impl) - impl->deref(); -} - -void SVGColorProfileElement::setLocal(const DOM::DOMString &local) -{ - if(impl) - impl->setLocal(local); -} - -DOM::DOMString SVGColorProfileElement::local() const -{ - if(!impl) return DOM::DOMString(); - return impl->local(); -} - -void SVGColorProfileElement::setName(const DOM::DOMString &name) -{ - if(impl) - impl->setName(name); -} - -DOM::DOMString SVGColorProfileElement::name() const -{ - if(!impl) return DOM::DOMString(); - return impl->name(); -} - -void SVGColorProfileElement::setRenderingIntent(unsigned short renderingIntent) -{ - if(impl) - impl->setRenderingIntent(renderingIntent); -} - -unsigned short SVGColorProfileElement::renderingIntent() const -{ - if(!impl) return RENDERING_INTENT_UNKNOWN; - return impl->renderingIntent(); -} diff --git a/ksvg/dom/SVGColorProfileElement.cpp b/ksvg/dom/SVGColorProfileElement.cpp new file mode 100644 index 00000000..fa86f4f5 --- /dev/null +++ b/ksvg/dom/SVGColorProfileElement.cpp @@ -0,0 +1,103 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGColorProfileElement.h" +#include "SVGColorProfileElementImpl.h" +#include "SVGRenderingIntent.h" + +using namespace KSVG; + +SVGColorProfileElement::SVGColorProfileElement() : SVGElement(), SVGURIReference() +{ + impl = 0; +} + +SVGColorProfileElement::SVGColorProfileElement(const SVGColorProfileElement &other) : SVGElement(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGColorProfileElement &SVGColorProfileElement::operator=(const SVGColorProfileElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGColorProfileElement::SVGColorProfileElement(SVGColorProfileElementImpl *other) : SVGElement(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGColorProfileElement::~SVGColorProfileElement() +{ + if(impl) + impl->deref(); +} + +void SVGColorProfileElement::setLocal(const DOM::DOMString &local) +{ + if(impl) + impl->setLocal(local); +} + +DOM::DOMString SVGColorProfileElement::local() const +{ + if(!impl) return DOM::DOMString(); + return impl->local(); +} + +void SVGColorProfileElement::setName(const DOM::DOMString &name) +{ + if(impl) + impl->setName(name); +} + +DOM::DOMString SVGColorProfileElement::name() const +{ + if(!impl) return DOM::DOMString(); + return impl->name(); +} + +void SVGColorProfileElement::setRenderingIntent(unsigned short renderingIntent) +{ + if(impl) + impl->setRenderingIntent(renderingIntent); +} + +unsigned short SVGColorProfileElement::renderingIntent() const +{ + if(!impl) return RENDERING_INTENT_UNKNOWN; + return impl->renderingIntent(); +} diff --git a/ksvg/dom/SVGColorProfileRule.cc b/ksvg/dom/SVGColorProfileRule.cc deleted file mode 100644 index 0a2da253..00000000 --- a/ksvg/dom/SVGColorProfileRule.cc +++ /dev/null @@ -1,101 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGColorProfileRule.h" -#include "SVGColorProfileRuleImpl.h" -#include "SVGRenderingIntent.h" - -using namespace KSVG; - -SVGColorProfileRule::SVGColorProfileRule() : SVGCSSRule() -{ - impl = new SVGColorProfileRuleImpl(); - impl->ref(); -} - -SVGColorProfileRule::SVGColorProfileRule(const SVGColorProfileRule &other) : SVGCSSRule(), impl(0) -{ - (*this) = other; -} - -SVGColorProfileRule &SVGColorProfileRule::operator=(const SVGColorProfileRule &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGColorProfileRule::SVGColorProfileRule(SVGColorProfileRuleImpl *other) : SVGCSSRule(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGColorProfileRule::~SVGColorProfileRule() -{ - if(impl) - impl->deref(); -} - -void SVGColorProfileRule::setSrc(const DOM::DOMString &src) -{ - if(impl) - impl->setSrc(src); -} - -DOM::DOMString SVGColorProfileRule::src() const -{ - if(!impl) return DOM::DOMString(); - return impl->src(); -} - -void SVGColorProfileRule::setName(const DOM::DOMString &name) -{ - if(impl) - impl->setName(name); -} - -DOM::DOMString SVGColorProfileRule::name() const -{ - if(!impl) return DOM::DOMString(); - return impl->name(); -} - -void SVGColorProfileRule::setRenderingIntent(unsigned short renderingIntent) -{ - if(impl) - impl->setRenderingIntent(renderingIntent); -} - -unsigned short SVGColorProfileRule::renderingIntent() const -{ - if(!impl) return RENDERING_INTENT_UNKNOWN; - return impl->renderingIntent(); -} diff --git a/ksvg/dom/SVGColorProfileRule.cpp b/ksvg/dom/SVGColorProfileRule.cpp new file mode 100644 index 00000000..0a2da253 --- /dev/null +++ b/ksvg/dom/SVGColorProfileRule.cpp @@ -0,0 +1,101 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGColorProfileRule.h" +#include "SVGColorProfileRuleImpl.h" +#include "SVGRenderingIntent.h" + +using namespace KSVG; + +SVGColorProfileRule::SVGColorProfileRule() : SVGCSSRule() +{ + impl = new SVGColorProfileRuleImpl(); + impl->ref(); +} + +SVGColorProfileRule::SVGColorProfileRule(const SVGColorProfileRule &other) : SVGCSSRule(), impl(0) +{ + (*this) = other; +} + +SVGColorProfileRule &SVGColorProfileRule::operator=(const SVGColorProfileRule &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGColorProfileRule::SVGColorProfileRule(SVGColorProfileRuleImpl *other) : SVGCSSRule(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGColorProfileRule::~SVGColorProfileRule() +{ + if(impl) + impl->deref(); +} + +void SVGColorProfileRule::setSrc(const DOM::DOMString &src) +{ + if(impl) + impl->setSrc(src); +} + +DOM::DOMString SVGColorProfileRule::src() const +{ + if(!impl) return DOM::DOMString(); + return impl->src(); +} + +void SVGColorProfileRule::setName(const DOM::DOMString &name) +{ + if(impl) + impl->setName(name); +} + +DOM::DOMString SVGColorProfileRule::name() const +{ + if(!impl) return DOM::DOMString(); + return impl->name(); +} + +void SVGColorProfileRule::setRenderingIntent(unsigned short renderingIntent) +{ + if(impl) + impl->setRenderingIntent(renderingIntent); +} + +unsigned short SVGColorProfileRule::renderingIntent() const +{ + if(!impl) return RENDERING_INTENT_UNKNOWN; + return impl->renderingIntent(); +} diff --git a/ksvg/dom/SVGComponentTransferFunctionElement.cc b/ksvg/dom/SVGComponentTransferFunctionElement.cc deleted file mode 100644 index 66639416..00000000 --- a/ksvg/dom/SVGComponentTransferFunctionElement.cc +++ /dev/null @@ -1,110 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGComponentTransferFunctionElement.h" -#include "SVGComponentTransferFunctionElementImpl.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedNumberList.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement() : SVGElement() -{ - impl = 0; -} - -SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const SVGComponentTransferFunctionElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGComponentTransferFunctionElement &SVGComponentTransferFunctionElement::operator =(const SVGComponentTransferFunctionElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(SVGComponentTransferFunctionElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGComponentTransferFunctionElement::~SVGComponentTransferFunctionElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedEnumeration SVGComponentTransferFunctionElement::type() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->type()); -} - -SVGAnimatedNumberList SVGComponentTransferFunctionElement::tableValues() const -{ - if(!impl) return SVGAnimatedNumberList(0); - return SVGAnimatedNumberList(impl->tableValues()); -} - -SVGAnimatedNumber SVGComponentTransferFunctionElement::slope() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->slope()); -} - -SVGAnimatedNumber SVGComponentTransferFunctionElement::intercept() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->intercept()); -} - -SVGAnimatedNumber SVGComponentTransferFunctionElement::amplitude() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->amplitude()); -} - -SVGAnimatedNumber SVGComponentTransferFunctionElement::exponent() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->exponent()); -} - -SVGAnimatedNumber SVGComponentTransferFunctionElement::offset() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->offset()); -} diff --git a/ksvg/dom/SVGComponentTransferFunctionElement.cpp b/ksvg/dom/SVGComponentTransferFunctionElement.cpp new file mode 100644 index 00000000..66639416 --- /dev/null +++ b/ksvg/dom/SVGComponentTransferFunctionElement.cpp @@ -0,0 +1,110 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGComponentTransferFunctionElement.h" +#include "SVGComponentTransferFunctionElementImpl.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedNumberList.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement() : SVGElement() +{ + impl = 0; +} + +SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const SVGComponentTransferFunctionElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGComponentTransferFunctionElement &SVGComponentTransferFunctionElement::operator =(const SVGComponentTransferFunctionElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(SVGComponentTransferFunctionElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGComponentTransferFunctionElement::~SVGComponentTransferFunctionElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedEnumeration SVGComponentTransferFunctionElement::type() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->type()); +} + +SVGAnimatedNumberList SVGComponentTransferFunctionElement::tableValues() const +{ + if(!impl) return SVGAnimatedNumberList(0); + return SVGAnimatedNumberList(impl->tableValues()); +} + +SVGAnimatedNumber SVGComponentTransferFunctionElement::slope() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->slope()); +} + +SVGAnimatedNumber SVGComponentTransferFunctionElement::intercept() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->intercept()); +} + +SVGAnimatedNumber SVGComponentTransferFunctionElement::amplitude() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->amplitude()); +} + +SVGAnimatedNumber SVGComponentTransferFunctionElement::exponent() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->exponent()); +} + +SVGAnimatedNumber SVGComponentTransferFunctionElement::offset() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->offset()); +} diff --git a/ksvg/dom/SVGCursorElement.cc b/ksvg/dom/SVGCursorElement.cc deleted file mode 100644 index 9b882405..00000000 --- a/ksvg/dom/SVGCursorElement.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGCursorElement.h" -#include "SVGCursorElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGCursorElement::SVGCursorElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGExternalResourcesRequired() -{ - impl = 0; -} - -SVGCursorElement::SVGCursorElement(const SVGCursorElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0) -{ - (*this) = other; -} - -SVGCursorElement &SVGCursorElement::operator =(const SVGCursorElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGTests::operator=(other); - SVGExternalResourcesRequired::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGCursorElement::SVGCursorElement(SVGCursorElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGCursorElement::~SVGCursorElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGCursorElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGCursorElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} diff --git a/ksvg/dom/SVGCursorElement.cpp b/ksvg/dom/SVGCursorElement.cpp new file mode 100644 index 00000000..9b882405 --- /dev/null +++ b/ksvg/dom/SVGCursorElement.cpp @@ -0,0 +1,81 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGCursorElement.h" +#include "SVGCursorElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGCursorElement::SVGCursorElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGExternalResourcesRequired() +{ + impl = 0; +} + +SVGCursorElement::SVGCursorElement(const SVGCursorElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other), impl(0) +{ + (*this) = other; +} + +SVGCursorElement &SVGCursorElement::operator =(const SVGCursorElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGTests::operator=(other); + SVGExternalResourcesRequired::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGCursorElement::SVGCursorElement(SVGCursorElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGExternalResourcesRequired(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGCursorElement::~SVGCursorElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGCursorElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGCursorElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} diff --git a/ksvg/dom/SVGDefinitionSrcElement.cc b/ksvg/dom/SVGDefinitionSrcElement.cc deleted file mode 100644 index 6a965215..00000000 --- a/ksvg/dom/SVGDefinitionSrcElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGDefinitionSrcElement.h" -#include "SVGDefinitionSrcElementImpl.h" - -using namespace KSVG; - -SVGDefinitionSrcElement::SVGDefinitionSrcElement() : SVGElement() -{ - impl = 0; -} - -SVGDefinitionSrcElement::SVGDefinitionSrcElement(const SVGDefinitionSrcElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGDefinitionSrcElement &SVGDefinitionSrcElement::operator =(const SVGDefinitionSrcElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGDefinitionSrcElement::SVGDefinitionSrcElement(SVGDefinitionSrcElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGDefinitionSrcElement::~SVGDefinitionSrcElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGDefinitionSrcElement.cpp b/ksvg/dom/SVGDefinitionSrcElement.cpp new file mode 100644 index 00000000..6a965215 --- /dev/null +++ b/ksvg/dom/SVGDefinitionSrcElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGDefinitionSrcElement.h" +#include "SVGDefinitionSrcElementImpl.h" + +using namespace KSVG; + +SVGDefinitionSrcElement::SVGDefinitionSrcElement() : SVGElement() +{ + impl = 0; +} + +SVGDefinitionSrcElement::SVGDefinitionSrcElement(const SVGDefinitionSrcElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGDefinitionSrcElement &SVGDefinitionSrcElement::operator =(const SVGDefinitionSrcElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGDefinitionSrcElement::SVGDefinitionSrcElement(SVGDefinitionSrcElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGDefinitionSrcElement::~SVGDefinitionSrcElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGDefsElement.cc b/ksvg/dom/SVGDefsElement.cc deleted file mode 100644 index 9382286e..00000000 --- a/ksvg/dom/SVGDefsElement.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGDefsElement.h" -#include "SVGDefsElementImpl.h" - -using namespace KSVG; - -SVGDefsElement::SVGDefsElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGDefsElement::SVGDefsElement(const SVGDefsElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGDefsElement &SVGDefsElement::operator =(const SVGDefsElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGDefsElement::SVGDefsElement(SVGDefsElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGDefsElement::~SVGDefsElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGDefsElement.cpp b/ksvg/dom/SVGDefsElement.cpp new file mode 100644 index 00000000..9382286e --- /dev/null +++ b/ksvg/dom/SVGDefsElement.cpp @@ -0,0 +1,70 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGDefsElement.h" +#include "SVGDefsElementImpl.h" + +using namespace KSVG; + +SVGDefsElement::SVGDefsElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGDefsElement::SVGDefsElement(const SVGDefsElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGDefsElement &SVGDefsElement::operator =(const SVGDefsElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGDefsElement::SVGDefsElement(SVGDefsElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGDefsElement::~SVGDefsElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGDescElement.cc b/ksvg/dom/SVGDescElement.cc deleted file mode 100644 index 35f77c76..00000000 --- a/ksvg/dom/SVGDescElement.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGDescElement.h" -#include "SVGDescElementImpl.h" - -using namespace KSVG; - -SVGDescElement::SVGDescElement() : SVGElement(), SVGLangSpace(), SVGStylable() -{ - impl = 0; -} - -SVGDescElement::SVGDescElement(const SVGDescElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGDescElement &SVGDescElement::operator =(const SVGDescElement &other) -{ - SVGElement::operator=(other); - SVGLangSpace::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGDescElement::SVGDescElement(SVGDescElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGDescElement::~SVGDescElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGDescElement.cpp b/ksvg/dom/SVGDescElement.cpp new file mode 100644 index 00000000..35f77c76 --- /dev/null +++ b/ksvg/dom/SVGDescElement.cpp @@ -0,0 +1,67 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGDescElement.h" +#include "SVGDescElementImpl.h" + +using namespace KSVG; + +SVGDescElement::SVGDescElement() : SVGElement(), SVGLangSpace(), SVGStylable() +{ + impl = 0; +} + +SVGDescElement::SVGDescElement(const SVGDescElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGDescElement &SVGDescElement::operator =(const SVGDescElement &other) +{ + SVGElement::operator=(other); + SVGLangSpace::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGDescElement::SVGDescElement(SVGDescElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGDescElement::~SVGDescElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGDocument.cc b/ksvg/dom/SVGDocument.cc deleted file mode 100644 index f9d46968..00000000 --- a/ksvg/dom/SVGDocument.cc +++ /dev/null @@ -1,136 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "ksvg_ecma.h" - -#include "SVGDocument.h" -#include "SVGDocumentImpl.h" -#include "SVGSVGElement.h" -#include "SVGWindow.h" - -using namespace KSVG; - -SVGDocument::SVGDocument() : DOM::Document(*(new SVGDocumentImpl())) -{ - impl = reinterpret_cast(handle()); - impl->ref(); -} - -SVGDocument::SVGDocument(const SVGDocument &other) : DOM::Document(other), impl(0) -{ - (*this) = other; -} - -SVGDocument &SVGDocument::operator=(const SVGDocument &other) -{ - DOM::Document::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGDocument::SVGDocument(SVGDocumentImpl *other) : DOM::Document(other->handle()) -{ - impl = other; - - if(impl) - impl->ref(); -} - -SVGDocument::~SVGDocument() -{ - if(impl) - impl->deref(); -} - -DOM::DOMString SVGDocument::title() const -{ - if(!impl) return DOM::DOMString(); - return impl->title(); -} - -DOM::DOMString SVGDocument::referrer() const -{ - if(!impl) return DOM::DOMString(); - return impl->referrer(); -} - -DOM::DOMString SVGDocument::domain() const -{ - if(!impl) return DOM::DOMString(); - return impl->domain(); -} - -DOM::DOMString SVGDocument::URL() const -{ - if(!impl) return DOM::DOMString(); - return impl->URL(); -} - -SVGWindow SVGDocument::window() const -{ - if(!impl) return SVGWindow(); - return impl->window(); -} - -SVGSVGElement SVGDocument::rootElement() const -{ - if(!impl) return SVGSVGElement(0); - return SVGSVGElement(impl->rootElement()); -} - -SVGElement SVGDocument::createElement(const DOM::DOMString &tagName) -{ - if(!impl) return SVGElement(0); - - DOM::Element impl = DOM::Document::createElement(tagName); - return SVGElement(SVGDocumentImpl::createElement(tagName, impl)); -} - -SVGElement SVGDocument::createElementNS(const DOM::DOMString &namespaceURI, const DOM::DOMString &qualifiedName) -{ - if(!impl) return SVGElement(0); - - DOM::Element impl = DOM::Document::createElementNS(namespaceURI, qualifiedName); - return SVGElement(SVGDocumentImpl::createElement(qualifiedName, impl)); -} - -// Internal -KJS::Object SVGDocument::globalJSObject() -{ - if(!impl) return KJS::Object(); - return impl->ecmaEngine()->globalObject(); -} - -KJS::ExecState *SVGDocument::globalJSExec() -{ - if(!impl) return 0; - return impl->ecmaEngine()->globalExec(); -} diff --git a/ksvg/dom/SVGDocument.cpp b/ksvg/dom/SVGDocument.cpp new file mode 100644 index 00000000..f9d46968 --- /dev/null +++ b/ksvg/dom/SVGDocument.cpp @@ -0,0 +1,136 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "ksvg_ecma.h" + +#include "SVGDocument.h" +#include "SVGDocumentImpl.h" +#include "SVGSVGElement.h" +#include "SVGWindow.h" + +using namespace KSVG; + +SVGDocument::SVGDocument() : DOM::Document(*(new SVGDocumentImpl())) +{ + impl = reinterpret_cast(handle()); + impl->ref(); +} + +SVGDocument::SVGDocument(const SVGDocument &other) : DOM::Document(other), impl(0) +{ + (*this) = other; +} + +SVGDocument &SVGDocument::operator=(const SVGDocument &other) +{ + DOM::Document::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGDocument::SVGDocument(SVGDocumentImpl *other) : DOM::Document(other->handle()) +{ + impl = other; + + if(impl) + impl->ref(); +} + +SVGDocument::~SVGDocument() +{ + if(impl) + impl->deref(); +} + +DOM::DOMString SVGDocument::title() const +{ + if(!impl) return DOM::DOMString(); + return impl->title(); +} + +DOM::DOMString SVGDocument::referrer() const +{ + if(!impl) return DOM::DOMString(); + return impl->referrer(); +} + +DOM::DOMString SVGDocument::domain() const +{ + if(!impl) return DOM::DOMString(); + return impl->domain(); +} + +DOM::DOMString SVGDocument::URL() const +{ + if(!impl) return DOM::DOMString(); + return impl->URL(); +} + +SVGWindow SVGDocument::window() const +{ + if(!impl) return SVGWindow(); + return impl->window(); +} + +SVGSVGElement SVGDocument::rootElement() const +{ + if(!impl) return SVGSVGElement(0); + return SVGSVGElement(impl->rootElement()); +} + +SVGElement SVGDocument::createElement(const DOM::DOMString &tagName) +{ + if(!impl) return SVGElement(0); + + DOM::Element impl = DOM::Document::createElement(tagName); + return SVGElement(SVGDocumentImpl::createElement(tagName, impl)); +} + +SVGElement SVGDocument::createElementNS(const DOM::DOMString &namespaceURI, const DOM::DOMString &qualifiedName) +{ + if(!impl) return SVGElement(0); + + DOM::Element impl = DOM::Document::createElementNS(namespaceURI, qualifiedName); + return SVGElement(SVGDocumentImpl::createElement(qualifiedName, impl)); +} + +// Internal +KJS::Object SVGDocument::globalJSObject() +{ + if(!impl) return KJS::Object(); + return impl->ecmaEngine()->globalObject(); +} + +KJS::ExecState *SVGDocument::globalJSExec() +{ + if(!impl) return 0; + return impl->ecmaEngine()->globalExec(); +} diff --git a/ksvg/dom/SVGElement.cc b/ksvg/dom/SVGElement.cc deleted file mode 100644 index e753bac3..00000000 --- a/ksvg/dom/SVGElement.cc +++ /dev/null @@ -1,122 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGSVGElement.h" -#include "SVGElement.h" -#include "SVGElementImpl.h" - -using namespace KSVG; - -// There is no way to create a SVGElement this way! Use SVGDocument. -SVGElement::SVGElement() : DOM::Element() -{ - impl = 0; // new SVGElementImpl(ownerDocument().createElement().handle()); -} - -SVGElement::SVGElement(const SVGElement &other) : DOM::Element(other), impl(0) -{ - (*this) = other; -} - -SVGElement &SVGElement::operator=(const SVGElement &other) -{ - // Baseclass assignement operators always first (Niko) - DOM::Element::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGElement::SVGElement(SVGElementImpl *other) : DOM::Element(other->handle()) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGElement::~SVGElement() -{ - if(impl) - impl->deref(); -} - -void SVGElement::setId(DOM::DOMString value) -{ - if(impl) - impl->setId(value); -} - -DOM::DOMString SVGElement::id() -{ - if(!impl) return DOM::DOMString(); - return impl->id(); -} - -void SVGElement::setXmlbase(DOM::DOMString value) -{ - if(impl) - impl->setXmlbase(value); -} - -DOM::DOMString SVGElement::xmlbase() -{ - if(!impl) return DOM::DOMString(); - return impl->xmlbase(); -} - -SVGSVGElement SVGElement::ownerSVGElement() -{ - if(!impl) return SVGSVGElement(0); - return impl->ownerSVGElement(); -} - -SVGElement SVGElement::viewportElement() -{ - if(!impl) return SVGElement(0); - return impl->viewportElement(); -} - -void SVGElement::setAttribute(const DOM::DOMString &name, const DOM::DOMString &value) -{ - if(impl) - impl->setAttributeInternal(name, value); -} - -DOM::DOMString SVGElement::getAttribute(const DOM::DOMString &name) -{ - if(!impl) return DOM::DOMString(); - return impl->getAttributeInternal(name); -} - -bool SVGElement::hasAttribute(const DOM::DOMString &name) -{ - if(!impl) return false; - return impl->hasAttribute(name); -} diff --git a/ksvg/dom/SVGElement.cpp b/ksvg/dom/SVGElement.cpp new file mode 100644 index 00000000..e753bac3 --- /dev/null +++ b/ksvg/dom/SVGElement.cpp @@ -0,0 +1,122 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGSVGElement.h" +#include "SVGElement.h" +#include "SVGElementImpl.h" + +using namespace KSVG; + +// There is no way to create a SVGElement this way! Use SVGDocument. +SVGElement::SVGElement() : DOM::Element() +{ + impl = 0; // new SVGElementImpl(ownerDocument().createElement().handle()); +} + +SVGElement::SVGElement(const SVGElement &other) : DOM::Element(other), impl(0) +{ + (*this) = other; +} + +SVGElement &SVGElement::operator=(const SVGElement &other) +{ + // Baseclass assignement operators always first (Niko) + DOM::Element::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGElement::SVGElement(SVGElementImpl *other) : DOM::Element(other->handle()) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGElement::~SVGElement() +{ + if(impl) + impl->deref(); +} + +void SVGElement::setId(DOM::DOMString value) +{ + if(impl) + impl->setId(value); +} + +DOM::DOMString SVGElement::id() +{ + if(!impl) return DOM::DOMString(); + return impl->id(); +} + +void SVGElement::setXmlbase(DOM::DOMString value) +{ + if(impl) + impl->setXmlbase(value); +} + +DOM::DOMString SVGElement::xmlbase() +{ + if(!impl) return DOM::DOMString(); + return impl->xmlbase(); +} + +SVGSVGElement SVGElement::ownerSVGElement() +{ + if(!impl) return SVGSVGElement(0); + return impl->ownerSVGElement(); +} + +SVGElement SVGElement::viewportElement() +{ + if(!impl) return SVGElement(0); + return impl->viewportElement(); +} + +void SVGElement::setAttribute(const DOM::DOMString &name, const DOM::DOMString &value) +{ + if(impl) + impl->setAttributeInternal(name, value); +} + +DOM::DOMString SVGElement::getAttribute(const DOM::DOMString &name) +{ + if(!impl) return DOM::DOMString(); + return impl->getAttributeInternal(name); +} + +bool SVGElement::hasAttribute(const DOM::DOMString &name) +{ + if(!impl) return false; + return impl->hasAttribute(name); +} diff --git a/ksvg/dom/SVGElementInstance.cc b/ksvg/dom/SVGElementInstance.cc deleted file mode 100644 index 6af2d11e..00000000 --- a/ksvg/dom/SVGElementInstance.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGElementInstance.h" -#include "SVGElementInstanceImpl.h" -#include "SVGElementInstanceList.h" -#include "SVGElement.h" -#include "SVGUseElement.h" - -using namespace KSVG; - -SVGElementInstance::SVGElementInstance() -{ - impl = new SVGElementInstanceImpl(); - impl->ref(); -} - -SVGElementInstance::SVGElementInstance(const SVGElementInstance &other) : impl(0) -{ - (*this) = other; -} - -SVGElementInstance &SVGElementInstance::operator =(const SVGElementInstance &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGElementInstance::SVGElementInstance(SVGElementInstanceImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGElementInstance::~SVGElementInstance() -{ - if(impl) - impl->deref(); -} - -SVGElement SVGElementInstance::correspondingElement() const -{ - if(!impl) return SVGElement(0); - return SVGElement(impl->correspondingElement()); -} - -SVGUseElement SVGElementInstance::correspondingUseElement() const -{ - if(!impl) return SVGUseElement(0); - return SVGUseElement(impl->correspondingUseElement()); -} - -SVGElementInstance SVGElementInstance::parentNode() const -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->parentNode()); -} - -SVGElementInstanceList SVGElementInstance::childNodes() const -{ - if(!impl) return SVGElementInstanceList(0); - return SVGElementInstanceList(impl->childNodes()); -} - -SVGElementInstance SVGElementInstance::firstChild() const -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->firstChild()); -} - -SVGElementInstance SVGElementInstance::lastChild() const -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->lastChild()); -} - -SVGElementInstance SVGElementInstance::previousSibling() const -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->previousSibling()); -} - -SVGElementInstance SVGElementInstance::nextSibling() const -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->nextSibling()); -} diff --git a/ksvg/dom/SVGElementInstance.cpp b/ksvg/dom/SVGElementInstance.cpp new file mode 100644 index 00000000..6af2d11e --- /dev/null +++ b/ksvg/dom/SVGElementInstance.cpp @@ -0,0 +1,115 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGElementInstance.h" +#include "SVGElementInstanceImpl.h" +#include "SVGElementInstanceList.h" +#include "SVGElement.h" +#include "SVGUseElement.h" + +using namespace KSVG; + +SVGElementInstance::SVGElementInstance() +{ + impl = new SVGElementInstanceImpl(); + impl->ref(); +} + +SVGElementInstance::SVGElementInstance(const SVGElementInstance &other) : impl(0) +{ + (*this) = other; +} + +SVGElementInstance &SVGElementInstance::operator =(const SVGElementInstance &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGElementInstance::SVGElementInstance(SVGElementInstanceImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGElementInstance::~SVGElementInstance() +{ + if(impl) + impl->deref(); +} + +SVGElement SVGElementInstance::correspondingElement() const +{ + if(!impl) return SVGElement(0); + return SVGElement(impl->correspondingElement()); +} + +SVGUseElement SVGElementInstance::correspondingUseElement() const +{ + if(!impl) return SVGUseElement(0); + return SVGUseElement(impl->correspondingUseElement()); +} + +SVGElementInstance SVGElementInstance::parentNode() const +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->parentNode()); +} + +SVGElementInstanceList SVGElementInstance::childNodes() const +{ + if(!impl) return SVGElementInstanceList(0); + return SVGElementInstanceList(impl->childNodes()); +} + +SVGElementInstance SVGElementInstance::firstChild() const +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->firstChild()); +} + +SVGElementInstance SVGElementInstance::lastChild() const +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->lastChild()); +} + +SVGElementInstance SVGElementInstance::previousSibling() const +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->previousSibling()); +} + +SVGElementInstance SVGElementInstance::nextSibling() const +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->nextSibling()); +} diff --git a/ksvg/dom/SVGElementInstanceList.cc b/ksvg/dom/SVGElementInstanceList.cc deleted file mode 100644 index 6b4fd80e..00000000 --- a/ksvg/dom/SVGElementInstanceList.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGElementInstanceList.h" -#include "SVGElementInstanceListImpl.h" -#include "SVGElementInstance.h" - -using namespace KSVG; - -SVGElementInstanceList::SVGElementInstanceList() -{ - impl = new SVGElementInstanceListImpl(); - impl->ref(); -} - -SVGElementInstanceList::SVGElementInstanceList(const SVGElementInstanceList &other) : impl(0) -{ - (*this) = other; -} - -SVGElementInstanceList &SVGElementInstanceList::operator=(const SVGElementInstanceList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGElementInstanceList::SVGElementInstanceList(SVGElementInstanceListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGElementInstanceList::~SVGElementInstanceList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGElementInstanceList::length() const -{ - if(!impl) return 0; - return impl->length(); -} - -SVGElementInstance SVGElementInstanceList::item(unsigned long index) -{ - if(!impl) return SVGElementInstance(0); - return SVGElementInstance(impl->item(index)); -} diff --git a/ksvg/dom/SVGElementInstanceList.cpp b/ksvg/dom/SVGElementInstanceList.cpp new file mode 100644 index 00000000..6b4fd80e --- /dev/null +++ b/ksvg/dom/SVGElementInstanceList.cpp @@ -0,0 +1,77 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGElementInstanceList.h" +#include "SVGElementInstanceListImpl.h" +#include "SVGElementInstance.h" + +using namespace KSVG; + +SVGElementInstanceList::SVGElementInstanceList() +{ + impl = new SVGElementInstanceListImpl(); + impl->ref(); +} + +SVGElementInstanceList::SVGElementInstanceList(const SVGElementInstanceList &other) : impl(0) +{ + (*this) = other; +} + +SVGElementInstanceList &SVGElementInstanceList::operator=(const SVGElementInstanceList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGElementInstanceList::SVGElementInstanceList(SVGElementInstanceListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGElementInstanceList::~SVGElementInstanceList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGElementInstanceList::length() const +{ + if(!impl) return 0; + return impl->length(); +} + +SVGElementInstance SVGElementInstanceList::item(unsigned long index) +{ + if(!impl) return SVGElementInstance(0); + return SVGElementInstance(impl->item(index)); +} diff --git a/ksvg/dom/SVGEllipseElement.cc b/ksvg/dom/SVGEllipseElement.cc deleted file mode 100644 index 36d2449e..00000000 --- a/ksvg/dom/SVGEllipseElement.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGEllipseElement.h" -#include "SVGEllipseElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGEllipseElement::SVGEllipseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGEllipseElement::SVGEllipseElement(const SVGEllipseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGEllipseElement &SVGEllipseElement::operator=(const SVGEllipseElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGEllipseElement::SVGEllipseElement(SVGEllipseElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGEllipseElement::~SVGEllipseElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGEllipseElement::cx() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cx()); -} - -SVGAnimatedLength SVGEllipseElement::cy() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cy()); -} - -SVGAnimatedLength SVGEllipseElement::rx() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->rx()); -} - -SVGAnimatedLength SVGEllipseElement::ry() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->ry()); -} diff --git a/ksvg/dom/SVGEllipseElement.cpp b/ksvg/dom/SVGEllipseElement.cpp new file mode 100644 index 00000000..36d2449e --- /dev/null +++ b/ksvg/dom/SVGEllipseElement.cpp @@ -0,0 +1,96 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGEllipseElement.h" +#include "SVGEllipseElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGEllipseElement::SVGEllipseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGEllipseElement::SVGEllipseElement(const SVGEllipseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGEllipseElement &SVGEllipseElement::operator=(const SVGEllipseElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGEllipseElement::SVGEllipseElement(SVGEllipseElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGEllipseElement::~SVGEllipseElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGEllipseElement::cx() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cx()); +} + +SVGAnimatedLength SVGEllipseElement::cy() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cy()); +} + +SVGAnimatedLength SVGEllipseElement::rx() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->rx()); +} + +SVGAnimatedLength SVGEllipseElement::ry() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->ry()); +} diff --git a/ksvg/dom/SVGEvent.cc b/ksvg/dom/SVGEvent.cc deleted file mode 100644 index 67cc8ddf..00000000 --- a/ksvg/dom/SVGEvent.cc +++ /dev/null @@ -1,185 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGEvent.h" -#include "SVGEventImpl.h" - -using namespace KSVG; - -SVGEvent::SVGEvent() : DOM::Event() -{ - impl = 0; -} - -SVGEvent::SVGEvent(const SVGEvent &other) : DOM::Event(other), impl(0) -{ - (*this) = other; -} - -SVGEvent &SVGEvent::operator =(const SVGEvent &other) -{ - DOM::Event::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGEvent::SVGEvent(SVGEventImpl *other) : DOM::Event() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGEvent::~SVGEvent() -{ - if(impl) - impl->deref(); -} - -SVGEvent::EventId SVGEvent::typeToId(DOM::DOMString type) -{ - if(type == "DOMFocusIn") - return DOMFOCUSIN_EVENT; - else if(type == "DOMFocusOut") - return DOMFOCUSOUT_EVENT; - else if(type == "DOMActivate") - return DOMACTIVATE_EVENT; - else if(type == "click") - return CLICK_EVENT; - else if(type == "mousedown") - return MOUSEDOWN_EVENT; - else if(type == "mouseup") - return MOUSEUP_EVENT; - else if(type == "mouseover") - return MOUSEOVER_EVENT; - else if(type == "mousemove") - return MOUSEMOVE_EVENT; - else if(type == "mouseout") - return MOUSEOUT_EVENT; - else if(type == "DOMSubtreeModified") - return DOMSUBTREEMODIFIED_EVENT; - else if(type == "DOMNodeInserted") - return DOMNODEINSERTED_EVENT; - else if(type == "DOMNodeRemoved") - return DOMNODEREMOVED_EVENT; - else if(type == "DOMNodeRemovedFromDocument") - return DOMNODEREMOVEDFROMDOCUMENT_EVENT; - else if(type == "DOMNodeInsertedIntoDocument") - return DOMNODEINSERTEDINTODOCUMENT_EVENT; - else if(type == "DOMAttrModified") - return DOMATTRMODIFIED_EVENT; - else if(type == "DOMCharacterDataModified") - return DOMCHARACTERDATAMODIFIED_EVENT; - else if(type == "load") - return LOAD_EVENT; - else if(type == "unload") - return UNLOAD_EVENT; - else if(type == "abort") - return ABORT_EVENT; - else if(type == "error") - return ERROR_EVENT; - else if(type == "resize") - return RESIZE_EVENT; - else if(type == "scroll") - return SCROLL_EVENT; - else if(type == "zoom") - return ZOOM_EVENT; - else if(type == "keydown") - return KEYDOWN_EVENT; - else if(type == "keyup") - return KEYUP_EVENT; - else if(type == "keypress") - return KEYPRESS_EVENT; - - return UNKNOWN_EVENT; -} - -DOM::DOMString SVGEvent::idToType(EventId id) -{ - switch(id) - { - case DOMFOCUSIN_EVENT: - return "DOMFocusIn"; - case DOMFOCUSOUT_EVENT: - return "DOMFocusOut"; - case DOMACTIVATE_EVENT: - return "DOMActivate"; - case CLICK_EVENT: - return "click"; - case MOUSEDOWN_EVENT: - return "mousedown"; - case MOUSEUP_EVENT: - return "mouseup"; - case MOUSEOVER_EVENT: - return "mouseover"; - case MOUSEMOVE_EVENT: - return "mousemove"; - case MOUSEOUT_EVENT: - return "mouseout"; - case DOMSUBTREEMODIFIED_EVENT: - return "DOMSubtreeModified"; - case DOMNODEINSERTED_EVENT: - return "DOMNodeInserted"; - case DOMNODEREMOVED_EVENT: - return "DOMNodeRemoved"; - case DOMNODEREMOVEDFROMDOCUMENT_EVENT: - return "DOMNodeRemovedFromDocument"; - case DOMNODEINSERTEDINTODOCUMENT_EVENT: - return "DOMNodeInsertedIntoDocument"; - case DOMATTRMODIFIED_EVENT: - return "DOMAttrModified"; - case DOMCHARACTERDATAMODIFIED_EVENT: - return "DOMCharacterDataModified"; - case LOAD_EVENT: - return "load"; - case UNLOAD_EVENT: - return "unload"; - case ABORT_EVENT: - return "abort"; - case ERROR_EVENT: - return "error"; - case RESIZE_EVENT: - return "resize"; - case SCROLL_EVENT: - return "scroll"; - case ZOOM_EVENT: - return "zoom"; - case KEYDOWN_EVENT: - return "keydown"; - case KEYUP_EVENT: - return "keyup"; - case KEYPRESS_EVENT: - return "keypress"; - default: - return DOM::DOMString(); - break; - } -} diff --git a/ksvg/dom/SVGEvent.cpp b/ksvg/dom/SVGEvent.cpp new file mode 100644 index 00000000..67cc8ddf --- /dev/null +++ b/ksvg/dom/SVGEvent.cpp @@ -0,0 +1,185 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGEvent.h" +#include "SVGEventImpl.h" + +using namespace KSVG; + +SVGEvent::SVGEvent() : DOM::Event() +{ + impl = 0; +} + +SVGEvent::SVGEvent(const SVGEvent &other) : DOM::Event(other), impl(0) +{ + (*this) = other; +} + +SVGEvent &SVGEvent::operator =(const SVGEvent &other) +{ + DOM::Event::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGEvent::SVGEvent(SVGEventImpl *other) : DOM::Event() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGEvent::~SVGEvent() +{ + if(impl) + impl->deref(); +} + +SVGEvent::EventId SVGEvent::typeToId(DOM::DOMString type) +{ + if(type == "DOMFocusIn") + return DOMFOCUSIN_EVENT; + else if(type == "DOMFocusOut") + return DOMFOCUSOUT_EVENT; + else if(type == "DOMActivate") + return DOMACTIVATE_EVENT; + else if(type == "click") + return CLICK_EVENT; + else if(type == "mousedown") + return MOUSEDOWN_EVENT; + else if(type == "mouseup") + return MOUSEUP_EVENT; + else if(type == "mouseover") + return MOUSEOVER_EVENT; + else if(type == "mousemove") + return MOUSEMOVE_EVENT; + else if(type == "mouseout") + return MOUSEOUT_EVENT; + else if(type == "DOMSubtreeModified") + return DOMSUBTREEMODIFIED_EVENT; + else if(type == "DOMNodeInserted") + return DOMNODEINSERTED_EVENT; + else if(type == "DOMNodeRemoved") + return DOMNODEREMOVED_EVENT; + else if(type == "DOMNodeRemovedFromDocument") + return DOMNODEREMOVEDFROMDOCUMENT_EVENT; + else if(type == "DOMNodeInsertedIntoDocument") + return DOMNODEINSERTEDINTODOCUMENT_EVENT; + else if(type == "DOMAttrModified") + return DOMATTRMODIFIED_EVENT; + else if(type == "DOMCharacterDataModified") + return DOMCHARACTERDATAMODIFIED_EVENT; + else if(type == "load") + return LOAD_EVENT; + else if(type == "unload") + return UNLOAD_EVENT; + else if(type == "abort") + return ABORT_EVENT; + else if(type == "error") + return ERROR_EVENT; + else if(type == "resize") + return RESIZE_EVENT; + else if(type == "scroll") + return SCROLL_EVENT; + else if(type == "zoom") + return ZOOM_EVENT; + else if(type == "keydown") + return KEYDOWN_EVENT; + else if(type == "keyup") + return KEYUP_EVENT; + else if(type == "keypress") + return KEYPRESS_EVENT; + + return UNKNOWN_EVENT; +} + +DOM::DOMString SVGEvent::idToType(EventId id) +{ + switch(id) + { + case DOMFOCUSIN_EVENT: + return "DOMFocusIn"; + case DOMFOCUSOUT_EVENT: + return "DOMFocusOut"; + case DOMACTIVATE_EVENT: + return "DOMActivate"; + case CLICK_EVENT: + return "click"; + case MOUSEDOWN_EVENT: + return "mousedown"; + case MOUSEUP_EVENT: + return "mouseup"; + case MOUSEOVER_EVENT: + return "mouseover"; + case MOUSEMOVE_EVENT: + return "mousemove"; + case MOUSEOUT_EVENT: + return "mouseout"; + case DOMSUBTREEMODIFIED_EVENT: + return "DOMSubtreeModified"; + case DOMNODEINSERTED_EVENT: + return "DOMNodeInserted"; + case DOMNODEREMOVED_EVENT: + return "DOMNodeRemoved"; + case DOMNODEREMOVEDFROMDOCUMENT_EVENT: + return "DOMNodeRemovedFromDocument"; + case DOMNODEINSERTEDINTODOCUMENT_EVENT: + return "DOMNodeInsertedIntoDocument"; + case DOMATTRMODIFIED_EVENT: + return "DOMAttrModified"; + case DOMCHARACTERDATAMODIFIED_EVENT: + return "DOMCharacterDataModified"; + case LOAD_EVENT: + return "load"; + case UNLOAD_EVENT: + return "unload"; + case ABORT_EVENT: + return "abort"; + case ERROR_EVENT: + return "error"; + case RESIZE_EVENT: + return "resize"; + case SCROLL_EVENT: + return "scroll"; + case ZOOM_EVENT: + return "zoom"; + case KEYDOWN_EVENT: + return "keydown"; + case KEYUP_EVENT: + return "keyup"; + case KEYPRESS_EVENT: + return "keypress"; + default: + return DOM::DOMString(); + break; + } +} diff --git a/ksvg/dom/SVGExternalResourcesRequired.cc b/ksvg/dom/SVGExternalResourcesRequired.cc deleted file mode 100644 index 189d72ee..00000000 --- a/ksvg/dom/SVGExternalResourcesRequired.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGExternalResourcesRequired.h" -#include "SVGExternalResourcesRequiredImpl.h" -#include "SVGAnimatedBoolean.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGExternalResourcesRequired::SVGExternalResourcesRequired() -{ - impl = 0; -} - -SVGExternalResourcesRequired::SVGExternalResourcesRequired(const SVGExternalResourcesRequired &other) : impl(0) -{ - (*this) = other; -} - -SVGExternalResourcesRequired &SVGExternalResourcesRequired::operator=(const SVGExternalResourcesRequired &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGExternalResourcesRequired::SVGExternalResourcesRequired(SVGExternalResourcesRequiredImpl *other) -{ - impl = other; -} - -SVGExternalResourcesRequired::~SVGExternalResourcesRequired() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -SVGAnimatedBoolean SVGExternalResourcesRequired::externalResourcesRequired() const -{ - if(!impl) return SVGAnimatedBoolean(0); - return SVGAnimatedBoolean(impl->externalResourcesRequired()); -} diff --git a/ksvg/dom/SVGExternalResourcesRequired.cpp b/ksvg/dom/SVGExternalResourcesRequired.cpp new file mode 100644 index 00000000..189d72ee --- /dev/null +++ b/ksvg/dom/SVGExternalResourcesRequired.cpp @@ -0,0 +1,63 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGExternalResourcesRequired.h" +#include "SVGExternalResourcesRequiredImpl.h" +#include "SVGAnimatedBoolean.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGExternalResourcesRequired::SVGExternalResourcesRequired() +{ + impl = 0; +} + +SVGExternalResourcesRequired::SVGExternalResourcesRequired(const SVGExternalResourcesRequired &other) : impl(0) +{ + (*this) = other; +} + +SVGExternalResourcesRequired &SVGExternalResourcesRequired::operator=(const SVGExternalResourcesRequired &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGExternalResourcesRequired::SVGExternalResourcesRequired(SVGExternalResourcesRequiredImpl *other) +{ + impl = other; +} + +SVGExternalResourcesRequired::~SVGExternalResourcesRequired() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +SVGAnimatedBoolean SVGExternalResourcesRequired::externalResourcesRequired() const +{ + if(!impl) return SVGAnimatedBoolean(0); + return SVGAnimatedBoolean(impl->externalResourcesRequired()); +} diff --git a/ksvg/dom/SVGFEBlendElement.cc b/ksvg/dom/SVGFEBlendElement.cc deleted file mode 100644 index f0fe7b8b..00000000 --- a/ksvg/dom/SVGFEBlendElement.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEBlendElement.h" -#include "SVGFEBlendElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGFEBlendElement::SVGFEBlendElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEBlendElement::SVGFEBlendElement(const SVGFEBlendElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEBlendElement &SVGFEBlendElement::operator =(const SVGFEBlendElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEBlendElement::SVGFEBlendElement(SVGFEBlendElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEBlendElement::~SVGFEBlendElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEBlendElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedString SVGFEBlendElement::in2() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in2()); -} - -SVGAnimatedEnumeration SVGFEBlendElement::mode() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->mode()); -} diff --git a/ksvg/dom/SVGFEBlendElement.cpp b/ksvg/dom/SVGFEBlendElement.cpp new file mode 100644 index 00000000..f0fe7b8b --- /dev/null +++ b/ksvg/dom/SVGFEBlendElement.cpp @@ -0,0 +1,86 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEBlendElement.h" +#include "SVGFEBlendElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGFEBlendElement::SVGFEBlendElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEBlendElement::SVGFEBlendElement(const SVGFEBlendElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEBlendElement &SVGFEBlendElement::operator =(const SVGFEBlendElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEBlendElement::SVGFEBlendElement(SVGFEBlendElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEBlendElement::~SVGFEBlendElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEBlendElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedString SVGFEBlendElement::in2() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in2()); +} + +SVGAnimatedEnumeration SVGFEBlendElement::mode() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->mode()); +} diff --git a/ksvg/dom/SVGFEColorMatrixElement.cc b/ksvg/dom/SVGFEColorMatrixElement.cc deleted file mode 100644 index 5c4c5104..00000000 --- a/ksvg/dom/SVGFEColorMatrixElement.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEColorMatrixElement.h" -#include "SVGFEColorMatrixElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedNumberList.h" - -using namespace KSVG; - -SVGFEColorMatrixElement::SVGFEColorMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEColorMatrixElement::SVGFEColorMatrixElement(const SVGFEColorMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEColorMatrixElement &SVGFEColorMatrixElement::operator =(const SVGFEColorMatrixElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEColorMatrixElement::SVGFEColorMatrixElement(SVGFEColorMatrixElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEColorMatrixElement::~SVGFEColorMatrixElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEColorMatrixElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedEnumeration SVGFEColorMatrixElement::type() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->type()); -} - -SVGAnimatedNumberList SVGFEColorMatrixElement::values() const -{ - if(!impl) return SVGAnimatedNumberList(0); - return SVGAnimatedNumberList(impl->values()); -} diff --git a/ksvg/dom/SVGFEColorMatrixElement.cpp b/ksvg/dom/SVGFEColorMatrixElement.cpp new file mode 100644 index 00000000..5c4c5104 --- /dev/null +++ b/ksvg/dom/SVGFEColorMatrixElement.cpp @@ -0,0 +1,87 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEColorMatrixElement.h" +#include "SVGFEColorMatrixElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedNumberList.h" + +using namespace KSVG; + +SVGFEColorMatrixElement::SVGFEColorMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEColorMatrixElement::SVGFEColorMatrixElement(const SVGFEColorMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEColorMatrixElement &SVGFEColorMatrixElement::operator =(const SVGFEColorMatrixElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEColorMatrixElement::SVGFEColorMatrixElement(SVGFEColorMatrixElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEColorMatrixElement::~SVGFEColorMatrixElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEColorMatrixElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedEnumeration SVGFEColorMatrixElement::type() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->type()); +} + +SVGAnimatedNumberList SVGFEColorMatrixElement::values() const +{ + if(!impl) return SVGAnimatedNumberList(0); + return SVGAnimatedNumberList(impl->values()); +} diff --git a/ksvg/dom/SVGFEComponentTransferElement.cc b/ksvg/dom/SVGFEComponentTransferElement.cc deleted file mode 100644 index bc96a48d..00000000 --- a/ksvg/dom/SVGFEComponentTransferElement.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEComponentTransferElement.h" -#include "SVGFEComponentTransferElementImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFEComponentTransferElement::SVGFEComponentTransferElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEComponentTransferElement::SVGFEComponentTransferElement(const SVGFEComponentTransferElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEComponentTransferElement &SVGFEComponentTransferElement::operator =(const SVGFEComponentTransferElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEComponentTransferElement::SVGFEComponentTransferElement(SVGFEComponentTransferElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEComponentTransferElement::~SVGFEComponentTransferElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEComponentTransferElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} diff --git a/ksvg/dom/SVGFEComponentTransferElement.cpp b/ksvg/dom/SVGFEComponentTransferElement.cpp new file mode 100644 index 00000000..bc96a48d --- /dev/null +++ b/ksvg/dom/SVGFEComponentTransferElement.cpp @@ -0,0 +1,73 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEComponentTransferElement.h" +#include "SVGFEComponentTransferElementImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFEComponentTransferElement::SVGFEComponentTransferElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEComponentTransferElement::SVGFEComponentTransferElement(const SVGFEComponentTransferElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEComponentTransferElement &SVGFEComponentTransferElement::operator =(const SVGFEComponentTransferElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEComponentTransferElement::SVGFEComponentTransferElement(SVGFEComponentTransferElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEComponentTransferElement::~SVGFEComponentTransferElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEComponentTransferElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} diff --git a/ksvg/dom/SVGFECompositeElement.cc b/ksvg/dom/SVGFECompositeElement.cc deleted file mode 100644 index b7ff69f5..00000000 --- a/ksvg/dom/SVGFECompositeElement.cc +++ /dev/null @@ -1,111 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFECompositeElement.h" -#include "SVGFECompositeElementImpl.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGFECompositeElement::SVGFECompositeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFECompositeElement::SVGFECompositeElement(const SVGFECompositeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFECompositeElement &SVGFECompositeElement::operator =(const SVGFECompositeElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFECompositeElement::SVGFECompositeElement(SVGFECompositeElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFECompositeElement::~SVGFECompositeElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFECompositeElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedString SVGFECompositeElement::in2() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in2()); -} - -SVGAnimatedEnumeration SVGFECompositeElement::Operator() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->Operator()); -} - -SVGAnimatedNumber SVGFECompositeElement::k1() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->k1()); -} - -SVGAnimatedNumber SVGFECompositeElement::k2() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->k2()); -} - -SVGAnimatedNumber SVGFECompositeElement::k3() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->k3()); -} - -SVGAnimatedNumber SVGFECompositeElement::k4() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->k4()); -} diff --git a/ksvg/dom/SVGFECompositeElement.cpp b/ksvg/dom/SVGFECompositeElement.cpp new file mode 100644 index 00000000..b7ff69f5 --- /dev/null +++ b/ksvg/dom/SVGFECompositeElement.cpp @@ -0,0 +1,111 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFECompositeElement.h" +#include "SVGFECompositeElementImpl.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGFECompositeElement::SVGFECompositeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFECompositeElement::SVGFECompositeElement(const SVGFECompositeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFECompositeElement &SVGFECompositeElement::operator =(const SVGFECompositeElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFECompositeElement::SVGFECompositeElement(SVGFECompositeElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFECompositeElement::~SVGFECompositeElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFECompositeElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedString SVGFECompositeElement::in2() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in2()); +} + +SVGAnimatedEnumeration SVGFECompositeElement::Operator() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->Operator()); +} + +SVGAnimatedNumber SVGFECompositeElement::k1() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->k1()); +} + +SVGAnimatedNumber SVGFECompositeElement::k2() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->k2()); +} + +SVGAnimatedNumber SVGFECompositeElement::k3() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->k3()); +} + +SVGAnimatedNumber SVGFECompositeElement::k4() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->k4()); +} diff --git a/ksvg/dom/SVGFEConvolveMatrixElement.cc b/ksvg/dom/SVGFEConvolveMatrixElement.cc deleted file mode 100644 index 7f66b8b4..00000000 --- a/ksvg/dom/SVGFEConvolveMatrixElement.cc +++ /dev/null @@ -1,138 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEConvolveMatrixElement.h" -#include "SVGFEConvolveMatrixElementImpl.h" -#include "SVGAnimatedInteger.h" -#include "SVGAnimatedNumberList.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedBoolean.h" - -using namespace KSVG; - -SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const SVGFEConvolveMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEConvolveMatrixElement &SVGFEConvolveMatrixElement::operator =(const SVGFEConvolveMatrixElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(SVGFEConvolveMatrixElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEConvolveMatrixElement::~SVGFEConvolveMatrixElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedInteger SVGFEConvolveMatrixElement::orderX() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->orderX()); -} - -SVGAnimatedInteger SVGFEConvolveMatrixElement::orderY() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->orderY()); -} - -SVGAnimatedNumberList SVGFEConvolveMatrixElement::kernelMatrix() const -{ - if(!impl) return SVGAnimatedNumberList(0); - return SVGAnimatedNumberList(impl->kernelMatrix()); -} - -SVGAnimatedNumber SVGFEConvolveMatrixElement::divisor() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->divisor()); -} - -SVGAnimatedNumber SVGFEConvolveMatrixElement::bias() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->bias()); -} - -SVGAnimatedInteger SVGFEConvolveMatrixElement::targetX() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->targetX()); -} - -SVGAnimatedInteger SVGFEConvolveMatrixElement::targetY() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->targetY()); -} - -SVGAnimatedEnumeration SVGFEConvolveMatrixElement::edgeMode() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->edgeMode()); -} - -SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthX() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->kernelUnitLengthX()); -} - -SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthY() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->kernelUnitLengthY()); -} - -SVGAnimatedBoolean SVGFEConvolveMatrixElement::preserveAlpha() const -{ - if(!impl) return SVGAnimatedBoolean(0); - return SVGAnimatedBoolean(impl->preserveAlpha()); -} diff --git a/ksvg/dom/SVGFEConvolveMatrixElement.cpp b/ksvg/dom/SVGFEConvolveMatrixElement.cpp new file mode 100644 index 00000000..7f66b8b4 --- /dev/null +++ b/ksvg/dom/SVGFEConvolveMatrixElement.cpp @@ -0,0 +1,138 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEConvolveMatrixElement.h" +#include "SVGFEConvolveMatrixElementImpl.h" +#include "SVGAnimatedInteger.h" +#include "SVGAnimatedNumberList.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedBoolean.h" + +using namespace KSVG; + +SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const SVGFEConvolveMatrixElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEConvolveMatrixElement &SVGFEConvolveMatrixElement::operator =(const SVGFEConvolveMatrixElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(SVGFEConvolveMatrixElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEConvolveMatrixElement::~SVGFEConvolveMatrixElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedInteger SVGFEConvolveMatrixElement::orderX() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->orderX()); +} + +SVGAnimatedInteger SVGFEConvolveMatrixElement::orderY() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->orderY()); +} + +SVGAnimatedNumberList SVGFEConvolveMatrixElement::kernelMatrix() const +{ + if(!impl) return SVGAnimatedNumberList(0); + return SVGAnimatedNumberList(impl->kernelMatrix()); +} + +SVGAnimatedNumber SVGFEConvolveMatrixElement::divisor() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->divisor()); +} + +SVGAnimatedNumber SVGFEConvolveMatrixElement::bias() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->bias()); +} + +SVGAnimatedInteger SVGFEConvolveMatrixElement::targetX() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->targetX()); +} + +SVGAnimatedInteger SVGFEConvolveMatrixElement::targetY() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->targetY()); +} + +SVGAnimatedEnumeration SVGFEConvolveMatrixElement::edgeMode() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->edgeMode()); +} + +SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthX() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->kernelUnitLengthX()); +} + +SVGAnimatedLength SVGFEConvolveMatrixElement::kernelUnitLengthY() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->kernelUnitLengthY()); +} + +SVGAnimatedBoolean SVGFEConvolveMatrixElement::preserveAlpha() const +{ + if(!impl) return SVGAnimatedBoolean(0); + return SVGAnimatedBoolean(impl->preserveAlpha()); +} diff --git a/ksvg/dom/SVGFEDiffuseLightingElement.cc b/ksvg/dom/SVGFEDiffuseLightingElement.cc deleted file mode 100644 index 6e084f25..00000000 --- a/ksvg/dom/SVGFEDiffuseLightingElement.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEDiffuseLightingElement.h" -#include "SVGFEDiffuseLightingElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const SVGFEDiffuseLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEDiffuseLightingElement &SVGFEDiffuseLightingElement::operator =(const SVGFEDiffuseLightingElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(SVGFEDiffuseLightingElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEDiffuseLightingElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedNumber SVGFEDiffuseLightingElement::surfaceScale() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->surfaceScale()); -} - -SVGAnimatedNumber SVGFEDiffuseLightingElement::diffuseConstant() const -{ - if(!impl) return SVGAnimatedNumber(); - return SVGAnimatedNumber(impl->diffuseConstant()); -} diff --git a/ksvg/dom/SVGFEDiffuseLightingElement.cpp b/ksvg/dom/SVGFEDiffuseLightingElement.cpp new file mode 100644 index 00000000..6e084f25 --- /dev/null +++ b/ksvg/dom/SVGFEDiffuseLightingElement.cpp @@ -0,0 +1,86 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEDiffuseLightingElement.h" +#include "SVGFEDiffuseLightingElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const SVGFEDiffuseLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEDiffuseLightingElement &SVGFEDiffuseLightingElement::operator =(const SVGFEDiffuseLightingElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(SVGFEDiffuseLightingElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEDiffuseLightingElement::~SVGFEDiffuseLightingElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEDiffuseLightingElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedNumber SVGFEDiffuseLightingElement::surfaceScale() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->surfaceScale()); +} + +SVGAnimatedNumber SVGFEDiffuseLightingElement::diffuseConstant() const +{ + if(!impl) return SVGAnimatedNumber(); + return SVGAnimatedNumber(impl->diffuseConstant()); +} diff --git a/ksvg/dom/SVGFEDisplacementMapElement.cc b/ksvg/dom/SVGFEDisplacementMapElement.cc deleted file mode 100644 index 9bb4938e..00000000 --- a/ksvg/dom/SVGFEDisplacementMapElement.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEDisplacementMapElement.h" -#include "SVGFEDisplacementMapElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGFEDisplacementMapElement::SVGFEDisplacementMapElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const SVGFEDisplacementMapElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEDisplacementMapElement &SVGFEDisplacementMapElement::operator =(const SVGFEDisplacementMapElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(SVGFEDisplacementMapElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEDisplacementMapElement::~SVGFEDisplacementMapElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEDisplacementMapElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedString SVGFEDisplacementMapElement::in2() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in2()); -} - -SVGAnimatedNumber SVGFEDisplacementMapElement::scale() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->scale()); -} - -SVGAnimatedEnumeration SVGFEDisplacementMapElement::xChannelSelector() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->xChannelSelector()); -} - -SVGAnimatedEnumeration SVGFEDisplacementMapElement::yChannelSelector() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->yChannelSelector()); -} diff --git a/ksvg/dom/SVGFEDisplacementMapElement.cpp b/ksvg/dom/SVGFEDisplacementMapElement.cpp new file mode 100644 index 00000000..9bb4938e --- /dev/null +++ b/ksvg/dom/SVGFEDisplacementMapElement.cpp @@ -0,0 +1,99 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEDisplacementMapElement.h" +#include "SVGFEDisplacementMapElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGFEDisplacementMapElement::SVGFEDisplacementMapElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const SVGFEDisplacementMapElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEDisplacementMapElement &SVGFEDisplacementMapElement::operator =(const SVGFEDisplacementMapElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(SVGFEDisplacementMapElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEDisplacementMapElement::~SVGFEDisplacementMapElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEDisplacementMapElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedString SVGFEDisplacementMapElement::in2() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in2()); +} + +SVGAnimatedNumber SVGFEDisplacementMapElement::scale() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->scale()); +} + +SVGAnimatedEnumeration SVGFEDisplacementMapElement::xChannelSelector() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->xChannelSelector()); +} + +SVGAnimatedEnumeration SVGFEDisplacementMapElement::yChannelSelector() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->yChannelSelector()); +} diff --git a/ksvg/dom/SVGFEDistantLightElement.cc b/ksvg/dom/SVGFEDistantLightElement.cc deleted file mode 100644 index 5e5f4f30..00000000 --- a/ksvg/dom/SVGFEDistantLightElement.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEDistantLightElement.h" -#include "SVGFEDistantLightElementImpl.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGFEDistantLightElement::SVGFEDistantLightElement() : SVGElement() -{ - impl = 0; -} - -SVGFEDistantLightElement::SVGFEDistantLightElement(const SVGFEDistantLightElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEDistantLightElement &SVGFEDistantLightElement::operator =(const SVGFEDistantLightElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEDistantLightElement::SVGFEDistantLightElement(SVGFEDistantLightElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEDistantLightElement::~SVGFEDistantLightElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedNumber SVGFEDistantLightElement::azimuth() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->azimuth()); -} - -SVGAnimatedNumber SVGFEDistantLightElement::elevation() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->elevation()); -} diff --git a/ksvg/dom/SVGFEDistantLightElement.cpp b/ksvg/dom/SVGFEDistantLightElement.cpp new file mode 100644 index 00000000..5e5f4f30 --- /dev/null +++ b/ksvg/dom/SVGFEDistantLightElement.cpp @@ -0,0 +1,78 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEDistantLightElement.h" +#include "SVGFEDistantLightElementImpl.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGFEDistantLightElement::SVGFEDistantLightElement() : SVGElement() +{ + impl = 0; +} + +SVGFEDistantLightElement::SVGFEDistantLightElement(const SVGFEDistantLightElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEDistantLightElement &SVGFEDistantLightElement::operator =(const SVGFEDistantLightElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEDistantLightElement::SVGFEDistantLightElement(SVGFEDistantLightElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEDistantLightElement::~SVGFEDistantLightElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedNumber SVGFEDistantLightElement::azimuth() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->azimuth()); +} + +SVGAnimatedNumber SVGFEDistantLightElement::elevation() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->elevation()); +} diff --git a/ksvg/dom/SVGFEFloodElement.cc b/ksvg/dom/SVGFEFloodElement.cc deleted file mode 100644 index 0689cb10..00000000 --- a/ksvg/dom/SVGFEFloodElement.cc +++ /dev/null @@ -1,74 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEFloodElement.h" -#include "SVGFEFloodElementImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFEFloodElement::SVGFEFloodElement() : SVGElement(), SVGStylable(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEFloodElement::SVGFEFloodElement(const SVGFEFloodElement &other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEFloodElement &SVGFEFloodElement::operator =(const SVGFEFloodElement &other) -{ - SVGElement::operator=(other); - SVGStylable::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEFloodElement::SVGFEFloodElement(SVGFEFloodElementImpl *other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEFloodElement::~SVGFEFloodElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEFloodElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} diff --git a/ksvg/dom/SVGFEFloodElement.cpp b/ksvg/dom/SVGFEFloodElement.cpp new file mode 100644 index 00000000..0689cb10 --- /dev/null +++ b/ksvg/dom/SVGFEFloodElement.cpp @@ -0,0 +1,74 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEFloodElement.h" +#include "SVGFEFloodElementImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFEFloodElement::SVGFEFloodElement() : SVGElement(), SVGStylable(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEFloodElement::SVGFEFloodElement(const SVGFEFloodElement &other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEFloodElement &SVGFEFloodElement::operator =(const SVGFEFloodElement &other) +{ + SVGElement::operator=(other); + SVGStylable::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEFloodElement::SVGFEFloodElement(SVGFEFloodElementImpl *other) : SVGElement(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEFloodElement::~SVGFEFloodElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEFloodElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} diff --git a/ksvg/dom/SVGFEFuncAElement.cc b/ksvg/dom/SVGFEFuncAElement.cc deleted file mode 100644 index 00db637e..00000000 --- a/ksvg/dom/SVGFEFuncAElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEFuncAElement.h" -#include "SVGFEFuncAElementImpl.h" - -using namespace KSVG; - -SVGFEFuncAElement::SVGFEFuncAElement() : SVGComponentTransferFunctionElement() -{ - impl = 0; -} - -SVGFEFuncAElement::SVGFEFuncAElement(const SVGFEFuncAElement &other) : SVGComponentTransferFunctionElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEFuncAElement &SVGFEFuncAElement::operator =(const SVGFEFuncAElement &other) -{ - SVGComponentTransferFunctionElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEFuncAElement::SVGFEFuncAElement(SVGFEFuncAElementImpl *other) : SVGComponentTransferFunctionElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEFuncAElement::~SVGFEFuncAElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEFuncAElement.cpp b/ksvg/dom/SVGFEFuncAElement.cpp new file mode 100644 index 00000000..00db637e --- /dev/null +++ b/ksvg/dom/SVGFEFuncAElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEFuncAElement.h" +#include "SVGFEFuncAElementImpl.h" + +using namespace KSVG; + +SVGFEFuncAElement::SVGFEFuncAElement() : SVGComponentTransferFunctionElement() +{ + impl = 0; +} + +SVGFEFuncAElement::SVGFEFuncAElement(const SVGFEFuncAElement &other) : SVGComponentTransferFunctionElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEFuncAElement &SVGFEFuncAElement::operator =(const SVGFEFuncAElement &other) +{ + SVGComponentTransferFunctionElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEFuncAElement::SVGFEFuncAElement(SVGFEFuncAElementImpl *other) : SVGComponentTransferFunctionElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEFuncAElement::~SVGFEFuncAElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEFuncBElement.cc b/ksvg/dom/SVGFEFuncBElement.cc deleted file mode 100644 index 01e060f3..00000000 --- a/ksvg/dom/SVGFEFuncBElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEFuncBElement.h" -#include "SVGFEFuncBElementImpl.h" - -using namespace KSVG; - -SVGFEFuncBElement::SVGFEFuncBElement() : SVGComponentTransferFunctionElement() -{ - impl = 0; -} - -SVGFEFuncBElement::SVGFEFuncBElement(const SVGFEFuncBElement &other) : SVGComponentTransferFunctionElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEFuncBElement &SVGFEFuncBElement::operator =(const SVGFEFuncBElement &other) -{ - SVGComponentTransferFunctionElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEFuncBElement::SVGFEFuncBElement(SVGFEFuncBElementImpl *other) : SVGComponentTransferFunctionElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEFuncBElement::~SVGFEFuncBElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEFuncBElement.cpp b/ksvg/dom/SVGFEFuncBElement.cpp new file mode 100644 index 00000000..01e060f3 --- /dev/null +++ b/ksvg/dom/SVGFEFuncBElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEFuncBElement.h" +#include "SVGFEFuncBElementImpl.h" + +using namespace KSVG; + +SVGFEFuncBElement::SVGFEFuncBElement() : SVGComponentTransferFunctionElement() +{ + impl = 0; +} + +SVGFEFuncBElement::SVGFEFuncBElement(const SVGFEFuncBElement &other) : SVGComponentTransferFunctionElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEFuncBElement &SVGFEFuncBElement::operator =(const SVGFEFuncBElement &other) +{ + SVGComponentTransferFunctionElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEFuncBElement::SVGFEFuncBElement(SVGFEFuncBElementImpl *other) : SVGComponentTransferFunctionElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEFuncBElement::~SVGFEFuncBElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEFuncGElement.cc b/ksvg/dom/SVGFEFuncGElement.cc deleted file mode 100644 index c4af7f36..00000000 --- a/ksvg/dom/SVGFEFuncGElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEFuncGElement.h" -#include "SVGFEFuncGElementImpl.h" - -using namespace KSVG; - -SVGFEFuncGElement::SVGFEFuncGElement() : SVGComponentTransferFunctionElement() -{ - impl = 0; -} - -SVGFEFuncGElement::SVGFEFuncGElement(const SVGFEFuncGElement &other) : SVGComponentTransferFunctionElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEFuncGElement &SVGFEFuncGElement::operator =(const SVGFEFuncGElement &other) -{ - SVGComponentTransferFunctionElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEFuncGElement::SVGFEFuncGElement(SVGFEFuncGElementImpl *other) : SVGComponentTransferFunctionElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEFuncGElement::~SVGFEFuncGElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEFuncGElement.cpp b/ksvg/dom/SVGFEFuncGElement.cpp new file mode 100644 index 00000000..c4af7f36 --- /dev/null +++ b/ksvg/dom/SVGFEFuncGElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEFuncGElement.h" +#include "SVGFEFuncGElementImpl.h" + +using namespace KSVG; + +SVGFEFuncGElement::SVGFEFuncGElement() : SVGComponentTransferFunctionElement() +{ + impl = 0; +} + +SVGFEFuncGElement::SVGFEFuncGElement(const SVGFEFuncGElement &other) : SVGComponentTransferFunctionElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEFuncGElement &SVGFEFuncGElement::operator =(const SVGFEFuncGElement &other) +{ + SVGComponentTransferFunctionElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEFuncGElement::SVGFEFuncGElement(SVGFEFuncGElementImpl *other) : SVGComponentTransferFunctionElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEFuncGElement::~SVGFEFuncGElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEFuncRElement.cc b/ksvg/dom/SVGFEFuncRElement.cc deleted file mode 100644 index 59b87ea2..00000000 --- a/ksvg/dom/SVGFEFuncRElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEFuncRElement.h" -#include "SVGFEFuncRElementImpl.h" - -using namespace KSVG; - -SVGFEFuncRElement::SVGFEFuncRElement() : SVGComponentTransferFunctionElement() -{ - impl = 0; -} - -SVGFEFuncRElement::SVGFEFuncRElement(const SVGFEFuncRElement &other) : SVGComponentTransferFunctionElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEFuncRElement &SVGFEFuncRElement::operator =(const SVGFEFuncRElement &other) -{ - SVGComponentTransferFunctionElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEFuncRElement::SVGFEFuncRElement(SVGFEFuncRElementImpl *other) : SVGComponentTransferFunctionElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEFuncRElement::~SVGFEFuncRElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEFuncRElement.cpp b/ksvg/dom/SVGFEFuncRElement.cpp new file mode 100644 index 00000000..59b87ea2 --- /dev/null +++ b/ksvg/dom/SVGFEFuncRElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEFuncRElement.h" +#include "SVGFEFuncRElementImpl.h" + +using namespace KSVG; + +SVGFEFuncRElement::SVGFEFuncRElement() : SVGComponentTransferFunctionElement() +{ + impl = 0; +} + +SVGFEFuncRElement::SVGFEFuncRElement(const SVGFEFuncRElement &other) : SVGComponentTransferFunctionElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEFuncRElement &SVGFEFuncRElement::operator =(const SVGFEFuncRElement &other) +{ + SVGComponentTransferFunctionElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEFuncRElement::SVGFEFuncRElement(SVGFEFuncRElementImpl *other) : SVGComponentTransferFunctionElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEFuncRElement::~SVGFEFuncRElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEGaussianBlurElement.cc b/ksvg/dom/SVGFEGaussianBlurElement.cc deleted file mode 100644 index b3b9d9f7..00000000 --- a/ksvg/dom/SVGFEGaussianBlurElement.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEGaussianBlurElement.h" -#include "SVGFEGaussianBlurElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGFEGaussianBlurElement::SVGFEGaussianBlurElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const SVGFEGaussianBlurElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEGaussianBlurElement &SVGFEGaussianBlurElement::operator =(const SVGFEGaussianBlurElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(SVGFEGaussianBlurElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEGaussianBlurElement::~SVGFEGaussianBlurElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEGaussianBlurElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationX() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->stdDeviationX()); -} - -SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationY() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->stdDeviationY()); -} - -void SVGFEGaussianBlurElement::setStdDeviation(float stdDeviationX, float stdDeviationY) -{ - if(impl) - impl->setStdDeviation(stdDeviationX, stdDeviationY); -} diff --git a/ksvg/dom/SVGFEGaussianBlurElement.cpp b/ksvg/dom/SVGFEGaussianBlurElement.cpp new file mode 100644 index 00000000..b3b9d9f7 --- /dev/null +++ b/ksvg/dom/SVGFEGaussianBlurElement.cpp @@ -0,0 +1,92 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEGaussianBlurElement.h" +#include "SVGFEGaussianBlurElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGFEGaussianBlurElement::SVGFEGaussianBlurElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const SVGFEGaussianBlurElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEGaussianBlurElement &SVGFEGaussianBlurElement::operator =(const SVGFEGaussianBlurElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(SVGFEGaussianBlurElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEGaussianBlurElement::~SVGFEGaussianBlurElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEGaussianBlurElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationX() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->stdDeviationX()); +} + +SVGAnimatedNumber SVGFEGaussianBlurElement::stdDeviationY() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->stdDeviationY()); +} + +void SVGFEGaussianBlurElement::setStdDeviation(float stdDeviationX, float stdDeviationY) +{ + if(impl) + impl->setStdDeviation(stdDeviationX, stdDeviationY); +} diff --git a/ksvg/dom/SVGFEImageElement.cc b/ksvg/dom/SVGFEImageElement.cc deleted file mode 100644 index d0708306..00000000 --- a/ksvg/dom/SVGFEImageElement.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEImageElement.h" -#include "SVGFEImageElementImpl.h" - -using namespace KSVG; - -SVGFEImageElement::SVGFEImageElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEImageElement::SVGFEImageElement(const SVGFEImageElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEImageElement &SVGFEImageElement::operator =(const SVGFEImageElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEImageElement::SVGFEImageElement(SVGFEImageElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEImageElement::~SVGFEImageElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEImageElement.cpp b/ksvg/dom/SVGFEImageElement.cpp new file mode 100644 index 00000000..d0708306 --- /dev/null +++ b/ksvg/dom/SVGFEImageElement.cpp @@ -0,0 +1,70 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEImageElement.h" +#include "SVGFEImageElementImpl.h" + +using namespace KSVG; + +SVGFEImageElement::SVGFEImageElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEImageElement::SVGFEImageElement(const SVGFEImageElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEImageElement &SVGFEImageElement::operator =(const SVGFEImageElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEImageElement::SVGFEImageElement(SVGFEImageElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEImageElement::~SVGFEImageElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEMergeElement.cc b/ksvg/dom/SVGFEMergeElement.cc deleted file mode 100644 index 7398bf9b..00000000 --- a/ksvg/dom/SVGFEMergeElement.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEMergeElement.h" -#include "SVGFEMergeElementImpl.h" - -using namespace KSVG; - -SVGFEMergeElement::SVGFEMergeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEMergeElement::SVGFEMergeElement(const SVGFEMergeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEMergeElement &SVGFEMergeElement::operator =(const SVGFEMergeElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEMergeElement::SVGFEMergeElement(SVGFEMergeElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEMergeElement::~SVGFEMergeElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFEMergeElement.cpp b/ksvg/dom/SVGFEMergeElement.cpp new file mode 100644 index 00000000..7398bf9b --- /dev/null +++ b/ksvg/dom/SVGFEMergeElement.cpp @@ -0,0 +1,66 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEMergeElement.h" +#include "SVGFEMergeElementImpl.h" + +using namespace KSVG; + +SVGFEMergeElement::SVGFEMergeElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEMergeElement::SVGFEMergeElement(const SVGFEMergeElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEMergeElement &SVGFEMergeElement::operator =(const SVGFEMergeElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEMergeElement::SVGFEMergeElement(SVGFEMergeElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEMergeElement::~SVGFEMergeElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFEMergeNodeElement.cc b/ksvg/dom/SVGFEMergeNodeElement.cc deleted file mode 100644 index 65d6b18d..00000000 --- a/ksvg/dom/SVGFEMergeNodeElement.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEMergeNodeElement.h" -#include "SVGFEMergeNodeElementImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFEMergeNodeElement::SVGFEMergeNodeElement() : SVGElement() -{ - impl = 0; -} - -SVGFEMergeNodeElement::SVGFEMergeNodeElement(const SVGFEMergeNodeElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEMergeNodeElement &SVGFEMergeNodeElement::operator =(const SVGFEMergeNodeElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEMergeNodeElement::SVGFEMergeNodeElement(SVGFEMergeNodeElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEMergeNodeElement::~SVGFEMergeNodeElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEMergeNodeElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} diff --git a/ksvg/dom/SVGFEMergeNodeElement.cpp b/ksvg/dom/SVGFEMergeNodeElement.cpp new file mode 100644 index 00000000..65d6b18d --- /dev/null +++ b/ksvg/dom/SVGFEMergeNodeElement.cpp @@ -0,0 +1,72 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEMergeNodeElement.h" +#include "SVGFEMergeNodeElementImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFEMergeNodeElement::SVGFEMergeNodeElement() : SVGElement() +{ + impl = 0; +} + +SVGFEMergeNodeElement::SVGFEMergeNodeElement(const SVGFEMergeNodeElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEMergeNodeElement &SVGFEMergeNodeElement::operator =(const SVGFEMergeNodeElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEMergeNodeElement::SVGFEMergeNodeElement(SVGFEMergeNodeElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEMergeNodeElement::~SVGFEMergeNodeElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEMergeNodeElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} diff --git a/ksvg/dom/SVGFEMorphologyElement.cc b/ksvg/dom/SVGFEMorphologyElement.cc deleted file mode 100644 index e6f2543a..00000000 --- a/ksvg/dom/SVGFEMorphologyElement.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEMorphologyElement.h" -#include "SVGFEMorphologyElementImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGFEMorphologyElement::SVGFEMorphologyElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEMorphologyElement::SVGFEMorphologyElement(const SVGFEMorphologyElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEMorphologyElement &SVGFEMorphologyElement::operator =(const SVGFEMorphologyElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEMorphologyElement::SVGFEMorphologyElement(SVGFEMorphologyElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEMorphologyElement::~SVGFEMorphologyElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEMorphologyElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedEnumeration SVGFEMorphologyElement::Operator() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->Operator()); -} - -SVGAnimatedLength SVGFEMorphologyElement::radiusX() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->radiusX()); -} - -SVGAnimatedLength SVGFEMorphologyElement::radiusY() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->radiusY()); -} diff --git a/ksvg/dom/SVGFEMorphologyElement.cpp b/ksvg/dom/SVGFEMorphologyElement.cpp new file mode 100644 index 00000000..e6f2543a --- /dev/null +++ b/ksvg/dom/SVGFEMorphologyElement.cpp @@ -0,0 +1,93 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEMorphologyElement.h" +#include "SVGFEMorphologyElementImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGFEMorphologyElement::SVGFEMorphologyElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEMorphologyElement::SVGFEMorphologyElement(const SVGFEMorphologyElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEMorphologyElement &SVGFEMorphologyElement::operator =(const SVGFEMorphologyElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEMorphologyElement::SVGFEMorphologyElement(SVGFEMorphologyElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEMorphologyElement::~SVGFEMorphologyElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEMorphologyElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedEnumeration SVGFEMorphologyElement::Operator() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->Operator()); +} + +SVGAnimatedLength SVGFEMorphologyElement::radiusX() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->radiusX()); +} + +SVGAnimatedLength SVGFEMorphologyElement::radiusY() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->radiusY()); +} diff --git a/ksvg/dom/SVGFEOffsetElement.cc b/ksvg/dom/SVGFEOffsetElement.cc deleted file mode 100644 index bd9a94fd..00000000 --- a/ksvg/dom/SVGFEOffsetElement.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEOffsetElement.h" -#include "SVGFEOffsetElementImpl.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFEOffsetElement::SVGFEOffsetElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFEOffsetElement::SVGFEOffsetElement(const SVGFEOffsetElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFEOffsetElement &SVGFEOffsetElement::operator =(const SVGFEOffsetElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEOffsetElement::SVGFEOffsetElement(SVGFEOffsetElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEOffsetElement::~SVGFEOffsetElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFEOffsetElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedNumber SVGFEOffsetElement::dx() const -{ - if(!impl) return SVGAnimatedNumber(0); // FIXME - return SVGAnimatedNumber(impl->dx()); -} - -SVGAnimatedNumber SVGFEOffsetElement::dy() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->dy()); -} diff --git a/ksvg/dom/SVGFEOffsetElement.cpp b/ksvg/dom/SVGFEOffsetElement.cpp new file mode 100644 index 00000000..bd9a94fd --- /dev/null +++ b/ksvg/dom/SVGFEOffsetElement.cpp @@ -0,0 +1,86 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEOffsetElement.h" +#include "SVGFEOffsetElementImpl.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFEOffsetElement::SVGFEOffsetElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFEOffsetElement::SVGFEOffsetElement(const SVGFEOffsetElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFEOffsetElement &SVGFEOffsetElement::operator =(const SVGFEOffsetElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEOffsetElement::SVGFEOffsetElement(SVGFEOffsetElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEOffsetElement::~SVGFEOffsetElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFEOffsetElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedNumber SVGFEOffsetElement::dx() const +{ + if(!impl) return SVGAnimatedNumber(0); // FIXME + return SVGAnimatedNumber(impl->dx()); +} + +SVGAnimatedNumber SVGFEOffsetElement::dy() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->dy()); +} diff --git a/ksvg/dom/SVGFEPointLightElement.cc b/ksvg/dom/SVGFEPointLightElement.cc deleted file mode 100644 index 99028920..00000000 --- a/ksvg/dom/SVGFEPointLightElement.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFEPointLightElement.h" -#include "SVGFEPointLightElementImpl.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGFEPointLightElement::SVGFEPointLightElement() : SVGElement() -{ - impl = 0; -} - -SVGFEPointLightElement::SVGFEPointLightElement(const SVGFEPointLightElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFEPointLightElement &SVGFEPointLightElement::operator =(const SVGFEPointLightElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFEPointLightElement::SVGFEPointLightElement(SVGFEPointLightElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFEPointLightElement::~SVGFEPointLightElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedNumber SVGFEPointLightElement::x() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->x()); -} - -SVGAnimatedNumber SVGFEPointLightElement::y() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->y()); -} - -SVGAnimatedNumber SVGFEPointLightElement::z() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->z()); -} diff --git a/ksvg/dom/SVGFEPointLightElement.cpp b/ksvg/dom/SVGFEPointLightElement.cpp new file mode 100644 index 00000000..99028920 --- /dev/null +++ b/ksvg/dom/SVGFEPointLightElement.cpp @@ -0,0 +1,84 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFEPointLightElement.h" +#include "SVGFEPointLightElementImpl.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGFEPointLightElement::SVGFEPointLightElement() : SVGElement() +{ + impl = 0; +} + +SVGFEPointLightElement::SVGFEPointLightElement(const SVGFEPointLightElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFEPointLightElement &SVGFEPointLightElement::operator =(const SVGFEPointLightElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFEPointLightElement::SVGFEPointLightElement(SVGFEPointLightElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFEPointLightElement::~SVGFEPointLightElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedNumber SVGFEPointLightElement::x() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->x()); +} + +SVGAnimatedNumber SVGFEPointLightElement::y() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->y()); +} + +SVGAnimatedNumber SVGFEPointLightElement::z() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->z()); +} diff --git a/ksvg/dom/SVGFESpecularLightingElement.cc b/ksvg/dom/SVGFESpecularLightingElement.cc deleted file mode 100644 index cd4785dc..00000000 --- a/ksvg/dom/SVGFESpecularLightingElement.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFESpecularLightingElement.h" -#include "SVGFESpecularLightingElementImpl.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFESpecularLightingElement::SVGFESpecularLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFESpecularLightingElement::SVGFESpecularLightingElement(const SVGFESpecularLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFESpecularLightingElement &SVGFESpecularLightingElement::operator =(const SVGFESpecularLightingElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFESpecularLightingElement::SVGFESpecularLightingElement(SVGFESpecularLightingElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFESpecularLightingElement::~SVGFESpecularLightingElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFESpecularLightingElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} - -SVGAnimatedNumber SVGFESpecularLightingElement::surfaceScale() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->surfaceScale()); -} - -SVGAnimatedNumber SVGFESpecularLightingElement::specularConstant() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->specularConstant()); -} - -SVGAnimatedNumber SVGFESpecularLightingElement::specularExponent() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->specularExponent()); -} diff --git a/ksvg/dom/SVGFESpecularLightingElement.cpp b/ksvg/dom/SVGFESpecularLightingElement.cpp new file mode 100644 index 00000000..cd4785dc --- /dev/null +++ b/ksvg/dom/SVGFESpecularLightingElement.cpp @@ -0,0 +1,92 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFESpecularLightingElement.h" +#include "SVGFESpecularLightingElementImpl.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFESpecularLightingElement::SVGFESpecularLightingElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFESpecularLightingElement::SVGFESpecularLightingElement(const SVGFESpecularLightingElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFESpecularLightingElement &SVGFESpecularLightingElement::operator =(const SVGFESpecularLightingElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFESpecularLightingElement::SVGFESpecularLightingElement(SVGFESpecularLightingElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFESpecularLightingElement::~SVGFESpecularLightingElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFESpecularLightingElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} + +SVGAnimatedNumber SVGFESpecularLightingElement::surfaceScale() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->surfaceScale()); +} + +SVGAnimatedNumber SVGFESpecularLightingElement::specularConstant() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->specularConstant()); +} + +SVGAnimatedNumber SVGFESpecularLightingElement::specularExponent() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->specularExponent()); +} diff --git a/ksvg/dom/SVGFESpotLightElement.cc b/ksvg/dom/SVGFESpotLightElement.cc deleted file mode 100644 index 15353880..00000000 --- a/ksvg/dom/SVGFESpotLightElement.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFESpotLightElement.h" -#include "SVGFESpotLightElementImpl.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGFESpotLightElement::SVGFESpotLightElement() : SVGElement() -{ - impl = 0; -} - -SVGFESpotLightElement::SVGFESpotLightElement(const SVGFESpotLightElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFESpotLightElement &SVGFESpotLightElement::operator =(const SVGFESpotLightElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFESpotLightElement::SVGFESpotLightElement(SVGFESpotLightElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFESpotLightElement::~SVGFESpotLightElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedNumber SVGFESpotLightElement::x() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->x()); -} - -SVGAnimatedNumber SVGFESpotLightElement::y() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->y()); -} - -SVGAnimatedNumber SVGFESpotLightElement::z() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->z()); -} - -SVGAnimatedNumber SVGFESpotLightElement::pointsAtX() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->pointsAtX()); -} - -SVGAnimatedNumber SVGFESpotLightElement::pointsAtY() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->pointsAtY()); -} - -SVGAnimatedNumber SVGFESpotLightElement::pointsAtZ() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->pointsAtZ()); -} - -SVGAnimatedNumber SVGFESpotLightElement::specularExponent() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->specularExponent()); -} - -SVGAnimatedNumber SVGFESpotLightElement::limitingConeAngle() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->limitingConeAngle()); -} diff --git a/ksvg/dom/SVGFESpotLightElement.cpp b/ksvg/dom/SVGFESpotLightElement.cpp new file mode 100644 index 00000000..15353880 --- /dev/null +++ b/ksvg/dom/SVGFESpotLightElement.cpp @@ -0,0 +1,114 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFESpotLightElement.h" +#include "SVGFESpotLightElementImpl.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGFESpotLightElement::SVGFESpotLightElement() : SVGElement() +{ + impl = 0; +} + +SVGFESpotLightElement::SVGFESpotLightElement(const SVGFESpotLightElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFESpotLightElement &SVGFESpotLightElement::operator =(const SVGFESpotLightElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFESpotLightElement::SVGFESpotLightElement(SVGFESpotLightElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFESpotLightElement::~SVGFESpotLightElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedNumber SVGFESpotLightElement::x() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->x()); +} + +SVGAnimatedNumber SVGFESpotLightElement::y() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->y()); +} + +SVGAnimatedNumber SVGFESpotLightElement::z() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->z()); +} + +SVGAnimatedNumber SVGFESpotLightElement::pointsAtX() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->pointsAtX()); +} + +SVGAnimatedNumber SVGFESpotLightElement::pointsAtY() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->pointsAtY()); +} + +SVGAnimatedNumber SVGFESpotLightElement::pointsAtZ() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->pointsAtZ()); +} + +SVGAnimatedNumber SVGFESpotLightElement::specularExponent() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->specularExponent()); +} + +SVGAnimatedNumber SVGFESpotLightElement::limitingConeAngle() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->limitingConeAngle()); +} diff --git a/ksvg/dom/SVGFETileElement.cc b/ksvg/dom/SVGFETileElement.cc deleted file mode 100644 index d88a4f2a..00000000 --- a/ksvg/dom/SVGFETileElement.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFETileElement.h" -#include "SVGFETileElementImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGFETileElement::SVGFETileElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFETileElement::SVGFETileElement(const SVGFETileElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFETileElement &SVGFETileElement::operator =(const SVGFETileElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFETileElement::SVGFETileElement(SVGFETileElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFETileElement::~SVGFETileElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedString SVGFETileElement::in1() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->in1()); -} diff --git a/ksvg/dom/SVGFETileElement.cpp b/ksvg/dom/SVGFETileElement.cpp new file mode 100644 index 00000000..d88a4f2a --- /dev/null +++ b/ksvg/dom/SVGFETileElement.cpp @@ -0,0 +1,73 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFETileElement.h" +#include "SVGFETileElementImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGFETileElement::SVGFETileElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFETileElement::SVGFETileElement(const SVGFETileElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFETileElement &SVGFETileElement::operator =(const SVGFETileElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFETileElement::SVGFETileElement(SVGFETileElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFETileElement::~SVGFETileElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedString SVGFETileElement::in1() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->in1()); +} diff --git a/ksvg/dom/SVGFETurbulenceElement.cc b/ksvg/dom/SVGFETurbulenceElement.cc deleted file mode 100644 index 2f4fd5b8..00000000 --- a/ksvg/dom/SVGFETurbulenceElement.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFETurbulenceElement.h" -#include "SVGFETurbulenceElementImpl.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedInteger.h" - -using namespace KSVG; - -SVGFETurbulenceElement::SVGFETurbulenceElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() -{ - impl = 0; -} - -SVGFETurbulenceElement::SVGFETurbulenceElement(const SVGFETurbulenceElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) -{ - (*this) = other; -} - -SVGFETurbulenceElement &SVGFETurbulenceElement::operator =(const SVGFETurbulenceElement &other) -{ - SVGElement::operator=(other); - SVGFilterPrimitiveStandardAttributes::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFETurbulenceElement::SVGFETurbulenceElement(SVGFETurbulenceElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFETurbulenceElement::~SVGFETurbulenceElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyX() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->baseFrequencyX()); -} - -SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyY() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->baseFrequencyY()); -} - -SVGAnimatedInteger SVGFETurbulenceElement::numOctaves() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->numOctaves()); -} - -SVGAnimatedNumber SVGFETurbulenceElement::seed() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->seed()); -} - -SVGAnimatedEnumeration SVGFETurbulenceElement::stitchTiles() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->stitchTiles()); -} - -SVGAnimatedEnumeration SVGFETurbulenceElement::type() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->type()); -} diff --git a/ksvg/dom/SVGFETurbulenceElement.cpp b/ksvg/dom/SVGFETurbulenceElement.cpp new file mode 100644 index 00000000..2f4fd5b8 --- /dev/null +++ b/ksvg/dom/SVGFETurbulenceElement.cpp @@ -0,0 +1,105 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFETurbulenceElement.h" +#include "SVGFETurbulenceElementImpl.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedInteger.h" + +using namespace KSVG; + +SVGFETurbulenceElement::SVGFETurbulenceElement() : SVGElement(), SVGFilterPrimitiveStandardAttributes() +{ + impl = 0; +} + +SVGFETurbulenceElement::SVGFETurbulenceElement(const SVGFETurbulenceElement &other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other), impl(0) +{ + (*this) = other; +} + +SVGFETurbulenceElement &SVGFETurbulenceElement::operator =(const SVGFETurbulenceElement &other) +{ + SVGElement::operator=(other); + SVGFilterPrimitiveStandardAttributes::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFETurbulenceElement::SVGFETurbulenceElement(SVGFETurbulenceElementImpl *other) : SVGElement(other), SVGFilterPrimitiveStandardAttributes(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFETurbulenceElement::~SVGFETurbulenceElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyX() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->baseFrequencyX()); +} + +SVGAnimatedNumber SVGFETurbulenceElement::baseFrequencyY() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->baseFrequencyY()); +} + +SVGAnimatedInteger SVGFETurbulenceElement::numOctaves() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->numOctaves()); +} + +SVGAnimatedNumber SVGFETurbulenceElement::seed() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->seed()); +} + +SVGAnimatedEnumeration SVGFETurbulenceElement::stitchTiles() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->stitchTiles()); +} + +SVGAnimatedEnumeration SVGFETurbulenceElement::type() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->type()); +} diff --git a/ksvg/dom/SVGFilterElement.cc b/ksvg/dom/SVGFilterElement.cc deleted file mode 100644 index f505252e..00000000 --- a/ksvg/dom/SVGFilterElement.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFilterElement.h" -#include "SVGFilterElementImpl.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedInteger.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGFilterElement::SVGFilterElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() -{ - impl = 0; -} - -SVGFilterElement::SVGFilterElement(const SVGFilterElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0) -{ - (*this) = other; -} - -SVGFilterElement &SVGFilterElement::operator =(const SVGFilterElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFilterElement::SVGFilterElement(SVGFilterElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFilterElement::~SVGFilterElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedEnumeration SVGFilterElement::filterUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->filterUnits()); -} - -SVGAnimatedEnumeration SVGFilterElement::primitiveUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->primitiveUnits()); -} - -SVGAnimatedLength SVGFilterElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGFilterElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGFilterElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGFilterElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} - -SVGAnimatedInteger SVGFilterElement::filterResX() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->filterResX()); -} - -SVGAnimatedInteger SVGFilterElement::filterResY() const -{ - if(!impl) return SVGAnimatedInteger(0); - return SVGAnimatedInteger(impl->filterResY()); -} - -void SVGFilterElement::setFilterRes(unsigned long filterResX, unsigned long filterResY) -{ - if(impl) - impl->setFilterRes(filterResX, filterResY); -} diff --git a/ksvg/dom/SVGFilterElement.cpp b/ksvg/dom/SVGFilterElement.cpp new file mode 100644 index 00000000..f505252e --- /dev/null +++ b/ksvg/dom/SVGFilterElement.cpp @@ -0,0 +1,126 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFilterElement.h" +#include "SVGFilterElementImpl.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedInteger.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGFilterElement::SVGFilterElement() : SVGElement(), SVGURIReference(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() +{ + impl = 0; +} + +SVGFilterElement::SVGFilterElement(const SVGFilterElement &other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0) +{ + (*this) = other; +} + +SVGFilterElement &SVGFilterElement::operator =(const SVGFilterElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFilterElement::SVGFilterElement(SVGFilterElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFilterElement::~SVGFilterElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedEnumeration SVGFilterElement::filterUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->filterUnits()); +} + +SVGAnimatedEnumeration SVGFilterElement::primitiveUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->primitiveUnits()); +} + +SVGAnimatedLength SVGFilterElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGFilterElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGFilterElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGFilterElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} + +SVGAnimatedInteger SVGFilterElement::filterResX() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->filterResX()); +} + +SVGAnimatedInteger SVGFilterElement::filterResY() const +{ + if(!impl) return SVGAnimatedInteger(0); + return SVGAnimatedInteger(impl->filterResY()); +} + +void SVGFilterElement::setFilterRes(unsigned long filterResX, unsigned long filterResY) +{ + if(impl) + impl->setFilterRes(filterResX, filterResY); +} diff --git a/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cc b/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cc deleted file mode 100644 index fd629054..00000000 --- a/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFilterPrimitiveStandardAttributes.h" -#include "SVGFilterPrimitiveStandardAttributesImpl.h" -#include "SVGAnimatedString.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes() -{ - impl = new SVGFilterPrimitiveStandardAttributesImpl(); -} - -SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const SVGFilterPrimitiveStandardAttributes &other) -{ - impl = other.impl; -} - -SVGFilterPrimitiveStandardAttributes &SVGFilterPrimitiveStandardAttributes::operator=(const SVGFilterPrimitiveStandardAttributes &other) -{ - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} - -SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(SVGFilterPrimitiveStandardAttributesImpl *other) -{ - impl = other; -} - -SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes() -{ -} - -SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} - -SVGAnimatedString SVGFilterPrimitiveStandardAttributes::result() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->result()); -} diff --git a/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp b/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp new file mode 100644 index 00000000..fd629054 --- /dev/null +++ b/ksvg/dom/SVGFilterPrimitiveStandardAttributes.cpp @@ -0,0 +1,86 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFilterPrimitiveStandardAttributes.h" +#include "SVGFilterPrimitiveStandardAttributesImpl.h" +#include "SVGAnimatedString.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes() +{ + impl = new SVGFilterPrimitiveStandardAttributesImpl(); +} + +SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const SVGFilterPrimitiveStandardAttributes &other) +{ + impl = other.impl; +} + +SVGFilterPrimitiveStandardAttributes &SVGFilterPrimitiveStandardAttributes::operator=(const SVGFilterPrimitiveStandardAttributes &other) +{ + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} + +SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(SVGFilterPrimitiveStandardAttributesImpl *other) +{ + impl = other; +} + +SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes() +{ +} + +SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGFilterPrimitiveStandardAttributes::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} + +SVGAnimatedString SVGFilterPrimitiveStandardAttributes::result() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->result()); +} diff --git a/ksvg/dom/SVGFitToViewBox.cc b/ksvg/dom/SVGFitToViewBox.cc deleted file mode 100644 index 4f54e2b4..00000000 --- a/ksvg/dom/SVGFitToViewBox.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFitToViewBox.h" -#include "SVGFitToViewBoxImpl.h" -#include "SVGAnimatedRect.h" -#include "SVGAnimatedPreserveAspectRatio.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGFitToViewBox::SVGFitToViewBox() -{ - impl = 0; -} - -SVGFitToViewBox::SVGFitToViewBox(const SVGFitToViewBox &other) : impl(0) -{ - (*this) = other; -} - -SVGFitToViewBox &SVGFitToViewBox::operator=(const SVGFitToViewBox &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGFitToViewBox::SVGFitToViewBox(SVGFitToViewBoxImpl *other) -{ - impl = other; -} - -SVGFitToViewBox::~SVGFitToViewBox() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -SVGAnimatedRect SVGFitToViewBox::viewBox() const -{ - if(!impl) return SVGAnimatedRect(0); - return SVGAnimatedRect(impl->viewBox()); -} - -SVGAnimatedPreserveAspectRatio SVGFitToViewBox::preserveAspectRatio() const -{ - if(!impl) return SVGAnimatedPreserveAspectRatio(0); - return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio()); -} diff --git a/ksvg/dom/SVGFitToViewBox.cpp b/ksvg/dom/SVGFitToViewBox.cpp new file mode 100644 index 00000000..4f54e2b4 --- /dev/null +++ b/ksvg/dom/SVGFitToViewBox.cpp @@ -0,0 +1,70 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFitToViewBox.h" +#include "SVGFitToViewBoxImpl.h" +#include "SVGAnimatedRect.h" +#include "SVGAnimatedPreserveAspectRatio.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGFitToViewBox::SVGFitToViewBox() +{ + impl = 0; +} + +SVGFitToViewBox::SVGFitToViewBox(const SVGFitToViewBox &other) : impl(0) +{ + (*this) = other; +} + +SVGFitToViewBox &SVGFitToViewBox::operator=(const SVGFitToViewBox &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGFitToViewBox::SVGFitToViewBox(SVGFitToViewBoxImpl *other) +{ + impl = other; +} + +SVGFitToViewBox::~SVGFitToViewBox() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +SVGAnimatedRect SVGFitToViewBox::viewBox() const +{ + if(!impl) return SVGAnimatedRect(0); + return SVGAnimatedRect(impl->viewBox()); +} + +SVGAnimatedPreserveAspectRatio SVGFitToViewBox::preserveAspectRatio() const +{ + if(!impl) return SVGAnimatedPreserveAspectRatio(0); + return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio()); +} diff --git a/ksvg/dom/SVGFontElement.cc b/ksvg/dom/SVGFontElement.cc deleted file mode 100644 index 30244c6f..00000000 --- a/ksvg/dom/SVGFontElement.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontElement.h" -#include "SVGFontElementImpl.h" - -using namespace KSVG; - -SVGFontElement::SVGFontElement() : SVGElement(), SVGExternalResourcesRequired(), SVGStylable() -{ - impl = 0; -} - -SVGFontElement::SVGFontElement(const SVGFontElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGFontElement &SVGFontElement::operator =(const SVGFontElement &other) -{ - SVGElement::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontElement::SVGFontElement(SVGFontElementImpl *other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontElement::~SVGFontElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontElement.cpp b/ksvg/dom/SVGFontElement.cpp new file mode 100644 index 00000000..30244c6f --- /dev/null +++ b/ksvg/dom/SVGFontElement.cpp @@ -0,0 +1,67 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontElement.h" +#include "SVGFontElementImpl.h" + +using namespace KSVG; + +SVGFontElement::SVGFontElement() : SVGElement(), SVGExternalResourcesRequired(), SVGStylable() +{ + impl = 0; +} + +SVGFontElement::SVGFontElement(const SVGFontElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGFontElement &SVGFontElement::operator =(const SVGFontElement &other) +{ + SVGElement::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontElement::SVGFontElement(SVGFontElementImpl *other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontElement::~SVGFontElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFontFaceElement.cc b/ksvg/dom/SVGFontFaceElement.cc deleted file mode 100644 index f5c7a12a..00000000 --- a/ksvg/dom/SVGFontFaceElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontFaceElement.h" -#include "SVGFontFaceElementImpl.h" - -using namespace KSVG; - -SVGFontFaceElement::SVGFontFaceElement() : SVGElement() -{ - impl = 0; -} - -SVGFontFaceElement::SVGFontFaceElement(const SVGFontFaceElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFontFaceElement &SVGFontFaceElement::operator =(const SVGFontFaceElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontFaceElement::SVGFontFaceElement(SVGFontFaceElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontFaceElement::~SVGFontFaceElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontFaceElement.cpp b/ksvg/dom/SVGFontFaceElement.cpp new file mode 100644 index 00000000..f5c7a12a --- /dev/null +++ b/ksvg/dom/SVGFontFaceElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontFaceElement.h" +#include "SVGFontFaceElementImpl.h" + +using namespace KSVG; + +SVGFontFaceElement::SVGFontFaceElement() : SVGElement() +{ + impl = 0; +} + +SVGFontFaceElement::SVGFontFaceElement(const SVGFontFaceElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFontFaceElement &SVGFontFaceElement::operator =(const SVGFontFaceElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontFaceElement::SVGFontFaceElement(SVGFontFaceElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontFaceElement::~SVGFontFaceElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFontFaceFormatElement.cc b/ksvg/dom/SVGFontFaceFormatElement.cc deleted file mode 100644 index ede5a248..00000000 --- a/ksvg/dom/SVGFontFaceFormatElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontFaceFormatElement.h" -#include "SVGFontFaceFormatElementImpl.h" - -using namespace KSVG; - -SVGFontFaceFormatElement::SVGFontFaceFormatElement() : SVGElement() -{ - impl = 0; -} - -SVGFontFaceFormatElement::SVGFontFaceFormatElement(const SVGFontFaceFormatElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFontFaceFormatElement &SVGFontFaceFormatElement::operator =(const SVGFontFaceFormatElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontFaceFormatElement::SVGFontFaceFormatElement(SVGFontFaceFormatElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontFaceFormatElement::~SVGFontFaceFormatElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontFaceFormatElement.cpp b/ksvg/dom/SVGFontFaceFormatElement.cpp new file mode 100644 index 00000000..ede5a248 --- /dev/null +++ b/ksvg/dom/SVGFontFaceFormatElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontFaceFormatElement.h" +#include "SVGFontFaceFormatElementImpl.h" + +using namespace KSVG; + +SVGFontFaceFormatElement::SVGFontFaceFormatElement() : SVGElement() +{ + impl = 0; +} + +SVGFontFaceFormatElement::SVGFontFaceFormatElement(const SVGFontFaceFormatElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFontFaceFormatElement &SVGFontFaceFormatElement::operator =(const SVGFontFaceFormatElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontFaceFormatElement::SVGFontFaceFormatElement(SVGFontFaceFormatElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontFaceFormatElement::~SVGFontFaceFormatElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFontFaceNameElement.cc b/ksvg/dom/SVGFontFaceNameElement.cc deleted file mode 100644 index ce2413fd..00000000 --- a/ksvg/dom/SVGFontFaceNameElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontFaceNameElement.h" -#include "SVGFontFaceNameElementImpl.h" - -using namespace KSVG; - -SVGFontFaceNameElement::SVGFontFaceNameElement() : SVGElement() -{ - impl = 0; -} - -SVGFontFaceNameElement::SVGFontFaceNameElement(const SVGFontFaceNameElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFontFaceNameElement &SVGFontFaceNameElement::operator =(const SVGFontFaceNameElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontFaceNameElement::SVGFontFaceNameElement(SVGFontFaceNameElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontFaceNameElement::~SVGFontFaceNameElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontFaceNameElement.cpp b/ksvg/dom/SVGFontFaceNameElement.cpp new file mode 100644 index 00000000..ce2413fd --- /dev/null +++ b/ksvg/dom/SVGFontFaceNameElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontFaceNameElement.h" +#include "SVGFontFaceNameElementImpl.h" + +using namespace KSVG; + +SVGFontFaceNameElement::SVGFontFaceNameElement() : SVGElement() +{ + impl = 0; +} + +SVGFontFaceNameElement::SVGFontFaceNameElement(const SVGFontFaceNameElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFontFaceNameElement &SVGFontFaceNameElement::operator =(const SVGFontFaceNameElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontFaceNameElement::SVGFontFaceNameElement(SVGFontFaceNameElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontFaceNameElement::~SVGFontFaceNameElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFontFaceSrcElement.cc b/ksvg/dom/SVGFontFaceSrcElement.cc deleted file mode 100644 index c34e7734..00000000 --- a/ksvg/dom/SVGFontFaceSrcElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontFaceSrcElement.h" -#include "SVGFontFaceSrcElementImpl.h" - -using namespace KSVG; - -SVGFontFaceSrcElement::SVGFontFaceSrcElement() : SVGElement() -{ - impl = 0; -} - -SVGFontFaceSrcElement::SVGFontFaceSrcElement(const SVGFontFaceSrcElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFontFaceSrcElement &SVGFontFaceSrcElement::operator =(const SVGFontFaceSrcElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontFaceSrcElement::SVGFontFaceSrcElement(SVGFontFaceSrcElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontFaceSrcElement::~SVGFontFaceSrcElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontFaceSrcElement.cpp b/ksvg/dom/SVGFontFaceSrcElement.cpp new file mode 100644 index 00000000..c34e7734 --- /dev/null +++ b/ksvg/dom/SVGFontFaceSrcElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontFaceSrcElement.h" +#include "SVGFontFaceSrcElementImpl.h" + +using namespace KSVG; + +SVGFontFaceSrcElement::SVGFontFaceSrcElement() : SVGElement() +{ + impl = 0; +} + +SVGFontFaceSrcElement::SVGFontFaceSrcElement(const SVGFontFaceSrcElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFontFaceSrcElement &SVGFontFaceSrcElement::operator =(const SVGFontFaceSrcElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontFaceSrcElement::SVGFontFaceSrcElement(SVGFontFaceSrcElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontFaceSrcElement::~SVGFontFaceSrcElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGFontFaceUriElement.cc b/ksvg/dom/SVGFontFaceUriElement.cc deleted file mode 100644 index 98a13d4d..00000000 --- a/ksvg/dom/SVGFontFaceUriElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGFontFaceUriElement.h" -#include "SVGFontFaceUriElementImpl.h" - -using namespace KSVG; - -SVGFontFaceUriElement::SVGFontFaceUriElement() : SVGElement() -{ - impl = 0; -} - -SVGFontFaceUriElement::SVGFontFaceUriElement(const SVGFontFaceUriElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGFontFaceUriElement &SVGFontFaceUriElement::operator =(const SVGFontFaceUriElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGFontFaceUriElement::SVGFontFaceUriElement(SVGFontFaceUriElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGFontFaceUriElement::~SVGFontFaceUriElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGFontFaceUriElement.cpp b/ksvg/dom/SVGFontFaceUriElement.cpp new file mode 100644 index 00000000..98a13d4d --- /dev/null +++ b/ksvg/dom/SVGFontFaceUriElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGFontFaceUriElement.h" +#include "SVGFontFaceUriElementImpl.h" + +using namespace KSVG; + +SVGFontFaceUriElement::SVGFontFaceUriElement() : SVGElement() +{ + impl = 0; +} + +SVGFontFaceUriElement::SVGFontFaceUriElement(const SVGFontFaceUriElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGFontFaceUriElement &SVGFontFaceUriElement::operator =(const SVGFontFaceUriElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGFontFaceUriElement::SVGFontFaceUriElement(SVGFontFaceUriElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGFontFaceUriElement::~SVGFontFaceUriElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGForeignObjectElement.cc b/ksvg/dom/SVGForeignObjectElement.cc deleted file mode 100644 index cd7ffad5..00000000 --- a/ksvg/dom/SVGForeignObjectElement.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGForeignObjectElement.h" -#include "SVGForeignObjectElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGForeignObjectElement::SVGForeignObjectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGForeignObjectElement::SVGForeignObjectElement(const SVGForeignObjectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - (*this) = other; -} - -SVGForeignObjectElement &SVGForeignObjectElement::operator =(const SVGForeignObjectElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGForeignObjectElement::SVGForeignObjectElement(SVGForeignObjectElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGForeignObjectElement::~SVGForeignObjectElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGForeignObjectElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGForeignObjectElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGForeignObjectElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGForeignObjectElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} diff --git a/ksvg/dom/SVGForeignObjectElement.cpp b/ksvg/dom/SVGForeignObjectElement.cpp new file mode 100644 index 00000000..cd7ffad5 --- /dev/null +++ b/ksvg/dom/SVGForeignObjectElement.cpp @@ -0,0 +1,95 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGForeignObjectElement.h" +#include "SVGForeignObjectElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGForeignObjectElement::SVGForeignObjectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGForeignObjectElement::SVGForeignObjectElement(const SVGForeignObjectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + (*this) = other; +} + +SVGForeignObjectElement &SVGForeignObjectElement::operator =(const SVGForeignObjectElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGForeignObjectElement::SVGForeignObjectElement(SVGForeignObjectElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGForeignObjectElement::~SVGForeignObjectElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGForeignObjectElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGForeignObjectElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGForeignObjectElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGForeignObjectElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} diff --git a/ksvg/dom/SVGGElement.cc b/ksvg/dom/SVGGElement.cc deleted file mode 100644 index 6a6cfb96..00000000 --- a/ksvg/dom/SVGGElement.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGGElement.h" -#include "SVGGElementImpl.h" - -using namespace KSVG; - -SVGGElement::SVGGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGGElement::SVGGElement(const SVGGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGGElement &SVGGElement::operator =(const SVGGElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGGElement::SVGGElement(SVGGElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGGElement::~SVGGElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGGElement.cpp b/ksvg/dom/SVGGElement.cpp new file mode 100644 index 00000000..6a6cfb96 --- /dev/null +++ b/ksvg/dom/SVGGElement.cpp @@ -0,0 +1,70 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGGElement.h" +#include "SVGGElementImpl.h" + +using namespace KSVG; + +SVGGElement::SVGGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGGElement::SVGGElement(const SVGGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGGElement &SVGGElement::operator =(const SVGGElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGGElement::SVGGElement(SVGGElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGGElement::~SVGGElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGGlyphElement.cc b/ksvg/dom/SVGGlyphElement.cc deleted file mode 100644 index 7f6f4ae4..00000000 --- a/ksvg/dom/SVGGlyphElement.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGGlyphElement.h" -#include "SVGGlyphElementImpl.h" - -using namespace KSVG; - -SVGGlyphElement::SVGGlyphElement() : SVGElement(), SVGStylable() -{ - impl = 0; -} - -SVGGlyphElement::SVGGlyphElement(const SVGGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGGlyphElement &SVGGlyphElement::operator =(const SVGGlyphElement &other) -{ - SVGElement::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGGlyphElement::SVGGlyphElement(SVGGlyphElementImpl *other) : SVGElement(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGGlyphElement::~SVGGlyphElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGGlyphElement.cpp b/ksvg/dom/SVGGlyphElement.cpp new file mode 100644 index 00000000..7f6f4ae4 --- /dev/null +++ b/ksvg/dom/SVGGlyphElement.cpp @@ -0,0 +1,66 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGGlyphElement.h" +#include "SVGGlyphElementImpl.h" + +using namespace KSVG; + +SVGGlyphElement::SVGGlyphElement() : SVGElement(), SVGStylable() +{ + impl = 0; +} + +SVGGlyphElement::SVGGlyphElement(const SVGGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGGlyphElement &SVGGlyphElement::operator =(const SVGGlyphElement &other) +{ + SVGElement::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGGlyphElement::SVGGlyphElement(SVGGlyphElementImpl *other) : SVGElement(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGGlyphElement::~SVGGlyphElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGGlyphRefElement.cc b/ksvg/dom/SVGGlyphRefElement.cc deleted file mode 100644 index 5b1f8deb..00000000 --- a/ksvg/dom/SVGGlyphRefElement.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGGlyphRefElement.h" -#include "SVGGlyphRefElementImpl.h" - -using namespace KSVG; - -SVGGlyphRefElement::SVGGlyphRefElement() : SVGElement(), SVGURIReference(), SVGStylable() -{ - impl = 0; -} - -SVGGlyphRefElement::SVGGlyphRefElement(const SVGGlyphRefElement &other) : SVGElement(other), SVGURIReference(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGGlyphRefElement &SVGGlyphRefElement::operator =(const SVGGlyphRefElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGGlyphRefElement::SVGGlyphRefElement(SVGGlyphRefElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGGlyphRefElement::~SVGGlyphRefElement() -{ - if(impl) - impl->deref(); -} - -DOM::DOMString SVGGlyphRefElement::format() -{ - if(!impl) return DOM::DOMString(); - return impl->format(); -} - -DOM::DOMString SVGGlyphRefElement::glyphRef() -{ - if(!impl) return DOM::DOMString(); - return impl->glyphRef(); -} diff --git a/ksvg/dom/SVGGlyphRefElement.cpp b/ksvg/dom/SVGGlyphRefElement.cpp new file mode 100644 index 00000000..5b1f8deb --- /dev/null +++ b/ksvg/dom/SVGGlyphRefElement.cpp @@ -0,0 +1,79 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGGlyphRefElement.h" +#include "SVGGlyphRefElementImpl.h" + +using namespace KSVG; + +SVGGlyphRefElement::SVGGlyphRefElement() : SVGElement(), SVGURIReference(), SVGStylable() +{ + impl = 0; +} + +SVGGlyphRefElement::SVGGlyphRefElement(const SVGGlyphRefElement &other) : SVGElement(other), SVGURIReference(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGGlyphRefElement &SVGGlyphRefElement::operator =(const SVGGlyphRefElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGGlyphRefElement::SVGGlyphRefElement(SVGGlyphRefElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGGlyphRefElement::~SVGGlyphRefElement() +{ + if(impl) + impl->deref(); +} + +DOM::DOMString SVGGlyphRefElement::format() +{ + if(!impl) return DOM::DOMString(); + return impl->format(); +} + +DOM::DOMString SVGGlyphRefElement::glyphRef() +{ + if(!impl) return DOM::DOMString(); + return impl->glyphRef(); +} diff --git a/ksvg/dom/SVGGradientElement.cc b/ksvg/dom/SVGGradientElement.cc deleted file mode 100644 index 895b6d8e..00000000 --- a/ksvg/dom/SVGGradientElement.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGGradientElement.h" -#include "SVGGradientElementImpl.h" -#include "SVGAnimatedTransformList.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGGradientElement::SVGGradientElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() -{ - impl = 0; -} - -SVGGradientElement::SVGGradientElement(const SVGGradientElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(other), impl(0) -{ - (*this) = other; -} - -SVGGradientElement &SVGGradientElement::operator =(const SVGGradientElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGGradientElement::SVGGradientElement(SVGGradientElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() -{ - impl = other; -} - -SVGGradientElement::~SVGGradientElement() -{ -} - -SVGAnimatedEnumeration SVGGradientElement::gradientUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->gradientUnits()); -} - -SVGAnimatedTransformList SVGGradientElement::gradientTransform() const -{ - if(!impl) return SVGAnimatedTransformList(0); - return SVGAnimatedTransformList(impl->gradientTransform()); -} - -SVGAnimatedEnumeration SVGGradientElement::spreadMethod() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->spreadMethod()); -} diff --git a/ksvg/dom/SVGGradientElement.cpp b/ksvg/dom/SVGGradientElement.cpp new file mode 100644 index 00000000..895b6d8e --- /dev/null +++ b/ksvg/dom/SVGGradientElement.cpp @@ -0,0 +1,78 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGGradientElement.h" +#include "SVGGradientElementImpl.h" +#include "SVGAnimatedTransformList.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGGradientElement::SVGGradientElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() +{ + impl = 0; +} + +SVGGradientElement::SVGGradientElement(const SVGGradientElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(other), impl(0) +{ + (*this) = other; +} + +SVGGradientElement &SVGGradientElement::operator =(const SVGGradientElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGGradientElement::SVGGradientElement(SVGGradientElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() +{ + impl = other; +} + +SVGGradientElement::~SVGGradientElement() +{ +} + +SVGAnimatedEnumeration SVGGradientElement::gradientUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->gradientUnits()); +} + +SVGAnimatedTransformList SVGGradientElement::gradientTransform() const +{ + if(!impl) return SVGAnimatedTransformList(0); + return SVGAnimatedTransformList(impl->gradientTransform()); +} + +SVGAnimatedEnumeration SVGGradientElement::spreadMethod() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->spreadMethod()); +} diff --git a/ksvg/dom/SVGHKernElement.cc b/ksvg/dom/SVGHKernElement.cc deleted file mode 100644 index ca8d32bf..00000000 --- a/ksvg/dom/SVGHKernElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGHKernElement.h" -#include "SVGHKernElementImpl.h" - -using namespace KSVG; - -SVGHKernElement::SVGHKernElement() : SVGElement() -{ - impl = 0; -} - -SVGHKernElement::SVGHKernElement(const SVGHKernElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGHKernElement &SVGHKernElement::operator =(const SVGHKernElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGHKernElement::SVGHKernElement(SVGHKernElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGHKernElement::~SVGHKernElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGHKernElement.cpp b/ksvg/dom/SVGHKernElement.cpp new file mode 100644 index 00000000..ca8d32bf --- /dev/null +++ b/ksvg/dom/SVGHKernElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGHKernElement.h" +#include "SVGHKernElementImpl.h" + +using namespace KSVG; + +SVGHKernElement::SVGHKernElement() : SVGElement() +{ + impl = 0; +} + +SVGHKernElement::SVGHKernElement(const SVGHKernElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGHKernElement &SVGHKernElement::operator =(const SVGHKernElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGHKernElement::SVGHKernElement(SVGHKernElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGHKernElement::~SVGHKernElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGICCColor.cc b/ksvg/dom/SVGICCColor.cc deleted file mode 100644 index 3baef1c1..00000000 --- a/ksvg/dom/SVGICCColor.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGICCColor.h" -#include "SVGICCColorImpl.h" -#include "SVGNumberList.h" - -using namespace KSVG; - -SVGICCColor::SVGICCColor() -{ - impl = new SVGICCColorImpl(); - impl->ref(); -} - -SVGICCColor::SVGICCColor(const SVGICCColor &other) : impl(0) -{ - (*this) = other; -} - -SVGICCColor &SVGICCColor::operator =(const SVGICCColor &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGICCColor::SVGICCColor(SVGICCColorImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGICCColor::~SVGICCColor() -{ - if(impl) - impl->deref(); -} - -void SVGICCColor::setColorProfile(const DOM::DOMString &colorProfile) -{ - if(impl) - impl->setColorProfile(colorProfile); -} - -DOM::DOMString SVGICCColor::colorProfile() const -{ - if(!impl) return DOM::DOMString(); - return DOM::DOMString(impl->colorProfile()); -} - -SVGNumberList SVGICCColor::colors() const -{ - if(!impl) return SVGNumberList(0); - return SVGNumberList(impl->colors()); -} diff --git a/ksvg/dom/SVGICCColor.cpp b/ksvg/dom/SVGICCColor.cpp new file mode 100644 index 00000000..3baef1c1 --- /dev/null +++ b/ksvg/dom/SVGICCColor.cpp @@ -0,0 +1,83 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGICCColor.h" +#include "SVGICCColorImpl.h" +#include "SVGNumberList.h" + +using namespace KSVG; + +SVGICCColor::SVGICCColor() +{ + impl = new SVGICCColorImpl(); + impl->ref(); +} + +SVGICCColor::SVGICCColor(const SVGICCColor &other) : impl(0) +{ + (*this) = other; +} + +SVGICCColor &SVGICCColor::operator =(const SVGICCColor &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGICCColor::SVGICCColor(SVGICCColorImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGICCColor::~SVGICCColor() +{ + if(impl) + impl->deref(); +} + +void SVGICCColor::setColorProfile(const DOM::DOMString &colorProfile) +{ + if(impl) + impl->setColorProfile(colorProfile); +} + +DOM::DOMString SVGICCColor::colorProfile() const +{ + if(!impl) return DOM::DOMString(); + return DOM::DOMString(impl->colorProfile()); +} + +SVGNumberList SVGICCColor::colors() const +{ + if(!impl) return SVGNumberList(0); + return SVGNumberList(impl->colors()); +} diff --git a/ksvg/dom/SVGImageElement.cc b/ksvg/dom/SVGImageElement.cc deleted file mode 100644 index 2981abef..00000000 --- a/ksvg/dom/SVGImageElement.cc +++ /dev/null @@ -1,104 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGImageElement.h" -#include "SVGImageElementImpl.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedPreserveAspectRatio.h" - -using namespace KSVG; - -SVGImageElement::SVGImageElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() -{ - impl = 0; -} - -SVGImageElement::SVGImageElement(const SVGImageElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGImageElement &SVGImageElement::operator=(const SVGImageElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGImageElement::SVGImageElement(SVGImageElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGImageElement::~SVGImageElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGImageElement::x() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGImageElement::y() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGImageElement::width() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGImageElement::height() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} - -SVGAnimatedPreserveAspectRatio SVGImageElement::preserveAspectRatio() const -{ - if(!impl) return SVGAnimatedPreserveAspectRatio(0); - return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio()); -} diff --git a/ksvg/dom/SVGImageElement.cpp b/ksvg/dom/SVGImageElement.cpp new file mode 100644 index 00000000..2981abef --- /dev/null +++ b/ksvg/dom/SVGImageElement.cpp @@ -0,0 +1,104 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGImageElement.h" +#include "SVGImageElementImpl.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedPreserveAspectRatio.h" + +using namespace KSVG; + +SVGImageElement::SVGImageElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() +{ + impl = 0; +} + +SVGImageElement::SVGImageElement(const SVGImageElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGImageElement &SVGImageElement::operator=(const SVGImageElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGImageElement::SVGImageElement(SVGImageElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGImageElement::~SVGImageElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGImageElement::x() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGImageElement::y() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGImageElement::width() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGImageElement::height() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} + +SVGAnimatedPreserveAspectRatio SVGImageElement::preserveAspectRatio() const +{ + if(!impl) return SVGAnimatedPreserveAspectRatio(0); + return SVGAnimatedPreserveAspectRatio(impl->preserveAspectRatio()); +} diff --git a/ksvg/dom/SVGLangSpace.cc b/ksvg/dom/SVGLangSpace.cc deleted file mode 100644 index dc4e0cb3..00000000 --- a/ksvg/dom/SVGLangSpace.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGLangSpace.h" -#include "SVGLangSpaceImpl.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGLangSpace::SVGLangSpace() -{ - impl = 0; -} - -SVGLangSpace::SVGLangSpace(const SVGLangSpace &other) : impl(0) -{ - (*this) = other; -} - -SVGLangSpace &SVGLangSpace::operator=(const SVGLangSpace &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGLangSpace::SVGLangSpace(SVGLangSpaceImpl *other) -{ - impl = other; -} - -SVGLangSpace::~SVGLangSpace() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -void SVGLangSpace::setXmllang(const DOM::DOMString &xmllang) -{ - if(impl) - impl->setXmllang(xmllang); -} - -DOM::DOMString SVGLangSpace::xmllang() const -{ - if(!impl) return DOM::DOMString(); - return impl->xmllang(); -} - -void SVGLangSpace::setXmlspace(const DOM::DOMString &xmlspace) -{ - if(impl) - impl->setXmlspace(xmlspace); -} - -DOM::DOMString SVGLangSpace::xmlspace() const -{ - if(!impl) return DOM::DOMString(); - return impl->xmlspace(); -} diff --git a/ksvg/dom/SVGLangSpace.cpp b/ksvg/dom/SVGLangSpace.cpp new file mode 100644 index 00000000..dc4e0cb3 --- /dev/null +++ b/ksvg/dom/SVGLangSpace.cpp @@ -0,0 +1,80 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGLangSpace.h" +#include "SVGLangSpaceImpl.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGLangSpace::SVGLangSpace() +{ + impl = 0; +} + +SVGLangSpace::SVGLangSpace(const SVGLangSpace &other) : impl(0) +{ + (*this) = other; +} + +SVGLangSpace &SVGLangSpace::operator=(const SVGLangSpace &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGLangSpace::SVGLangSpace(SVGLangSpaceImpl *other) +{ + impl = other; +} + +SVGLangSpace::~SVGLangSpace() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +void SVGLangSpace::setXmllang(const DOM::DOMString &xmllang) +{ + if(impl) + impl->setXmllang(xmllang); +} + +DOM::DOMString SVGLangSpace::xmllang() const +{ + if(!impl) return DOM::DOMString(); + return impl->xmllang(); +} + +void SVGLangSpace::setXmlspace(const DOM::DOMString &xmlspace) +{ + if(impl) + impl->setXmlspace(xmlspace); +} + +DOM::DOMString SVGLangSpace::xmlspace() const +{ + if(!impl) return DOM::DOMString(); + return impl->xmlspace(); +} diff --git a/ksvg/dom/SVGLength.cc b/ksvg/dom/SVGLength.cc deleted file mode 100644 index 7d55252a..00000000 --- a/ksvg/dom/SVGLength.cc +++ /dev/null @@ -1,133 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGLength.h" -#include "SVGShapeImpl.h" -#include "SVGLengthImpl.h" - -using namespace KSVG; - -SVGLength::SVGLength() -{ - impl = new SVGLengthImpl(); - impl->ref(); -} - -SVGLength::SVGLength(const SVGLength &other) : impl(0) -{ - (*this) = other; -} - -SVGLength &SVGLength::operator =(const SVGLength &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGLength::SVGLength(SVGLengthImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGLength::~SVGLength() -{ - if(impl) - impl->deref(); -} - -unsigned short SVGLength::unitType() const -{ - if(!impl) return SVG_LENGTHTYPE_UNKNOWN; - return impl->unitType(); -} - -void SVGLength::setValue(float value) -{ - if(impl) - { - impl->setValue(value); - - // Automatic updating of the shape if any value is changed, imagine: - // SVGCircleElement c; [...] c.r().baseVal().setValue(150); - if(impl->context() && dynamic_cast(impl->context())) - dynamic_cast(impl->context())->update(UPDATE_TRANSFORM, 0, 0); - } -} - -float SVGLength::value() const -{ - if(!impl) return -1; - return impl->value(); -} - -void SVGLength::setValueInSpecifiedUnits(float valueInSpecifiedUnits) -{ - if(impl) - impl->setValueInSpecifiedUnits(valueInSpecifiedUnits); -} - -float SVGLength::valueInSpecifiedUnits() const -{ - if(!impl) return -1; - return impl->valueInSpecifiedUnits(); -} - -void SVGLength::setValueAsString(const DOM::DOMString &valueAsString) -{ - if(impl) - impl->setValueAsString(valueAsString); -} - -DOM::DOMString SVGLength::valueAsString() const -{ - if(!impl) return DOM::DOMString(); - return impl->valueAsString(); -} - -void SVGLength::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) -{ - if(impl) - impl->newValueSpecifiedUnits(unitType, valueInSpecifiedUnits); -} - -void SVGLength::convertToSpecifiedUnits(unsigned short unitType) -{ - if(impl) - impl->convertToSpecifiedUnits(unitType); -} - -SVGLength::operator float() -{ - if(!impl) return -1; - return impl->valueInSpecifiedUnits(); -} diff --git a/ksvg/dom/SVGLength.cpp b/ksvg/dom/SVGLength.cpp new file mode 100644 index 00000000..7d55252a --- /dev/null +++ b/ksvg/dom/SVGLength.cpp @@ -0,0 +1,133 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGLength.h" +#include "SVGShapeImpl.h" +#include "SVGLengthImpl.h" + +using namespace KSVG; + +SVGLength::SVGLength() +{ + impl = new SVGLengthImpl(); + impl->ref(); +} + +SVGLength::SVGLength(const SVGLength &other) : impl(0) +{ + (*this) = other; +} + +SVGLength &SVGLength::operator =(const SVGLength &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGLength::SVGLength(SVGLengthImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGLength::~SVGLength() +{ + if(impl) + impl->deref(); +} + +unsigned short SVGLength::unitType() const +{ + if(!impl) return SVG_LENGTHTYPE_UNKNOWN; + return impl->unitType(); +} + +void SVGLength::setValue(float value) +{ + if(impl) + { + impl->setValue(value); + + // Automatic updating of the shape if any value is changed, imagine: + // SVGCircleElement c; [...] c.r().baseVal().setValue(150); + if(impl->context() && dynamic_cast(impl->context())) + dynamic_cast(impl->context())->update(UPDATE_TRANSFORM, 0, 0); + } +} + +float SVGLength::value() const +{ + if(!impl) return -1; + return impl->value(); +} + +void SVGLength::setValueInSpecifiedUnits(float valueInSpecifiedUnits) +{ + if(impl) + impl->setValueInSpecifiedUnits(valueInSpecifiedUnits); +} + +float SVGLength::valueInSpecifiedUnits() const +{ + if(!impl) return -1; + return impl->valueInSpecifiedUnits(); +} + +void SVGLength::setValueAsString(const DOM::DOMString &valueAsString) +{ + if(impl) + impl->setValueAsString(valueAsString); +} + +DOM::DOMString SVGLength::valueAsString() const +{ + if(!impl) return DOM::DOMString(); + return impl->valueAsString(); +} + +void SVGLength::newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits) +{ + if(impl) + impl->newValueSpecifiedUnits(unitType, valueInSpecifiedUnits); +} + +void SVGLength::convertToSpecifiedUnits(unsigned short unitType) +{ + if(impl) + impl->convertToSpecifiedUnits(unitType); +} + +SVGLength::operator float() +{ + if(!impl) return -1; + return impl->valueInSpecifiedUnits(); +} diff --git a/ksvg/dom/SVGLengthList.cc b/ksvg/dom/SVGLengthList.cc deleted file mode 100644 index 30f59d70..00000000 --- a/ksvg/dom/SVGLengthList.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGLengthList.h" -#include "SVGLengthListImpl.h" -#include "SVGLength.h" - -using namespace KSVG; - -SVGLengthList::SVGLengthList() -{ - impl = new SVGLengthListImpl(); - impl->ref(); -} - -SVGLengthList::SVGLengthList(const SVGLengthList &other) : impl(0) -{ - (*this) = other; -} - -SVGLengthList &SVGLengthList::operator=(const SVGLengthList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGLengthList::SVGLengthList(SVGLengthListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGLengthList::~SVGLengthList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGLengthList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGLengthList::clear() -{ - if(impl) - impl->clear(); -} - -SVGLength *SVGLengthList::initialize(SVGLength *newItem) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->initialize(newItem->handle())); -} - -SVGLength *SVGLengthList::getItem(unsigned long index) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->getItem(index)); -} - -SVGLength *SVGLengthList::insertItemBefore(SVGLength *newItem, unsigned long index) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->insertItemBefore(newItem->handle(), index)); -} - -SVGLength *SVGLengthList::replaceItem(SVGLength *newItem, unsigned long index) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->replaceItem(newItem->handle(), index)); -} - -SVGLength *SVGLengthList::removeItem(unsigned long index) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->removeItem(index)); -} - -SVGLength *SVGLengthList::appendItem(SVGLength *newItem) -{ - if(!impl) return new SVGLength(0); - return new SVGLength(impl->appendItem(newItem->handle())); -} diff --git a/ksvg/dom/SVGLengthList.cpp b/ksvg/dom/SVGLengthList.cpp new file mode 100644 index 00000000..30f59d70 --- /dev/null +++ b/ksvg/dom/SVGLengthList.cpp @@ -0,0 +1,113 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGLengthList.h" +#include "SVGLengthListImpl.h" +#include "SVGLength.h" + +using namespace KSVG; + +SVGLengthList::SVGLengthList() +{ + impl = new SVGLengthListImpl(); + impl->ref(); +} + +SVGLengthList::SVGLengthList(const SVGLengthList &other) : impl(0) +{ + (*this) = other; +} + +SVGLengthList &SVGLengthList::operator=(const SVGLengthList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGLengthList::SVGLengthList(SVGLengthListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGLengthList::~SVGLengthList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGLengthList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGLengthList::clear() +{ + if(impl) + impl->clear(); +} + +SVGLength *SVGLengthList::initialize(SVGLength *newItem) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->initialize(newItem->handle())); +} + +SVGLength *SVGLengthList::getItem(unsigned long index) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->getItem(index)); +} + +SVGLength *SVGLengthList::insertItemBefore(SVGLength *newItem, unsigned long index) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->insertItemBefore(newItem->handle(), index)); +} + +SVGLength *SVGLengthList::replaceItem(SVGLength *newItem, unsigned long index) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->replaceItem(newItem->handle(), index)); +} + +SVGLength *SVGLengthList::removeItem(unsigned long index) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->removeItem(index)); +} + +SVGLength *SVGLengthList::appendItem(SVGLength *newItem) +{ + if(!impl) return new SVGLength(0); + return new SVGLength(impl->appendItem(newItem->handle())); +} diff --git a/ksvg/dom/SVGLineElement.cc b/ksvg/dom/SVGLineElement.cc deleted file mode 100644 index 918734ea..00000000 --- a/ksvg/dom/SVGLineElement.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGLineElement.h" -#include "SVGLineElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGLineElement::SVGLineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGLineElement::SVGLineElement(const SVGLineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGLineElement &SVGLineElement::operator=(const SVGLineElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGLineElement::SVGLineElement(SVGLineElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGLineElement::~SVGLineElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGLineElement::x1() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x1()); -} - -SVGAnimatedLength SVGLineElement::y1() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y1()); -} - -SVGAnimatedLength SVGLineElement::x2() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x2()); -} - -SVGAnimatedLength SVGLineElement::y2() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y2()); -} diff --git a/ksvg/dom/SVGLineElement.cpp b/ksvg/dom/SVGLineElement.cpp new file mode 100644 index 00000000..918734ea --- /dev/null +++ b/ksvg/dom/SVGLineElement.cpp @@ -0,0 +1,96 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGLineElement.h" +#include "SVGLineElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGLineElement::SVGLineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGLineElement::SVGLineElement(const SVGLineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGLineElement &SVGLineElement::operator=(const SVGLineElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGLineElement::SVGLineElement(SVGLineElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGLineElement::~SVGLineElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGLineElement::x1() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x1()); +} + +SVGAnimatedLength SVGLineElement::y1() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y1()); +} + +SVGAnimatedLength SVGLineElement::x2() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x2()); +} + +SVGAnimatedLength SVGLineElement::y2() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y2()); +} diff --git a/ksvg/dom/SVGLinearGradientElement.cc b/ksvg/dom/SVGLinearGradientElement.cc deleted file mode 100644 index 41c076dc..00000000 --- a/ksvg/dom/SVGLinearGradientElement.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGLinearGradientElement.h" -#include "SVGLinearGradientElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGLinearGradientElement::SVGLinearGradientElement() : SVGGradientElement() -{ - impl = 0; -} - -SVGLinearGradientElement::SVGLinearGradientElement(const SVGLinearGradientElement &other) : SVGGradientElement(other), impl(0) -{ - (*this) = other; -} - -SVGLinearGradientElement &SVGLinearGradientElement::operator =(const SVGLinearGradientElement &other) -{ - SVGGradientElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGLinearGradientElement::SVGLinearGradientElement(SVGLinearGradientElementImpl *other) : SVGGradientElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGLinearGradientElement::~SVGLinearGradientElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGLinearGradientElement::x1() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x1()); -} - -SVGAnimatedLength SVGLinearGradientElement::y1() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y1()); -} - -SVGAnimatedLength SVGLinearGradientElement::x2() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x2()); -} - -SVGAnimatedLength SVGLinearGradientElement::y2() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y2()); -} diff --git a/ksvg/dom/SVGLinearGradientElement.cpp b/ksvg/dom/SVGLinearGradientElement.cpp new file mode 100644 index 00000000..41c076dc --- /dev/null +++ b/ksvg/dom/SVGLinearGradientElement.cpp @@ -0,0 +1,90 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGLinearGradientElement.h" +#include "SVGLinearGradientElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGLinearGradientElement::SVGLinearGradientElement() : SVGGradientElement() +{ + impl = 0; +} + +SVGLinearGradientElement::SVGLinearGradientElement(const SVGLinearGradientElement &other) : SVGGradientElement(other), impl(0) +{ + (*this) = other; +} + +SVGLinearGradientElement &SVGLinearGradientElement::operator =(const SVGLinearGradientElement &other) +{ + SVGGradientElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGLinearGradientElement::SVGLinearGradientElement(SVGLinearGradientElementImpl *other) : SVGGradientElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGLinearGradientElement::~SVGLinearGradientElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGLinearGradientElement::x1() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x1()); +} + +SVGAnimatedLength SVGLinearGradientElement::y1() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y1()); +} + +SVGAnimatedLength SVGLinearGradientElement::x2() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x2()); +} + +SVGAnimatedLength SVGLinearGradientElement::y2() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y2()); +} diff --git a/ksvg/dom/SVGLocatable.cc b/ksvg/dom/SVGLocatable.cc deleted file mode 100644 index 43a9aac7..00000000 --- a/ksvg/dom/SVGLocatable.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGLocatable.h" -#include "SVGLocatableImpl.h" -#include "SVGElement.h" -#include "SVGRect.h" -#include "SVGMatrix.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGLocatable::SVGLocatable() -{ - impl = 0; -} - -SVGLocatable::SVGLocatable(const SVGLocatable &other) -{ - (*this) = other; -} - -SVGLocatable &SVGLocatable::operator=(const SVGLocatable &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGLocatable::SVGLocatable(SVGLocatableImpl *other) -{ - impl = other; -} - -SVGLocatable::~SVGLocatable() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -SVGElement SVGLocatable::nearestViewportElement() const -{ - if(!impl) return SVGElement(0); - return impl->nearestViewportElement(); -} - -SVGElement SVGLocatable::farthestViewportElement() const -{ - if(!impl) return SVGElement(0); - return impl->farthestViewportElement(); -} - -SVGRect SVGLocatable::getBBox() -{ - if(!impl) return SVGRect(0); - return SVGRect(impl->getBBox()); // TODO: Check correctness -} - -SVGMatrix SVGLocatable::getCTM() -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->getCTM()); -} - -SVGMatrix SVGLocatable::getScreenCTM() -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->getScreenCTM()); -} - -SVGMatrix SVGLocatable::getTransformToElement(const SVGElement &element) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->getTransformToElement(element.handle())); -} diff --git a/ksvg/dom/SVGLocatable.cpp b/ksvg/dom/SVGLocatable.cpp new file mode 100644 index 00000000..43a9aac7 --- /dev/null +++ b/ksvg/dom/SVGLocatable.cpp @@ -0,0 +1,95 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGLocatable.h" +#include "SVGLocatableImpl.h" +#include "SVGElement.h" +#include "SVGRect.h" +#include "SVGMatrix.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGLocatable::SVGLocatable() +{ + impl = 0; +} + +SVGLocatable::SVGLocatable(const SVGLocatable &other) +{ + (*this) = other; +} + +SVGLocatable &SVGLocatable::operator=(const SVGLocatable &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGLocatable::SVGLocatable(SVGLocatableImpl *other) +{ + impl = other; +} + +SVGLocatable::~SVGLocatable() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +SVGElement SVGLocatable::nearestViewportElement() const +{ + if(!impl) return SVGElement(0); + return impl->nearestViewportElement(); +} + +SVGElement SVGLocatable::farthestViewportElement() const +{ + if(!impl) return SVGElement(0); + return impl->farthestViewportElement(); +} + +SVGRect SVGLocatable::getBBox() +{ + if(!impl) return SVGRect(0); + return SVGRect(impl->getBBox()); // TODO: Check correctness +} + +SVGMatrix SVGLocatable::getCTM() +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->getCTM()); +} + +SVGMatrix SVGLocatable::getScreenCTM() +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->getScreenCTM()); +} + +SVGMatrix SVGLocatable::getTransformToElement(const SVGElement &element) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->getTransformToElement(element.handle())); +} diff --git a/ksvg/dom/SVGMPathElement.cc b/ksvg/dom/SVGMPathElement.cc deleted file mode 100644 index cb725260..00000000 --- a/ksvg/dom/SVGMPathElement.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMPathElement.h" -#include "SVGMPathElementImpl.h" - -using namespace KSVG; - -SVGMPathElement::SVGMPathElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired() -{ - impl = 0; -} - -SVGMPathElement::SVGMPathElement(const SVGMPathElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0) -{ - (*this) = other; -} - -SVGMPathElement &SVGMPathElement::operator =(const SVGMPathElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGExternalResourcesRequired::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMPathElement::SVGMPathElement(SVGMPathElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMPathElement::~SVGMPathElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGMPathElement.cpp b/ksvg/dom/SVGMPathElement.cpp new file mode 100644 index 00000000..cb725260 --- /dev/null +++ b/ksvg/dom/SVGMPathElement.cpp @@ -0,0 +1,67 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMPathElement.h" +#include "SVGMPathElementImpl.h" + +using namespace KSVG; + +SVGMPathElement::SVGMPathElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired() +{ + impl = 0; +} + +SVGMPathElement::SVGMPathElement(const SVGMPathElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0) +{ + (*this) = other; +} + +SVGMPathElement &SVGMPathElement::operator =(const SVGMPathElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGExternalResourcesRequired::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMPathElement::SVGMPathElement(SVGMPathElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMPathElement::~SVGMPathElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGMarkerElement.cc b/ksvg/dom/SVGMarkerElement.cc deleted file mode 100644 index de59227d..00000000 --- a/ksvg/dom/SVGMarkerElement.cc +++ /dev/null @@ -1,127 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMarkerElement.h" -#include "SVGMarkerElementImpl.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedAngle.h" -#include "SVGAngle.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGMarkerElement::SVGMarkerElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox() -{ - impl = 0; -} - -SVGMarkerElement::SVGMarkerElement(const SVGMarkerElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0) -{ - (*this) = other; -} - -SVGMarkerElement &SVGMarkerElement::operator =(const SVGMarkerElement &other) -{ - SVGElement::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGFitToViewBox::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMarkerElement::SVGMarkerElement(SVGMarkerElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMarkerElement::~SVGMarkerElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGMarkerElement::refX() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->refX()); -} - -SVGAnimatedLength SVGMarkerElement::refY() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->refY()); -} - -SVGAnimatedEnumeration SVGMarkerElement::markerUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->markerUnits()); -} - -SVGAnimatedLength SVGMarkerElement::markerWidth() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->markerWidth()); -} - -SVGAnimatedLength SVGMarkerElement::markerHeight() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->markerHeight()); -} - -SVGAnimatedEnumeration SVGMarkerElement::orientType() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->orientType()); -} - -SVGAnimatedAngle SVGMarkerElement::orientAngle() const -{ - if(!impl) return SVGAnimatedAngle(0); - return SVGAnimatedAngle(impl->orientAngle()); -} - -void SVGMarkerElement::setOrientToAuto() -{ - if(impl) - impl->setOrientToAuto(); -} - -void SVGMarkerElement::setOrientToAngle(const SVGAngle &angle) -{ - if(impl) - impl->setOrientToAngle(angle.handle()); -} diff --git a/ksvg/dom/SVGMarkerElement.cpp b/ksvg/dom/SVGMarkerElement.cpp new file mode 100644 index 00000000..de59227d --- /dev/null +++ b/ksvg/dom/SVGMarkerElement.cpp @@ -0,0 +1,127 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMarkerElement.h" +#include "SVGMarkerElementImpl.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedAngle.h" +#include "SVGAngle.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGMarkerElement::SVGMarkerElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox() +{ + impl = 0; +} + +SVGMarkerElement::SVGMarkerElement(const SVGMarkerElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0) +{ + (*this) = other; +} + +SVGMarkerElement &SVGMarkerElement::operator =(const SVGMarkerElement &other) +{ + SVGElement::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGFitToViewBox::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMarkerElement::SVGMarkerElement(SVGMarkerElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMarkerElement::~SVGMarkerElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGMarkerElement::refX() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->refX()); +} + +SVGAnimatedLength SVGMarkerElement::refY() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->refY()); +} + +SVGAnimatedEnumeration SVGMarkerElement::markerUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->markerUnits()); +} + +SVGAnimatedLength SVGMarkerElement::markerWidth() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->markerWidth()); +} + +SVGAnimatedLength SVGMarkerElement::markerHeight() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->markerHeight()); +} + +SVGAnimatedEnumeration SVGMarkerElement::orientType() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->orientType()); +} + +SVGAnimatedAngle SVGMarkerElement::orientAngle() const +{ + if(!impl) return SVGAnimatedAngle(0); + return SVGAnimatedAngle(impl->orientAngle()); +} + +void SVGMarkerElement::setOrientToAuto() +{ + if(impl) + impl->setOrientToAuto(); +} + +void SVGMarkerElement::setOrientToAngle(const SVGAngle &angle) +{ + if(impl) + impl->setOrientToAngle(angle.handle()); +} diff --git a/ksvg/dom/SVGMaskElement.cc b/ksvg/dom/SVGMaskElement.cc deleted file mode 100644 index 7e1f9cee..00000000 --- a/ksvg/dom/SVGMaskElement.cc +++ /dev/null @@ -1,107 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMaskElement.h" -#include "SVGMaskElementImpl.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGMaskElement::SVGMaskElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() -{ - impl = 0; -} - -SVGMaskElement::SVGMaskElement(const SVGMaskElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0) -{ - (*this) = other; -} - -SVGMaskElement &SVGMaskElement::operator =(const SVGMaskElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMaskElement::SVGMaskElement(SVGMaskElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMaskElement::~SVGMaskElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedEnumeration SVGMaskElement::maskUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->maskUnits()); -} - -SVGAnimatedEnumeration SVGMaskElement::maskContentUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->maskContentUnits()); -} - -SVGAnimatedLength SVGMaskElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGMaskElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGMaskElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGMaskElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} diff --git a/ksvg/dom/SVGMaskElement.cpp b/ksvg/dom/SVGMaskElement.cpp new file mode 100644 index 00000000..7e1f9cee --- /dev/null +++ b/ksvg/dom/SVGMaskElement.cpp @@ -0,0 +1,107 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMaskElement.h" +#include "SVGMaskElementImpl.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGMaskElement::SVGMaskElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGUnitTypes() +{ + impl = 0; +} + +SVGMaskElement::SVGMaskElement(const SVGMaskElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes(), impl(0) +{ + (*this) = other; +} + +SVGMaskElement &SVGMaskElement::operator =(const SVGMaskElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMaskElement::SVGMaskElement(SVGMaskElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGUnitTypes() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMaskElement::~SVGMaskElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedEnumeration SVGMaskElement::maskUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->maskUnits()); +} + +SVGAnimatedEnumeration SVGMaskElement::maskContentUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->maskContentUnits()); +} + +SVGAnimatedLength SVGMaskElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGMaskElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGMaskElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGMaskElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} diff --git a/ksvg/dom/SVGMatrix.cc b/ksvg/dom/SVGMatrix.cc deleted file mode 100644 index e5e8c6db..00000000 --- a/ksvg/dom/SVGMatrix.cc +++ /dev/null @@ -1,208 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMatrixImpl.h" -#include "SVGMatrix.h" - -using namespace KSVG; - -SVGMatrix::SVGMatrix() -{ - impl = new SVGMatrixImpl(); - impl->ref(); -} - -SVGMatrix::SVGMatrix(double a, double b, double c, double d, double e, double f) -{ - impl = new SVGMatrixImpl(a, b, c, d, e, f); - impl->ref(); -} - -SVGMatrix::SVGMatrix(const SVGMatrix &other) : impl(0) -{ - (*this) = other; -} - -SVGMatrix &SVGMatrix::operator=(const SVGMatrix &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMatrix::SVGMatrix(SVGMatrixImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMatrix::~SVGMatrix() -{ - if(impl) - impl->deref(); -} - -void SVGMatrix::setA(const double &a) -{ - if(impl) - impl->setA(a); -} - -double SVGMatrix::a() const -{ - if(!impl) return -1; - return impl->a(); -} - -void SVGMatrix::setB(const double &b) -{ - if(impl) - impl->setB(b); -} - -double SVGMatrix::b() const -{ - if(!impl) return -1; - return impl->b(); -} - -void SVGMatrix::setC(const double &c) -{ - if(impl) - impl->setC(c); -} - -double SVGMatrix::c() const -{ - if(!impl) return -1; - return impl->c(); -} - -void SVGMatrix::setD(const double &d) -{ - if(impl) - impl->setD(d); -} - -double SVGMatrix::d() const -{ - if(!impl) return -1; - return impl->d(); -} - -void SVGMatrix::setE(const double &e) -{ - if(impl) - impl->setE(e); -} - -double SVGMatrix::e() const -{ - if(!impl) return -1; - return impl->e(); -} - -void SVGMatrix::setF(const double &f) -{ - if(impl) - impl->setF(f); -} - -double SVGMatrix::f() const -{ - if(!impl) return -1; - return impl->f(); -} - -SVGMatrix SVGMatrix::multiply(SVGMatrix &secondMatrix) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->multiply(secondMatrix.handle())); -} - -SVGMatrix SVGMatrix::inverse() -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->inverse()); -} - -SVGMatrix SVGMatrix::translate(const double &x, const double &y) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->translate(x, y)); -} - -SVGMatrix SVGMatrix::scale(const double &scaleFactor) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->scale(scaleFactor)); -} - -SVGMatrix SVGMatrix::scaleNonUniform(const double &scaleFactorX, const double &scaleFactorY) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->scaleNonUniform(scaleFactorX, scaleFactorY)); -} - -SVGMatrix SVGMatrix::rotate(const double &angle) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->rotate(angle)); -} - -SVGMatrix SVGMatrix::rotateFromVector(const double &x, const double &y) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->rotateFromVector(x, y)); -} - -SVGMatrix SVGMatrix::flipX() -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->flipX()); -} - -SVGMatrix SVGMatrix::flipY() -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->flipY()); -} - -SVGMatrix SVGMatrix::skewX(const double &angle) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->skewX(angle)); -} - -SVGMatrix SVGMatrix::skewY(const double &angle) -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->skewY(angle)); -} diff --git a/ksvg/dom/SVGMatrix.cpp b/ksvg/dom/SVGMatrix.cpp new file mode 100644 index 00000000..e5e8c6db --- /dev/null +++ b/ksvg/dom/SVGMatrix.cpp @@ -0,0 +1,208 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMatrixImpl.h" +#include "SVGMatrix.h" + +using namespace KSVG; + +SVGMatrix::SVGMatrix() +{ + impl = new SVGMatrixImpl(); + impl->ref(); +} + +SVGMatrix::SVGMatrix(double a, double b, double c, double d, double e, double f) +{ + impl = new SVGMatrixImpl(a, b, c, d, e, f); + impl->ref(); +} + +SVGMatrix::SVGMatrix(const SVGMatrix &other) : impl(0) +{ + (*this) = other; +} + +SVGMatrix &SVGMatrix::operator=(const SVGMatrix &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMatrix::SVGMatrix(SVGMatrixImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMatrix::~SVGMatrix() +{ + if(impl) + impl->deref(); +} + +void SVGMatrix::setA(const double &a) +{ + if(impl) + impl->setA(a); +} + +double SVGMatrix::a() const +{ + if(!impl) return -1; + return impl->a(); +} + +void SVGMatrix::setB(const double &b) +{ + if(impl) + impl->setB(b); +} + +double SVGMatrix::b() const +{ + if(!impl) return -1; + return impl->b(); +} + +void SVGMatrix::setC(const double &c) +{ + if(impl) + impl->setC(c); +} + +double SVGMatrix::c() const +{ + if(!impl) return -1; + return impl->c(); +} + +void SVGMatrix::setD(const double &d) +{ + if(impl) + impl->setD(d); +} + +double SVGMatrix::d() const +{ + if(!impl) return -1; + return impl->d(); +} + +void SVGMatrix::setE(const double &e) +{ + if(impl) + impl->setE(e); +} + +double SVGMatrix::e() const +{ + if(!impl) return -1; + return impl->e(); +} + +void SVGMatrix::setF(const double &f) +{ + if(impl) + impl->setF(f); +} + +double SVGMatrix::f() const +{ + if(!impl) return -1; + return impl->f(); +} + +SVGMatrix SVGMatrix::multiply(SVGMatrix &secondMatrix) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->multiply(secondMatrix.handle())); +} + +SVGMatrix SVGMatrix::inverse() +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->inverse()); +} + +SVGMatrix SVGMatrix::translate(const double &x, const double &y) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->translate(x, y)); +} + +SVGMatrix SVGMatrix::scale(const double &scaleFactor) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->scale(scaleFactor)); +} + +SVGMatrix SVGMatrix::scaleNonUniform(const double &scaleFactorX, const double &scaleFactorY) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->scaleNonUniform(scaleFactorX, scaleFactorY)); +} + +SVGMatrix SVGMatrix::rotate(const double &angle) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->rotate(angle)); +} + +SVGMatrix SVGMatrix::rotateFromVector(const double &x, const double &y) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->rotateFromVector(x, y)); +} + +SVGMatrix SVGMatrix::flipX() +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->flipX()); +} + +SVGMatrix SVGMatrix::flipY() +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->flipY()); +} + +SVGMatrix SVGMatrix::skewX(const double &angle) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->skewX(angle)); +} + +SVGMatrix SVGMatrix::skewY(const double &angle) +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->skewY(angle)); +} diff --git a/ksvg/dom/SVGMetadataElement.cc b/ksvg/dom/SVGMetadataElement.cc deleted file mode 100644 index 11a4820c..00000000 --- a/ksvg/dom/SVGMetadataElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMetadataElement.h" -#include "SVGMetadataElementImpl.h" - -using namespace KSVG; - -SVGMetadataElement::SVGMetadataElement() : SVGElement() -{ - impl = 0; -} - -SVGMetadataElement::SVGMetadataElement(const SVGMetadataElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGMetadataElement &SVGMetadataElement::operator =(const SVGMetadataElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMetadataElement::SVGMetadataElement(SVGMetadataElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMetadataElement::~SVGMetadataElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGMetadataElement.cpp b/ksvg/dom/SVGMetadataElement.cpp new file mode 100644 index 00000000..11a4820c --- /dev/null +++ b/ksvg/dom/SVGMetadataElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMetadataElement.h" +#include "SVGMetadataElementImpl.h" + +using namespace KSVG; + +SVGMetadataElement::SVGMetadataElement() : SVGElement() +{ + impl = 0; +} + +SVGMetadataElement::SVGMetadataElement(const SVGMetadataElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGMetadataElement &SVGMetadataElement::operator =(const SVGMetadataElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMetadataElement::SVGMetadataElement(SVGMetadataElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMetadataElement::~SVGMetadataElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGMissingGlyphElement.cc b/ksvg/dom/SVGMissingGlyphElement.cc deleted file mode 100644 index e4d5bd79..00000000 --- a/ksvg/dom/SVGMissingGlyphElement.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGMissingGlyphElement.h" -#include "SVGMissingGlyphElementImpl.h" - -using namespace KSVG; - -SVGMissingGlyphElement::SVGMissingGlyphElement() : SVGElement(), SVGStylable() -{ - impl = 0; -} - -SVGMissingGlyphElement::SVGMissingGlyphElement(const SVGMissingGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGMissingGlyphElement &SVGMissingGlyphElement::operator =(const SVGMissingGlyphElement &other) -{ - SVGElement::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGMissingGlyphElement::SVGMissingGlyphElement(SVGMissingGlyphElementImpl *other) : SVGElement(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGMissingGlyphElement::~SVGMissingGlyphElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGMissingGlyphElement.cpp b/ksvg/dom/SVGMissingGlyphElement.cpp new file mode 100644 index 00000000..e4d5bd79 --- /dev/null +++ b/ksvg/dom/SVGMissingGlyphElement.cpp @@ -0,0 +1,66 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGMissingGlyphElement.h" +#include "SVGMissingGlyphElementImpl.h" + +using namespace KSVG; + +SVGMissingGlyphElement::SVGMissingGlyphElement() : SVGElement(), SVGStylable() +{ + impl = 0; +} + +SVGMissingGlyphElement::SVGMissingGlyphElement(const SVGMissingGlyphElement &other) : SVGElement(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGMissingGlyphElement &SVGMissingGlyphElement::operator =(const SVGMissingGlyphElement &other) +{ + SVGElement::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGMissingGlyphElement::SVGMissingGlyphElement(SVGMissingGlyphElementImpl *other) : SVGElement(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGMissingGlyphElement::~SVGMissingGlyphElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGNumber.cc b/ksvg/dom/SVGNumber.cc deleted file mode 100644 index 9230acb2..00000000 --- a/ksvg/dom/SVGNumber.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGNumber.h" -#include "SVGNumberImpl.h" - -using namespace KSVG; - -SVGNumber::SVGNumber() -{ - impl = new SVGNumberImpl(); - impl->ref(); -} - -SVGNumber::SVGNumber(const SVGNumber &other) : impl(0) -{ - (*this) = other; -} - -SVGNumber &SVGNumber::operator=(const SVGNumber &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGNumber::SVGNumber(SVGNumberImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGNumber::~SVGNumber() -{ - if(impl) - impl->deref(); -} - -void SVGNumber::setValue(float value) -{ - if(impl) - impl->setValue(value); -} - -float SVGNumber::value() const -{ - if(!impl) return -1; - return impl->value(); -} diff --git a/ksvg/dom/SVGNumber.cpp b/ksvg/dom/SVGNumber.cpp new file mode 100644 index 00000000..9230acb2 --- /dev/null +++ b/ksvg/dom/SVGNumber.cpp @@ -0,0 +1,76 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGNumber.h" +#include "SVGNumberImpl.h" + +using namespace KSVG; + +SVGNumber::SVGNumber() +{ + impl = new SVGNumberImpl(); + impl->ref(); +} + +SVGNumber::SVGNumber(const SVGNumber &other) : impl(0) +{ + (*this) = other; +} + +SVGNumber &SVGNumber::operator=(const SVGNumber &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGNumber::SVGNumber(SVGNumberImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGNumber::~SVGNumber() +{ + if(impl) + impl->deref(); +} + +void SVGNumber::setValue(float value) +{ + if(impl) + impl->setValue(value); +} + +float SVGNumber::value() const +{ + if(!impl) return -1; + return impl->value(); +} diff --git a/ksvg/dom/SVGNumberList.cc b/ksvg/dom/SVGNumberList.cc deleted file mode 100644 index f0587a6e..00000000 --- a/ksvg/dom/SVGNumberList.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGNumberList.h" -#include "SVGNumberListImpl.h" -#include "SVGNumber.h" - -using namespace KSVG; - -SVGNumberList::SVGNumberList() -{ - impl = new SVGNumberListImpl(); - impl->ref(); -} - -SVGNumberList::SVGNumberList(const SVGNumberList &other) : impl(0) -{ - (*this) = other; -} - -SVGNumberList &SVGNumberList::operator=(const SVGNumberList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGNumberList::SVGNumberList(SVGNumberListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGNumberList::~SVGNumberList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGNumberList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGNumberList::clear() -{ - if(impl) - impl->clear(); -} - -SVGNumber *SVGNumberList::initialize(SVGNumber *newItem) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->initialize(newItem->handle())); -} - -SVGNumber *SVGNumberList::getItem(unsigned long index) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->getItem(index)); -} - -SVGNumber *SVGNumberList::insertItemBefore(SVGNumber *newItem, unsigned long index) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->insertItemBefore(newItem->handle(), index)); -} - -SVGNumber *SVGNumberList::replaceItem(SVGNumber *newItem, unsigned long index) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->replaceItem(newItem->handle(), index)); -} - -SVGNumber *SVGNumberList::removeItem(unsigned long index) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->removeItem(index)); -} - -SVGNumber *SVGNumberList::appendItem(SVGNumber *newItem) -{ - if(!impl) return new SVGNumber(0); - return new SVGNumber(impl->appendItem(newItem->handle())); -} diff --git a/ksvg/dom/SVGNumberList.cpp b/ksvg/dom/SVGNumberList.cpp new file mode 100644 index 00000000..f0587a6e --- /dev/null +++ b/ksvg/dom/SVGNumberList.cpp @@ -0,0 +1,113 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGNumberList.h" +#include "SVGNumberListImpl.h" +#include "SVGNumber.h" + +using namespace KSVG; + +SVGNumberList::SVGNumberList() +{ + impl = new SVGNumberListImpl(); + impl->ref(); +} + +SVGNumberList::SVGNumberList(const SVGNumberList &other) : impl(0) +{ + (*this) = other; +} + +SVGNumberList &SVGNumberList::operator=(const SVGNumberList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGNumberList::SVGNumberList(SVGNumberListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGNumberList::~SVGNumberList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGNumberList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGNumberList::clear() +{ + if(impl) + impl->clear(); +} + +SVGNumber *SVGNumberList::initialize(SVGNumber *newItem) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->initialize(newItem->handle())); +} + +SVGNumber *SVGNumberList::getItem(unsigned long index) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->getItem(index)); +} + +SVGNumber *SVGNumberList::insertItemBefore(SVGNumber *newItem, unsigned long index) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->insertItemBefore(newItem->handle(), index)); +} + +SVGNumber *SVGNumberList::replaceItem(SVGNumber *newItem, unsigned long index) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->replaceItem(newItem->handle(), index)); +} + +SVGNumber *SVGNumberList::removeItem(unsigned long index) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->removeItem(index)); +} + +SVGNumber *SVGNumberList::appendItem(SVGNumber *newItem) +{ + if(!impl) return new SVGNumber(0); + return new SVGNumber(impl->appendItem(newItem->handle())); +} diff --git a/ksvg/dom/SVGPaint.cc b/ksvg/dom/SVGPaint.cc deleted file mode 100644 index f8df586b..00000000 --- a/ksvg/dom/SVGPaint.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPaint.h" -#include "SVGPaintImpl.h" - -using namespace KSVG; - -SVGPaint::SVGPaint() : SVGColor() -{ - // FIXME: no icc color support... - impl = new SVGPaintImpl(0); - impl->ref(); -} - -SVGPaint::SVGPaint(const SVGPaint &other) : SVGColor(other), impl(0) -{ - (*this) = other; -} - -SVGPaint &SVGPaint::operator =(const SVGPaint &other) -{ - SVGColor::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPaint::SVGPaint(SVGPaintImpl *other) : SVGColor(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPaint::~SVGPaint() -{ - if(impl) - impl->deref(); -} - -unsigned short SVGPaint::paintType() const -{ - if(!impl) return SVG_PAINTTYPE_UNKNOWN; - return impl->paintType(); -} - -DOM::DOMString SVGPaint::uri() const -{ - if(!impl) return DOM::DOMString(); - return impl->uri(); -} - -void SVGPaint::setUri(const DOM::DOMString &uri) -{ - if(impl) - impl->setUri(uri); -} - -void SVGPaint::setPaint(unsigned short paintType, const DOM::DOMString &uri, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) -{ - if(impl) - impl->setPaint(paintType, uri, rgbColor, iccColor); -} diff --git a/ksvg/dom/SVGPaint.cpp b/ksvg/dom/SVGPaint.cpp new file mode 100644 index 00000000..f8df586b --- /dev/null +++ b/ksvg/dom/SVGPaint.cpp @@ -0,0 +1,91 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPaint.h" +#include "SVGPaintImpl.h" + +using namespace KSVG; + +SVGPaint::SVGPaint() : SVGColor() +{ + // FIXME: no icc color support... + impl = new SVGPaintImpl(0); + impl->ref(); +} + +SVGPaint::SVGPaint(const SVGPaint &other) : SVGColor(other), impl(0) +{ + (*this) = other; +} + +SVGPaint &SVGPaint::operator =(const SVGPaint &other) +{ + SVGColor::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPaint::SVGPaint(SVGPaintImpl *other) : SVGColor(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPaint::~SVGPaint() +{ + if(impl) + impl->deref(); +} + +unsigned short SVGPaint::paintType() const +{ + if(!impl) return SVG_PAINTTYPE_UNKNOWN; + return impl->paintType(); +} + +DOM::DOMString SVGPaint::uri() const +{ + if(!impl) return DOM::DOMString(); + return impl->uri(); +} + +void SVGPaint::setUri(const DOM::DOMString &uri) +{ + if(impl) + impl->setUri(uri); +} + +void SVGPaint::setPaint(unsigned short paintType, const DOM::DOMString &uri, const DOM::DOMString &rgbColor, const DOM::DOMString &iccColor) +{ + if(impl) + impl->setPaint(paintType, uri, rgbColor, iccColor); +} diff --git a/ksvg/dom/SVGPathElement.cc b/ksvg/dom/SVGPathElement.cc deleted file mode 100644 index d3610f47..00000000 --- a/ksvg/dom/SVGPathElement.cc +++ /dev/null @@ -1,198 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathElement.h" -#include "SVGPathElementImpl.h" -#include "SVGPoint.h" -#include "SVGPathSegClosePath.h" -#include "SVGPathSegLineto.h" -#include "SVGPathSegLinetoHorizontal.h" -#include "SVGPathSegLinetoVertical.h" -#include "SVGPathSegMoveto.h" -#include "SVGPathSegArc.h" -#include "SVGPathSegCurvetoCubic.h" -#include "SVGPathSegCurvetoCubicSmooth.h" -#include "SVGPathSegCurvetoQuadratic.h" -#include "SVGPathSegCurvetoQuadraticSmooth.h" - -using namespace KSVG; - -SVGPathElement::SVGPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPathData() -{ - impl = 0; -} - -SVGPathElement::SVGPathElement(const SVGPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other), impl(0) -{ - (*this) = other; -} - -SVGPathElement &SVGPathElement::operator=(const SVGPathElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPathElement::SVGPathElement(SVGPathElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPathElement::~SVGPathElement() -{ - if(impl) - impl->deref(); -} - -/* -SVGAnimatedNumber SVGPathElement::pathLength() const -{ - return m_pathLength; -} -*/ - -float SVGPathElement::getTotalLength() -{ - return impl->getTotalLength(); -} - -SVGPoint SVGPathElement::getPointAtLength(float distance) -{ - return SVGPoint(impl->getPointAtLength(distance)); -} - -unsigned long SVGPathElement::getPathSegAtLength(float distance) -{ - return impl->getPathSegAtLength(distance); -} - -SVGPathSegClosePath SVGPathElement::createSVGPathSegClosePath() -{ - return impl->createSVGPathSegClosePath(); -} - -SVGPathSegMovetoAbs SVGPathElement::createSVGPathSegMovetoAbs(float x,float y) -{ - return impl->createSVGPathSegMovetoAbs(x, y);; -} - -SVGPathSegMovetoRel SVGPathElement::createSVGPathSegMovetoRel(float x,float y) -{ - return impl->createSVGPathSegMovetoRel(x, y); -} - -SVGPathSegLinetoAbs SVGPathElement::createSVGPathSegLinetoAbs(float x,float y) -{ - return impl->createSVGPathSegLinetoAbs(x, y); -} - -SVGPathSegLinetoRel SVGPathElement::createSVGPathSegLinetoRel(float x,float y) -{ - return impl->createSVGPathSegLinetoRel(x, y); -} - -SVGPathSegCurvetoCubicAbs SVGPathElement::createSVGPathSegCurvetoCubicAbs(float x,float y,float x1,float y1,float x2,float y2) -{ - return impl->createSVGPathSegCurvetoCubicAbs(x, y, x1, y1, x2, y2); -} - -SVGPathSegCurvetoCubicRel SVGPathElement::createSVGPathSegCurvetoCubicRel(float x,float y,float x1,float y1,float x2,float y2) -{ - return impl->createSVGPathSegCurvetoCubicRel(x, y, x1, y1, x2, y2); -} - -SVGPathSegCurvetoQuadraticAbs SVGPathElement::createSVGPathSegCurvetoQuadraticAbs(float x,float y,float x1,float y1) -{ - return impl->createSVGPathSegCurvetoQuadraticAbs(x, y, x1, y1); -} - -SVGPathSegCurvetoQuadraticRel SVGPathElement::createSVGPathSegCurvetoQuadraticRel(float x,float y,float x1,float y1) -{ - return impl->createSVGPathSegCurvetoQuadraticRel(x, y, x1, y1); -} - -SVGPathSegArcAbs SVGPathElement::createSVGPathSegArcAbs(float x,float y,float r1,float r2,float angle,bool largeArcFlag,bool sweepFlag) -{ - return impl->createSVGPathSegArcAbs(x, y, r1, r2, angle, largeArcFlag, sweepFlag); -} - -SVGPathSegArcRel SVGPathElement::createSVGPathSegArcRel(float x,float y,float r1,float r2,float angle,bool largeArcFlag,bool sweepFlag) -{ - return impl->createSVGPathSegArcRel(x, y, r1, r2, angle, largeArcFlag, sweepFlag); -} - -SVGPathSegLinetoHorizontalAbs SVGPathElement::createSVGPathSegLinetoHorizontalAbs(float x) -{ - return impl->createSVGPathSegLinetoHorizontalAbs(x); -} - -SVGPathSegLinetoHorizontalRel SVGPathElement::createSVGPathSegLinetoHorizontalRel(float x) -{ - return impl->createSVGPathSegLinetoHorizontalRel(x); -} - -SVGPathSegLinetoVerticalAbs SVGPathElement::createSVGPathSegLinetoVerticalAbs(float y) -{ - return impl->createSVGPathSegLinetoVerticalAbs(y); -} - -SVGPathSegLinetoVerticalRel SVGPathElement::createSVGPathSegLinetoVerticalRel(float y) -{ - return impl->createSVGPathSegLinetoVerticalRel(y); -} - -SVGPathSegCurvetoCubicSmoothAbs SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs(float x,float y,float x2,float y2) -{ - return impl->createSVGPathSegCurvetoCubicSmoothAbs(x, y, x2, y2);; -} - -SVGPathSegCurvetoCubicSmoothRel SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel(float x,float y,float x2,float y2) -{ - return impl->createSVGPathSegCurvetoCubicSmoothRel(x, y, x2, y2); -} - -SVGPathSegCurvetoQuadraticSmoothAbs SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs(float x,float y) -{ - return impl->createSVGPathSegCurvetoQuadraticSmoothAbs(x, y); -} - -SVGPathSegCurvetoQuadraticSmoothRel SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel(float x,float y) -{ - return impl->createSVGPathSegCurvetoQuadraticSmoothRel(x, y); -} diff --git a/ksvg/dom/SVGPathElement.cpp b/ksvg/dom/SVGPathElement.cpp new file mode 100644 index 00000000..d3610f47 --- /dev/null +++ b/ksvg/dom/SVGPathElement.cpp @@ -0,0 +1,198 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathElement.h" +#include "SVGPathElementImpl.h" +#include "SVGPoint.h" +#include "SVGPathSegClosePath.h" +#include "SVGPathSegLineto.h" +#include "SVGPathSegLinetoHorizontal.h" +#include "SVGPathSegLinetoVertical.h" +#include "SVGPathSegMoveto.h" +#include "SVGPathSegArc.h" +#include "SVGPathSegCurvetoCubic.h" +#include "SVGPathSegCurvetoCubicSmooth.h" +#include "SVGPathSegCurvetoQuadratic.h" +#include "SVGPathSegCurvetoQuadraticSmooth.h" + +using namespace KSVG; + +SVGPathElement::SVGPathElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPathData() +{ + impl = 0; +} + +SVGPathElement::SVGPathElement(const SVGPathElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other), impl(0) +{ + (*this) = other; +} + +SVGPathElement &SVGPathElement::operator=(const SVGPathElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPathElement::SVGPathElement(SVGPathElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPathData(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPathElement::~SVGPathElement() +{ + if(impl) + impl->deref(); +} + +/* +SVGAnimatedNumber SVGPathElement::pathLength() const +{ + return m_pathLength; +} +*/ + +float SVGPathElement::getTotalLength() +{ + return impl->getTotalLength(); +} + +SVGPoint SVGPathElement::getPointAtLength(float distance) +{ + return SVGPoint(impl->getPointAtLength(distance)); +} + +unsigned long SVGPathElement::getPathSegAtLength(float distance) +{ + return impl->getPathSegAtLength(distance); +} + +SVGPathSegClosePath SVGPathElement::createSVGPathSegClosePath() +{ + return impl->createSVGPathSegClosePath(); +} + +SVGPathSegMovetoAbs SVGPathElement::createSVGPathSegMovetoAbs(float x,float y) +{ + return impl->createSVGPathSegMovetoAbs(x, y);; +} + +SVGPathSegMovetoRel SVGPathElement::createSVGPathSegMovetoRel(float x,float y) +{ + return impl->createSVGPathSegMovetoRel(x, y); +} + +SVGPathSegLinetoAbs SVGPathElement::createSVGPathSegLinetoAbs(float x,float y) +{ + return impl->createSVGPathSegLinetoAbs(x, y); +} + +SVGPathSegLinetoRel SVGPathElement::createSVGPathSegLinetoRel(float x,float y) +{ + return impl->createSVGPathSegLinetoRel(x, y); +} + +SVGPathSegCurvetoCubicAbs SVGPathElement::createSVGPathSegCurvetoCubicAbs(float x,float y,float x1,float y1,float x2,float y2) +{ + return impl->createSVGPathSegCurvetoCubicAbs(x, y, x1, y1, x2, y2); +} + +SVGPathSegCurvetoCubicRel SVGPathElement::createSVGPathSegCurvetoCubicRel(float x,float y,float x1,float y1,float x2,float y2) +{ + return impl->createSVGPathSegCurvetoCubicRel(x, y, x1, y1, x2, y2); +} + +SVGPathSegCurvetoQuadraticAbs SVGPathElement::createSVGPathSegCurvetoQuadraticAbs(float x,float y,float x1,float y1) +{ + return impl->createSVGPathSegCurvetoQuadraticAbs(x, y, x1, y1); +} + +SVGPathSegCurvetoQuadraticRel SVGPathElement::createSVGPathSegCurvetoQuadraticRel(float x,float y,float x1,float y1) +{ + return impl->createSVGPathSegCurvetoQuadraticRel(x, y, x1, y1); +} + +SVGPathSegArcAbs SVGPathElement::createSVGPathSegArcAbs(float x,float y,float r1,float r2,float angle,bool largeArcFlag,bool sweepFlag) +{ + return impl->createSVGPathSegArcAbs(x, y, r1, r2, angle, largeArcFlag, sweepFlag); +} + +SVGPathSegArcRel SVGPathElement::createSVGPathSegArcRel(float x,float y,float r1,float r2,float angle,bool largeArcFlag,bool sweepFlag) +{ + return impl->createSVGPathSegArcRel(x, y, r1, r2, angle, largeArcFlag, sweepFlag); +} + +SVGPathSegLinetoHorizontalAbs SVGPathElement::createSVGPathSegLinetoHorizontalAbs(float x) +{ + return impl->createSVGPathSegLinetoHorizontalAbs(x); +} + +SVGPathSegLinetoHorizontalRel SVGPathElement::createSVGPathSegLinetoHorizontalRel(float x) +{ + return impl->createSVGPathSegLinetoHorizontalRel(x); +} + +SVGPathSegLinetoVerticalAbs SVGPathElement::createSVGPathSegLinetoVerticalAbs(float y) +{ + return impl->createSVGPathSegLinetoVerticalAbs(y); +} + +SVGPathSegLinetoVerticalRel SVGPathElement::createSVGPathSegLinetoVerticalRel(float y) +{ + return impl->createSVGPathSegLinetoVerticalRel(y); +} + +SVGPathSegCurvetoCubicSmoothAbs SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs(float x,float y,float x2,float y2) +{ + return impl->createSVGPathSegCurvetoCubicSmoothAbs(x, y, x2, y2);; +} + +SVGPathSegCurvetoCubicSmoothRel SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel(float x,float y,float x2,float y2) +{ + return impl->createSVGPathSegCurvetoCubicSmoothRel(x, y, x2, y2); +} + +SVGPathSegCurvetoQuadraticSmoothAbs SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs(float x,float y) +{ + return impl->createSVGPathSegCurvetoQuadraticSmoothAbs(x, y); +} + +SVGPathSegCurvetoQuadraticSmoothRel SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel(float x,float y) +{ + return impl->createSVGPathSegCurvetoQuadraticSmoothRel(x, y); +} diff --git a/ksvg/dom/SVGPathSeg.cc b/ksvg/dom/SVGPathSeg.cc deleted file mode 100644 index 7b912e11..00000000 --- a/ksvg/dom/SVGPathSeg.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSeg.h" -#include "SVGPathSegImpl.h" - -using namespace KSVG; - -SVGPathSeg::SVGPathSeg() -{ - impl = new SVGPathSegImpl(); -} - -SVGPathSeg::SVGPathSeg(const SVGPathSeg &other) -{ - impl = other.impl; -} - -SVGPathSeg &SVGPathSeg::operator=(const SVGPathSeg &other) -{ - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} - -SVGPathSeg::SVGPathSeg(SVGPathSegImpl *other) -{ - impl = other; -} - -SVGPathSeg::~SVGPathSeg() -{ - delete impl; -} - -unsigned short SVGPathSeg::pathSegType() const -{ - if(!impl) return PATHSEG_UNKNOWN; - return impl->pathSegType(); -} - -DOM::DOMString SVGPathSeg::pathSegTypeAsLetter() const -{ - if(!impl) return DOM::DOMString(""); - return impl->pathSegTypeAsLetter(); -} diff --git a/ksvg/dom/SVGPathSeg.cpp b/ksvg/dom/SVGPathSeg.cpp new file mode 100644 index 00000000..7b912e11 --- /dev/null +++ b/ksvg/dom/SVGPathSeg.cpp @@ -0,0 +1,67 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSeg.h" +#include "SVGPathSegImpl.h" + +using namespace KSVG; + +SVGPathSeg::SVGPathSeg() +{ + impl = new SVGPathSegImpl(); +} + +SVGPathSeg::SVGPathSeg(const SVGPathSeg &other) +{ + impl = other.impl; +} + +SVGPathSeg &SVGPathSeg::operator=(const SVGPathSeg &other) +{ + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} + +SVGPathSeg::SVGPathSeg(SVGPathSegImpl *other) +{ + impl = other; +} + +SVGPathSeg::~SVGPathSeg() +{ + delete impl; +} + +unsigned short SVGPathSeg::pathSegType() const +{ + if(!impl) return PATHSEG_UNKNOWN; + return impl->pathSegType(); +} + +DOM::DOMString SVGPathSeg::pathSegTypeAsLetter() const +{ + if(!impl) return DOM::DOMString(""); + return impl->pathSegTypeAsLetter(); +} diff --git a/ksvg/dom/SVGPathSegArc.cc b/ksvg/dom/SVGPathSegArc.cc deleted file mode 100644 index 9e775ff8..00000000 --- a/ksvg/dom/SVGPathSegArc.cc +++ /dev/null @@ -1,236 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegArc.h" -#include "SVGPathSegArcImpl.h" - -using namespace KSVG; - -SVGPathSegArcAbs::SVGPathSegArcAbs() : SVGPathSeg() -{ - impl = new SVGPathSegArcAbsImpl(); -} - -SVGPathSegArcAbs::SVGPathSegArcAbs(const SVGPathSegArcAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegArcAbs::SVGPathSegArcAbs(SVGPathSegArcAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegArcAbs::~SVGPathSegArcAbs() -{ - delete impl; -} - -void SVGPathSegArcAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegArcAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegArcAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegArcAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegArcAbs::setR1(const float &r1) -{ - if(impl) - impl->setR1(r1); -} - -float SVGPathSegArcAbs::r1() const -{ - if(!impl) return -1; - return impl->r1(); -} - -void SVGPathSegArcAbs::setR2(const float &r2) -{ - if(impl) - impl->setR2(r2); -} - -float SVGPathSegArcAbs::r2() const -{ - if(!impl) return -1; - return impl->r2(); -} - -void SVGPathSegArcAbs::setAngle(const float &angle) -{ - if(impl) - impl->setAngle(angle); -} - -float SVGPathSegArcAbs::angle() const -{ - if(!impl) return -1; - return impl->angle(); -} - -void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag) -{ - if(impl) - impl->setLargeArcFlag(largeArcFlag); -} - -bool SVGPathSegArcAbs::largeArcFlag() const -{ - if(!impl) return false; - return impl->largeArcFlag(); -} - -void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag) -{ - if(impl) - impl->setSweepFlag(sweepFlag); -} - -bool SVGPathSegArcAbs::sweepFlag() const -{ - if(!impl) return false; - return impl->sweepFlag(); -} - - - - - -SVGPathSegArcRel::SVGPathSegArcRel() : SVGPathSeg() -{ - impl = new SVGPathSegArcRelImpl(); -} - -SVGPathSegArcRel::SVGPathSegArcRel(const SVGPathSegArcRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegArcRel::SVGPathSegArcRel(SVGPathSegArcRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegArcRel::~SVGPathSegArcRel() -{ - delete impl; -} - -void SVGPathSegArcRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegArcRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegArcRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegArcRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegArcRel::setR1(const float &r1) -{ - if(impl) - impl->setR1(r1); -} - -float SVGPathSegArcRel::r1() const -{ - if(!impl) return -1; - return impl->r1(); -} - -void SVGPathSegArcRel::setR2(const float &r2) -{ - if(impl) - impl->setR2(r2); -} - -float SVGPathSegArcRel::r2() const -{ - if(!impl) return -1; - return impl->r2(); -} - -void SVGPathSegArcRel::setAngle(const float &angle) -{ - if(impl) - impl->setAngle(angle); -} - -float SVGPathSegArcRel::angle() const -{ - if(!impl) return -1; - return impl->angle(); -} - -void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag) -{ - if(impl) - impl->setLargeArcFlag(largeArcFlag); -} - -bool SVGPathSegArcRel::largeArcFlag() const -{ - if(!impl) return false; - return impl->largeArcFlag(); -} - -void SVGPathSegArcRel::setSweepFlag(bool sweepFlag) -{ - if(impl) - impl->setSweepFlag(sweepFlag); -} - -bool SVGPathSegArcRel::sweepFlag() const -{ - if(!impl) return false; - return impl->sweepFlag(); -} diff --git a/ksvg/dom/SVGPathSegArc.cpp b/ksvg/dom/SVGPathSegArc.cpp new file mode 100644 index 00000000..9e775ff8 --- /dev/null +++ b/ksvg/dom/SVGPathSegArc.cpp @@ -0,0 +1,236 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegArc.h" +#include "SVGPathSegArcImpl.h" + +using namespace KSVG; + +SVGPathSegArcAbs::SVGPathSegArcAbs() : SVGPathSeg() +{ + impl = new SVGPathSegArcAbsImpl(); +} + +SVGPathSegArcAbs::SVGPathSegArcAbs(const SVGPathSegArcAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegArcAbs::SVGPathSegArcAbs(SVGPathSegArcAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegArcAbs::~SVGPathSegArcAbs() +{ + delete impl; +} + +void SVGPathSegArcAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegArcAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegArcAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegArcAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegArcAbs::setR1(const float &r1) +{ + if(impl) + impl->setR1(r1); +} + +float SVGPathSegArcAbs::r1() const +{ + if(!impl) return -1; + return impl->r1(); +} + +void SVGPathSegArcAbs::setR2(const float &r2) +{ + if(impl) + impl->setR2(r2); +} + +float SVGPathSegArcAbs::r2() const +{ + if(!impl) return -1; + return impl->r2(); +} + +void SVGPathSegArcAbs::setAngle(const float &angle) +{ + if(impl) + impl->setAngle(angle); +} + +float SVGPathSegArcAbs::angle() const +{ + if(!impl) return -1; + return impl->angle(); +} + +void SVGPathSegArcAbs::setLargeArcFlag(bool largeArcFlag) +{ + if(impl) + impl->setLargeArcFlag(largeArcFlag); +} + +bool SVGPathSegArcAbs::largeArcFlag() const +{ + if(!impl) return false; + return impl->largeArcFlag(); +} + +void SVGPathSegArcAbs::setSweepFlag(bool sweepFlag) +{ + if(impl) + impl->setSweepFlag(sweepFlag); +} + +bool SVGPathSegArcAbs::sweepFlag() const +{ + if(!impl) return false; + return impl->sweepFlag(); +} + + + + + +SVGPathSegArcRel::SVGPathSegArcRel() : SVGPathSeg() +{ + impl = new SVGPathSegArcRelImpl(); +} + +SVGPathSegArcRel::SVGPathSegArcRel(const SVGPathSegArcRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegArcRel::SVGPathSegArcRel(SVGPathSegArcRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegArcRel::~SVGPathSegArcRel() +{ + delete impl; +} + +void SVGPathSegArcRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegArcRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegArcRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegArcRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegArcRel::setR1(const float &r1) +{ + if(impl) + impl->setR1(r1); +} + +float SVGPathSegArcRel::r1() const +{ + if(!impl) return -1; + return impl->r1(); +} + +void SVGPathSegArcRel::setR2(const float &r2) +{ + if(impl) + impl->setR2(r2); +} + +float SVGPathSegArcRel::r2() const +{ + if(!impl) return -1; + return impl->r2(); +} + +void SVGPathSegArcRel::setAngle(const float &angle) +{ + if(impl) + impl->setAngle(angle); +} + +float SVGPathSegArcRel::angle() const +{ + if(!impl) return -1; + return impl->angle(); +} + +void SVGPathSegArcRel::setLargeArcFlag(bool largeArcFlag) +{ + if(impl) + impl->setLargeArcFlag(largeArcFlag); +} + +bool SVGPathSegArcRel::largeArcFlag() const +{ + if(!impl) return false; + return impl->largeArcFlag(); +} + +void SVGPathSegArcRel::setSweepFlag(bool sweepFlag) +{ + if(impl) + impl->setSweepFlag(sweepFlag); +} + +bool SVGPathSegArcRel::sweepFlag() const +{ + if(!impl) return false; + return impl->sweepFlag(); +} diff --git a/ksvg/dom/SVGPathSegClosePath.cc b/ksvg/dom/SVGPathSegClosePath.cc deleted file mode 100644 index af7dc302..00000000 --- a/ksvg/dom/SVGPathSegClosePath.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegClosePath.h" -#include "SVGPathSegClosePathImpl.h" - -using namespace KSVG; - -SVGPathSegClosePath::SVGPathSegClosePath() : SVGPathSeg() -{ - impl = new SVGPathSegClosePathImpl(); -} - -SVGPathSegClosePath::SVGPathSegClosePath(const SVGPathSegClosePath &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegClosePath::SVGPathSegClosePath(SVGPathSegClosePathImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegClosePath::~SVGPathSegClosePath() -{ - delete impl; -} diff --git a/ksvg/dom/SVGPathSegClosePath.cpp b/ksvg/dom/SVGPathSegClosePath.cpp new file mode 100644 index 00000000..af7dc302 --- /dev/null +++ b/ksvg/dom/SVGPathSegClosePath.cpp @@ -0,0 +1,44 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegClosePath.h" +#include "SVGPathSegClosePathImpl.h" + +using namespace KSVG; + +SVGPathSegClosePath::SVGPathSegClosePath() : SVGPathSeg() +{ + impl = new SVGPathSegClosePathImpl(); +} + +SVGPathSegClosePath::SVGPathSegClosePath(const SVGPathSegClosePath &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegClosePath::SVGPathSegClosePath(SVGPathSegClosePathImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegClosePath::~SVGPathSegClosePath() +{ + delete impl; +} diff --git a/ksvg/dom/SVGPathSegCurvetoCubic.cc b/ksvg/dom/SVGPathSegCurvetoCubic.cc deleted file mode 100644 index 02313de9..00000000 --- a/ksvg/dom/SVGPathSegCurvetoCubic.cc +++ /dev/null @@ -1,212 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegCurvetoCubic.h" -#include "SVGPathSegCurvetoCubicImpl.h" - -using namespace KSVG; - -SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoCubicAbsImpl(); -} - -SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(const SVGPathSegCurvetoCubicAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(SVGPathSegCurvetoCubicAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoCubicAbs::~SVGPathSegCurvetoCubicAbs() -{ - delete impl; -} - -void SVGPathSegCurvetoCubicAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoCubicAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoCubicAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoCubicAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoCubicAbs::setX1(const float &x1) -{ - if(impl) - impl->setX1(x1); -} - -float SVGPathSegCurvetoCubicAbs::x1() const -{ - if(!impl) return -1; - return impl->x1(); -} - -void SVGPathSegCurvetoCubicAbs::setY1(const float &y1) -{ - if(impl) - impl->setY1(y1); -} - -float SVGPathSegCurvetoCubicAbs::y1() const -{ - if(!impl) return -1; - return impl->y1(); -} - -void SVGPathSegCurvetoCubicAbs::setX2(const float &x2) -{ - if(impl) - impl->setX2(x2); -} - -float SVGPathSegCurvetoCubicAbs::x2() const -{ - if(!impl) return -1; - return impl->x2(); -} - -void SVGPathSegCurvetoCubicAbs::setY2(const float &y2) -{ - if(impl) - impl->setY2(y2); -} - -float SVGPathSegCurvetoCubicAbs::y2() const -{ - if(!impl) return -1; - return impl->y2(); -} - - - - - -SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoCubicRelImpl(); -} - -SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(const SVGPathSegCurvetoCubicRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(SVGPathSegCurvetoCubicRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoCubicRel::~SVGPathSegCurvetoCubicRel() -{ - delete impl; -} - -void SVGPathSegCurvetoCubicRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoCubicRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoCubicRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoCubicRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoCubicRel::setX1(const float &x1) -{ - if(impl) - impl->setX1(x1); -} - -float SVGPathSegCurvetoCubicRel::x1() const -{ - if(!impl) return -1; - return impl->x1(); -} - -void SVGPathSegCurvetoCubicRel::setY1(const float &y1) -{ - if(impl) - impl->setY1(y1); -} - -float SVGPathSegCurvetoCubicRel::y1() const -{ - if(!impl) return -1; - return impl->y1(); -} - -void SVGPathSegCurvetoCubicRel::setX2(const float &x2) -{ - if(impl) - impl->setX2(x2); -} - -float SVGPathSegCurvetoCubicRel::x2() const -{ - if(!impl) return -1; - return impl->x2(); -} - -void SVGPathSegCurvetoCubicRel::setY2(const float &y2) -{ - if(impl) - impl->setY2(y2); -} - -float SVGPathSegCurvetoCubicRel::y2() const -{ - if(!impl) return -1; - return impl->y2(); -} diff --git a/ksvg/dom/SVGPathSegCurvetoCubic.cpp b/ksvg/dom/SVGPathSegCurvetoCubic.cpp new file mode 100644 index 00000000..02313de9 --- /dev/null +++ b/ksvg/dom/SVGPathSegCurvetoCubic.cpp @@ -0,0 +1,212 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegCurvetoCubic.h" +#include "SVGPathSegCurvetoCubicImpl.h" + +using namespace KSVG; + +SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoCubicAbsImpl(); +} + +SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(const SVGPathSegCurvetoCubicAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs(SVGPathSegCurvetoCubicAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoCubicAbs::~SVGPathSegCurvetoCubicAbs() +{ + delete impl; +} + +void SVGPathSegCurvetoCubicAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoCubicAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoCubicAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoCubicAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoCubicAbs::setX1(const float &x1) +{ + if(impl) + impl->setX1(x1); +} + +float SVGPathSegCurvetoCubicAbs::x1() const +{ + if(!impl) return -1; + return impl->x1(); +} + +void SVGPathSegCurvetoCubicAbs::setY1(const float &y1) +{ + if(impl) + impl->setY1(y1); +} + +float SVGPathSegCurvetoCubicAbs::y1() const +{ + if(!impl) return -1; + return impl->y1(); +} + +void SVGPathSegCurvetoCubicAbs::setX2(const float &x2) +{ + if(impl) + impl->setX2(x2); +} + +float SVGPathSegCurvetoCubicAbs::x2() const +{ + if(!impl) return -1; + return impl->x2(); +} + +void SVGPathSegCurvetoCubicAbs::setY2(const float &y2) +{ + if(impl) + impl->setY2(y2); +} + +float SVGPathSegCurvetoCubicAbs::y2() const +{ + if(!impl) return -1; + return impl->y2(); +} + + + + + +SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoCubicRelImpl(); +} + +SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(const SVGPathSegCurvetoCubicRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel(SVGPathSegCurvetoCubicRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoCubicRel::~SVGPathSegCurvetoCubicRel() +{ + delete impl; +} + +void SVGPathSegCurvetoCubicRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoCubicRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoCubicRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoCubicRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoCubicRel::setX1(const float &x1) +{ + if(impl) + impl->setX1(x1); +} + +float SVGPathSegCurvetoCubicRel::x1() const +{ + if(!impl) return -1; + return impl->x1(); +} + +void SVGPathSegCurvetoCubicRel::setY1(const float &y1) +{ + if(impl) + impl->setY1(y1); +} + +float SVGPathSegCurvetoCubicRel::y1() const +{ + if(!impl) return -1; + return impl->y1(); +} + +void SVGPathSegCurvetoCubicRel::setX2(const float &x2) +{ + if(impl) + impl->setX2(x2); +} + +float SVGPathSegCurvetoCubicRel::x2() const +{ + if(!impl) return -1; + return impl->x2(); +} + +void SVGPathSegCurvetoCubicRel::setY2(const float &y2) +{ + if(impl) + impl->setY2(y2); +} + +float SVGPathSegCurvetoCubicRel::y2() const +{ + if(!impl) return -1; + return impl->y2(); +} diff --git a/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cc b/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cc deleted file mode 100644 index a8fabdf3..00000000 --- a/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cc +++ /dev/null @@ -1,164 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegCurvetoCubicSmooth.h" -#include "SVGPathSegCurvetoCubicSmoothImpl.h" - -using namespace KSVG; - -SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoCubicSmoothAbsImpl(); -} - -SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(const SVGPathSegCurvetoCubicSmoothAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(SVGPathSegCurvetoCubicSmoothAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs() -{ - delete impl; -} - -void SVGPathSegCurvetoCubicSmoothAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoCubicSmoothAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoCubicSmoothAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoCubicSmoothAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoCubicSmoothAbs::setX2(const float &x2) -{ - if(impl) - impl->setX2(x2); -} - -float SVGPathSegCurvetoCubicSmoothAbs::x2() const -{ - if(!impl) return -1; - return impl->x2(); -} - -void SVGPathSegCurvetoCubicSmoothAbs::setY2(const float &y2) -{ - if(impl) - impl->setY2(y2); -} - -float SVGPathSegCurvetoCubicSmoothAbs::y2() const -{ - if(!impl) return -1; - return impl->y2(); -} - - - - - -SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoCubicSmoothRelImpl(); -} - -SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(const SVGPathSegCurvetoCubicSmoothRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(SVGPathSegCurvetoCubicSmoothRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel() -{ - delete impl; -} - -void SVGPathSegCurvetoCubicSmoothRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoCubicSmoothRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoCubicSmoothRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoCubicSmoothRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoCubicSmoothRel::setX2(const float &x2) -{ - if(impl) - impl->setX2(x2); -} - -float SVGPathSegCurvetoCubicSmoothRel::x2() const -{ - if(!impl) return -1; - return impl->x2(); -} - -void SVGPathSegCurvetoCubicSmoothRel::setY2(const float &y2) -{ - if(impl) - impl->setY2(y2); -} - -float SVGPathSegCurvetoCubicSmoothRel::y2() const -{ - if(!impl) return -1; - return impl->y2(); -} diff --git a/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cpp b/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cpp new file mode 100644 index 00000000..a8fabdf3 --- /dev/null +++ b/ksvg/dom/SVGPathSegCurvetoCubicSmooth.cpp @@ -0,0 +1,164 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegCurvetoCubicSmooth.h" +#include "SVGPathSegCurvetoCubicSmoothImpl.h" + +using namespace KSVG; + +SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoCubicSmoothAbsImpl(); +} + +SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(const SVGPathSegCurvetoCubicSmoothAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs(SVGPathSegCurvetoCubicSmoothAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoCubicSmoothAbs::~SVGPathSegCurvetoCubicSmoothAbs() +{ + delete impl; +} + +void SVGPathSegCurvetoCubicSmoothAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoCubicSmoothAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoCubicSmoothAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoCubicSmoothAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoCubicSmoothAbs::setX2(const float &x2) +{ + if(impl) + impl->setX2(x2); +} + +float SVGPathSegCurvetoCubicSmoothAbs::x2() const +{ + if(!impl) return -1; + return impl->x2(); +} + +void SVGPathSegCurvetoCubicSmoothAbs::setY2(const float &y2) +{ + if(impl) + impl->setY2(y2); +} + +float SVGPathSegCurvetoCubicSmoothAbs::y2() const +{ + if(!impl) return -1; + return impl->y2(); +} + + + + + +SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoCubicSmoothRelImpl(); +} + +SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(const SVGPathSegCurvetoCubicSmoothRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel(SVGPathSegCurvetoCubicSmoothRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoCubicSmoothRel::~SVGPathSegCurvetoCubicSmoothRel() +{ + delete impl; +} + +void SVGPathSegCurvetoCubicSmoothRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoCubicSmoothRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoCubicSmoothRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoCubicSmoothRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoCubicSmoothRel::setX2(const float &x2) +{ + if(impl) + impl->setX2(x2); +} + +float SVGPathSegCurvetoCubicSmoothRel::x2() const +{ + if(!impl) return -1; + return impl->x2(); +} + +void SVGPathSegCurvetoCubicSmoothRel::setY2(const float &y2) +{ + if(impl) + impl->setY2(y2); +} + +float SVGPathSegCurvetoCubicSmoothRel::y2() const +{ + if(!impl) return -1; + return impl->y2(); +} diff --git a/ksvg/dom/SVGPathSegCurvetoQuadratic.cc b/ksvg/dom/SVGPathSegCurvetoQuadratic.cc deleted file mode 100644 index 8f83bcf2..00000000 --- a/ksvg/dom/SVGPathSegCurvetoQuadratic.cc +++ /dev/null @@ -1,164 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegCurvetoQuadratic.h" -#include "SVGPathSegCurvetoQuadraticImpl.h" - -using namespace KSVG; - -SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoQuadraticAbsImpl(); -} - -SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(const SVGPathSegCurvetoQuadraticAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(SVGPathSegCurvetoQuadraticAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoQuadraticAbs::~SVGPathSegCurvetoQuadraticAbs() -{ - delete impl; -} - -void SVGPathSegCurvetoQuadraticAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoQuadraticAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoQuadraticAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoQuadraticAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoQuadraticAbs::setX1(const float &x1) -{ - if(impl) - impl->setX1(x1); -} - -float SVGPathSegCurvetoQuadraticAbs::x1() const -{ - if(!impl) return -1; - return impl->x1(); -} - -void SVGPathSegCurvetoQuadraticAbs::setY1(const float &y1) -{ - if(impl) - impl->setY1(y1); -} - -float SVGPathSegCurvetoQuadraticAbs::y1() const -{ - if(!impl) return -1; - return impl->y1(); -} - - - - - -SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoQuadraticRelImpl(); -} - -SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(const SVGPathSegCurvetoQuadraticRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(SVGPathSegCurvetoQuadraticRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoQuadraticRel::~SVGPathSegCurvetoQuadraticRel() -{ - delete impl; -} - -void SVGPathSegCurvetoQuadraticRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoQuadraticRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoQuadraticRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoQuadraticRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGPathSegCurvetoQuadraticRel::setX1(const float &x1) -{ - if(impl) - impl->setX1(x1); -} - -float SVGPathSegCurvetoQuadraticRel::x1() const -{ - if(!impl) return -1; - return impl->x1(); -} - -void SVGPathSegCurvetoQuadraticRel::setY1(const float &y1) -{ - if(impl) - impl->setY1(y1); -} - -float SVGPathSegCurvetoQuadraticRel::y1() const -{ - if(!impl) return -1; - return impl->y1(); -} diff --git a/ksvg/dom/SVGPathSegCurvetoQuadratic.cpp b/ksvg/dom/SVGPathSegCurvetoQuadratic.cpp new file mode 100644 index 00000000..8f83bcf2 --- /dev/null +++ b/ksvg/dom/SVGPathSegCurvetoQuadratic.cpp @@ -0,0 +1,164 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegCurvetoQuadratic.h" +#include "SVGPathSegCurvetoQuadraticImpl.h" + +using namespace KSVG; + +SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoQuadraticAbsImpl(); +} + +SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(const SVGPathSegCurvetoQuadraticAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs(SVGPathSegCurvetoQuadraticAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoQuadraticAbs::~SVGPathSegCurvetoQuadraticAbs() +{ + delete impl; +} + +void SVGPathSegCurvetoQuadraticAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoQuadraticAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoQuadraticAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoQuadraticAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoQuadraticAbs::setX1(const float &x1) +{ + if(impl) + impl->setX1(x1); +} + +float SVGPathSegCurvetoQuadraticAbs::x1() const +{ + if(!impl) return -1; + return impl->x1(); +} + +void SVGPathSegCurvetoQuadraticAbs::setY1(const float &y1) +{ + if(impl) + impl->setY1(y1); +} + +float SVGPathSegCurvetoQuadraticAbs::y1() const +{ + if(!impl) return -1; + return impl->y1(); +} + + + + + +SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoQuadraticRelImpl(); +} + +SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(const SVGPathSegCurvetoQuadraticRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel(SVGPathSegCurvetoQuadraticRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoQuadraticRel::~SVGPathSegCurvetoQuadraticRel() +{ + delete impl; +} + +void SVGPathSegCurvetoQuadraticRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoQuadraticRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoQuadraticRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoQuadraticRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGPathSegCurvetoQuadraticRel::setX1(const float &x1) +{ + if(impl) + impl->setX1(x1); +} + +float SVGPathSegCurvetoQuadraticRel::x1() const +{ + if(!impl) return -1; + return impl->x1(); +} + +void SVGPathSegCurvetoQuadraticRel::setY1(const float &y1) +{ + if(impl) + impl->setY1(y1); +} + +float SVGPathSegCurvetoQuadraticRel::y1() const +{ + if(!impl) return -1; + return impl->y1(); +} diff --git a/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cc b/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cc deleted file mode 100644 index d0a52205..00000000 --- a/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegCurvetoQuadraticSmooth.h" -#include "SVGPathSegCurvetoQuadraticSmoothImpl.h" - -using namespace KSVG; - -SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoQuadraticSmoothAbsImpl(); -} - -SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs(const SVGPathSegCurvetoQuadraticSmoothAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs(SVGPathSegCurvetoQuadraticSmoothAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoQuadraticSmoothAbs::~SVGPathSegCurvetoQuadraticSmoothAbs() -{ - delete impl; -} - -void SVGPathSegCurvetoQuadraticSmoothAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoQuadraticSmoothAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoQuadraticSmoothAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoQuadraticSmoothAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - - - - - -SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel() : SVGPathSeg() -{ - impl = new SVGPathSegCurvetoQuadraticSmoothRelImpl(); -} - -SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel(const SVGPathSegCurvetoQuadraticSmoothRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel(SVGPathSegCurvetoQuadraticSmoothRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegCurvetoQuadraticSmoothRel::~SVGPathSegCurvetoQuadraticSmoothRel() -{ - delete impl; -} - -void SVGPathSegCurvetoQuadraticSmoothRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegCurvetoQuadraticSmoothRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegCurvetoQuadraticSmoothRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegCurvetoQuadraticSmoothRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} diff --git a/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cpp b/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cpp new file mode 100644 index 00000000..d0a52205 --- /dev/null +++ b/ksvg/dom/SVGPathSegCurvetoQuadraticSmooth.cpp @@ -0,0 +1,116 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegCurvetoQuadraticSmooth.h" +#include "SVGPathSegCurvetoQuadraticSmoothImpl.h" + +using namespace KSVG; + +SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoQuadraticSmoothAbsImpl(); +} + +SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs(const SVGPathSegCurvetoQuadraticSmoothAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs(SVGPathSegCurvetoQuadraticSmoothAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoQuadraticSmoothAbs::~SVGPathSegCurvetoQuadraticSmoothAbs() +{ + delete impl; +} + +void SVGPathSegCurvetoQuadraticSmoothAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoQuadraticSmoothAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoQuadraticSmoothAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoQuadraticSmoothAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + + + + + +SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel() : SVGPathSeg() +{ + impl = new SVGPathSegCurvetoQuadraticSmoothRelImpl(); +} + +SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel(const SVGPathSegCurvetoQuadraticSmoothRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel(SVGPathSegCurvetoQuadraticSmoothRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegCurvetoQuadraticSmoothRel::~SVGPathSegCurvetoQuadraticSmoothRel() +{ + delete impl; +} + +void SVGPathSegCurvetoQuadraticSmoothRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegCurvetoQuadraticSmoothRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegCurvetoQuadraticSmoothRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegCurvetoQuadraticSmoothRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} diff --git a/ksvg/dom/SVGPathSegLineto.cc b/ksvg/dom/SVGPathSegLineto.cc deleted file mode 100644 index d4ef6399..00000000 --- a/ksvg/dom/SVGPathSegLineto.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegLineto.h" -#include "SVGPathSegLinetoImpl.h" - -using namespace KSVG; - -SVGPathSegLinetoAbs::SVGPathSegLinetoAbs() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoAbsImpl(); -} - -SVGPathSegLinetoAbs::SVGPathSegLinetoAbs(const SVGPathSegLinetoAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoAbs::SVGPathSegLinetoAbs(SVGPathSegLinetoAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoAbs::~SVGPathSegLinetoAbs() -{ - delete impl; -} - -void SVGPathSegLinetoAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegLinetoAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegLinetoAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegLinetoAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - - - - - -SVGPathSegLinetoRel::SVGPathSegLinetoRel() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoRelImpl(); -} - -SVGPathSegLinetoRel::SVGPathSegLinetoRel(const SVGPathSegLinetoRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoRel::SVGPathSegLinetoRel(SVGPathSegLinetoRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoRel::~SVGPathSegLinetoRel() -{ - delete impl; -} - -void SVGPathSegLinetoRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegLinetoRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegLinetoRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegLinetoRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} diff --git a/ksvg/dom/SVGPathSegLineto.cpp b/ksvg/dom/SVGPathSegLineto.cpp new file mode 100644 index 00000000..d4ef6399 --- /dev/null +++ b/ksvg/dom/SVGPathSegLineto.cpp @@ -0,0 +1,116 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegLineto.h" +#include "SVGPathSegLinetoImpl.h" + +using namespace KSVG; + +SVGPathSegLinetoAbs::SVGPathSegLinetoAbs() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoAbsImpl(); +} + +SVGPathSegLinetoAbs::SVGPathSegLinetoAbs(const SVGPathSegLinetoAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoAbs::SVGPathSegLinetoAbs(SVGPathSegLinetoAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoAbs::~SVGPathSegLinetoAbs() +{ + delete impl; +} + +void SVGPathSegLinetoAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegLinetoAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegLinetoAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegLinetoAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + + + + + +SVGPathSegLinetoRel::SVGPathSegLinetoRel() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoRelImpl(); +} + +SVGPathSegLinetoRel::SVGPathSegLinetoRel(const SVGPathSegLinetoRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoRel::SVGPathSegLinetoRel(SVGPathSegLinetoRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoRel::~SVGPathSegLinetoRel() +{ + delete impl; +} + +void SVGPathSegLinetoRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegLinetoRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegLinetoRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegLinetoRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} diff --git a/ksvg/dom/SVGPathSegLinetoHorizontal.cc b/ksvg/dom/SVGPathSegLinetoHorizontal.cc deleted file mode 100644 index e42b0337..00000000 --- a/ksvg/dom/SVGPathSegLinetoHorizontal.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegLinetoHorizontal.h" -#include "SVGPathSegLinetoHorizontalImpl.h" - -using namespace KSVG; - -SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoHorizontalAbsImpl(); -} - -SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs(const SVGPathSegLinetoHorizontalAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs(SVGPathSegLinetoHorizontalAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoHorizontalAbs::~SVGPathSegLinetoHorizontalAbs() -{ - delete impl; -} - -void SVGPathSegLinetoHorizontalAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegLinetoHorizontalAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - - - - - -SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoHorizontalRelImpl(); -} - -SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel(const SVGPathSegLinetoHorizontalRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel(SVGPathSegLinetoHorizontalRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoHorizontalRel::~SVGPathSegLinetoHorizontalRel() -{ - delete impl; -} - -void SVGPathSegLinetoHorizontalRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegLinetoHorizontalRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} diff --git a/ksvg/dom/SVGPathSegLinetoHorizontal.cpp b/ksvg/dom/SVGPathSegLinetoHorizontal.cpp new file mode 100644 index 00000000..e42b0337 --- /dev/null +++ b/ksvg/dom/SVGPathSegLinetoHorizontal.cpp @@ -0,0 +1,92 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegLinetoHorizontal.h" +#include "SVGPathSegLinetoHorizontalImpl.h" + +using namespace KSVG; + +SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoHorizontalAbsImpl(); +} + +SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs(const SVGPathSegLinetoHorizontalAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs(SVGPathSegLinetoHorizontalAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoHorizontalAbs::~SVGPathSegLinetoHorizontalAbs() +{ + delete impl; +} + +void SVGPathSegLinetoHorizontalAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegLinetoHorizontalAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + + + + + +SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoHorizontalRelImpl(); +} + +SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel(const SVGPathSegLinetoHorizontalRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel(SVGPathSegLinetoHorizontalRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoHorizontalRel::~SVGPathSegLinetoHorizontalRel() +{ + delete impl; +} + +void SVGPathSegLinetoHorizontalRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegLinetoHorizontalRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} diff --git a/ksvg/dom/SVGPathSegLinetoVertical.cc b/ksvg/dom/SVGPathSegLinetoVertical.cc deleted file mode 100644 index b271f5cc..00000000 --- a/ksvg/dom/SVGPathSegLinetoVertical.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegLinetoVertical.h" -#include "SVGPathSegLinetoVerticalImpl.h" - -using namespace KSVG; - -SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoVerticalAbsImpl(); -} - -SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs(const SVGPathSegLinetoVerticalAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs(SVGPathSegLinetoVerticalAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoVerticalAbs::~SVGPathSegLinetoVerticalAbs() -{ - delete impl; -} - -void SVGPathSegLinetoVerticalAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegLinetoVerticalAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - - - - - -SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel() : SVGPathSeg() -{ - impl = new SVGPathSegLinetoVerticalRelImpl(); -} - -SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel(const SVGPathSegLinetoVerticalRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel(SVGPathSegLinetoVerticalRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegLinetoVerticalRel::~SVGPathSegLinetoVerticalRel() -{ - delete impl; -} - -void SVGPathSegLinetoVerticalRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegLinetoVerticalRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} diff --git a/ksvg/dom/SVGPathSegLinetoVertical.cpp b/ksvg/dom/SVGPathSegLinetoVertical.cpp new file mode 100644 index 00000000..b271f5cc --- /dev/null +++ b/ksvg/dom/SVGPathSegLinetoVertical.cpp @@ -0,0 +1,92 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegLinetoVertical.h" +#include "SVGPathSegLinetoVerticalImpl.h" + +using namespace KSVG; + +SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoVerticalAbsImpl(); +} + +SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs(const SVGPathSegLinetoVerticalAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs(SVGPathSegLinetoVerticalAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoVerticalAbs::~SVGPathSegLinetoVerticalAbs() +{ + delete impl; +} + +void SVGPathSegLinetoVerticalAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegLinetoVerticalAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + + + + + +SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel() : SVGPathSeg() +{ + impl = new SVGPathSegLinetoVerticalRelImpl(); +} + +SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel(const SVGPathSegLinetoVerticalRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel(SVGPathSegLinetoVerticalRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegLinetoVerticalRel::~SVGPathSegLinetoVerticalRel() +{ + delete impl; +} + +void SVGPathSegLinetoVerticalRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegLinetoVerticalRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} diff --git a/ksvg/dom/SVGPathSegList.cc b/ksvg/dom/SVGPathSegList.cc deleted file mode 100644 index 24d255bc..00000000 --- a/ksvg/dom/SVGPathSegList.cc +++ /dev/null @@ -1,112 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegList.h" -#include "SVGPathSegListImpl.h" - -using namespace KSVG; - -SVGPathSegList::SVGPathSegList() -{ - impl = new SVGPathSegListImpl(); - impl->ref(); -} - -SVGPathSegList::SVGPathSegList(const SVGPathSegList &other) -{ - (*this) = other; -} - -SVGPathSegList &SVGPathSegList::operator=(const SVGPathSegList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPathSegList::SVGPathSegList(SVGPathSegListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPathSegList::~SVGPathSegList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGPathSegList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGPathSegList::clear() -{ - if(impl) - impl->clear(); -} - -SVGPathSeg *SVGPathSegList::initialize(SVGPathSeg *newItem) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->initialize(newItem->handle())); -} - -SVGPathSeg *SVGPathSegList::getItem(unsigned long index) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->getItem(index)); -} - -SVGPathSeg *SVGPathSegList::insertItemBefore(SVGPathSeg *newItem, unsigned long index) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->insertItemBefore(newItem->handle(), index)); -} - -SVGPathSeg *SVGPathSegList::replaceItem(SVGPathSeg *newItem, unsigned long index) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->replaceItem(newItem->handle(), index)); -} - -SVGPathSeg *SVGPathSegList::removeItem(unsigned long index) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->removeItem(index)); -} - -SVGPathSeg *SVGPathSegList::appendItem(SVGPathSeg *newItem) -{ - if(!impl) return new SVGPathSeg(0); - return new SVGPathSeg(impl->appendItem(newItem->handle())); -} diff --git a/ksvg/dom/SVGPathSegList.cpp b/ksvg/dom/SVGPathSegList.cpp new file mode 100644 index 00000000..24d255bc --- /dev/null +++ b/ksvg/dom/SVGPathSegList.cpp @@ -0,0 +1,112 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegList.h" +#include "SVGPathSegListImpl.h" + +using namespace KSVG; + +SVGPathSegList::SVGPathSegList() +{ + impl = new SVGPathSegListImpl(); + impl->ref(); +} + +SVGPathSegList::SVGPathSegList(const SVGPathSegList &other) +{ + (*this) = other; +} + +SVGPathSegList &SVGPathSegList::operator=(const SVGPathSegList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPathSegList::SVGPathSegList(SVGPathSegListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPathSegList::~SVGPathSegList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGPathSegList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGPathSegList::clear() +{ + if(impl) + impl->clear(); +} + +SVGPathSeg *SVGPathSegList::initialize(SVGPathSeg *newItem) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->initialize(newItem->handle())); +} + +SVGPathSeg *SVGPathSegList::getItem(unsigned long index) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->getItem(index)); +} + +SVGPathSeg *SVGPathSegList::insertItemBefore(SVGPathSeg *newItem, unsigned long index) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->insertItemBefore(newItem->handle(), index)); +} + +SVGPathSeg *SVGPathSegList::replaceItem(SVGPathSeg *newItem, unsigned long index) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->replaceItem(newItem->handle(), index)); +} + +SVGPathSeg *SVGPathSegList::removeItem(unsigned long index) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->removeItem(index)); +} + +SVGPathSeg *SVGPathSegList::appendItem(SVGPathSeg *newItem) +{ + if(!impl) return new SVGPathSeg(0); + return new SVGPathSeg(impl->appendItem(newItem->handle())); +} diff --git a/ksvg/dom/SVGPathSegMoveto.cc b/ksvg/dom/SVGPathSegMoveto.cc deleted file mode 100644 index f32f6f55..00000000 --- a/ksvg/dom/SVGPathSegMoveto.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPathSegMoveto.h" -#include "SVGPathSegMovetoImpl.h" - -using namespace KSVG; - -SVGPathSegMovetoAbs::SVGPathSegMovetoAbs() : SVGPathSeg() -{ - impl = new SVGPathSegMovetoAbsImpl(); -} - -SVGPathSegMovetoAbs::SVGPathSegMovetoAbs(const SVGPathSegMovetoAbs &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegMovetoAbs::SVGPathSegMovetoAbs(SVGPathSegMovetoAbsImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegMovetoAbs::~SVGPathSegMovetoAbs() -{ - delete impl; -} - -void SVGPathSegMovetoAbs::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegMovetoAbs::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegMovetoAbs::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegMovetoAbs::y() const -{ - if(!impl) return -1; - return impl->y(); -} - - - - - -SVGPathSegMovetoRel::SVGPathSegMovetoRel() : SVGPathSeg() -{ - impl = new SVGPathSegMovetoRelImpl(); -} - -SVGPathSegMovetoRel::SVGPathSegMovetoRel(const SVGPathSegMovetoRel &other) : SVGPathSeg(other) -{ - impl = other.impl; -} - -SVGPathSegMovetoRel::SVGPathSegMovetoRel(SVGPathSegMovetoRelImpl *other) : SVGPathSeg(other) -{ - impl = other; -} - -SVGPathSegMovetoRel::~SVGPathSegMovetoRel() -{ - delete impl; -} - -void SVGPathSegMovetoRel::setX(const float &x) -{ - if(impl) - impl->setX(x); -} - -float SVGPathSegMovetoRel::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPathSegMovetoRel::setY(const float &y) -{ - if(impl) - impl->setY(y); -} - -float SVGPathSegMovetoRel::y() const -{ - if(!impl) return -1; - return impl->y(); -} diff --git a/ksvg/dom/SVGPathSegMoveto.cpp b/ksvg/dom/SVGPathSegMoveto.cpp new file mode 100644 index 00000000..f32f6f55 --- /dev/null +++ b/ksvg/dom/SVGPathSegMoveto.cpp @@ -0,0 +1,116 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPathSegMoveto.h" +#include "SVGPathSegMovetoImpl.h" + +using namespace KSVG; + +SVGPathSegMovetoAbs::SVGPathSegMovetoAbs() : SVGPathSeg() +{ + impl = new SVGPathSegMovetoAbsImpl(); +} + +SVGPathSegMovetoAbs::SVGPathSegMovetoAbs(const SVGPathSegMovetoAbs &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegMovetoAbs::SVGPathSegMovetoAbs(SVGPathSegMovetoAbsImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegMovetoAbs::~SVGPathSegMovetoAbs() +{ + delete impl; +} + +void SVGPathSegMovetoAbs::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegMovetoAbs::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegMovetoAbs::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegMovetoAbs::y() const +{ + if(!impl) return -1; + return impl->y(); +} + + + + + +SVGPathSegMovetoRel::SVGPathSegMovetoRel() : SVGPathSeg() +{ + impl = new SVGPathSegMovetoRelImpl(); +} + +SVGPathSegMovetoRel::SVGPathSegMovetoRel(const SVGPathSegMovetoRel &other) : SVGPathSeg(other) +{ + impl = other.impl; +} + +SVGPathSegMovetoRel::SVGPathSegMovetoRel(SVGPathSegMovetoRelImpl *other) : SVGPathSeg(other) +{ + impl = other; +} + +SVGPathSegMovetoRel::~SVGPathSegMovetoRel() +{ + delete impl; +} + +void SVGPathSegMovetoRel::setX(const float &x) +{ + if(impl) + impl->setX(x); +} + +float SVGPathSegMovetoRel::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPathSegMovetoRel::setY(const float &y) +{ + if(impl) + impl->setY(y); +} + +float SVGPathSegMovetoRel::y() const +{ + if(!impl) return -1; + return impl->y(); +} diff --git a/ksvg/dom/SVGPatternElement.cc b/ksvg/dom/SVGPatternElement.cc deleted file mode 100644 index 8dcc86f8..00000000 --- a/ksvg/dom/SVGPatternElement.cc +++ /dev/null @@ -1,115 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPatternElement.h" -#include "SVGPatternElementImpl.h" -#include "SVGAnimatedTransformList.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedEnumeration.h" - -using namespace KSVG; - -SVGPatternElement::SVGPatternElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox(), SVGUnitTypes() -{ - impl = 0; -} - -SVGPatternElement::SVGPatternElement(const SVGPatternElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes(), impl(0) -{ - (*this) = other; -} - -SVGPatternElement &SVGPatternElement::operator =(const SVGPatternElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGFitToViewBox::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPatternElement::SVGPatternElement(SVGPatternElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPatternElement::~SVGPatternElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedEnumeration SVGPatternElement::patternUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->patternUnits()); -} - -SVGAnimatedEnumeration SVGPatternElement::patternContentUnits() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->patternContentUnits()); -} - -SVGAnimatedTransformList SVGPatternElement::patternTransform() const -{ - if(!impl) return SVGAnimatedTransformList(0); - return SVGAnimatedTransformList(impl->patternTransform()); -} - -SVGAnimatedLength SVGPatternElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGPatternElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGPatternElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGPatternElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} diff --git a/ksvg/dom/SVGPatternElement.cpp b/ksvg/dom/SVGPatternElement.cpp new file mode 100644 index 00000000..8dcc86f8 --- /dev/null +++ b/ksvg/dom/SVGPatternElement.cpp @@ -0,0 +1,115 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPatternElement.h" +#include "SVGPatternElementImpl.h" +#include "SVGAnimatedTransformList.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedEnumeration.h" + +using namespace KSVG; + +SVGPatternElement::SVGPatternElement() : SVGElement(), SVGURIReference(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox(), SVGUnitTypes() +{ + impl = 0; +} + +SVGPatternElement::SVGPatternElement(const SVGPatternElement &other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes(), impl(0) +{ + (*this) = other; +} + +SVGPatternElement &SVGPatternElement::operator =(const SVGPatternElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGFitToViewBox::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPatternElement::SVGPatternElement(SVGPatternElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), SVGUnitTypes() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPatternElement::~SVGPatternElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedEnumeration SVGPatternElement::patternUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->patternUnits()); +} + +SVGAnimatedEnumeration SVGPatternElement::patternContentUnits() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->patternContentUnits()); +} + +SVGAnimatedTransformList SVGPatternElement::patternTransform() const +{ + if(!impl) return SVGAnimatedTransformList(0); + return SVGAnimatedTransformList(impl->patternTransform()); +} + +SVGAnimatedLength SVGPatternElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGPatternElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGPatternElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGPatternElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} diff --git a/ksvg/dom/SVGPoint.cc b/ksvg/dom/SVGPoint.cc deleted file mode 100644 index c385c904..00000000 --- a/ksvg/dom/SVGPoint.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPoint.h" -#include "SVGMatrix.h" -#include "SVGPointImpl.h" - -using namespace KSVG; - -SVGPoint::SVGPoint() -{ - impl = new SVGPointImpl(); - impl->ref(); -} - -SVGPoint::SVGPoint(const SVGPoint &other) : impl(0) -{ - (*this) = other; -} - -SVGPoint &SVGPoint::operator=(const SVGPoint &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPoint::SVGPoint(SVGPointImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPoint::~SVGPoint() -{ - if(impl) - impl->deref(); -} - -void SVGPoint::setX(float x) -{ - if(impl) - impl->setX(x); -} - -float SVGPoint::x() -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGPoint::setY(float y) -{ - if(impl) - impl->setY(y); -} - -float SVGPoint::y() -{ - if(!impl) return -1; - return impl->y(); -} - -SVGPoint SVGPoint::matrixTransform(SVGMatrix &matrix) -{ - if(!impl) return SVGPoint(0); - return SVGPoint(impl->matrixTransform(*matrix.handle())); -} diff --git a/ksvg/dom/SVGPoint.cpp b/ksvg/dom/SVGPoint.cpp new file mode 100644 index 00000000..c385c904 --- /dev/null +++ b/ksvg/dom/SVGPoint.cpp @@ -0,0 +1,95 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPoint.h" +#include "SVGMatrix.h" +#include "SVGPointImpl.h" + +using namespace KSVG; + +SVGPoint::SVGPoint() +{ + impl = new SVGPointImpl(); + impl->ref(); +} + +SVGPoint::SVGPoint(const SVGPoint &other) : impl(0) +{ + (*this) = other; +} + +SVGPoint &SVGPoint::operator=(const SVGPoint &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPoint::SVGPoint(SVGPointImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPoint::~SVGPoint() +{ + if(impl) + impl->deref(); +} + +void SVGPoint::setX(float x) +{ + if(impl) + impl->setX(x); +} + +float SVGPoint::x() +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGPoint::setY(float y) +{ + if(impl) + impl->setY(y); +} + +float SVGPoint::y() +{ + if(!impl) return -1; + return impl->y(); +} + +SVGPoint SVGPoint::matrixTransform(SVGMatrix &matrix) +{ + if(!impl) return SVGPoint(0); + return SVGPoint(impl->matrixTransform(*matrix.handle())); +} diff --git a/ksvg/dom/SVGPointList.cc b/ksvg/dom/SVGPointList.cc deleted file mode 100644 index 963b1c60..00000000 --- a/ksvg/dom/SVGPointList.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPoint.h" -#include "SVGPointImpl.h" -#include "SVGPointList.h" -#include "SVGPointListImpl.h" - -using namespace KSVG; - -SVGPointList::SVGPointList() -{ - impl = new SVGPointListImpl(); - impl->ref(); -} - -SVGPointList::SVGPointList(const SVGPointList &other) : impl(0) -{ - (*this) = other; -} - -SVGPointList &SVGPointList::operator=(const SVGPointList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPointList::SVGPointList(SVGPointListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPointList::~SVGPointList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGPointList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGPointList::clear() -{ - if(impl) - impl->clear(); -} - -SVGPoint *SVGPointList::initialize(SVGPoint *newItem) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->initialize(newItem->handle())); -} - -SVGPoint *SVGPointList::getItem(unsigned long index) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->getItem(index)); -} - -SVGPoint *SVGPointList::insertItemBefore(SVGPoint *newItem, unsigned long index) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->insertItemBefore(newItem->handle(), index)); -} - -SVGPoint *SVGPointList::replaceItem(SVGPoint *newItem, unsigned long index) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->replaceItem(newItem->handle(), index)); -} - -SVGPoint *SVGPointList::removeItem(unsigned long index) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->removeItem(index)); -} - -SVGPoint *SVGPointList::appendItem(SVGPoint *newItem) -{ - if(!impl) return new SVGPoint(0); - return new SVGPoint(impl->appendItem(newItem->handle())); -} diff --git a/ksvg/dom/SVGPointList.cpp b/ksvg/dom/SVGPointList.cpp new file mode 100644 index 00000000..963b1c60 --- /dev/null +++ b/ksvg/dom/SVGPointList.cpp @@ -0,0 +1,114 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPoint.h" +#include "SVGPointImpl.h" +#include "SVGPointList.h" +#include "SVGPointListImpl.h" + +using namespace KSVG; + +SVGPointList::SVGPointList() +{ + impl = new SVGPointListImpl(); + impl->ref(); +} + +SVGPointList::SVGPointList(const SVGPointList &other) : impl(0) +{ + (*this) = other; +} + +SVGPointList &SVGPointList::operator=(const SVGPointList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPointList::SVGPointList(SVGPointListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPointList::~SVGPointList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGPointList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGPointList::clear() +{ + if(impl) + impl->clear(); +} + +SVGPoint *SVGPointList::initialize(SVGPoint *newItem) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->initialize(newItem->handle())); +} + +SVGPoint *SVGPointList::getItem(unsigned long index) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->getItem(index)); +} + +SVGPoint *SVGPointList::insertItemBefore(SVGPoint *newItem, unsigned long index) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->insertItemBefore(newItem->handle(), index)); +} + +SVGPoint *SVGPointList::replaceItem(SVGPoint *newItem, unsigned long index) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->replaceItem(newItem->handle(), index)); +} + +SVGPoint *SVGPointList::removeItem(unsigned long index) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->removeItem(index)); +} + +SVGPoint *SVGPointList::appendItem(SVGPoint *newItem) +{ + if(!impl) return new SVGPoint(0); + return new SVGPoint(impl->appendItem(newItem->handle())); +} diff --git a/ksvg/dom/SVGPolygonElement.cc b/ksvg/dom/SVGPolygonElement.cc deleted file mode 100644 index 043c19df..00000000 --- a/ksvg/dom/SVGPolygonElement.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGPolygonElement.h" -#include "SVGPolygonElementImpl.h" -#include "SVGPointList.h" - -using namespace KSVG; - -SVGPolygonElement::SVGPolygonElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints() -{ - impl = 0; -} - -SVGPolygonElement::SVGPolygonElement(const SVGPolygonElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0) -{ - (*this) = other; -} - -SVGPolygonElement &SVGPolygonElement::operator=(const SVGPolygonElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - SVGAnimatedPoints::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - return *this; -} - -SVGPolygonElement::SVGPolygonElement(SVGPolygonElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPolygonElement::~SVGPolygonElement() -{ - if(impl) - impl->deref(); -} - -SVGPointList SVGPolygonElement::points() -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->points()); -} - -SVGPointList SVGPolygonElement::animatedPoints() -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->animatedPoints()); -} diff --git a/ksvg/dom/SVGPolygonElement.cpp b/ksvg/dom/SVGPolygonElement.cpp new file mode 100644 index 00000000..043c19df --- /dev/null +++ b/ksvg/dom/SVGPolygonElement.cpp @@ -0,0 +1,84 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGPolygonElement.h" +#include "SVGPolygonElementImpl.h" +#include "SVGPointList.h" + +using namespace KSVG; + +SVGPolygonElement::SVGPolygonElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints() +{ + impl = 0; +} + +SVGPolygonElement::SVGPolygonElement(const SVGPolygonElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0) +{ + (*this) = other; +} + +SVGPolygonElement &SVGPolygonElement::operator=(const SVGPolygonElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + SVGAnimatedPoints::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + return *this; +} + +SVGPolygonElement::SVGPolygonElement(SVGPolygonElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPolygonElement::~SVGPolygonElement() +{ + if(impl) + impl->deref(); +} + +SVGPointList SVGPolygonElement::points() +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->points()); +} + +SVGPointList SVGPolygonElement::animatedPoints() +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->animatedPoints()); +} diff --git a/ksvg/dom/SVGPolylineElement.cc b/ksvg/dom/SVGPolylineElement.cc deleted file mode 100644 index 789c5847..00000000 --- a/ksvg/dom/SVGPolylineElement.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGPolylineElement.h" -#include "SVGPolylineElementImpl.h" -#include "SVGPointList.h" - -using namespace KSVG; - -SVGPolylineElement::SVGPolylineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints() -{ - impl = 0; -} - -SVGPolylineElement::SVGPolylineElement(const SVGPolylineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0) -{ - (*this) = other; -} - -SVGPolylineElement &SVGPolylineElement::operator=(const SVGPolylineElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - SVGAnimatedPoints::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGPolylineElement::SVGPolylineElement(SVGPolylineElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGPolylineElement::~SVGPolylineElement() -{ - if(impl) - impl->deref(); -} - -SVGPointList SVGPolylineElement::points() -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->points()); -} - -SVGPointList SVGPolylineElement::animatedPoints() -{ - if(!impl) return SVGPointList(0); - return SVGPointList(impl->animatedPoints()); -} diff --git a/ksvg/dom/SVGPolylineElement.cpp b/ksvg/dom/SVGPolylineElement.cpp new file mode 100644 index 00000000..789c5847 --- /dev/null +++ b/ksvg/dom/SVGPolylineElement.cpp @@ -0,0 +1,85 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGPolylineElement.h" +#include "SVGPolylineElementImpl.h" +#include "SVGPointList.h" + +using namespace KSVG; + +SVGPolylineElement::SVGPolylineElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGAnimatedPoints() +{ + impl = 0; +} + +SVGPolylineElement::SVGPolylineElement(const SVGPolylineElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other), impl(0) +{ + (*this) = other; +} + +SVGPolylineElement &SVGPolylineElement::operator=(const SVGPolylineElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + SVGAnimatedPoints::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGPolylineElement::SVGPolylineElement(SVGPolylineElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGAnimatedPoints(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGPolylineElement::~SVGPolylineElement() +{ + if(impl) + impl->deref(); +} + +SVGPointList SVGPolylineElement::points() +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->points()); +} + +SVGPointList SVGPolylineElement::animatedPoints() +{ + if(!impl) return SVGPointList(0); + return SVGPointList(impl->animatedPoints()); +} diff --git a/ksvg/dom/SVGPreserveAspectRatio.cc b/ksvg/dom/SVGPreserveAspectRatio.cc deleted file mode 100644 index 51f6e32b..00000000 --- a/ksvg/dom/SVGPreserveAspectRatio.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGPreserveAspectRatio.h" -#include "SVGPreserveAspectRatioImpl.h" - -using namespace KSVG; - -SVGPreserveAspectRatio::SVGPreserveAspectRatio() -{ - impl = new SVGPreserveAspectRatioImpl(); -} - -SVGPreserveAspectRatio::SVGPreserveAspectRatio(const SVGPreserveAspectRatio &other) -{ - impl = other.impl; -} - -SVGPreserveAspectRatio &SVGPreserveAspectRatio::operator=(const SVGPreserveAspectRatio &other) -{ - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} - -SVGPreserveAspectRatio::SVGPreserveAspectRatio(SVGPreserveAspectRatioImpl *other) -{ - impl = other; -} - -SVGPreserveAspectRatio::~SVGPreserveAspectRatio() -{ - delete impl; -} - -void SVGPreserveAspectRatio::setAlign(unsigned short align) -{ - if(impl) - impl->setAlign(align); -} - -unsigned short SVGPreserveAspectRatio::align() const -{ - if(!impl) return SVG_PRESERVEASPECTRATIO_UNKNOWN; - return impl->align(); -} - -void SVGPreserveAspectRatio::setMeetOrSlice(unsigned short meetOrSlice) -{ - if(impl) - impl->setMeetOrSlice(meetOrSlice); -} - -unsigned short SVGPreserveAspectRatio::meetOrSlice() const -{ - if(!impl) return SVG_MEETORSLICE_UNKNOWN; - return impl->meetOrSlice(); -} diff --git a/ksvg/dom/SVGPreserveAspectRatio.cpp b/ksvg/dom/SVGPreserveAspectRatio.cpp new file mode 100644 index 00000000..51f6e32b --- /dev/null +++ b/ksvg/dom/SVGPreserveAspectRatio.cpp @@ -0,0 +1,79 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGPreserveAspectRatio.h" +#include "SVGPreserveAspectRatioImpl.h" + +using namespace KSVG; + +SVGPreserveAspectRatio::SVGPreserveAspectRatio() +{ + impl = new SVGPreserveAspectRatioImpl(); +} + +SVGPreserveAspectRatio::SVGPreserveAspectRatio(const SVGPreserveAspectRatio &other) +{ + impl = other.impl; +} + +SVGPreserveAspectRatio &SVGPreserveAspectRatio::operator=(const SVGPreserveAspectRatio &other) +{ + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} + +SVGPreserveAspectRatio::SVGPreserveAspectRatio(SVGPreserveAspectRatioImpl *other) +{ + impl = other; +} + +SVGPreserveAspectRatio::~SVGPreserveAspectRatio() +{ + delete impl; +} + +void SVGPreserveAspectRatio::setAlign(unsigned short align) +{ + if(impl) + impl->setAlign(align); +} + +unsigned short SVGPreserveAspectRatio::align() const +{ + if(!impl) return SVG_PRESERVEASPECTRATIO_UNKNOWN; + return impl->align(); +} + +void SVGPreserveAspectRatio::setMeetOrSlice(unsigned short meetOrSlice) +{ + if(impl) + impl->setMeetOrSlice(meetOrSlice); +} + +unsigned short SVGPreserveAspectRatio::meetOrSlice() const +{ + if(!impl) return SVG_MEETORSLICE_UNKNOWN; + return impl->meetOrSlice(); +} diff --git a/ksvg/dom/SVGRadialGradientElement.cc b/ksvg/dom/SVGRadialGradientElement.cc deleted file mode 100644 index 0e71d846..00000000 --- a/ksvg/dom/SVGRadialGradientElement.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGRadialGradientElement.h" -#include "SVGRadialGradientElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGRadialGradientElement::SVGRadialGradientElement() : SVGGradientElement() -{ - impl = 0; -} - -SVGRadialGradientElement::SVGRadialGradientElement(const SVGRadialGradientElement &other) : SVGGradientElement(other), impl(0) -{ - (*this) = other; -} - -SVGRadialGradientElement &SVGRadialGradientElement::operator =(const SVGRadialGradientElement &other) -{ - SVGGradientElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGRadialGradientElement::SVGRadialGradientElement(SVGRadialGradientElementImpl *other) : SVGGradientElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGRadialGradientElement::~SVGRadialGradientElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGRadialGradientElement::cx() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cx()); -} - -SVGAnimatedLength SVGRadialGradientElement::cy() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->cy()); -} - -SVGAnimatedLength SVGRadialGradientElement::r() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->r()); -} - -SVGAnimatedLength SVGRadialGradientElement::fx() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->fx()); -} - -SVGAnimatedLength SVGRadialGradientElement::fy() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->fy()); -} diff --git a/ksvg/dom/SVGRadialGradientElement.cpp b/ksvg/dom/SVGRadialGradientElement.cpp new file mode 100644 index 00000000..0e71d846 --- /dev/null +++ b/ksvg/dom/SVGRadialGradientElement.cpp @@ -0,0 +1,96 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGRadialGradientElement.h" +#include "SVGRadialGradientElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGRadialGradientElement::SVGRadialGradientElement() : SVGGradientElement() +{ + impl = 0; +} + +SVGRadialGradientElement::SVGRadialGradientElement(const SVGRadialGradientElement &other) : SVGGradientElement(other), impl(0) +{ + (*this) = other; +} + +SVGRadialGradientElement &SVGRadialGradientElement::operator =(const SVGRadialGradientElement &other) +{ + SVGGradientElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGRadialGradientElement::SVGRadialGradientElement(SVGRadialGradientElementImpl *other) : SVGGradientElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGRadialGradientElement::~SVGRadialGradientElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGRadialGradientElement::cx() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cx()); +} + +SVGAnimatedLength SVGRadialGradientElement::cy() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->cy()); +} + +SVGAnimatedLength SVGRadialGradientElement::r() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->r()); +} + +SVGAnimatedLength SVGRadialGradientElement::fx() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->fx()); +} + +SVGAnimatedLength SVGRadialGradientElement::fy() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->fy()); +} diff --git a/ksvg/dom/SVGRect.cc b/ksvg/dom/SVGRect.cc deleted file mode 100644 index 35a4d550..00000000 --- a/ksvg/dom/SVGRect.cc +++ /dev/null @@ -1,112 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGRect.h" -#include "SVGRectImpl.h" - -using namespace KSVG; - -SVGRect::SVGRect() -{ - impl = new SVGRectImpl(); - impl->ref(); -} - -SVGRect::SVGRect(const SVGRect &other) : impl(0) -{ - (*this) = other; -} - -SVGRect &SVGRect::operator=(const SVGRect &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGRect::SVGRect(SVGRectImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGRect::~SVGRect() -{ - if(impl) - impl->deref(); -} - -void SVGRect::setX(float x) -{ - if(impl) - impl->setX(x); -} - -float SVGRect::x() const -{ - if(!impl) return -1; - return impl->x(); -} - -void SVGRect::setY(float y) -{ - if(impl) - impl->setY(y); -} - -float SVGRect::y() const -{ - if(!impl) return -1; - return impl->y(); -} - -void SVGRect::setWidth(float width) -{ - if(impl) - impl->setWidth(width); -} - -float SVGRect::width() const -{ - if(!impl) return -1; - return impl->width(); -} - -void SVGRect::setHeight(float height) -{ - if(impl) - impl->setHeight(height); -} - -float SVGRect::height() const -{ - if(!impl) return -1; - return impl->height(); -} diff --git a/ksvg/dom/SVGRect.cpp b/ksvg/dom/SVGRect.cpp new file mode 100644 index 00000000..35a4d550 --- /dev/null +++ b/ksvg/dom/SVGRect.cpp @@ -0,0 +1,112 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGRect.h" +#include "SVGRectImpl.h" + +using namespace KSVG; + +SVGRect::SVGRect() +{ + impl = new SVGRectImpl(); + impl->ref(); +} + +SVGRect::SVGRect(const SVGRect &other) : impl(0) +{ + (*this) = other; +} + +SVGRect &SVGRect::operator=(const SVGRect &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGRect::SVGRect(SVGRectImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGRect::~SVGRect() +{ + if(impl) + impl->deref(); +} + +void SVGRect::setX(float x) +{ + if(impl) + impl->setX(x); +} + +float SVGRect::x() const +{ + if(!impl) return -1; + return impl->x(); +} + +void SVGRect::setY(float y) +{ + if(impl) + impl->setY(y); +} + +float SVGRect::y() const +{ + if(!impl) return -1; + return impl->y(); +} + +void SVGRect::setWidth(float width) +{ + if(impl) + impl->setWidth(width); +} + +float SVGRect::width() const +{ + if(!impl) return -1; + return impl->width(); +} + +void SVGRect::setHeight(float height) +{ + if(impl) + impl->setHeight(height); +} + +float SVGRect::height() const +{ + if(!impl) return -1; + return impl->height(); +} diff --git a/ksvg/dom/SVGRectElement.cc b/ksvg/dom/SVGRectElement.cc deleted file mode 100644 index 51af0272..00000000 --- a/ksvg/dom/SVGRectElement.cc +++ /dev/null @@ -1,107 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGRectElement.h" -#include "SVGRectElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGRectElement::SVGRectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGRectElement::SVGRectElement(const SVGRectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGRectElement &SVGRectElement::operator=(const SVGRectElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGRectElement::SVGRectElement(SVGRectElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGRectElement::~SVGRectElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGRectElement::x() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGRectElement::y() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGRectElement::width() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGRectElement::height() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} - -SVGAnimatedLength SVGRectElement::rx() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->rx()); -} - -SVGAnimatedLength SVGRectElement::ry() -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->ry()); -} diff --git a/ksvg/dom/SVGRectElement.cpp b/ksvg/dom/SVGRectElement.cpp new file mode 100644 index 00000000..51af0272 --- /dev/null +++ b/ksvg/dom/SVGRectElement.cpp @@ -0,0 +1,107 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGRectElement.h" +#include "SVGRectElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGRectElement::SVGRectElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGRectElement::SVGRectElement(const SVGRectElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGRectElement &SVGRectElement::operator=(const SVGRectElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGRectElement::SVGRectElement(SVGRectElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGRectElement::~SVGRectElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGRectElement::x() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGRectElement::y() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGRectElement::width() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGRectElement::height() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} + +SVGAnimatedLength SVGRectElement::rx() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->rx()); +} + +SVGAnimatedLength SVGRectElement::ry() +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->ry()); +} diff --git a/ksvg/dom/SVGSVGElement.cc b/ksvg/dom/SVGSVGElement.cc deleted file mode 100644 index 5f19c508..00000000 --- a/ksvg/dom/SVGSVGElement.cc +++ /dev/null @@ -1,335 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGRect.h" -#include "SVGSVGElement.h" -#include "SVGSVGElementImpl.h" -#include "SVGAnimatedLength.h" -#include "SVGPoint.h" -#include "SVGNumber.h" -#include "SVGAngle.h" -#include "SVGMatrix.h" -#include "SVGLength.h" -#include "SVGRect.h" -#include "SVGTransform.h" -#include "SVGViewSpec.h" -#include - -using namespace KSVG; - -SVGSVGElement::SVGSVGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGLocatable(), SVGFitToViewBox(), SVGZoomAndPan() -{ - impl = 0; -} - -SVGSVGElement::SVGSVGElement(const SVGSVGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0) -{ - (*this) = other; -} - -SVGSVGElement &SVGSVGElement::operator=(const SVGSVGElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGLocatable::operator=(other); - SVGFitToViewBox::operator=(other); - SVGZoomAndPan::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGSVGElement::SVGSVGElement(SVGSVGElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGSVGElement::~SVGSVGElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGSVGElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGSafeCreator::create(impl->x()); -} - -SVGAnimatedLength SVGSVGElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGSafeCreator::create(impl->y()); -} - -SVGAnimatedLength SVGSVGElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGSafeCreator::create(impl->width()); -} - -SVGAnimatedLength SVGSVGElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGSafeCreator::create(impl->height()); -} - -void SVGSVGElement::setContentScriptType(const DOM::DOMString &contentScriptType) -{ - if(impl) - setContentScriptType(contentScriptType); -} - -DOM::DOMString SVGSVGElement::contentScriptType() const -{ - if(!impl) return DOM::DOMString(); - return impl->contentScriptType(); -} - -void SVGSVGElement::setContentStyleType(const DOM::DOMString &contentStyleType) -{ - if(impl) - setContentStyleType(contentStyleType); -} - -DOM::DOMString SVGSVGElement::contentStyleType() const -{ - if(!impl) return DOM::DOMString(); - return impl->contentStyleType(); -} - -SVGRect SVGSVGElement::viewport() const -{ - if(!impl) return SVGRect(0); - return SVGRect(impl->viewport()); -} - -float SVGSVGElement::pixelUnitToMillimeterX() const -{ - if(!impl) return -1; - return impl->pixelUnitToMillimeterX(); -} - -float SVGSVGElement::pixelUnitToMillimeterY() const -{ - if(!impl) return -1; - return impl->pixelUnitToMillimeterY(); -} - -float SVGSVGElement::screenPixelToMillimeterX() const -{ - if(!impl) return -1; - return impl->screenPixelToMillimeterX(); -} - -float SVGSVGElement::screenPixelToMillimeterY() const -{ - if(!impl) return -1; - return impl->screenPixelToMillimeterY(); -} - -void SVGSVGElement::setUseCurrentView(bool useCurrentView) -{ - if(impl) - impl->setUseCurrentView(useCurrentView); -} - -bool SVGSVGElement::useCurrentView() const -{ - if(!impl) return false; - return impl->useCurrentView(); -} - -SVGViewSpec SVGSVGElement::currentView() const -{ - if(!impl) return SVGViewSpec(0); - return impl->currentView(); -} - -void SVGSVGElement::setCurrentScale(float currentScale) -{ - if(impl) - impl->setCurrentScale(currentScale); -} - -float SVGSVGElement::currentScale() const -{ - if(!impl) return -1; - return impl->currentScale(); -} - -SVGPoint SVGSVGElement::currentTranslate() const -{ - if(!impl) return SVGPoint(0); - return SVGSafeCreator::create(impl->currentTranslate()); -} - -unsigned long SVGSVGElement::suspendRedraw(unsigned long time) -{ - if(!impl) return 0; - return impl->suspendRedraw(time); -} - -void SVGSVGElement::unsuspendRedraw(unsigned long id) -{ - if(impl) - impl->unsuspendRedraw(id); -} - -void SVGSVGElement::unsuspendRedrawAll() -{ - if(impl) - impl->unsuspendRedrawAll(); -} - -void SVGSVGElement::forceRedraw() -{ - if(impl) - impl->forceRedraw(); -} - -void SVGSVGElement::pauseAnimations() -{ - if(impl) - impl->pauseAnimations(); -} - -void SVGSVGElement::unpauseAnimations() -{ - if(impl) - impl->unpauseAnimations(); -} - -bool SVGSVGElement::animationsPaused() -{ - if(!impl) return false; - return impl->animationsPaused(); -} - -float SVGSVGElement::getCurrentTime() -{ - if(!impl) return -1; - return impl->getCurrentTime(); -} - -void SVGSVGElement::setCurrentTime(float time) -{ - if(impl) - impl->setCurrentTime(time); -} - -DOM::NodeList SVGSVGElement::getIntersectionList(const SVGRect &rect,const SVGElement &referenceElement) -{ - if(!impl) return DOM::NodeList(); - return impl->getIntersectionList(rect.handle(), referenceElement.handle()); -} - -DOM::NodeList SVGSVGElement::getEnclosureList(const SVGRect &rect,const SVGElement &referenceElement) -{ - if(!impl) return DOM::NodeList(); - return impl->getEnclosureList(rect.handle(), referenceElement.handle()); -} - -bool SVGSVGElement::checkIntersection(const SVGElement &element,const SVGRect &rect) -{ - if(!impl) return false; - return impl->checkIntersection(element.handle(), rect.handle()); -} - -bool SVGSVGElement::checkEnclosure(const SVGElement &element,const SVGRect &rect) -{ - if(!impl) return false; - return impl->checkEnclosure(element.handle(), rect.handle()); -} - -void SVGSVGElement::deSelectAll() -{ - if(impl) - impl->deSelectAll(); -} - -SVGNumber SVGSVGElement::createSVGNumber() -{ - if(!impl) return SVGNumber(0); - return SVGSafeCreator::create(impl->createSVGNumber()); -} - -SVGLength SVGSVGElement::createSVGLength() -{ - if(!impl) return SVGLength(0); - return SVGSafeCreator::create(impl->createSVGLength()); -} - -SVGAngle SVGSVGElement::createSVGAngle() -{ - if(!impl) return SVGAngle(0); - return SVGSafeCreator::create(impl->createSVGAngle()); -} - -SVGPoint SVGSVGElement::createSVGPoint() -{ - if(!impl) return SVGPoint(0); - return SVGSafeCreator::create(impl->createSVGPoint()); -} - -SVGMatrix SVGSVGElement::createSVGMatrix() -{ - if(!impl) return SVGMatrix(0); - return SVGSafeCreator::create(impl->createSVGMatrix()); -} - -SVGRect SVGSVGElement::createSVGRect() -{ - if(!impl) return SVGRect(0); - return SVGSafeCreator::create(impl->createSVGRect()); -} - -SVGTransform SVGSVGElement::createSVGTransform() -{ - if(!impl) return SVGTransform(0); - return SVGSafeCreator::create(impl->createSVGTransform()); -} - -SVGTransform SVGSVGElement::createSVGTransformFromMatrix(const SVGMatrix &matrix) -{ - if(!impl) return SVGTransform(0); - return SVGSafeCreator::create(impl->createSVGTransformFromMatrix(matrix.handle())); -} - -SVGElement SVGSVGElement::getElementById(const DOM::DOMString &elementId) -{ - if(!impl) return SVGElement(0); - return SVGSafeCreator::create(impl->getElementById(elementId)); -} diff --git a/ksvg/dom/SVGSVGElement.cpp b/ksvg/dom/SVGSVGElement.cpp new file mode 100644 index 00000000..5f19c508 --- /dev/null +++ b/ksvg/dom/SVGSVGElement.cpp @@ -0,0 +1,335 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGRect.h" +#include "SVGSVGElement.h" +#include "SVGSVGElementImpl.h" +#include "SVGAnimatedLength.h" +#include "SVGPoint.h" +#include "SVGNumber.h" +#include "SVGAngle.h" +#include "SVGMatrix.h" +#include "SVGLength.h" +#include "SVGRect.h" +#include "SVGTransform.h" +#include "SVGViewSpec.h" +#include + +using namespace KSVG; + +SVGSVGElement::SVGSVGElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGLocatable(), SVGFitToViewBox(), SVGZoomAndPan() +{ + impl = 0; +} + +SVGSVGElement::SVGSVGElement(const SVGSVGElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0) +{ + (*this) = other; +} + +SVGSVGElement &SVGSVGElement::operator=(const SVGSVGElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGLocatable::operator=(other); + SVGFitToViewBox::operator=(other); + SVGZoomAndPan::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGSVGElement::SVGSVGElement(SVGSVGElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGLocatable(other), SVGFitToViewBox(other), SVGZoomAndPan(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGSVGElement::~SVGSVGElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGSVGElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGSafeCreator::create(impl->x()); +} + +SVGAnimatedLength SVGSVGElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGSafeCreator::create(impl->y()); +} + +SVGAnimatedLength SVGSVGElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGSafeCreator::create(impl->width()); +} + +SVGAnimatedLength SVGSVGElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGSafeCreator::create(impl->height()); +} + +void SVGSVGElement::setContentScriptType(const DOM::DOMString &contentScriptType) +{ + if(impl) + setContentScriptType(contentScriptType); +} + +DOM::DOMString SVGSVGElement::contentScriptType() const +{ + if(!impl) return DOM::DOMString(); + return impl->contentScriptType(); +} + +void SVGSVGElement::setContentStyleType(const DOM::DOMString &contentStyleType) +{ + if(impl) + setContentStyleType(contentStyleType); +} + +DOM::DOMString SVGSVGElement::contentStyleType() const +{ + if(!impl) return DOM::DOMString(); + return impl->contentStyleType(); +} + +SVGRect SVGSVGElement::viewport() const +{ + if(!impl) return SVGRect(0); + return SVGRect(impl->viewport()); +} + +float SVGSVGElement::pixelUnitToMillimeterX() const +{ + if(!impl) return -1; + return impl->pixelUnitToMillimeterX(); +} + +float SVGSVGElement::pixelUnitToMillimeterY() const +{ + if(!impl) return -1; + return impl->pixelUnitToMillimeterY(); +} + +float SVGSVGElement::screenPixelToMillimeterX() const +{ + if(!impl) return -1; + return impl->screenPixelToMillimeterX(); +} + +float SVGSVGElement::screenPixelToMillimeterY() const +{ + if(!impl) return -1; + return impl->screenPixelToMillimeterY(); +} + +void SVGSVGElement::setUseCurrentView(bool useCurrentView) +{ + if(impl) + impl->setUseCurrentView(useCurrentView); +} + +bool SVGSVGElement::useCurrentView() const +{ + if(!impl) return false; + return impl->useCurrentView(); +} + +SVGViewSpec SVGSVGElement::currentView() const +{ + if(!impl) return SVGViewSpec(0); + return impl->currentView(); +} + +void SVGSVGElement::setCurrentScale(float currentScale) +{ + if(impl) + impl->setCurrentScale(currentScale); +} + +float SVGSVGElement::currentScale() const +{ + if(!impl) return -1; + return impl->currentScale(); +} + +SVGPoint SVGSVGElement::currentTranslate() const +{ + if(!impl) return SVGPoint(0); + return SVGSafeCreator::create(impl->currentTranslate()); +} + +unsigned long SVGSVGElement::suspendRedraw(unsigned long time) +{ + if(!impl) return 0; + return impl->suspendRedraw(time); +} + +void SVGSVGElement::unsuspendRedraw(unsigned long id) +{ + if(impl) + impl->unsuspendRedraw(id); +} + +void SVGSVGElement::unsuspendRedrawAll() +{ + if(impl) + impl->unsuspendRedrawAll(); +} + +void SVGSVGElement::forceRedraw() +{ + if(impl) + impl->forceRedraw(); +} + +void SVGSVGElement::pauseAnimations() +{ + if(impl) + impl->pauseAnimations(); +} + +void SVGSVGElement::unpauseAnimations() +{ + if(impl) + impl->unpauseAnimations(); +} + +bool SVGSVGElement::animationsPaused() +{ + if(!impl) return false; + return impl->animationsPaused(); +} + +float SVGSVGElement::getCurrentTime() +{ + if(!impl) return -1; + return impl->getCurrentTime(); +} + +void SVGSVGElement::setCurrentTime(float time) +{ + if(impl) + impl->setCurrentTime(time); +} + +DOM::NodeList SVGSVGElement::getIntersectionList(const SVGRect &rect,const SVGElement &referenceElement) +{ + if(!impl) return DOM::NodeList(); + return impl->getIntersectionList(rect.handle(), referenceElement.handle()); +} + +DOM::NodeList SVGSVGElement::getEnclosureList(const SVGRect &rect,const SVGElement &referenceElement) +{ + if(!impl) return DOM::NodeList(); + return impl->getEnclosureList(rect.handle(), referenceElement.handle()); +} + +bool SVGSVGElement::checkIntersection(const SVGElement &element,const SVGRect &rect) +{ + if(!impl) return false; + return impl->checkIntersection(element.handle(), rect.handle()); +} + +bool SVGSVGElement::checkEnclosure(const SVGElement &element,const SVGRect &rect) +{ + if(!impl) return false; + return impl->checkEnclosure(element.handle(), rect.handle()); +} + +void SVGSVGElement::deSelectAll() +{ + if(impl) + impl->deSelectAll(); +} + +SVGNumber SVGSVGElement::createSVGNumber() +{ + if(!impl) return SVGNumber(0); + return SVGSafeCreator::create(impl->createSVGNumber()); +} + +SVGLength SVGSVGElement::createSVGLength() +{ + if(!impl) return SVGLength(0); + return SVGSafeCreator::create(impl->createSVGLength()); +} + +SVGAngle SVGSVGElement::createSVGAngle() +{ + if(!impl) return SVGAngle(0); + return SVGSafeCreator::create(impl->createSVGAngle()); +} + +SVGPoint SVGSVGElement::createSVGPoint() +{ + if(!impl) return SVGPoint(0); + return SVGSafeCreator::create(impl->createSVGPoint()); +} + +SVGMatrix SVGSVGElement::createSVGMatrix() +{ + if(!impl) return SVGMatrix(0); + return SVGSafeCreator::create(impl->createSVGMatrix()); +} + +SVGRect SVGSVGElement::createSVGRect() +{ + if(!impl) return SVGRect(0); + return SVGSafeCreator::create(impl->createSVGRect()); +} + +SVGTransform SVGSVGElement::createSVGTransform() +{ + if(!impl) return SVGTransform(0); + return SVGSafeCreator::create(impl->createSVGTransform()); +} + +SVGTransform SVGSVGElement::createSVGTransformFromMatrix(const SVGMatrix &matrix) +{ + if(!impl) return SVGTransform(0); + return SVGSafeCreator::create(impl->createSVGTransformFromMatrix(matrix.handle())); +} + +SVGElement SVGSVGElement::getElementById(const DOM::DOMString &elementId) +{ + if(!impl) return SVGElement(0); + return SVGSafeCreator::create(impl->getElementById(elementId)); +} diff --git a/ksvg/dom/SVGScriptElement.cc b/ksvg/dom/SVGScriptElement.cc deleted file mode 100644 index 48974905..00000000 --- a/ksvg/dom/SVGScriptElement.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGScriptElement.h" -#include "SVGScriptElementImpl.h" - -using namespace KSVG; - -SVGScriptElement::SVGScriptElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired() -{ - impl = 0; -} - -SVGScriptElement::SVGScriptElement(const SVGScriptElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0) -{ - (*this) = other; -} - -SVGScriptElement &SVGScriptElement::operator =(const SVGScriptElement &other) -{ - SVGElement::operator=(other); - SVGURIReference::operator=(other); - SVGExternalResourcesRequired::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGScriptElement::SVGScriptElement(SVGScriptElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGScriptElement::~SVGScriptElement() -{ - if(impl) - impl->deref(); -} - -void SVGScriptElement::setType(const DOM::DOMString &type) -{ - if(impl) - impl->setType(type); -} - -DOM::DOMString SVGScriptElement::type() const -{ - if(!impl) return DOM::DOMString(); - return impl->type(); -} diff --git a/ksvg/dom/SVGScriptElement.cpp b/ksvg/dom/SVGScriptElement.cpp new file mode 100644 index 00000000..48974905 --- /dev/null +++ b/ksvg/dom/SVGScriptElement.cpp @@ -0,0 +1,79 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGScriptElement.h" +#include "SVGScriptElementImpl.h" + +using namespace KSVG; + +SVGScriptElement::SVGScriptElement() : SVGElement(), SVGURIReference(), SVGExternalResourcesRequired() +{ + impl = 0; +} + +SVGScriptElement::SVGScriptElement(const SVGScriptElement &other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other), impl(0) +{ + (*this) = other; +} + +SVGScriptElement &SVGScriptElement::operator =(const SVGScriptElement &other) +{ + SVGElement::operator=(other); + SVGURIReference::operator=(other); + SVGExternalResourcesRequired::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGScriptElement::SVGScriptElement(SVGScriptElementImpl *other) : SVGElement(other), SVGURIReference(other), SVGExternalResourcesRequired(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGScriptElement::~SVGScriptElement() +{ + if(impl) + impl->deref(); +} + +void SVGScriptElement::setType(const DOM::DOMString &type) +{ + if(impl) + impl->setType(type); +} + +DOM::DOMString SVGScriptElement::type() const +{ + if(!impl) return DOM::DOMString(); + return impl->type(); +} diff --git a/ksvg/dom/SVGSetElement.cc b/ksvg/dom/SVGSetElement.cc deleted file mode 100644 index 9dff9064..00000000 --- a/ksvg/dom/SVGSetElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGSetElement.h" -#include "SVGSetElementImpl.h" - -using namespace KSVG; - -SVGSetElement::SVGSetElement() : SVGAnimationElement() -{ - impl = 0; -} - -SVGSetElement::SVGSetElement(const SVGSetElement &other) : SVGAnimationElement(other), impl(0) -{ - (*this) = other; -} - -SVGSetElement &SVGSetElement::operator =(const SVGSetElement &other) -{ - SVGAnimationElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGSetElement::SVGSetElement(SVGSetElementImpl *other) : SVGAnimationElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGSetElement::~SVGSetElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGSetElement.cpp b/ksvg/dom/SVGSetElement.cpp new file mode 100644 index 00000000..9dff9064 --- /dev/null +++ b/ksvg/dom/SVGSetElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGSetElement.h" +#include "SVGSetElementImpl.h" + +using namespace KSVG; + +SVGSetElement::SVGSetElement() : SVGAnimationElement() +{ + impl = 0; +} + +SVGSetElement::SVGSetElement(const SVGSetElement &other) : SVGAnimationElement(other), impl(0) +{ + (*this) = other; +} + +SVGSetElement &SVGSetElement::operator =(const SVGSetElement &other) +{ + SVGAnimationElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGSetElement::SVGSetElement(SVGSetElementImpl *other) : SVGAnimationElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGSetElement::~SVGSetElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGStopElement.cc b/ksvg/dom/SVGStopElement.cc deleted file mode 100644 index 1288a49e..00000000 --- a/ksvg/dom/SVGStopElement.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGStopElement.h" -#include "SVGStopElementImpl.h" -#include "SVGAnimatedNumber.h" - -using namespace KSVG; - -SVGStopElement::SVGStopElement() : SVGElement(), SVGStylable() -{ - impl = 0; -} - -SVGStopElement::SVGStopElement(const SVGStopElement &other) : SVGElement(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGStopElement &SVGStopElement::operator =(const SVGStopElement &other) -{ - SVGElement::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGStopElement::SVGStopElement(SVGStopElementImpl *other) : SVGElement(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGStopElement::~SVGStopElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedNumber SVGStopElement::offset() const -{ - if(!impl) return SVGAnimatedNumber(0); - return SVGAnimatedNumber(impl->offset()); -} diff --git a/ksvg/dom/SVGStopElement.cpp b/ksvg/dom/SVGStopElement.cpp new file mode 100644 index 00000000..1288a49e --- /dev/null +++ b/ksvg/dom/SVGStopElement.cpp @@ -0,0 +1,73 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGStopElement.h" +#include "SVGStopElementImpl.h" +#include "SVGAnimatedNumber.h" + +using namespace KSVG; + +SVGStopElement::SVGStopElement() : SVGElement(), SVGStylable() +{ + impl = 0; +} + +SVGStopElement::SVGStopElement(const SVGStopElement &other) : SVGElement(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGStopElement &SVGStopElement::operator =(const SVGStopElement &other) +{ + SVGElement::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGStopElement::SVGStopElement(SVGStopElementImpl *other) : SVGElement(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGStopElement::~SVGStopElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedNumber SVGStopElement::offset() const +{ + if(!impl) return SVGAnimatedNumber(0); + return SVGAnimatedNumber(impl->offset()); +} diff --git a/ksvg/dom/SVGStringList.cc b/ksvg/dom/SVGStringList.cc deleted file mode 100644 index de9527f3..00000000 --- a/ksvg/dom/SVGStringList.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGStringList.h" -#include "SVGStringListImpl.h" - -using namespace KSVG; - -SVGStringList::SVGStringList() -{ - impl = new SVGStringListImpl(); - impl->ref(); -} - -SVGStringList::SVGStringList(const SVGStringList &other) : impl(0) -{ - (*this) = other; -} - -SVGStringList &SVGStringList::operator=(const SVGStringList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGStringList::SVGStringList(SVGStringListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGStringList::~SVGStringList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGStringList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGStringList::clear() -{ - if(impl) - impl->clear(); -} - -DOM::DOMString *SVGStringList::initialize(DOM::DOMString *newItem) -{ - if(!impl) return new DOM::DOMString(); - return impl->initialize(new SharedString(newItem)); -} - -DOM::DOMString *SVGStringList::getItem(unsigned long index) -{ - if(!impl) return new DOM::DOMString(); - return impl->getItem(index); -} - -DOM::DOMString *SVGStringList::insertItemBefore(DOM::DOMString *newItem, unsigned long index) -{ - if(!impl) return new DOM::DOMString(); - return impl->insertItemBefore(new SharedString(newItem), index); -} - -DOM::DOMString *SVGStringList::replaceItem(DOM::DOMString *newItem, unsigned long index) -{ - if(!impl) return new DOM::DOMString(); - return impl->replaceItem(new SharedString(newItem), index); -} - -DOM::DOMString *SVGStringList::removeItem(unsigned long index) -{ - if(!impl) return new DOM::DOMString(); - return impl->removeItem(index); -} - -DOM::DOMString *SVGStringList::appendItem(DOM::DOMString *newItem) -{ - if(!impl) return new DOM::DOMString(); - return impl->appendItem(new SharedString(newItem)); -} diff --git a/ksvg/dom/SVGStringList.cpp b/ksvg/dom/SVGStringList.cpp new file mode 100644 index 00000000..de9527f3 --- /dev/null +++ b/ksvg/dom/SVGStringList.cpp @@ -0,0 +1,113 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGStringList.h" +#include "SVGStringListImpl.h" + +using namespace KSVG; + +SVGStringList::SVGStringList() +{ + impl = new SVGStringListImpl(); + impl->ref(); +} + +SVGStringList::SVGStringList(const SVGStringList &other) : impl(0) +{ + (*this) = other; +} + +SVGStringList &SVGStringList::operator=(const SVGStringList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGStringList::SVGStringList(SVGStringListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGStringList::~SVGStringList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGStringList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGStringList::clear() +{ + if(impl) + impl->clear(); +} + +DOM::DOMString *SVGStringList::initialize(DOM::DOMString *newItem) +{ + if(!impl) return new DOM::DOMString(); + return impl->initialize(new SharedString(newItem)); +} + +DOM::DOMString *SVGStringList::getItem(unsigned long index) +{ + if(!impl) return new DOM::DOMString(); + return impl->getItem(index); +} + +DOM::DOMString *SVGStringList::insertItemBefore(DOM::DOMString *newItem, unsigned long index) +{ + if(!impl) return new DOM::DOMString(); + return impl->insertItemBefore(new SharedString(newItem), index); +} + +DOM::DOMString *SVGStringList::replaceItem(DOM::DOMString *newItem, unsigned long index) +{ + if(!impl) return new DOM::DOMString(); + return impl->replaceItem(new SharedString(newItem), index); +} + +DOM::DOMString *SVGStringList::removeItem(unsigned long index) +{ + if(!impl) return new DOM::DOMString(); + return impl->removeItem(index); +} + +DOM::DOMString *SVGStringList::appendItem(DOM::DOMString *newItem) +{ + if(!impl) return new DOM::DOMString(); + return impl->appendItem(new SharedString(newItem)); +} diff --git a/ksvg/dom/SVGStylable.cc b/ksvg/dom/SVGStylable.cc deleted file mode 100644 index 9092c981..00000000 --- a/ksvg/dom/SVGStylable.cc +++ /dev/null @@ -1,74 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGStylable.h" -#include "SVGStylableImpl.h" -#include - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGStylable::SVGStylable() -{ - impl = 0; -} - -SVGStylable::SVGStylable(const SVGStylable &other) : impl(0) -{ - (*this) = other; -} - -SVGStylable &SVGStylable::operator=(const SVGStylable &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGStylable::SVGStylable(SVGStylableImpl *other) -{ - impl = other; -} - -SVGStylable::~SVGStylable() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -/* -SVGAnimatedString SVGStylable::className() const -{ - return impl->className(); -} - -css::CSSStyleDeclaration SVGStylable::style() const -{ - return impl->style(); -} - -css::CSSValue SVGStylable::getPresentationAttribute(const DOMString &name) -{ - return impl->getPresentationAttribute(name); -} -*/ diff --git a/ksvg/dom/SVGStylable.cpp b/ksvg/dom/SVGStylable.cpp new file mode 100644 index 00000000..9092c981 --- /dev/null +++ b/ksvg/dom/SVGStylable.cpp @@ -0,0 +1,74 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGStylable.h" +#include "SVGStylableImpl.h" +#include + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGStylable::SVGStylable() +{ + impl = 0; +} + +SVGStylable::SVGStylable(const SVGStylable &other) : impl(0) +{ + (*this) = other; +} + +SVGStylable &SVGStylable::operator=(const SVGStylable &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGStylable::SVGStylable(SVGStylableImpl *other) +{ + impl = other; +} + +SVGStylable::~SVGStylable() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +/* +SVGAnimatedString SVGStylable::className() const +{ + return impl->className(); +} + +css::CSSStyleDeclaration SVGStylable::style() const +{ + return impl->style(); +} + +css::CSSValue SVGStylable::getPresentationAttribute(const DOMString &name) +{ + return impl->getPresentationAttribute(name); +} +*/ diff --git a/ksvg/dom/SVGStyleElement.cc b/ksvg/dom/SVGStyleElement.cc deleted file mode 100644 index 7e734336..00000000 --- a/ksvg/dom/SVGStyleElement.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGStyleElement.h" -#include "SVGStyleElementImpl.h" - -using namespace KSVG; - -SVGStyleElement::SVGStyleElement() : SVGElement() -{ - impl = 0; -} - -SVGStyleElement::SVGStyleElement(const SVGStyleElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGStyleElement &SVGStyleElement::operator =(const SVGStyleElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGStyleElement::SVGStyleElement(SVGStyleElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGStyleElement::~SVGStyleElement() -{ - if(impl) - impl->deref(); -} - -void SVGStyleElement::setXmlspace(const DOM::DOMString &xmlspace) -{ - if(impl) - impl->setXmlspace(xmlspace); -} - -DOM::DOMString SVGStyleElement::xmlspace() const -{ - if(!impl) return DOM::DOMString(); - return impl->xmlspace(); -} - -void SVGStyleElement::setType(const DOM::DOMString &type) -{ - if(impl) - impl->setType(type); -} - -DOM::DOMString SVGStyleElement::type() const -{ - if(!impl) return DOM::DOMString(); - return impl->type(); -} - -void SVGStyleElement::setMedia(const DOM::DOMString &media) -{ - if(impl) - impl->setMedia(media); -} - -DOM::DOMString SVGStyleElement::media() const -{ - if(!impl) return DOM::DOMString(); - return impl->media(); -} - -void SVGStyleElement::setTitle(const DOM::DOMString &title) -{ - if(impl) - impl->setTitle(title); -} - -DOM::DOMString SVGStyleElement::title() const -{ - if(!impl) return DOM::DOMString(); - return impl->title(); -} diff --git a/ksvg/dom/SVGStyleElement.cpp b/ksvg/dom/SVGStyleElement.cpp new file mode 100644 index 00000000..7e734336 --- /dev/null +++ b/ksvg/dom/SVGStyleElement.cpp @@ -0,0 +1,113 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGStyleElement.h" +#include "SVGStyleElementImpl.h" + +using namespace KSVG; + +SVGStyleElement::SVGStyleElement() : SVGElement() +{ + impl = 0; +} + +SVGStyleElement::SVGStyleElement(const SVGStyleElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGStyleElement &SVGStyleElement::operator =(const SVGStyleElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGStyleElement::SVGStyleElement(SVGStyleElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGStyleElement::~SVGStyleElement() +{ + if(impl) + impl->deref(); +} + +void SVGStyleElement::setXmlspace(const DOM::DOMString &xmlspace) +{ + if(impl) + impl->setXmlspace(xmlspace); +} + +DOM::DOMString SVGStyleElement::xmlspace() const +{ + if(!impl) return DOM::DOMString(); + return impl->xmlspace(); +} + +void SVGStyleElement::setType(const DOM::DOMString &type) +{ + if(impl) + impl->setType(type); +} + +DOM::DOMString SVGStyleElement::type() const +{ + if(!impl) return DOM::DOMString(); + return impl->type(); +} + +void SVGStyleElement::setMedia(const DOM::DOMString &media) +{ + if(impl) + impl->setMedia(media); +} + +DOM::DOMString SVGStyleElement::media() const +{ + if(!impl) return DOM::DOMString(); + return impl->media(); +} + +void SVGStyleElement::setTitle(const DOM::DOMString &title) +{ + if(impl) + impl->setTitle(title); +} + +DOM::DOMString SVGStyleElement::title() const +{ + if(!impl) return DOM::DOMString(); + return impl->title(); +} diff --git a/ksvg/dom/SVGSwitchElement.cc b/ksvg/dom/SVGSwitchElement.cc deleted file mode 100644 index ecaa2a1c..00000000 --- a/ksvg/dom/SVGSwitchElement.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGSwitchElement.h" -#include "SVGSwitchElementImpl.h" - -using namespace KSVG; - -SVGSwitchElement::SVGSwitchElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() -{ - impl = 0; -} - -SVGSwitchElement::SVGSwitchElement(const SVGSwitchElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) -{ - (*this) = other; -} - -SVGSwitchElement &SVGSwitchElement::operator =(const SVGSwitchElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGSwitchElement::SVGSwitchElement(SVGSwitchElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGSwitchElement::~SVGSwitchElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGSwitchElement.cpp b/ksvg/dom/SVGSwitchElement.cpp new file mode 100644 index 00000000..ecaa2a1c --- /dev/null +++ b/ksvg/dom/SVGSwitchElement.cpp @@ -0,0 +1,70 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGSwitchElement.h" +#include "SVGSwitchElementImpl.h" + +using namespace KSVG; + +SVGSwitchElement::SVGSwitchElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable() +{ + impl = 0; +} + +SVGSwitchElement::SVGSwitchElement(const SVGSwitchElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), impl(0) +{ + (*this) = other; +} + +SVGSwitchElement &SVGSwitchElement::operator =(const SVGSwitchElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGSwitchElement::SVGSwitchElement(SVGSwitchElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGSwitchElement::~SVGSwitchElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGSymbolElement.cc b/ksvg/dom/SVGSymbolElement.cc deleted file mode 100644 index 9b8d89f5..00000000 --- a/ksvg/dom/SVGSymbolElement.cc +++ /dev/null @@ -1,69 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGSymbolElement.h" -#include "SVGSymbolElementImpl.h" - -using namespace KSVG; - -SVGSymbolElement::SVGSymbolElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox() -{ - impl = 0; -} - -SVGSymbolElement::SVGSymbolElement(const SVGSymbolElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0) -{ - (*this) = other; -} - -SVGSymbolElement &SVGSymbolElement::operator =(const SVGSymbolElement &other) -{ - SVGElement::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGFitToViewBox::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGSymbolElement::SVGSymbolElement(SVGSymbolElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGSymbolElement::~SVGSymbolElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGSymbolElement.cpp b/ksvg/dom/SVGSymbolElement.cpp new file mode 100644 index 00000000..9b8d89f5 --- /dev/null +++ b/ksvg/dom/SVGSymbolElement.cpp @@ -0,0 +1,69 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGSymbolElement.h" +#include "SVGSymbolElementImpl.h" + +using namespace KSVG; + +SVGSymbolElement::SVGSymbolElement() : SVGElement(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGFitToViewBox() +{ + impl = 0; +} + +SVGSymbolElement::SVGSymbolElement(const SVGSymbolElement &other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other), impl(0) +{ + (*this) = other; +} + +SVGSymbolElement &SVGSymbolElement::operator =(const SVGSymbolElement &other) +{ + SVGElement::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGFitToViewBox::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGSymbolElement::SVGSymbolElement(SVGSymbolElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGFitToViewBox(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGSymbolElement::~SVGSymbolElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGTRefElement.cc b/ksvg/dom/SVGTRefElement.cc deleted file mode 100644 index f987e3aa..00000000 --- a/ksvg/dom/SVGTRefElement.cc +++ /dev/null @@ -1,66 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTRefElement.h" -#include "SVGTRefElementImpl.h" - -using namespace KSVG; - -SVGTRefElement::SVGTRefElement() : SVGTextPositioningElement(), SVGURIReference() -{ - impl = 0; -} - -SVGTRefElement::SVGTRefElement(const SVGTRefElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGTRefElement &SVGTRefElement::operator =(const SVGTRefElement &other) -{ - SVGTextPositioningElement::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTRefElement::SVGTRefElement(SVGTRefElementImpl *other) : SVGTextPositioningElement(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTRefElement::~SVGTRefElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGTRefElement.cpp b/ksvg/dom/SVGTRefElement.cpp new file mode 100644 index 00000000..f987e3aa --- /dev/null +++ b/ksvg/dom/SVGTRefElement.cpp @@ -0,0 +1,66 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTRefElement.h" +#include "SVGTRefElementImpl.h" + +using namespace KSVG; + +SVGTRefElement::SVGTRefElement() : SVGTextPositioningElement(), SVGURIReference() +{ + impl = 0; +} + +SVGTRefElement::SVGTRefElement(const SVGTRefElement &other) : SVGTextPositioningElement(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGTRefElement &SVGTRefElement::operator =(const SVGTRefElement &other) +{ + SVGTextPositioningElement::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTRefElement::SVGTRefElement(SVGTRefElementImpl *other) : SVGTextPositioningElement(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTRefElement::~SVGTRefElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGTSpanElement.cc b/ksvg/dom/SVGTSpanElement.cc deleted file mode 100644 index 6a2cf66c..00000000 --- a/ksvg/dom/SVGTSpanElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTSpanElement.h" -#include "SVGTSpanElementImpl.h" - -using namespace KSVG; - -SVGTSpanElement::SVGTSpanElement() : SVGTextPositioningElement() -{ - impl = 0; -} - -SVGTSpanElement::SVGTSpanElement(const SVGTSpanElement &other) : SVGTextPositioningElement(other), impl(0) -{ - (*this) = other; -} - -SVGTSpanElement &SVGTSpanElement::operator =(const SVGTSpanElement &other) -{ - SVGTextPositioningElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTSpanElement::SVGTSpanElement(SVGTSpanElementImpl *other) : SVGTextPositioningElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTSpanElement::~SVGTSpanElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGTSpanElement.cpp b/ksvg/dom/SVGTSpanElement.cpp new file mode 100644 index 00000000..6a2cf66c --- /dev/null +++ b/ksvg/dom/SVGTSpanElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTSpanElement.h" +#include "SVGTSpanElementImpl.h" + +using namespace KSVG; + +SVGTSpanElement::SVGTSpanElement() : SVGTextPositioningElement() +{ + impl = 0; +} + +SVGTSpanElement::SVGTSpanElement(const SVGTSpanElement &other) : SVGTextPositioningElement(other), impl(0) +{ + (*this) = other; +} + +SVGTSpanElement &SVGTSpanElement::operator =(const SVGTSpanElement &other) +{ + SVGTextPositioningElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTSpanElement::SVGTSpanElement(SVGTSpanElementImpl *other) : SVGTextPositioningElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTSpanElement::~SVGTSpanElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGTests.cc b/ksvg/dom/SVGTests.cc deleted file mode 100644 index 145da6af..00000000 --- a/ksvg/dom/SVGTests.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTests.h" -#include "SVGTestsImpl.h" -#include "SVGStringList.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGTests::SVGTests() -{ - impl = 0; -} - -SVGTests::SVGTests(const SVGTests &other) : impl(0) -{ - (*this) = other; -} - -SVGTests &SVGTests::operator=(const SVGTests &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGTests::SVGTests(SVGTestsImpl *other) -{ - impl = other; -} - -SVGTests::~SVGTests() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -SVGStringList SVGTests::requiredFeatures() const -{ - if(!impl) return SVGStringList(0); - return SVGStringList(impl->requiredFeatures()); -} - -SVGStringList SVGTests::requiredExtensions() const -{ - if(!impl) return SVGStringList(0); - return SVGStringList(impl->requiredExtensions()); -} - -SVGStringList SVGTests::systemLanguage() const -{ - if(!impl) return SVGStringList(0); - return SVGStringList(impl->systemLanguage()); -} - -bool SVGTests::hasExtension(const DOM::DOMString &extension) -{ - if(!impl) return false; - return impl->hasExtension(extension); -} diff --git a/ksvg/dom/SVGTests.cpp b/ksvg/dom/SVGTests.cpp new file mode 100644 index 00000000..145da6af --- /dev/null +++ b/ksvg/dom/SVGTests.cpp @@ -0,0 +1,81 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTests.h" +#include "SVGTestsImpl.h" +#include "SVGStringList.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGTests::SVGTests() +{ + impl = 0; +} + +SVGTests::SVGTests(const SVGTests &other) : impl(0) +{ + (*this) = other; +} + +SVGTests &SVGTests::operator=(const SVGTests &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGTests::SVGTests(SVGTestsImpl *other) +{ + impl = other; +} + +SVGTests::~SVGTests() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +SVGStringList SVGTests::requiredFeatures() const +{ + if(!impl) return SVGStringList(0); + return SVGStringList(impl->requiredFeatures()); +} + +SVGStringList SVGTests::requiredExtensions() const +{ + if(!impl) return SVGStringList(0); + return SVGStringList(impl->requiredExtensions()); +} + +SVGStringList SVGTests::systemLanguage() const +{ + if(!impl) return SVGStringList(0); + return SVGStringList(impl->systemLanguage()); +} + +bool SVGTests::hasExtension(const DOM::DOMString &extension) +{ + if(!impl) return false; + return impl->hasExtension(extension); +} diff --git a/ksvg/dom/SVGTextContentElement.cc b/ksvg/dom/SVGTextContentElement.cc deleted file mode 100644 index f40d23b6..00000000 --- a/ksvg/dom/SVGTextContentElement.cc +++ /dev/null @@ -1,120 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTextContentElement.h" -#include "SVGTextContentElementImpl.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGTextContentElement::SVGTextContentElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable() -{ - impl = new SVGTextContentElementImpl(0); -} - -SVGTextContentElement::SVGTextContentElement(const SVGTextContentElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other) -{ - impl = other.impl; -} - -SVGTextContentElement &SVGTextContentElement::operator=(const SVGTextContentElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} - -SVGTextContentElement::SVGTextContentElement(SVGTextContentElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other) -{ - impl = other; -} - -SVGTextContentElement::~SVGTextContentElement() -{ -} - - -SVGAnimatedLength SVGTextContentElement::textLength() const -{ - return impl->textLength(); -} - -SVGAnimatedEnumeration SVGTextContentElement::lengthAdjust() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->lengthAdjust()); -} - -long SVGTextContentElement::getNumberOfChars() -{ - return impl->getNumberOfChars(); -} - -float SVGTextContentElement::getComputedTextLength() -{ - return impl->getComputedTextLength(); -} -/* -float SVGTextContentElement::getSubStringLength(const unsigned long &charnum, const unsigned long &nchars) -{ - return impl->getSubStringLength(charnum, nchars); -} - -SVGPoint SVGTextContentElement::getStartPositionOfChar(const unsigned long &charnum) -{ - return impl->getStartPositionOfChar(charnum); -} - -SVGPoint SVGTextContentElement::getEndPositionOfChar(const unsigned long &charnum) -{ - return impl->getEndPositionOfChar(charnum); -} - -SVGRect SVGTextContentElement::getExtentOfChar(const unsigned long &charnum) -{ - return impl->getExtentOfChar(charnum); -} - -float SVGTextContentElement::getRotationOfChar(const unsigned long &charnum) -{ - return impl->getRotationOfChar(charnum); -} - -long SVGTextContentElement::getCharNumAtPosition(const SVGPoint &point) -{ - return impl->getCharNumAtPosition(point); -} - -void SVGTextContentElement::selectSubString(const unsigned long &charnum, const unsigned long &nchars) -{ - return impl->selectSubString(charnum, nchars); -} -*/ diff --git a/ksvg/dom/SVGTextContentElement.cpp b/ksvg/dom/SVGTextContentElement.cpp new file mode 100644 index 00000000..f40d23b6 --- /dev/null +++ b/ksvg/dom/SVGTextContentElement.cpp @@ -0,0 +1,120 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTextContentElement.h" +#include "SVGTextContentElementImpl.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGTextContentElement::SVGTextContentElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable() +{ + impl = new SVGTextContentElementImpl(0); +} + +SVGTextContentElement::SVGTextContentElement(const SVGTextContentElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other) +{ + impl = other.impl; +} + +SVGTextContentElement &SVGTextContentElement::operator=(const SVGTextContentElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} + +SVGTextContentElement::SVGTextContentElement(SVGTextContentElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other) +{ + impl = other; +} + +SVGTextContentElement::~SVGTextContentElement() +{ +} + + +SVGAnimatedLength SVGTextContentElement::textLength() const +{ + return impl->textLength(); +} + +SVGAnimatedEnumeration SVGTextContentElement::lengthAdjust() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->lengthAdjust()); +} + +long SVGTextContentElement::getNumberOfChars() +{ + return impl->getNumberOfChars(); +} + +float SVGTextContentElement::getComputedTextLength() +{ + return impl->getComputedTextLength(); +} +/* +float SVGTextContentElement::getSubStringLength(const unsigned long &charnum, const unsigned long &nchars) +{ + return impl->getSubStringLength(charnum, nchars); +} + +SVGPoint SVGTextContentElement::getStartPositionOfChar(const unsigned long &charnum) +{ + return impl->getStartPositionOfChar(charnum); +} + +SVGPoint SVGTextContentElement::getEndPositionOfChar(const unsigned long &charnum) +{ + return impl->getEndPositionOfChar(charnum); +} + +SVGRect SVGTextContentElement::getExtentOfChar(const unsigned long &charnum) +{ + return impl->getExtentOfChar(charnum); +} + +float SVGTextContentElement::getRotationOfChar(const unsigned long &charnum) +{ + return impl->getRotationOfChar(charnum); +} + +long SVGTextContentElement::getCharNumAtPosition(const SVGPoint &point) +{ + return impl->getCharNumAtPosition(point); +} + +void SVGTextContentElement::selectSubString(const unsigned long &charnum, const unsigned long &nchars) +{ + return impl->selectSubString(charnum, nchars); +} +*/ diff --git a/ksvg/dom/SVGTextElement.cc b/ksvg/dom/SVGTextElement.cc deleted file mode 100644 index b80a148a..00000000 --- a/ksvg/dom/SVGTextElement.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGTextElement.h" -#include "SVGTextElementImpl.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGTextElement::SVGTextElement() : SVGTextPositioningElement(), SVGTransformable() -{ - impl = 0; -} - -SVGTextElement::SVGTextElement(const SVGTextElement &other) : SVGTextPositioningElement(other), SVGTransformable(other) -{ - (*this) = other; -} - -SVGTextElement &SVGTextElement::operator =(const SVGTextElement &other) -{ - SVGTextPositioningElement::operator=(other); - SVGTransformable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTextElement::SVGTextElement(SVGTextElementImpl *other) : SVGTextPositioningElement(other), SVGTransformable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTextElement::~SVGTextElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGTextElement.cpp b/ksvg/dom/SVGTextElement.cpp new file mode 100644 index 00000000..b80a148a --- /dev/null +++ b/ksvg/dom/SVGTextElement.cpp @@ -0,0 +1,68 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGTextElement.h" +#include "SVGTextElementImpl.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGTextElement::SVGTextElement() : SVGTextPositioningElement(), SVGTransformable() +{ + impl = 0; +} + +SVGTextElement::SVGTextElement(const SVGTextElement &other) : SVGTextPositioningElement(other), SVGTransformable(other) +{ + (*this) = other; +} + +SVGTextElement &SVGTextElement::operator =(const SVGTextElement &other) +{ + SVGTextPositioningElement::operator=(other); + SVGTransformable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTextElement::SVGTextElement(SVGTextElementImpl *other) : SVGTextPositioningElement(other), SVGTransformable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTextElement::~SVGTextElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGTextPathElement.cc b/ksvg/dom/SVGTextPathElement.cc deleted file mode 100644 index 09d26e20..00000000 --- a/ksvg/dom/SVGTextPathElement.cc +++ /dev/null @@ -1,87 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTextPathElement.h" -#include "SVGTextPathElementImpl.h" -#include "SVGAnimatedEnumeration.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGTextPathElement::SVGTextPathElement() : SVGTextContentElement(), SVGURIReference() -{ - impl = new SVGTextPathElementImpl(0); - impl->ref(); -} - -SVGTextPathElement::SVGTextPathElement(const SVGTextPathElement &other) : SVGTextContentElement(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGTextPathElement &SVGTextPathElement::operator =(const SVGTextPathElement &other) -{ - SVGTextContentElement::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTextPathElement::SVGTextPathElement(SVGTextPathElementImpl *other) : SVGTextContentElement(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTextPathElement::~SVGTextPathElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGTextPathElement::startOffset() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->startOffset()); -} - -SVGAnimatedEnumeration SVGTextPathElement::method() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->method()); -} - -SVGAnimatedEnumeration SVGTextPathElement::spacing() const -{ - if(!impl) return SVGAnimatedEnumeration(0); - return SVGAnimatedEnumeration(impl->spacing()); -} diff --git a/ksvg/dom/SVGTextPathElement.cpp b/ksvg/dom/SVGTextPathElement.cpp new file mode 100644 index 00000000..09d26e20 --- /dev/null +++ b/ksvg/dom/SVGTextPathElement.cpp @@ -0,0 +1,87 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTextPathElement.h" +#include "SVGTextPathElementImpl.h" +#include "SVGAnimatedEnumeration.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGTextPathElement::SVGTextPathElement() : SVGTextContentElement(), SVGURIReference() +{ + impl = new SVGTextPathElementImpl(0); + impl->ref(); +} + +SVGTextPathElement::SVGTextPathElement(const SVGTextPathElement &other) : SVGTextContentElement(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGTextPathElement &SVGTextPathElement::operator =(const SVGTextPathElement &other) +{ + SVGTextContentElement::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTextPathElement::SVGTextPathElement(SVGTextPathElementImpl *other) : SVGTextContentElement(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTextPathElement::~SVGTextPathElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGTextPathElement::startOffset() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->startOffset()); +} + +SVGAnimatedEnumeration SVGTextPathElement::method() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->method()); +} + +SVGAnimatedEnumeration SVGTextPathElement::spacing() const +{ + if(!impl) return SVGAnimatedEnumeration(0); + return SVGAnimatedEnumeration(impl->spacing()); +} diff --git a/ksvg/dom/SVGTextPositioningElement.cc b/ksvg/dom/SVGTextPositioningElement.cc deleted file mode 100644 index 6ce7d346..00000000 --- a/ksvg/dom/SVGTextPositioningElement.cc +++ /dev/null @@ -1,85 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include -#include "SVGTextPositioningElement.h" -#include "SVGTextPositioningElementImpl.h" -#include "SVGAnimatedNumber.h" -#include "SVGAnimatedNumberList.h" -#include "SVGAnimatedLength.h" -#include "SVGAnimatedLengthList.h" - -using namespace KSVG; - -SVGTextPositioningElement::SVGTextPositioningElement() : SVGTextContentElement() -{ - impl = new SVGTextPositioningElementImpl(0); -} - -SVGTextPositioningElement::SVGTextPositioningElement(const SVGTextPositioningElement &other) : SVGTextContentElement(other) -{ - impl = other.impl; -} - -SVGTextPositioningElement &SVGTextPositioningElement::operator=(const SVGTextPositioningElement &other) -{ - SVGTextContentElement::operator=(other); - - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} -SVGTextPositioningElement::SVGTextPositioningElement(SVGTextPositioningElementImpl *other) : SVGTextContentElement(other) -{ - impl = other; -} - -SVGTextPositioningElement::~SVGTextPositioningElement() -{ -} - -SVGAnimatedLengthList SVGTextPositioningElement::x() -{ - return SVGAnimatedLengthList(impl->x()); -} - -SVGAnimatedLengthList SVGTextPositioningElement::y() -{ - return SVGAnimatedLengthList(impl->y()); -} - -SVGAnimatedLengthList SVGTextPositioningElement::dx() -{ - return SVGAnimatedLengthList(impl->dx()); -} - -SVGAnimatedLengthList SVGTextPositioningElement::dy() -{ - return SVGAnimatedLengthList(impl->dy()); -} - -SVGAnimatedNumberList SVGTextPositioningElement::rotate() -{ - return SVGAnimatedNumberList(impl->rotate()); -} diff --git a/ksvg/dom/SVGTextPositioningElement.cpp b/ksvg/dom/SVGTextPositioningElement.cpp new file mode 100644 index 00000000..6ce7d346 --- /dev/null +++ b/ksvg/dom/SVGTextPositioningElement.cpp @@ -0,0 +1,85 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include +#include "SVGTextPositioningElement.h" +#include "SVGTextPositioningElementImpl.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedNumberList.h" +#include "SVGAnimatedLength.h" +#include "SVGAnimatedLengthList.h" + +using namespace KSVG; + +SVGTextPositioningElement::SVGTextPositioningElement() : SVGTextContentElement() +{ + impl = new SVGTextPositioningElementImpl(0); +} + +SVGTextPositioningElement::SVGTextPositioningElement(const SVGTextPositioningElement &other) : SVGTextContentElement(other) +{ + impl = other.impl; +} + +SVGTextPositioningElement &SVGTextPositioningElement::operator=(const SVGTextPositioningElement &other) +{ + SVGTextContentElement::operator=(other); + + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} +SVGTextPositioningElement::SVGTextPositioningElement(SVGTextPositioningElementImpl *other) : SVGTextContentElement(other) +{ + impl = other; +} + +SVGTextPositioningElement::~SVGTextPositioningElement() +{ +} + +SVGAnimatedLengthList SVGTextPositioningElement::x() +{ + return SVGAnimatedLengthList(impl->x()); +} + +SVGAnimatedLengthList SVGTextPositioningElement::y() +{ + return SVGAnimatedLengthList(impl->y()); +} + +SVGAnimatedLengthList SVGTextPositioningElement::dx() +{ + return SVGAnimatedLengthList(impl->dx()); +} + +SVGAnimatedLengthList SVGTextPositioningElement::dy() +{ + return SVGAnimatedLengthList(impl->dy()); +} + +SVGAnimatedNumberList SVGTextPositioningElement::rotate() +{ + return SVGAnimatedNumberList(impl->rotate()); +} diff --git a/ksvg/dom/SVGTitleElement.cc b/ksvg/dom/SVGTitleElement.cc deleted file mode 100644 index 9c301d10..00000000 --- a/ksvg/dom/SVGTitleElement.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTitleElement.h" -#include "SVGTitleElementImpl.h" - -using namespace KSVG; - -SVGTitleElement::SVGTitleElement() : SVGElement(), SVGLangSpace(), SVGStylable() -{ - impl = 0; -} - -SVGTitleElement::SVGTitleElement(const SVGTitleElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0) -{ - (*this) = other; -} - -SVGTitleElement &SVGTitleElement::operator =(const SVGTitleElement &other) -{ - SVGElement::operator=(other); - SVGLangSpace::operator=(other); - SVGStylable::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTitleElement::SVGTitleElement(SVGTitleElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTitleElement::~SVGTitleElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGTitleElement.cpp b/ksvg/dom/SVGTitleElement.cpp new file mode 100644 index 00000000..9c301d10 --- /dev/null +++ b/ksvg/dom/SVGTitleElement.cpp @@ -0,0 +1,67 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTitleElement.h" +#include "SVGTitleElementImpl.h" + +using namespace KSVG; + +SVGTitleElement::SVGTitleElement() : SVGElement(), SVGLangSpace(), SVGStylable() +{ + impl = 0; +} + +SVGTitleElement::SVGTitleElement(const SVGTitleElement &other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other), impl(0) +{ + (*this) = other; +} + +SVGTitleElement &SVGTitleElement::operator =(const SVGTitleElement &other) +{ + SVGElement::operator=(other); + SVGLangSpace::operator=(other); + SVGStylable::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTitleElement::SVGTitleElement(SVGTitleElementImpl *other) : SVGElement(other), SVGLangSpace(other), SVGStylable(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTitleElement::~SVGTitleElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGTransform.cc b/ksvg/dom/SVGTransform.cc deleted file mode 100644 index a8bbe4db..00000000 --- a/ksvg/dom/SVGTransform.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTransformImpl.h" -#include "SVGTransform.h" -#include "SVGMatrix.h" - -using namespace KSVG; - -SVGTransform::SVGTransform() -{ - impl = new SVGTransformImpl(); - impl->ref(); -} - -SVGTransform::SVGTransform(const SVGTransform &other) : impl(0) -{ - (*this) = other; -} - -SVGTransform &SVGTransform::operator=(const SVGTransform &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTransform::SVGTransform(SVGTransformImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTransform::~SVGTransform() -{ -} - -unsigned short SVGTransform::type() const -{ - if(!impl) return SVG_TRANSFORM_UNKNOWN; - return impl->type(); -} - -SVGMatrix SVGTransform::matrix() const -{ - if(!impl) return SVGMatrix(0); - return SVGMatrix(impl->matrix()); -} - -double SVGTransform::angle() const -{ - if(!impl) return -1; - return impl->angle(); -} - -void SVGTransform::setMatrix(SVGMatrix matrix) -{ - if(impl) - impl->setMatrix(matrix.handle()); -} - -void SVGTransform::setTranslate(double tx, double ty) -{ - if(impl) - impl->setTranslate(tx, ty); -} - -void SVGTransform::setScale(double sx, double sy) -{ - if(impl) - impl->setScale(sx, sy); -} - -void SVGTransform::setRotate(double angle, double cx, double cy) -{ - if(impl) - impl->setRotate(angle, cx, cy); -} - -void SVGTransform::setSkewX(double angle) -{ - if(impl) - impl->setSkewX(angle); -} - -void SVGTransform::setSkewY(double angle) -{ - if(impl) - impl->setSkewY(angle); -} diff --git a/ksvg/dom/SVGTransform.cpp b/ksvg/dom/SVGTransform.cpp new file mode 100644 index 00000000..a8bbe4db --- /dev/null +++ b/ksvg/dom/SVGTransform.cpp @@ -0,0 +1,117 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTransformImpl.h" +#include "SVGTransform.h" +#include "SVGMatrix.h" + +using namespace KSVG; + +SVGTransform::SVGTransform() +{ + impl = new SVGTransformImpl(); + impl->ref(); +} + +SVGTransform::SVGTransform(const SVGTransform &other) : impl(0) +{ + (*this) = other; +} + +SVGTransform &SVGTransform::operator=(const SVGTransform &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTransform::SVGTransform(SVGTransformImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTransform::~SVGTransform() +{ +} + +unsigned short SVGTransform::type() const +{ + if(!impl) return SVG_TRANSFORM_UNKNOWN; + return impl->type(); +} + +SVGMatrix SVGTransform::matrix() const +{ + if(!impl) return SVGMatrix(0); + return SVGMatrix(impl->matrix()); +} + +double SVGTransform::angle() const +{ + if(!impl) return -1; + return impl->angle(); +} + +void SVGTransform::setMatrix(SVGMatrix matrix) +{ + if(impl) + impl->setMatrix(matrix.handle()); +} + +void SVGTransform::setTranslate(double tx, double ty) +{ + if(impl) + impl->setTranslate(tx, ty); +} + +void SVGTransform::setScale(double sx, double sy) +{ + if(impl) + impl->setScale(sx, sy); +} + +void SVGTransform::setRotate(double angle, double cx, double cy) +{ + if(impl) + impl->setRotate(angle, cx, cy); +} + +void SVGTransform::setSkewX(double angle) +{ + if(impl) + impl->setSkewX(angle); +} + +void SVGTransform::setSkewY(double angle) +{ + if(impl) + impl->setSkewY(angle); +} diff --git a/ksvg/dom/SVGTransformList.cc b/ksvg/dom/SVGTransformList.cc deleted file mode 100644 index d363aef6..00000000 --- a/ksvg/dom/SVGTransformList.cc +++ /dev/null @@ -1,127 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTransformList.h" -#include "SVGTransformListImpl.h" -#include "SVGSVGElementImpl.h" -#include "SVGMatrix.h" -#include "SVGTransform.h" - -using namespace KSVG; - -SVGTransformList::SVGTransformList() -{ - impl = new SVGTransformListImpl(); - impl->ref(); -} - -SVGTransformList::SVGTransformList(const SVGTransformList &other) -{ - (*this) = other; -} - -SVGTransformList &SVGTransformList::operator=(const SVGTransformList &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGTransformList::SVGTransformList(SVGTransformListImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGTransformList::~SVGTransformList() -{ - if(impl) - impl->deref(); -} - -unsigned long SVGTransformList::numberOfItems() const -{ - if(!impl) return 0; - return impl->numberOfItems(); -} - -void SVGTransformList::clear() -{ - if(impl) - impl->clear(); -} - -SVGTransform *SVGTransformList::initialize(SVGTransform *newItem) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->initialize(newItem->handle())); -} - -SVGTransform *SVGTransformList::getItem(unsigned long index) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->getItem(index)); -} - -SVGTransform *SVGTransformList::insertItemBefore(SVGTransform *newItem, unsigned long index) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->insertItemBefore(newItem->handle(), index)); -} - -SVGTransform *SVGTransformList::replaceItem(SVGTransform *newItem, unsigned long index) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->replaceItem(newItem->handle(), index)); -} - -SVGTransform *SVGTransformList::removeItem(unsigned long index) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->removeItem(index)); -} - -SVGTransform *SVGTransformList::appendItem(SVGTransform *newItem) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(impl->appendItem(newItem->handle())); -} - -SVGTransform *SVGTransformList::createSVGTransformFromMatrix(SVGMatrix &matrix) -{ - if(!impl) return new SVGTransform(0); - return new SVGTransform(SVGSVGElementImpl::createSVGTransformFromMatrix(matrix.handle())); -} - -SVGTransform *SVGTransformList::consolidate() -{ - if(!impl || impl->numberOfItems()==0) return 0; - return new SVGTransform(impl->consolidate()); -} diff --git a/ksvg/dom/SVGTransformList.cpp b/ksvg/dom/SVGTransformList.cpp new file mode 100644 index 00000000..d363aef6 --- /dev/null +++ b/ksvg/dom/SVGTransformList.cpp @@ -0,0 +1,127 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTransformList.h" +#include "SVGTransformListImpl.h" +#include "SVGSVGElementImpl.h" +#include "SVGMatrix.h" +#include "SVGTransform.h" + +using namespace KSVG; + +SVGTransformList::SVGTransformList() +{ + impl = new SVGTransformListImpl(); + impl->ref(); +} + +SVGTransformList::SVGTransformList(const SVGTransformList &other) +{ + (*this) = other; +} + +SVGTransformList &SVGTransformList::operator=(const SVGTransformList &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGTransformList::SVGTransformList(SVGTransformListImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGTransformList::~SVGTransformList() +{ + if(impl) + impl->deref(); +} + +unsigned long SVGTransformList::numberOfItems() const +{ + if(!impl) return 0; + return impl->numberOfItems(); +} + +void SVGTransformList::clear() +{ + if(impl) + impl->clear(); +} + +SVGTransform *SVGTransformList::initialize(SVGTransform *newItem) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->initialize(newItem->handle())); +} + +SVGTransform *SVGTransformList::getItem(unsigned long index) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->getItem(index)); +} + +SVGTransform *SVGTransformList::insertItemBefore(SVGTransform *newItem, unsigned long index) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->insertItemBefore(newItem->handle(), index)); +} + +SVGTransform *SVGTransformList::replaceItem(SVGTransform *newItem, unsigned long index) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->replaceItem(newItem->handle(), index)); +} + +SVGTransform *SVGTransformList::removeItem(unsigned long index) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->removeItem(index)); +} + +SVGTransform *SVGTransformList::appendItem(SVGTransform *newItem) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(impl->appendItem(newItem->handle())); +} + +SVGTransform *SVGTransformList::createSVGTransformFromMatrix(SVGMatrix &matrix) +{ + if(!impl) return new SVGTransform(0); + return new SVGTransform(SVGSVGElementImpl::createSVGTransformFromMatrix(matrix.handle())); +} + +SVGTransform *SVGTransformList::consolidate() +{ + if(!impl || impl->numberOfItems()==0) return 0; + return new SVGTransform(impl->consolidate()); +} diff --git a/ksvg/dom/SVGTransformable.cc b/ksvg/dom/SVGTransformable.cc deleted file mode 100644 index 3c2d22f6..00000000 --- a/ksvg/dom/SVGTransformable.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGTransformable.h" -#include "SVGTransformableImpl.h" -#include "SVGAnimatedTransformList.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGTransformable::SVGTransformable() : SVGLocatable() -{ - impl = 0; -} - -SVGTransformable::SVGTransformable(const SVGTransformable &other) : SVGLocatable(other) -{ - (*this) = other; -} - -SVGTransformable &SVGTransformable::operator=(const SVGTransformable &other) -{ - SVGLocatable::operator=(other); - - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGTransformable::SVGTransformable(SVGTransformableImpl *other) : SVGLocatable(other) -{ - impl = other; -} - -SVGTransformable::~SVGTransformable() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -SVGAnimatedTransformList SVGTransformable::transform() -{ - if(!impl) return SVGAnimatedTransformList(0); - return SVGAnimatedTransformList(impl->transform()); -} diff --git a/ksvg/dom/SVGTransformable.cpp b/ksvg/dom/SVGTransformable.cpp new file mode 100644 index 00000000..3c2d22f6 --- /dev/null +++ b/ksvg/dom/SVGTransformable.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGTransformable.h" +#include "SVGTransformableImpl.h" +#include "SVGAnimatedTransformList.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGTransformable::SVGTransformable() : SVGLocatable() +{ + impl = 0; +} + +SVGTransformable::SVGTransformable(const SVGTransformable &other) : SVGLocatable(other) +{ + (*this) = other; +} + +SVGTransformable &SVGTransformable::operator=(const SVGTransformable &other) +{ + SVGLocatable::operator=(other); + + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGTransformable::SVGTransformable(SVGTransformableImpl *other) : SVGLocatable(other) +{ + impl = other; +} + +SVGTransformable::~SVGTransformable() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +SVGAnimatedTransformList SVGTransformable::transform() +{ + if(!impl) return SVGAnimatedTransformList(0); + return SVGAnimatedTransformList(impl->transform()); +} diff --git a/ksvg/dom/SVGURIReference.cc b/ksvg/dom/SVGURIReference.cc deleted file mode 100644 index 85658aa4..00000000 --- a/ksvg/dom/SVGURIReference.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGURIReference.h" -#include "SVGURIReferenceImpl.h" -#include "SVGAnimatedString.h" - -using namespace KSVG; - -SVGURIReference::SVGURIReference() -{ - impl = new SVGURIReferenceImpl(); -} - -SVGURIReference::SVGURIReference(const SVGURIReference &other) -{ - impl = other.impl; -} - -SVGURIReference &SVGURIReference::operator=(const SVGURIReference &other) -{ - if(impl == other.impl) - return *this; - - delete impl; - impl = other.impl; - - return *this; -} - -SVGURIReference::SVGURIReference(SVGURIReferenceImpl *other) -{ - impl = other; -} - -SVGURIReference::~SVGURIReference() -{ -} - -SVGAnimatedString SVGURIReference::href() const -{ - if(!impl) return SVGAnimatedString(0); - return SVGAnimatedString(impl->href()); -} diff --git a/ksvg/dom/SVGURIReference.cpp b/ksvg/dom/SVGURIReference.cpp new file mode 100644 index 00000000..85658aa4 --- /dev/null +++ b/ksvg/dom/SVGURIReference.cpp @@ -0,0 +1,61 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGURIReference.h" +#include "SVGURIReferenceImpl.h" +#include "SVGAnimatedString.h" + +using namespace KSVG; + +SVGURIReference::SVGURIReference() +{ + impl = new SVGURIReferenceImpl(); +} + +SVGURIReference::SVGURIReference(const SVGURIReference &other) +{ + impl = other.impl; +} + +SVGURIReference &SVGURIReference::operator=(const SVGURIReference &other) +{ + if(impl == other.impl) + return *this; + + delete impl; + impl = other.impl; + + return *this; +} + +SVGURIReference::SVGURIReference(SVGURIReferenceImpl *other) +{ + impl = other; +} + +SVGURIReference::~SVGURIReference() +{ +} + +SVGAnimatedString SVGURIReference::href() const +{ + if(!impl) return SVGAnimatedString(0); + return SVGAnimatedString(impl->href()); +} diff --git a/ksvg/dom/SVGUseElement.cc b/ksvg/dom/SVGUseElement.cc deleted file mode 100644 index e74e05e8..00000000 --- a/ksvg/dom/SVGUseElement.cc +++ /dev/null @@ -1,109 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGUseElement.h" -#include "SVGUseElementImpl.h" -#include "SVGElementInstance.h" -#include "SVGAnimatedLength.h" - -using namespace KSVG; - -SVGUseElement::SVGUseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() -{ - impl = 0; -} - -SVGUseElement::SVGUseElement(const SVGUseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) -{ - (*this) = other; -} - -SVGUseElement &SVGUseElement::operator =(const SVGUseElement &other) -{ - SVGElement::operator=(other); - SVGTests::operator=(other); - SVGLangSpace::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGStylable::operator=(other); - SVGTransformable::operator=(other); - SVGURIReference::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGUseElement::SVGUseElement(SVGUseElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGUseElement::~SVGUseElement() -{ - if(impl) - impl->deref(); -} - -SVGAnimatedLength SVGUseElement::x() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->x()); -} - -SVGAnimatedLength SVGUseElement::y() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->y()); -} - -SVGAnimatedLength SVGUseElement::width() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->width()); -} - -SVGAnimatedLength SVGUseElement::height() const -{ - if(!impl) return SVGAnimatedLength(0); - return SVGAnimatedLength(impl->height()); -} - -SVGElementInstance SVGUseElement::instanceRoot() const -{ - if(!impl) return SVGElementInstance(0); - return impl->instanceRoot(); -} - -SVGElementInstance SVGUseElement::animatedInstanceRoot() const -{ - if(!impl) return SVGElementInstance(0); - return impl->animatedInstanceRoot(); -} diff --git a/ksvg/dom/SVGUseElement.cpp b/ksvg/dom/SVGUseElement.cpp new file mode 100644 index 00000000..e74e05e8 --- /dev/null +++ b/ksvg/dom/SVGUseElement.cpp @@ -0,0 +1,109 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGUseElement.h" +#include "SVGUseElementImpl.h" +#include "SVGElementInstance.h" +#include "SVGAnimatedLength.h" + +using namespace KSVG; + +SVGUseElement::SVGUseElement() : SVGElement(), SVGTests(), SVGLangSpace(), SVGExternalResourcesRequired(), SVGStylable(), SVGTransformable(), SVGURIReference() +{ + impl = 0; +} + +SVGUseElement::SVGUseElement(const SVGUseElement &other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other), impl(0) +{ + (*this) = other; +} + +SVGUseElement &SVGUseElement::operator =(const SVGUseElement &other) +{ + SVGElement::operator=(other); + SVGTests::operator=(other); + SVGLangSpace::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGStylable::operator=(other); + SVGTransformable::operator=(other); + SVGURIReference::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGUseElement::SVGUseElement(SVGUseElementImpl *other) : SVGElement(other), SVGTests(other), SVGLangSpace(other), SVGExternalResourcesRequired(other), SVGStylable(other), SVGTransformable(other), SVGURIReference(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGUseElement::~SVGUseElement() +{ + if(impl) + impl->deref(); +} + +SVGAnimatedLength SVGUseElement::x() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->x()); +} + +SVGAnimatedLength SVGUseElement::y() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->y()); +} + +SVGAnimatedLength SVGUseElement::width() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->width()); +} + +SVGAnimatedLength SVGUseElement::height() const +{ + if(!impl) return SVGAnimatedLength(0); + return SVGAnimatedLength(impl->height()); +} + +SVGElementInstance SVGUseElement::instanceRoot() const +{ + if(!impl) return SVGElementInstance(0); + return impl->instanceRoot(); +} + +SVGElementInstance SVGUseElement::animatedInstanceRoot() const +{ + if(!impl) return SVGElementInstance(0); + return impl->animatedInstanceRoot(); +} diff --git a/ksvg/dom/SVGVKernElement.cc b/ksvg/dom/SVGVKernElement.cc deleted file mode 100644 index 7a52b933..00000000 --- a/ksvg/dom/SVGVKernElement.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGVKernElement.h" -#include "SVGVKernElementImpl.h" - -using namespace KSVG; - -SVGVKernElement::SVGVKernElement() : SVGElement() -{ - impl = 0; -} - -SVGVKernElement::SVGVKernElement(const SVGVKernElement &other) : SVGElement(other), impl(0) -{ - (*this) = other; -} - -SVGVKernElement &SVGVKernElement::operator =(const SVGVKernElement &other) -{ - SVGElement::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGVKernElement::SVGVKernElement(SVGVKernElementImpl *other) : SVGElement(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGVKernElement::~SVGVKernElement() -{ - if(impl) - impl->deref(); -} diff --git a/ksvg/dom/SVGVKernElement.cpp b/ksvg/dom/SVGVKernElement.cpp new file mode 100644 index 00000000..7a52b933 --- /dev/null +++ b/ksvg/dom/SVGVKernElement.cpp @@ -0,0 +1,65 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGVKernElement.h" +#include "SVGVKernElementImpl.h" + +using namespace KSVG; + +SVGVKernElement::SVGVKernElement() : SVGElement() +{ + impl = 0; +} + +SVGVKernElement::SVGVKernElement(const SVGVKernElement &other) : SVGElement(other), impl(0) +{ + (*this) = other; +} + +SVGVKernElement &SVGVKernElement::operator =(const SVGVKernElement &other) +{ + SVGElement::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGVKernElement::SVGVKernElement(SVGVKernElementImpl *other) : SVGElement(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGVKernElement::~SVGVKernElement() +{ + if(impl) + impl->deref(); +} diff --git a/ksvg/dom/SVGViewElement.cc b/ksvg/dom/SVGViewElement.cc deleted file mode 100644 index 0214be20..00000000 --- a/ksvg/dom/SVGViewElement.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGViewElement.h" -#include "SVGViewElementImpl.h" -#include "SVGStringList.h" - -using namespace KSVG; - -SVGViewElement::SVGViewElement() : SVGElement(), SVGExternalResourcesRequired(), SVGFitToViewBox(), SVGZoomAndPan() -{ - impl = 0; -} - -SVGViewElement::SVGViewElement(const SVGViewElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0) -{ - (*this) = other; -} - -SVGViewElement &SVGViewElement::operator =(const SVGViewElement &other) -{ - SVGElement::operator=(other); - SVGExternalResourcesRequired::operator=(other); - SVGFitToViewBox::operator=(other); - SVGZoomAndPan::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGViewElement::SVGViewElement(SVGViewElementImpl *other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGViewElement::~SVGViewElement() -{ - if(impl) - impl->deref(); -} - -SVGStringList SVGViewElement::viewTarget() const -{ - if(!impl) return SVGStringList(0); - return SVGStringList(impl->viewTarget()); -} diff --git a/ksvg/dom/SVGViewElement.cpp b/ksvg/dom/SVGViewElement.cpp new file mode 100644 index 00000000..0214be20 --- /dev/null +++ b/ksvg/dom/SVGViewElement.cpp @@ -0,0 +1,75 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGViewElement.h" +#include "SVGViewElementImpl.h" +#include "SVGStringList.h" + +using namespace KSVG; + +SVGViewElement::SVGViewElement() : SVGElement(), SVGExternalResourcesRequired(), SVGFitToViewBox(), SVGZoomAndPan() +{ + impl = 0; +} + +SVGViewElement::SVGViewElement(const SVGViewElement &other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other), impl(0) +{ + (*this) = other; +} + +SVGViewElement &SVGViewElement::operator =(const SVGViewElement &other) +{ + SVGElement::operator=(other); + SVGExternalResourcesRequired::operator=(other); + SVGFitToViewBox::operator=(other); + SVGZoomAndPan::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGViewElement::SVGViewElement(SVGViewElementImpl *other) : SVGElement(other), SVGExternalResourcesRequired(other), SVGFitToViewBox(other), SVGZoomAndPan(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGViewElement::~SVGViewElement() +{ + if(impl) + impl->deref(); +} + +SVGStringList SVGViewElement::viewTarget() const +{ + if(!impl) return SVGStringList(0); + return SVGStringList(impl->viewTarget()); +} diff --git a/ksvg/dom/SVGViewSpec.cc b/ksvg/dom/SVGViewSpec.cc deleted file mode 100644 index c7877736..00000000 --- a/ksvg/dom/SVGViewSpec.cc +++ /dev/null @@ -1,105 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGViewSpec.h" -#include "SVGViewSpecImpl.h" -#include "SVGElement.h" -#include "SVGTransformList.h" - -using namespace KSVG; - -SVGViewSpec::SVGViewSpec() : SVGZoomAndPan(), SVGFitToViewBox() -{ - impl = new SVGViewSpecImpl(); - impl->ref(); -} - -SVGViewSpec::SVGViewSpec(const SVGViewSpec &other) : SVGZoomAndPan(other), SVGFitToViewBox(other), impl(0) -{ - (*this) = other; -} - -SVGViewSpec &SVGViewSpec::operator =(const SVGViewSpec &other) -{ - SVGZoomAndPan::operator=(other); - SVGFitToViewBox::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGViewSpec::SVGViewSpec(SVGViewSpecImpl *other) : SVGZoomAndPan(other), SVGFitToViewBox(other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGViewSpec::~SVGViewSpec() -{ - if(impl) - impl->deref(); -} - -SVGTransformList SVGViewSpec::transform() const -{ - if(!impl) return SVGTransformList(0); - return SVGTransformList(impl->transform()); -} - -SVGElement SVGViewSpec::viewTarget() const -{ - if(!impl) return SVGElement(0); - return SVGElement(impl->viewTarget()); -} - -DOM::DOMString SVGViewSpec::viewBoxString() const -{ - if(!impl) return DOM::DOMString(); - return impl->viewBoxString(); -} - -DOM::DOMString SVGViewSpec::preserveAspectRatioString() const -{ - if(!impl) return DOM::DOMString(); - return impl->preserveAspectRatioString(); -} - -DOM::DOMString SVGViewSpec::transformString() const -{ - if(!impl) return DOM::DOMString(); - return impl->transformString(); -} - -DOM::DOMString SVGViewSpec::viewTargetString() const -{ - if(!impl) return DOM::DOMString(); - return impl->viewTargetString(); -} diff --git a/ksvg/dom/SVGViewSpec.cpp b/ksvg/dom/SVGViewSpec.cpp new file mode 100644 index 00000000..c7877736 --- /dev/null +++ b/ksvg/dom/SVGViewSpec.cpp @@ -0,0 +1,105 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGViewSpec.h" +#include "SVGViewSpecImpl.h" +#include "SVGElement.h" +#include "SVGTransformList.h" + +using namespace KSVG; + +SVGViewSpec::SVGViewSpec() : SVGZoomAndPan(), SVGFitToViewBox() +{ + impl = new SVGViewSpecImpl(); + impl->ref(); +} + +SVGViewSpec::SVGViewSpec(const SVGViewSpec &other) : SVGZoomAndPan(other), SVGFitToViewBox(other), impl(0) +{ + (*this) = other; +} + +SVGViewSpec &SVGViewSpec::operator =(const SVGViewSpec &other) +{ + SVGZoomAndPan::operator=(other); + SVGFitToViewBox::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGViewSpec::SVGViewSpec(SVGViewSpecImpl *other) : SVGZoomAndPan(other), SVGFitToViewBox(other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGViewSpec::~SVGViewSpec() +{ + if(impl) + impl->deref(); +} + +SVGTransformList SVGViewSpec::transform() const +{ + if(!impl) return SVGTransformList(0); + return SVGTransformList(impl->transform()); +} + +SVGElement SVGViewSpec::viewTarget() const +{ + if(!impl) return SVGElement(0); + return SVGElement(impl->viewTarget()); +} + +DOM::DOMString SVGViewSpec::viewBoxString() const +{ + if(!impl) return DOM::DOMString(); + return impl->viewBoxString(); +} + +DOM::DOMString SVGViewSpec::preserveAspectRatioString() const +{ + if(!impl) return DOM::DOMString(); + return impl->preserveAspectRatioString(); +} + +DOM::DOMString SVGViewSpec::transformString() const +{ + if(!impl) return DOM::DOMString(); + return impl->transformString(); +} + +DOM::DOMString SVGViewSpec::viewTargetString() const +{ + if(!impl) return DOM::DOMString(); + return impl->viewTargetString(); +} diff --git a/ksvg/dom/SVGWindow.cc b/ksvg/dom/SVGWindow.cc deleted file mode 100644 index 22a8dcc0..00000000 --- a/ksvg/dom/SVGWindow.cc +++ /dev/null @@ -1,173 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGWindow.h" -#include "SVGWindowImpl.h" -#include "SVGDocument.h" - -using namespace KSVG; - -SVGWindow::SVGWindow() -{ - impl = new SVGWindowImpl(); - impl->ref(); -} - -SVGWindow::SVGWindow(const SVGWindow &other) : impl(0) -{ - (*this) = other; -} - -SVGWindow &SVGWindow::operator =(const SVGWindow &other) -{ - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGWindow::SVGWindow(SVGWindowImpl *other) -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGWindow::~SVGWindow() -{ - if(impl) - impl->deref(); -} - -/*StyleSheet SVGWindow::defaultStyleSheet() const -{ - if(!impl) return ; // FIXME - return impl->defaultStyleSheet(); -}*/ - -SVGDocument SVGWindow::document() const -{ - if(!impl) return SVGDocument(0); // FIXME - return impl->document(); -} - -DOM::Event SVGWindow::evt() const -{ - if(!impl) return DOM::Event(); // FIXME - return impl->evt(); -} - -long SVGWindow::innerHeight() const -{ - if(!impl) return 0; // FIXME - return impl->innerHeight(); -} - -long SVGWindow::innerWidth() const -{ - if(!impl) return 0; // FIXME - return impl->innerWidth(); -} - -void SVGWindow::setSrc(const DOM::DOMString &src) -{ - if(impl) - impl->setSrc(src); -} - -DOM::DOMString SVGWindow::src() const -{ - if(!impl) return DOM::DOMString(); // FIXME - return impl->src(); -} - -void SVGWindow::clearInterval(long interval) -{ - if(impl) - impl->clearInterval(interval); -} - -void SVGWindow::clearTimeout(long timeout) -{ - if(impl) - impl->clearTimeout(timeout); -} - -void SVGWindow::getURL(const DOM::DOMString &uri, const DOM::EventListener &callback) -{ - if(impl) - impl->getURL(uri, callback); -} - -/*DocumentFragment SVGWindow::parseXML(const DOM::DOMString &source, const Document &document) -{ - if(!impl) return ; // FIXME - return impl->parseXML(source, document); -}*/ - -void SVGWindow::postURL(const DOM::DOMString &uri, const DOM::DOMString &data, const DOM::EventListener &callback, const DOM::DOMString &mimeType, const DOM::DOMString &contentEncoding) -{ - if(impl) - impl->postURL(uri, data, callback, mimeType, contentEncoding); -} - -DOM::DOMString SVGWindow::printNode(const DOM::Node &node) -{ - if(!impl) return DOM::DOMString(); // FIXME - return impl->printNode(node); -} - -long SVGWindow::setInterval(const DOM::DOMString &code, const long &delay) -{ - if(!impl) return 0; // FIXME - return impl->setInterval(code, delay); -} - -long SVGWindow::setTimeout(const DOM::DOMString &code, const long &delay) -{ - if(!impl) return 0; // FIXME - return impl->setTimeout(code, delay); -} - -void SVGWindow::alert(const DOM::DOMString &message) -{ - if(impl) - impl->alert(message); -} - -bool SVGWindow::confirm(const DOM::DOMString &message) -{ - if(!impl) return false; // FIXME - return impl->confirm(message); -} - -DOM::DOMString SVGWindow::prompt(const DOM::DOMString &message, const DOM::DOMString &_default) -{ - if(!impl) return DOM::DOMString(); // FIXME - return impl->prompt(message, _default); -} diff --git a/ksvg/dom/SVGWindow.cpp b/ksvg/dom/SVGWindow.cpp new file mode 100644 index 00000000..22a8dcc0 --- /dev/null +++ b/ksvg/dom/SVGWindow.cpp @@ -0,0 +1,173 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGWindow.h" +#include "SVGWindowImpl.h" +#include "SVGDocument.h" + +using namespace KSVG; + +SVGWindow::SVGWindow() +{ + impl = new SVGWindowImpl(); + impl->ref(); +} + +SVGWindow::SVGWindow(const SVGWindow &other) : impl(0) +{ + (*this) = other; +} + +SVGWindow &SVGWindow::operator =(const SVGWindow &other) +{ + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGWindow::SVGWindow(SVGWindowImpl *other) +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGWindow::~SVGWindow() +{ + if(impl) + impl->deref(); +} + +/*StyleSheet SVGWindow::defaultStyleSheet() const +{ + if(!impl) return ; // FIXME + return impl->defaultStyleSheet(); +}*/ + +SVGDocument SVGWindow::document() const +{ + if(!impl) return SVGDocument(0); // FIXME + return impl->document(); +} + +DOM::Event SVGWindow::evt() const +{ + if(!impl) return DOM::Event(); // FIXME + return impl->evt(); +} + +long SVGWindow::innerHeight() const +{ + if(!impl) return 0; // FIXME + return impl->innerHeight(); +} + +long SVGWindow::innerWidth() const +{ + if(!impl) return 0; // FIXME + return impl->innerWidth(); +} + +void SVGWindow::setSrc(const DOM::DOMString &src) +{ + if(impl) + impl->setSrc(src); +} + +DOM::DOMString SVGWindow::src() const +{ + if(!impl) return DOM::DOMString(); // FIXME + return impl->src(); +} + +void SVGWindow::clearInterval(long interval) +{ + if(impl) + impl->clearInterval(interval); +} + +void SVGWindow::clearTimeout(long timeout) +{ + if(impl) + impl->clearTimeout(timeout); +} + +void SVGWindow::getURL(const DOM::DOMString &uri, const DOM::EventListener &callback) +{ + if(impl) + impl->getURL(uri, callback); +} + +/*DocumentFragment SVGWindow::parseXML(const DOM::DOMString &source, const Document &document) +{ + if(!impl) return ; // FIXME + return impl->parseXML(source, document); +}*/ + +void SVGWindow::postURL(const DOM::DOMString &uri, const DOM::DOMString &data, const DOM::EventListener &callback, const DOM::DOMString &mimeType, const DOM::DOMString &contentEncoding) +{ + if(impl) + impl->postURL(uri, data, callback, mimeType, contentEncoding); +} + +DOM::DOMString SVGWindow::printNode(const DOM::Node &node) +{ + if(!impl) return DOM::DOMString(); // FIXME + return impl->printNode(node); +} + +long SVGWindow::setInterval(const DOM::DOMString &code, const long &delay) +{ + if(!impl) return 0; // FIXME + return impl->setInterval(code, delay); +} + +long SVGWindow::setTimeout(const DOM::DOMString &code, const long &delay) +{ + if(!impl) return 0; // FIXME + return impl->setTimeout(code, delay); +} + +void SVGWindow::alert(const DOM::DOMString &message) +{ + if(impl) + impl->alert(message); +} + +bool SVGWindow::confirm(const DOM::DOMString &message) +{ + if(!impl) return false; // FIXME + return impl->confirm(message); +} + +DOM::DOMString SVGWindow::prompt(const DOM::DOMString &message, const DOM::DOMString &_default) +{ + if(!impl) return DOM::DOMString(); // FIXME + return impl->prompt(message, _default); +} diff --git a/ksvg/dom/SVGZoomAndPan.cc b/ksvg/dom/SVGZoomAndPan.cc deleted file mode 100644 index a8a0bf04..00000000 --- a/ksvg/dom/SVGZoomAndPan.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGZoomAndPan.h" -#include "SVGZoomAndPanImpl.h" - -using namespace KSVG; - -// This class can't be constructed seperately. -SVGZoomAndPan::SVGZoomAndPan() -{ - impl = 0; -} - -SVGZoomAndPan::SVGZoomAndPan(const SVGZoomAndPan &other) : impl(0) -{ - (*this) = other; -} - -SVGZoomAndPan &SVGZoomAndPan::operator=(const SVGZoomAndPan &other) -{ - if(impl == other.impl) - return *this; - - impl = other.impl; - - return *this; -} - -SVGZoomAndPan::SVGZoomAndPan(SVGZoomAndPanImpl *other) -{ - impl = other; -} - -SVGZoomAndPan::~SVGZoomAndPan() -{ - // We are not allowed to delete 'impl' as it's not refcounted. - // delete impl; -} - -void SVGZoomAndPan::setZoomAndPan(unsigned short zoomAndPan) -{ - if(impl) - impl->setZoomAndPan(zoomAndPan); -} - -unsigned short SVGZoomAndPan::zoomAndPan() const -{ - if(!impl) return SVG_ZOOMANDPAN_UNKNOWN; - return impl->zoomAndPan(); -} diff --git a/ksvg/dom/SVGZoomAndPan.cpp b/ksvg/dom/SVGZoomAndPan.cpp new file mode 100644 index 00000000..a8a0bf04 --- /dev/null +++ b/ksvg/dom/SVGZoomAndPan.cpp @@ -0,0 +1,68 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGZoomAndPan.h" +#include "SVGZoomAndPanImpl.h" + +using namespace KSVG; + +// This class can't be constructed seperately. +SVGZoomAndPan::SVGZoomAndPan() +{ + impl = 0; +} + +SVGZoomAndPan::SVGZoomAndPan(const SVGZoomAndPan &other) : impl(0) +{ + (*this) = other; +} + +SVGZoomAndPan &SVGZoomAndPan::operator=(const SVGZoomAndPan &other) +{ + if(impl == other.impl) + return *this; + + impl = other.impl; + + return *this; +} + +SVGZoomAndPan::SVGZoomAndPan(SVGZoomAndPanImpl *other) +{ + impl = other; +} + +SVGZoomAndPan::~SVGZoomAndPan() +{ + // We are not allowed to delete 'impl' as it's not refcounted. + // delete impl; +} + +void SVGZoomAndPan::setZoomAndPan(unsigned short zoomAndPan) +{ + if(impl) + impl->setZoomAndPan(zoomAndPan); +} + +unsigned short SVGZoomAndPan::zoomAndPan() const +{ + if(!impl) return SVG_ZOOMANDPAN_UNKNOWN; + return impl->zoomAndPan(); +} diff --git a/ksvg/dom/SVGZoomEvent.cc b/ksvg/dom/SVGZoomEvent.cc deleted file mode 100644 index cf3cd8d6..00000000 --- a/ksvg/dom/SVGZoomEvent.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - Copyright (C) 2001-2003 KSVG Team - This file is part of the KDE project - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "SVGZoomEvent.h" -#include "SVGZoomEventImpl.h" -#include "SVGRect.h" -#include "SVGPoint.h" - -using namespace KSVG; - -SVGZoomEvent::SVGZoomEvent() : DOM::UIEvent() -{ - impl = 0; -} - -SVGZoomEvent::SVGZoomEvent(const SVGZoomEvent &other) : DOM::UIEvent(other), impl(0) -{ - (*this) = other; -} - -SVGZoomEvent &SVGZoomEvent::operator =(const SVGZoomEvent &other) -{ - DOM::UIEvent::operator=(other); - - if(impl == other.impl) - return *this; - - if(impl) - impl->deref(); - - impl = other.impl; - - if(impl) - impl->ref(); - - return *this; -} - -SVGZoomEvent::SVGZoomEvent(SVGZoomEventImpl *other) : DOM::UIEvent() -{ - impl = other; - if(impl) - impl->ref(); -} - -SVGZoomEvent::~SVGZoomEvent() -{ - if(impl) - impl->deref(); -} - -SVGRect SVGZoomEvent::zoomRectScreen() const -{ - if(!impl) return SVGRect(0); - return SVGRect(impl->zoomRectScreen()); -} - -float SVGZoomEvent::previousScale() const -{ - if(!impl) return -1; - return impl->previousScale(); -} - -SVGPoint SVGZoomEvent::previousTranslate() const -{ - if(!impl) return SVGPoint(0); - return SVGPoint(impl->previousTranslate()); -} - -float SVGZoomEvent::newScale() const -{ - if(!impl) return -1; - return impl->newScale(); -} - -SVGPoint SVGZoomEvent::newTranslate() const -{ - if(!impl) return SVGPoint(0); - return SVGPoint(impl->newTranslate()); -} diff --git a/ksvg/dom/SVGZoomEvent.cpp b/ksvg/dom/SVGZoomEvent.cpp new file mode 100644 index 00000000..cf3cd8d6 --- /dev/null +++ b/ksvg/dom/SVGZoomEvent.cpp @@ -0,0 +1,97 @@ +/* + Copyright (C) 2001-2003 KSVG Team + This file is part of the KDE project + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "SVGZoomEvent.h" +#include "SVGZoomEventImpl.h" +#include "SVGRect.h" +#include "SVGPoint.h" + +using namespace KSVG; + +SVGZoomEvent::SVGZoomEvent() : DOM::UIEvent() +{ + impl = 0; +} + +SVGZoomEvent::SVGZoomEvent(const SVGZoomEvent &other) : DOM::UIEvent(other), impl(0) +{ + (*this) = other; +} + +SVGZoomEvent &SVGZoomEvent::operator =(const SVGZoomEvent &other) +{ + DOM::UIEvent::operator=(other); + + if(impl == other.impl) + return *this; + + if(impl) + impl->deref(); + + impl = other.impl; + + if(impl) + impl->ref(); + + return *this; +} + +SVGZoomEvent::SVGZoomEvent(SVGZoomEventImpl *other) : DOM::UIEvent() +{ + impl = other; + if(impl) + impl->ref(); +} + +SVGZoomEvent::~SVGZoomEvent() +{ + if(impl) + impl->deref(); +} + +SVGRect SVGZoomEvent::zoomRectScreen() const +{ + if(!impl) return SVGRect(0); + return SVGRect(impl->zoomRectScreen()); +} + +float SVGZoomEvent::previousScale() const +{ + if(!impl) return -1; + return impl->previousScale(); +} + +SVGPoint SVGZoomEvent::previousTranslate() const +{ + if(!impl) return SVGPoint(0); + return SVGPoint(impl->previousTranslate()); +} + +float SVGZoomEvent::newScale() const +{ + if(!impl) return -1; + return impl->newScale(); +} + +SVGPoint SVGZoomEvent::newTranslate() const +{ + if(!impl) return SVGPoint(0); + return SVGPoint(impl->newTranslate()); +} -- cgit v1.2.1