summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outdev.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-16 22:33:14 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-16 22:40:42 +0200
commit2976b53ff8c815f5f6a5deba1763fba153bd528f (patch)
tree178b9b8384f71f27c39922f3a30b432034375c49 /vcl/source/gdi/outdev.cxx
parent7956ff62ee9a4b82f64d19d51cccddd73bc49d1e (diff)
Bin more pointless comments and ASCII graphics
Suggested Easy Hack: Replace all instances of // -------- comments including surrounding newlines with a single newline. Another Easy Hack, slightly harder to automate: Remove all the pointless comments that just tell the class name right before the declaration of that class. Change-Id: Ia890ed613b53c5d719988697e20a983d62334123
Diffstat (limited to 'vcl/source/gdi/outdev.cxx')
-rw-r--r--vcl/source/gdi/outdev.cxx119
1 files changed, 0 insertions, 119 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx
index cb014ec4bfa8..2872262ddb10 100644
--- a/vcl/source/gdi/outdev.cxx
+++ b/vcl/source/gdi/outdev.cxx
@@ -30,7 +30,6 @@
#include <vcl/print.hxx>
#include <vcl/outdev.hxx>
#include <vcl/unowrap.hxx>
-// declare system types in sysdata.hxx
#include <svsys.h>
#include <vcl/sysdata.hxx>
@@ -78,8 +77,6 @@ DBG_NAME( PolyPolygon )
#endif
DBG_NAMEEX( Region )
-// -----------------------------------------------------------------------
-
#ifdef DBG_UTIL
const char* ImplDbgCheckOutputDevice( const void* pObj )
{
@@ -123,8 +120,6 @@ struct ImplObjStack
sal_uInt16 mnFlags;
};
-// -----------------------------------------------------------------------
-
static void ImplDeleteObjStack( ImplObjStack* pObjStack )
{
if ( pObjStack->mnFlags & PUSH_LINECOLOR )
@@ -175,8 +170,6 @@ static void ImplDeleteObjStack( ImplObjStack* pObjStack )
delete pObjStack;
}
-// -----------------------------------------------------------------------
-
bool OutputDevice::ImplIsAntiparallel() const
{
bool bRet = false;
@@ -191,9 +184,6 @@ bool OutputDevice::ImplIsAntiparallel() const
return bRet;
}
-// -----------------------------------------------------------------------
-
-
bool OutputDevice::ImplSelectClipRegion( const Region& rRegion, SalGraphics* pGraphics )
{
DBG_TESTSOLARMUTEX();
@@ -414,8 +404,6 @@ OutputDevice::OutputDevice() :
maThresRes.mnThresPixToLogY = 0;
}
-// -----------------------------------------------------------------------
-
OutputDevice::~OutputDevice()
{
DBG_DTOR( OutputDevice, ImplDbgCheckOutputDevice );
@@ -487,8 +475,6 @@ bool OutputDevice::supportsOperation( OutDevSupportType eType ) const
return bHasSupport;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::EnableRTL( sal_Bool bEnable )
{
mbEnableRTL = (bEnable != 0);
@@ -561,9 +547,6 @@ void OutputDevice::ImplReMirror( Region &rRegion ) const
rRegion = aMirroredRegion;
}
-
-// -----------------------------------------------------------------------
-
SalGraphics* OutputDevice::ImplGetGraphics() const
{
DBG_TESTSOLARMUTEX();
@@ -714,8 +697,6 @@ SalGraphics* OutputDevice::ImplGetGraphics() const
return mpGraphics;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplReleaseGraphics( sal_Bool bRelease )
{
DBG_TESTSOLARMUTEX();
@@ -833,8 +814,6 @@ void OutputDevice::ImplReleaseGraphics( sal_Bool bRelease )
mpNextGraphics = NULL;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplInitOutDevData()
{
if ( !mpOutDevData )
@@ -849,8 +828,6 @@ void OutputDevice::ImplInitOutDevData()
}
}
-// -----------------------------------------------------------------------
-
// #i75163#
void OutputDevice::ImplInvalidateViewTransform()
{
@@ -870,15 +847,11 @@ void OutputDevice::ImplInvalidateViewTransform()
}
}
-// -----------------------------------------------------------------------
-
sal_Bool OutputDevice::ImplIsRecordLayout() const
{
return mpOutDevData && mpOutDevData->mpRecordLayout;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplDeInitOutDevData()
{
if ( mpOutDevData )
@@ -893,8 +866,6 @@ void OutputDevice::ImplDeInitOutDevData()
}
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplInitLineColor()
{
DBG_TESTSOLARMUTEX();
@@ -916,8 +887,6 @@ void OutputDevice::ImplInitLineColor()
mbInitLineColor = sal_False;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplInitFillColor()
{
DBG_TESTSOLARMUTEX();
@@ -939,8 +908,6 @@ void OutputDevice::ImplInitFillColor()
mbInitFillColor = sal_False;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplInitClipRegion()
{
DBG_TESTSOLARMUTEX();
@@ -1027,8 +994,6 @@ void OutputDevice::ImplInitClipRegion()
mbInitClipRegion = sal_False;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::ImplSetClipRegion( const Region* pRegion )
{
DBG_TESTSOLARMUTEX();
@@ -1050,8 +1015,6 @@ void OutputDevice::ImplSetClipRegion( const Region* pRegion )
}
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetClipRegion()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1065,8 +1028,6 @@ void OutputDevice::SetClipRegion()
mpAlphaVDev->SetClipRegion();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetClipRegion( const Region& rRegion )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1087,8 +1048,6 @@ void OutputDevice::SetClipRegion( const Region& rRegion )
mpAlphaVDev->SetClipRegion( rRegion );
}
-// -----------------------------------------------------------------------
-
Region OutputDevice::GetClipRegion() const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1096,8 +1055,6 @@ Region OutputDevice::GetClipRegion() const
return PixelToLogic( maRegion );
}
-// -----------------------------------------------------------------------
-
Region OutputDevice::GetActiveClipRegion() const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1119,8 +1076,6 @@ Region OutputDevice::GetActiveClipRegion() const
return GetClipRegion();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::MoveClipRegion( long nHorzMove, long nVertMove )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1139,8 +1094,6 @@ void OutputDevice::MoveClipRegion( long nHorzMove, long nVertMove )
mpAlphaVDev->MoveClipRegion( nHorzMove, nVertMove );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::IntersectClipRegion( const Rectangle& rRect )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1157,8 +1110,6 @@ void OutputDevice::IntersectClipRegion( const Rectangle& rRect )
mpAlphaVDev->IntersectClipRegion( rRect );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::IntersectClipRegion( const Region& rRegion )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1181,8 +1132,6 @@ void OutputDevice::IntersectClipRegion( const Region& rRegion )
mpAlphaVDev->IntersectClipRegion( rRegion );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetDrawMode( sal_uLong nDrawMode )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1193,8 +1142,6 @@ void OutputDevice::SetDrawMode( sal_uLong nDrawMode )
mpAlphaVDev->SetDrawMode( nDrawMode );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetRasterOp( RasterOp eRasterOp )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1215,8 +1162,6 @@ void OutputDevice::SetRasterOp( RasterOp eRasterOp )
mpAlphaVDev->SetRasterOp( eRasterOp );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetLineColor()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1235,8 +1180,6 @@ void OutputDevice::SetLineColor()
mpAlphaVDev->SetLineColor();
}
-// -----------------------------------------------------------------------
-
Color OutputDevice::ImplDrawModeToColor( const Color& rColor ) const
{
Color aColor( rColor );
@@ -1310,8 +1253,6 @@ void OutputDevice::SetLineColor( const Color& rColor )
mpAlphaVDev->SetLineColor( COL_BLACK );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetFillColor()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1330,8 +1271,6 @@ void OutputDevice::SetFillColor()
mpAlphaVDev->SetFillColor();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetFillColor( const Color& rColor )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1401,8 +1340,6 @@ void OutputDevice::SetFillColor( const Color& rColor )
mpAlphaVDev->SetFillColor( COL_BLACK );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetBackground()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1414,8 +1351,6 @@ void OutputDevice::SetBackground()
mpAlphaVDev->SetBackground();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetBackground( const Wallpaper& rBackground )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1431,8 +1366,6 @@ void OutputDevice::SetBackground( const Wallpaper& rBackground )
mpAlphaVDev->SetBackground( rBackground );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetRefPoint()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1447,8 +1380,6 @@ void OutputDevice::SetRefPoint()
mpAlphaVDev->SetRefPoint();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetRefPoint( const Point& rRefPoint )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1463,8 +1394,6 @@ void OutputDevice::SetRefPoint( const Point& rRefPoint )
mpAlphaVDev->SetRefPoint( rRefPoint );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1525,8 +1454,6 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt )
mpAlphaVDev->DrawLine( rStartPt, rEndPt );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::impPaintLineGeometryWithEvtlExpand(
const LineInfo& rInfo,
basegfx::B2DPolyPolygon aLinePolyPolygon)
@@ -1663,8 +1590,6 @@ void OutputDevice::impPaintLineGeometryWithEvtlExpand(
mpMetaFile = pOldMetaFile;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
const LineInfo& rLineInfo )
{
@@ -1717,8 +1642,6 @@ void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
mpAlphaVDev->DrawLine( rStartPt, rEndPt, rLineInfo );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawRect( const Rectangle& rRect )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1757,8 +1680,6 @@ void OutputDevice::DrawRect( const Rectangle& rRect )
mpAlphaVDev->DrawRect( rRect );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawPolyLine( const Polygon& rPoly )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1834,8 +1755,6 @@ void OutputDevice::DrawPolyLine( const Polygon& rPoly )
mpAlphaVDev->DrawPolyLine( rPoly );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawPolyLine( const Polygon& rPoly, const LineInfo& rLineInfo )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -1925,8 +1844,6 @@ void OutputDevice::ImpDrawPolyLineWithLineInfo(const Polygon& rPoly, const LineI
mpAlphaVDev->DrawPolyLine( rPoly, rLineInfo );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawPolygon( const Polygon& rPoly )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2020,8 +1937,6 @@ void OutputDevice::DrawPolygon( const Polygon& rPoly )
mpAlphaVDev->DrawPolygon( rPoly );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2121,8 +2036,6 @@ void OutputDevice::DrawPolyPolygon( const PolyPolygon& rPolyPoly )
mpAlphaVDev->DrawPolyPolygon( rPolyPoly );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::DrawPolygon( const ::basegfx::B2DPolygon& rB2DPolygon)
{
// AW: Do NOT paint empty polygons
@@ -2221,8 +2134,6 @@ void OutputDevice::ImpDrawPolyPolygonWithB2DPolyPolygon(const basegfx::B2DPolyPo
ImplDrawPolyPolygon( aPixelPolyPolygon.Count(), aPixelPolyPolygon );
}
-// -----------------------------------------------------------------------
-
bool OutputDevice::ImpTryDrawPolyLineDirect(
const basegfx::B2DPolygon& rB2DPolygon,
double fLineWidth,
@@ -2366,8 +2277,6 @@ void OutputDevice::DrawPolyLine(
}
}
-// -----------------------------------------------------------------------
-
sal_uInt32 OutputDevice::GetGCStackDepth() const
{
const ImplObjStack* pData = mpObjStack;
@@ -2380,8 +2289,6 @@ sal_uInt32 OutputDevice::GetGCStackDepth() const
return nDepth;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::Push( sal_uInt16 nFlags )
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2468,8 +2375,6 @@ void OutputDevice::Push( sal_uInt16 nFlags )
mpAlphaVDev->Push();
}
-// -----------------------------------------------------------------------
-
void OutputDevice::Pop()
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2561,15 +2466,11 @@ void OutputDevice::Pop()
mpMetaFile = pOldMetaFile;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetConnectMetaFile( GDIMetaFile* pMtf )
{
mpMetaFile = pMtf;
}
-// -----------------------------------------------------------------------
-
void OutputDevice::EnableOutput( sal_Bool bEnable )
{
mbOutput = (bEnable != 0);
@@ -2578,8 +2479,6 @@ void OutputDevice::EnableOutput( sal_Bool bEnable )
mpAlphaVDev->EnableOutput( bEnable );
}
-// -----------------------------------------------------------------------
-
void OutputDevice::SetSettings( const AllSettings& rSettings )
{
maSettings = rSettings;
@@ -2588,8 +2487,6 @@ void OutputDevice::SetSettings( const AllSettings& rSettings )
mpAlphaVDev->SetSettings( rSettings );
}
-// -----------------------------------------------------------------------
-
sal_uInt16 OutputDevice::GetBitCount() const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2607,8 +2504,6 @@ sal_uInt16 OutputDevice::GetBitCount() const
return (sal_uInt16)mpGraphics->GetBitCount();
}
-// -----------------------------------------------------------------------
-
sal_uInt16 OutputDevice::GetAlphaBitCount() const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2622,8 +2517,6 @@ sal_uInt16 OutputDevice::GetAlphaBitCount() const
return 0;
}
-// -----------------------------------------------------------------------
-
sal_uLong OutputDevice::GetColorCount() const
{
DBG_CHKTHIS( OutputDevice, ImplDbgCheckOutputDevice );
@@ -2632,23 +2525,17 @@ sal_uLong OutputDevice::GetColorCount() const
return( ( nBitCount > 31 ) ? ULONG_MAX : ( ( (sal_uLong) 1 ) << nBitCount) );
}
-// -----------------------------------------------------------------------
-
sal_Bool OutputDevice::HasAlpha()
{
return mpAlphaVDev != NULL;
}
-// -----------------------------------------------------------------------
-
::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics > OutputDevice::CreateUnoGraphics()
{
UnoWrapperBase* pWrapper = Application::GetUnoWrapper();
return pWrapper ? pWrapper->CreateGraphics( this ) : ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >();
}
-// -----------------------------------------------------------------------
-
SystemGraphicsData OutputDevice::GetSystemGfxData() const
{
if ( !mpGraphics )
@@ -2660,8 +2547,6 @@ SystemGraphicsData OutputDevice::GetSystemGfxData() const
return mpGraphics->GetGraphicsData();
}
-// -----------------------------------------------------------------------
-
::com::sun::star::uno::Any OutputDevice::GetSystemGfxDataAny() const
{
::com::sun::star::uno::Any aRet;
@@ -2672,8 +2557,6 @@ SystemGraphicsData OutputDevice::GetSystemGfxData() const
return uno::makeAny(aSeq);
}
-// -----------------------------------------------------------------------
-
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XCanvas > OutputDevice::GetCanvas() const
{
uno::Sequence< uno::Any > aArg(6);
@@ -2703,6 +2586,4 @@ SystemGraphicsData OutputDevice::GetSystemGfxData() const
return xCanvas;
}
-// -----------------------------------------------------------------------
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */