summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-07 13:58:41 +0200
committerNoel Grandin <noel@peralex.com>2015-07-08 09:51:27 +0200
commit449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch)
treefad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/source/outdev
parentb43fde69caf456585004b3e1da5161d76eadf057 (diff)
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/map.cxx85
-rw-r--r--vcl/source/outdev/outdev.cxx23
-rw-r--r--vcl/source/outdev/transparent.cxx10
3 files changed, 0 insertions, 118 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index 4f2863ece132..530df0257627 100644
--- a/vcl/source/outdev/map.cxx
+++ b/vcl/source/outdev/map.cxx
@@ -1054,14 +1054,6 @@ tools::PolyPolygon OutputDevice::LogicToPixel( const tools::PolyPolygon& rLogicP
return aPolyPoly;
}
-basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly ) const
-{
- basegfx::B2DPolygon aTransformedPoly = rLogicPoly;
- const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation();
- aTransformedPoly.transform( rTransformationMatrix );
- return aTransformedPoly;
-}
-
basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygon& rLogicPolyPoly ) const
{
basegfx::B2DPolyPolygon aTransformedPoly = rLogicPolyPoly;
@@ -1231,49 +1223,6 @@ basegfx::B2DPolyPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolyPolygo
return aTransformedPoly;
}
-basegfx::B2DPolygon OutputDevice::LogicToPixel( const basegfx::B2DPolygon& rLogicPoly,
- const MapMode& rMapMode ) const
-{
- basegfx::B2DPolygon aTransformedPoly = rLogicPoly;
- const ::basegfx::B2DHomMatrix& rTransformationMatrix = GetViewTransformation( rMapMode );
- aTransformedPoly.transform( rTransformationMatrix );
- return aTransformedPoly;
-}
-
-vcl::Region OutputDevice::LogicToPixel( const vcl::Region& rLogicRegion, const MapMode& rMapMode ) const
-{
-
- if(rMapMode.IsDefault() || rLogicRegion.IsNull() || rLogicRegion.IsEmpty())
- {
- return rLogicRegion;
- }
-
- vcl::Region aRegion;
-
- if(rLogicRegion.getB2DPolyPolygon())
- {
- aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getB2DPolyPolygon(), rMapMode));
- }
- else if(rLogicRegion.getPolyPolygon())
- {
- aRegion = vcl::Region(LogicToPixel(*rLogicRegion.getPolyPolygon(), rMapMode));
- }
- else if(rLogicRegion.getRegionBand())
- {
- RectangleVector aRectangles;
- rLogicRegion.GetRegionRectangles(aRectangles);
- const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
-
- // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
- {
- aRegion.Union(LogicToPixel(*aRectIter, rMapMode));
- }
- }
-
- return aRegion;
-}
-
Point OutputDevice::PixelToLogic( const Point& rDevicePt ) const
{
@@ -1549,40 +1498,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo
return aTransformedPoly;
}
-vcl::Region OutputDevice::PixelToLogic( const vcl::Region& rDeviceRegion, const MapMode& rMapMode ) const
-{
-
- if(rMapMode.IsDefault() || rDeviceRegion.IsNull() || rDeviceRegion.IsEmpty())
- {
- return rDeviceRegion;
- }
-
- vcl::Region aRegion;
-
- if(rDeviceRegion.getB2DPolyPolygon())
- {
- aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getB2DPolyPolygon(), rMapMode));
- }
- else if(rDeviceRegion.getPolyPolygon())
- {
- aRegion = vcl::Region(PixelToLogic(*rDeviceRegion.getPolyPolygon(), rMapMode));
- }
- else if(rDeviceRegion.getRegionBand())
- {
- RectangleVector aRectangles;
- rDeviceRegion.GetRegionRectangles(aRectangles);
- const RectangleVector& rRectangles(aRectangles); // needed to make the '!=' work
-
- // make reverse run to fill new region bottom-up, this will speed it up due to the used data structuring
- for(RectangleVector::const_reverse_iterator aRectIter(rRectangles.rbegin()); aRectIter != rRectangles.rend(); ++aRectIter)
- {
- aRegion.Union(PixelToLogic(*aRectIter, rMapMode));
- }
- }
-
- return aRegion;
-}
-
#define ENTER1( rSource, pMapModeSource, pMapModeDest ) \
if ( !pMapModeSource ) \
pMapModeSource = &maMapMode; \
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index daaea0ab87f5..ecc6c8f31ed2 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -433,29 +433,6 @@ sal_uLong OutputDevice::GetColorCount() const
return( ( nBitCount > 31 ) ? ULONG_MAX : ( ( (sal_uLong) 1 ) << nBitCount) );
}
-css::uno::Reference< css::rendering::XCanvas > OutputDevice::GetCanvas() const
-{
- css::uno::Sequence< css::uno::Any > aArg(6);
-
- aArg[ 0 ] = css::uno::makeAny( reinterpret_cast<sal_Int64>(this) );
- aArg[ 2 ] = css::uno::makeAny( css::awt::Rectangle( mnOutOffX, mnOutOffY, mnOutWidth, mnOutHeight ) );
- aArg[ 3 ] = css::uno::makeAny( sal_False );
- aArg[ 5 ] = GetSystemGfxDataAny();
-
- css::uno::Reference<css::uno::XComponentContext> xContext = comphelper::getProcessComponentContext();
-
- // Create canvas instance with window handle
- static css::uno::Reference<css::lang::XMultiComponentFactory > xCanvasFactory( css::rendering::CanvasFactory::create( xContext ) );
-
- css::uno::Reference<css::rendering::XCanvas> xCanvas;
- xCanvas.set(
- xCanvasFactory->createInstanceWithArgumentsAndContext(
- "com.sun.star.rendering.Canvas", aArg, xContext ),
- css::uno::UNO_QUERY );
-
- return xCanvas;
-}
-
css::uno::Reference< css::awt::XGraphics > OutputDevice::CreateUnoGraphics()
{
UnoWrapperBase* pWrapper = Application::GetUnoWrapper();
diff --git a/vcl/source/outdev/transparent.cxx b/vcl/source/outdev/transparent.cxx
index bc4d8228b1fc..07ff0678effe 100644
--- a/vcl/source/outdev/transparent.cxx
+++ b/vcl/source/outdev/transparent.cxx
@@ -113,16 +113,6 @@ Color OutputDevice::ImplDrawModeToColor( const Color& rColor ) const
return aColor;
}
-sal_uInt16 OutputDevice::GetAlphaBitCount() const
-{
- return 0;
-}
-
-bool OutputDevice::HasAlpha()
-{
- return mpAlphaVDev != nullptr;
-}
-
void OutputDevice::ImplPrintTransparent( const Bitmap& rBmp, const Bitmap& rMask,
const Point& rDestPt, const Size& rDestSize,
const Point& rSrcPtPixel, const Size& rSrcSizePixel )