summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2012-01-06 14:26:01 -0500
committerAugust Sodora <augsod@gmail.com>2012-01-07 17:47:06 -0500
commit743e627bcfc9c87d806109fe6f3f4e2817b73dda (patch)
tree7d19c900d4476e95edfd26e665bb3e805f0369f6 /vcl
parent809438ad92ab5709fcea022e0f403bb941c2f1b3 (diff)
Remove unused code
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/graphictools.hxx89
-rw-r--r--vcl/source/gdi/graphictools.cxx110
2 files changed, 1 insertions, 198 deletions
diff --git a/vcl/inc/vcl/graphictools.hxx b/vcl/inc/vcl/graphictools.hxx
index 51616204bd2b..c027f6a04691 100644
--- a/vcl/inc/vcl/graphictools.hxx
+++ b/vcl/inc/vcl/graphictools.hxx
@@ -153,50 +153,6 @@ public:
// mutators
/// Set path to stroke
void setPath ( const Polygon& );
- /** Set the polygon that is put at the start of the line
-
- The polygon has to be in a special normalized position, and
- already scaled to the desired size: the center of the stroked
- path will meet the given polygon at (0,0) from negative y
- values. Thus, an arrow would have its baseline on the x axis,
- going upwards to positive y values. Furthermore, the polygon
- also has to be scaled appropriately: the width of the joining
- stroke is defined to be SvtGraphicStroke::normalizedArrowWidth
- (0x10000), i.e. ranging from x=-0x8000 to x=0x8000. If your
- arrow does have this width, it will fit every stroke with
- every stroke width exactly.
- */
- void setStartArrow ( const PolyPolygon& );
- /** Set the polygon that is put at the end of the line
-
- The polygon has to be in a special normalized position, and
- already scaled to the desired size: the center of the stroked
- path will meet the given polygon at (0,0) from negative y
- values. Thus, an arrow would have its baseline on the x axis,
- going upwards to positive y values. Furthermore, the polygon
- also has to be scaled appropriately: the width of the joining
- stroke is defined to be SvtGraphicStroke::normalizedArrowWidth
- (0x10000), i.e. ranging from x=-0x8000 to x=0x8000. If your
- arrow does have this width, it will fit every stroke with
- every stroke width exactly.
- */
- void setEndArrow ( const PolyPolygon& );
- /** Set stroke transparency
-
- @param fTrans
- The transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
- */
- void setTransparency ( double fTrans );
- /// Set width of the stroke
- void setStrokeWidth ( double );
- /// Set the style in which open stroke ends are drawn
- void setCapType ( CapType );
- /// Set the style in which the stroke segments are joined
- void setJoinType ( JoinType );
- /// Set the maximum length of mitered joins
- void setMiterLimit ( double );
- /// Set the array of "on" and "off" lengths for stroke dashing
- void setDashArray ( const DashArray& );
private:
// friends
@@ -359,21 +315,9 @@ public:
@return true, if texture is tiled, false, if output only once.
*/
bool isTiling () const;
- /// Get type of hatch used
- HatchType getHatchType () const;
- /// Get color used for drawing the hatch
- Color getHatchColor () const;
/// Get type of gradient used
GradientType getGradientType () const;
- /// Get start color of the gradient
- Color getGradient1stColor () const;
- /// Get end color of the gradient
- Color getGradient2ndColor () const;
- /** Get the numbers of steps to render the gradient.
-
- @return the step count. gradientStepsInfinite means infinitely many.
- */
- int getGradientStepCount() const;
+
/** Get the texture graphic used
The Graphic object returned is used to fill the geometry, if
@@ -386,37 +330,6 @@ public:
// mutators
/// Set path to fill
void setPath ( const PolyPolygon& rPath );
- /// Set color used for solid fills
- void setFillColor ( Color aFillColor );
- /** Set stroke transparency
-
- @param fTransparency
- The transparency, ranging from 0.0 (opaque) to 1.0 (fully translucent)
- */
- void setTransparency ( double fTransparency );
- /// Set fill rule used
- void setFillRule ( FillRule aFillRule );
- /** Set fill type used
-
- Currently, only one of the fill types can be used
- simultaneously. If you specify e.g. FillRule::fillGradient,
- hatching, texture and solid fill color are ignored.
- */
- void setFillType ( FillType aFillType );
- /// Set transformation applied to hatch, gradient or texture during fill
- void setTransform ( const Transform& pTransform );
- /** Set state of texture tiling
-
- @param bTiling
- If set to true, texture is tiled, if set to false, texture is output only once.
- */
- void setTiling ( bool bTiling = true );
- /// Set type of hatch used
- void setHatchType ( HatchType aHatchType );
- /// Set color used for drawing the hatch
- void setHatchColor ( Color aHatchColor );
- /// Set the texture graphic used
- void setGraphic ( const Graphic& rGraphic );
private:
// friends
diff --git a/vcl/source/gdi/graphictools.cxx b/vcl/source/gdi/graphictools.cxx
index 8a72c0bdd721..3f6a0ec59a34 100644
--- a/vcl/source/gdi/graphictools.cxx
+++ b/vcl/source/gdi/graphictools.cxx
@@ -262,46 +262,6 @@ void SvtGraphicStroke::setPath( const Polygon& rPoly )
maPath = rPoly;
}
-void SvtGraphicStroke::setStartArrow( const PolyPolygon& rPoly )
-{
- maStartArrow = rPoly;
-}
-
-void SvtGraphicStroke::setEndArrow( const PolyPolygon& rPoly )
-{
- maEndArrow = rPoly;
-}
-
-void SvtGraphicStroke::setTransparency( double fTrans )
-{
- mfTransparency = fTrans;
-}
-
-void SvtGraphicStroke::setStrokeWidth( double fWidth )
-{
- mfStrokeWidth = fWidth;
-}
-
-void SvtGraphicStroke::setCapType( CapType eType )
-{
- maCapType = eType;
-}
-
-void SvtGraphicStroke::setJoinType( JoinType eType )
-{
- maJoinType = eType;
-}
-
-void SvtGraphicStroke::setMiterLimit( double fMiterLimit )
-{
- mfMiterLimit = fMiterLimit;
-}
-
-void SvtGraphicStroke::setDashArray( const DashArray& rDashArray )
-{
- maDashArray = rDashArray;
-}
-
SvStream& operator<<( SvStream& rOStm, const SvtGraphicStroke& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );
@@ -442,36 +402,11 @@ bool SvtGraphicFill::isTiling() const
return mbTiling;
}
-SvtGraphicFill::HatchType SvtGraphicFill::getHatchType() const
-{
- return maHatchType;
-}
-
-Color SvtGraphicFill::getHatchColor() const
-{
- return maHatchColor;
-}
-
SvtGraphicFill::GradientType SvtGraphicFill::getGradientType() const
{
return maGradientType;
}
-Color SvtGraphicFill::getGradient1stColor() const
-{
- return maGradient1stColor;
-}
-
-Color SvtGraphicFill::getGradient2ndColor() const
-{
- return maGradient2ndColor;
-}
-
-int SvtGraphicFill::getGradientStepCount() const
-{
- return maGradientStepCount;
-}
-
void SvtGraphicFill::getGraphic( Graphic& rGraphic ) const
{
rGraphic = maFillGraphic;
@@ -482,51 +417,6 @@ void SvtGraphicFill::setPath( const PolyPolygon& rPath )
maPath = rPath;
}
-void SvtGraphicFill::setFillColor( Color aFillColor )
-{
- maFillColor = aFillColor;
-}
-
-void SvtGraphicFill::setTransparency( double fTransparency )
-{
- mfTransparency = fTransparency;
-}
-
-void SvtGraphicFill::setFillRule( FillRule aFillRule )
-{
- maFillRule = aFillRule;
-}
-
-void SvtGraphicFill::setFillType( FillType aFillType )
-{
- maFillType = aFillType;
-}
-
-void SvtGraphicFill::setTransform( const Transform& rTransform )
-{
- maFillTransform = rTransform;
-}
-
-void SvtGraphicFill::setTiling( bool bTiling )
-{
- mbTiling = bTiling;
-}
-
-void SvtGraphicFill::setHatchType( HatchType aHatchType )
-{
- maHatchType = aHatchType;
-}
-
-void SvtGraphicFill::setHatchColor( Color aHatchColor )
-{
- maHatchColor = aHatchColor;
-}
-
-void SvtGraphicFill::setGraphic( const Graphic& rGraphic )
-{
- maFillGraphic = rGraphic;
-}
-
SvStream& operator<<( SvStream& rOStm, const SvtGraphicFill& rClass )
{
VersionCompat aCompat( rOStm, STREAM_WRITE, 1 );