summaryrefslogtreecommitdiff
path: root/include/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-04 16:28:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-08-05 09:39:22 +0000
commit403c13487c36f4200adf0986c5d11398f719cd7a (patch)
tree21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /include/cppcanvas
parent10560949f90e08fe4a04dd91c7d388c4998100e8 (diff)
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba Reviewed-on: https://gerrit.libreoffice.org/17506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/cppcanvas')
-rw-r--r--include/cppcanvas/bitmapcanvas.hxx8
-rw-r--r--include/cppcanvas/canvas.hxx2
-rw-r--r--include/cppcanvas/canvasgraphic.hxx11
-rw-r--r--include/cppcanvas/color.hxx1
-rw-r--r--include/cppcanvas/font.hxx6
-rw-r--r--include/cppcanvas/polypolygon.hxx5
-rw-r--r--include/cppcanvas/spritecanvas.hxx9
7 files changed, 0 insertions, 42 deletions
diff --git a/include/cppcanvas/bitmapcanvas.hxx b/include/cppcanvas/bitmapcanvas.hxx
index 714879230ab9..b47d438151e5 100644
--- a/include/cppcanvas/bitmapcanvas.hxx
+++ b/include/cppcanvas/bitmapcanvas.hxx
@@ -43,14 +43,6 @@ namespace cppcanvas
{
public:
virtual ::basegfx::B2ISize getSize() const = 0;
-
- // shared_ptr does not allow for covariant return types
- BitmapCanvasSharedPtr cloneBitmapCanvas() const
- {
- BitmapCanvasSharedPtr p( ::boost::dynamic_pointer_cast< BitmapCanvas >(this->clone()) );
- OSL_ENSURE(p.get(), "BitmapCanvas::cloneBitmapCanvas(): dynamic cast failed");
- return p;
- }
};
}
diff --git a/include/cppcanvas/canvas.hxx b/include/cppcanvas/canvas.hxx
index 2104dee39a5e..3538ffd619f3 100644
--- a/include/cppcanvas/canvas.hxx
+++ b/include/cppcanvas/canvas.hxx
@@ -85,8 +85,6 @@ namespace cppcanvas
*/
virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0;
- virtual FontSharedPtr createFont( const OUString& rFontName, const double& rCellSize ) const = 0;
-
virtual ColorSharedPtr createColor() const = 0;
virtual CanvasSharedPtr clone() const = 0;
diff --git a/include/cppcanvas/canvasgraphic.hxx b/include/cppcanvas/canvasgraphic.hxx
index 09d8018ef76f..173ee466cef2 100644
--- a/include/cppcanvas/canvasgraphic.hxx
+++ b/include/cppcanvas/canvasgraphic.hxx
@@ -115,9 +115,6 @@ namespace cppcanvas
/** Set object transformation matrix
*/
virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0;
- /** Get object transformation matrix
- */
- virtual ::basegfx::B2DHomMatrix getTransformation() const = 0;
/** Set object clipping polygon
*/
@@ -125,18 +122,10 @@ namespace cppcanvas
/** Clear object clipping polygon
*/
virtual void setClip() = 0;
- /** Get object clipping polygon
-
- @return NULL, if no clip is set; otherwise, the current clip poly-polygon is returned
- */
- virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0;
/** Set object composite mode
*/
virtual void setCompositeOp( CompositeOp aOp ) = 0;
- /** Get object composite mode
- */
- virtual CompositeOp getCompositeOp() const = 0;
/** Render to parent canvas
diff --git a/include/cppcanvas/color.hxx b/include/cppcanvas/color.hxx
index f259fa1ee176..b6ed71d823bf 100644
--- a/include/cppcanvas/color.hxx
+++ b/include/cppcanvas/color.hxx
@@ -41,7 +41,6 @@ namespace cppcanvas
virtual ~Color() {}
- virtual IntSRGBA getIntSRGBA( ::com::sun::star::uno::Sequence< double >& rDeviceColor ) const = 0;
virtual ::com::sun::star::uno::Sequence< double > getDeviceColor( IntSRGBA aSRGBA ) const = 0;
};
diff --git a/include/cppcanvas/font.hxx b/include/cppcanvas/font.hxx
index c7d8ad6e600e..cbe30123f924 100644
--- a/include/cppcanvas/font.hxx
+++ b/include/cppcanvas/font.hxx
@@ -39,12 +39,6 @@ namespace cppcanvas
{
public:
virtual ~Font() {}
-
- virtual OUString getName() const = 0;
- virtual double getCellSize() const = 0;
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::rendering::XCanvasFont > getUNOFont() const = 0;
};
typedef ::boost::shared_ptr< ::cppcanvas::Font > FontSharedPtr;
diff --git a/include/cppcanvas/polypolygon.hxx b/include/cppcanvas/polypolygon.hxx
index 3cb186354512..d8a2876522dd 100644
--- a/include/cppcanvas/polypolygon.hxx
+++ b/include/cppcanvas/polypolygon.hxx
@@ -56,8 +56,6 @@ namespace cppcanvas
class PolyPolygon : public virtual CanvasGraphic
{
public:
- virtual void addPolygon( const ::basegfx::B2DPolygon& rPoly ) = 0;
- virtual void addPolyPolygon( const ::basegfx::B2DPolyPolygon& rPoly ) = 0;
/** Set polygon fill color
*/
@@ -65,9 +63,6 @@ namespace cppcanvas
/** Set polygon line color
*/
virtual void setRGBALineColor( Color::IntSRGBA ) = 0;
- /** Get polygon fill color
- */
- virtual Color::IntSRGBA getRGBAFillColor() const = 0;
/** Get polygon line color
*/
virtual Color::IntSRGBA getRGBALineColor() const = 0;
diff --git a/include/cppcanvas/spritecanvas.hxx b/include/cppcanvas/spritecanvas.hxx
index 91fc52b3cc41..1ac219e7a86f 100644
--- a/include/cppcanvas/spritecanvas.hxx
+++ b/include/cppcanvas/spritecanvas.hxx
@@ -55,15 +55,6 @@ namespace cppcanvas
virtual bool updateScreen( bool bUpdateAll ) const = 0;
virtual CustomSpriteSharedPtr createCustomSprite( const ::basegfx::B2DSize& ) const = 0;
- virtual SpriteSharedPtr createClonedSprite( const SpriteSharedPtr& ) const = 0;
-
- // shared_ptr does not allow for covariant return types
- SpriteCanvasSharedPtr cloneSpriteCanvas() const
- {
- SpriteCanvasSharedPtr p( ::boost::dynamic_pointer_cast< SpriteCanvas >(this->clone()) );
- OSL_ENSURE(p.get(), "SpriteCanvas::cloneSpriteCanvas(): dynamic cast failed");
- return p;
- }
virtual ::com::sun::star::uno::Reference<
::com::sun::star::rendering::XSpriteCanvas > getUNOSpriteCanvas() const = 0;