summaryrefslogtreecommitdiff
path: root/vcl/workben/svptest.cxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2013-03-23 15:55:18 +1100
committerThomas Arnhold <thomas@arnhold.org>2013-03-23 09:11:56 +0000
commit444afc083500c3a4c2d2010f4886df49e75b7773 (patch)
tree9087fa93eb865af1e67ebd83311922927fe60bcd /vcl/workben/svptest.cxx
parent73e74680d8c0cbf8baf869cc8bbc58dae432a0ef (diff)
General comment cleanup for demo/test vcl apps
Remove unnecessary commented out code, remove comment "spacer" lines, in general tidy up this code to make it easier to read. Change-Id: I37a19177795aa93d63f736e1933924605fbf2146 Reviewed-on: https://gerrit.libreoffice.org/2921 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'vcl/workben/svptest.cxx')
-rw-r--r--vcl/workben/svptest.cxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index bf1a44de7570..ef95b371f756 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -43,12 +43,10 @@ using namespace ::com::sun::star::lang;
using ::rtl::OUString;
using ::rtl::OUStringBuffer;
-// -----------------------------------------------------------------------
// Forward declaration
void Main();
-// -----------------------------------------------------------------------
SAL_IMPLEMENT_MAIN()
{
@@ -66,7 +64,6 @@ SAL_IMPLEMENT_MAIN()
return 0;
}
-// -----------------------------------------------------------------------
class MyWin : public WorkWindow
{
@@ -83,7 +80,6 @@ public:
void Resize();
};
-// -----------------------------------------------------------------------
void Main()
{
@@ -94,7 +90,6 @@ void Main()
Application::Execute();
}
-// -----------------------------------------------------------------------
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle ),
@@ -121,42 +116,36 @@ MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
m_aBitmap.ReleaseAccess( pAcc );
}
-// -----------------------------------------------------------------------
void MyWin::MouseMove( const MouseEvent& rMEvt )
{
WorkWindow::MouseMove( rMEvt );
}
-// -----------------------------------------------------------------------
void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonDown( rMEvt );
}
-// -----------------------------------------------------------------------
void MyWin::MouseButtonUp( const MouseEvent& rMEvt )
{
WorkWindow::MouseButtonUp( rMEvt );
}
-// -----------------------------------------------------------------------
void MyWin::KeyInput( const KeyEvent& rKEvt )
{
WorkWindow::KeyInput( rKEvt );
}
-// -----------------------------------------------------------------------
void MyWin::KeyUp( const KeyEvent& rKEvt )
{
WorkWindow::KeyUp( rKEvt );
}
-// -----------------------------------------------------------------------
static Point project( const Point& rPoint )
{
@@ -166,7 +155,6 @@ static Point project( const Point& rPoint )
// transform planar coordinates to 3d
double x = rPoint.X();
double y = rPoint.Y();
- //double z = 0;
// rotate around X axis
double x1 = x;
@@ -256,8 +244,6 @@ void MyWin::Paint( const Rectangle& rRect )
Size( aPaperSize.Width()-600,
aPaperSize.Height()-600 ) ) );
- // AllSettings aSettings( Application::GetSettings() );
-
const int nFontCount = GetDevFontCount();
const int nFontSamples = (nFontCount<15) ? nFontCount : 15;
for( int i = 0; i < nFontSamples; ++i )
@@ -361,7 +347,6 @@ void MyWin::Paint( const Rectangle& rRect )
Pop();
}
-// -----------------------------------------------------------------------
void MyWin::Resize()
{