summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-02 16:45:44 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-02 16:54:18 +0300
commit50bf123ddbeb457b89636621a99c971834adf3ab (patch)
treeb7782261998ca0b6bece98543e2c66e3c96f4d3c /vcl/workben
parentdb1c9e4dadc90c5afe3190776a60cc5dcbbce3ac (diff)
Kill superfluous vertical whitespace
Change-Id: I81ce8fd7022bf283db668705efdfb0666f87bde9
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/outdevgrind.cxx5
-rw-r--r--vcl/workben/svdem.cxx12
-rw-r--r--vcl/workben/svpclient.cxx9
-rw-r--r--vcl/workben/svptest.cxx14
-rw-r--r--vcl/workben/vcldemo.cxx12
5 files changed, 0 insertions, 52 deletions
diff --git a/vcl/workben/outdevgrind.cxx b/vcl/workben/outdevgrind.cxx
index 715b7cedebdf..8e592dc78972 100644
--- a/vcl/workben/outdevgrind.cxx
+++ b/vcl/workben/outdevgrind.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
// bootstrap stuff
#include <rtl/bootstrap.hxx>
#include <rtl/ustring.hxx>
@@ -52,7 +51,6 @@
using namespace ::com::sun::star;
-
namespace
{
@@ -779,7 +777,6 @@ void setupMethodStubs( functor_vector_type& res )
}
-
void grindFunc( OutputDevice& rTarget,
functor_vector_type::const_iterator iter,
sal_Int32 nTurns,
@@ -801,7 +798,6 @@ void grindFunc( OutputDevice& rTarget,
pMsg );
}
-
/** Call OutputDevice render methods repeatedly, and output elapsed
time to stdout
*/
@@ -864,7 +860,6 @@ void outDevGrind( OutputDevice& rTarget, sal_Int32 nTurns=100 )
}
}
-
void TestWindow::Paint( const Rectangle& )
{
outDevGrind( *this );
diff --git a/vcl/workben/svdem.cxx b/vcl/workben/svdem.cxx
index 33cd1346773b..8bfc84bcf3b3 100644
--- a/vcl/workben/svdem.cxx
+++ b/vcl/workben/svdem.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <sal/main.h>
#include <tools/extendapplicationenvironment.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -37,7 +36,6 @@ using namespace ::com::sun::star::lang;
// Forward declaration
void Main();
-
SAL_IMPLEMENT_MAIN()
{
tools::extendApplicationEnvironment();
@@ -54,7 +52,6 @@ SAL_IMPLEMENT_MAIN()
return 0;
}
-
class MyWin : public WorkWindow
{
public:
@@ -69,7 +66,6 @@ public:
void Resize();
};
-
void Main()
{
MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
@@ -79,49 +75,41 @@ void Main()
Application::Execute();
}
-
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle )
{
}
-
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 );
}
-
void MyWin::Paint( const Rectangle& rRect )
{
WorkWindow::Paint( rRect );
}
-
void MyWin::Resize()
{
WorkWindow::Resize();
diff --git a/vcl/workben/svpclient.cxx b/vcl/workben/svpclient.cxx
index 61fe3e056349..4537158734f6 100644
--- a/vcl/workben/svpclient.cxx
+++ b/vcl/workben/svpclient.cxx
@@ -47,13 +47,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
-
using namespace cppu;
using namespace comphelper;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-
// Forward declaration
void Main();
@@ -256,43 +254,36 @@ IMPL_LINK( MyWin, SelectHdl, ListBox*, )
return 0;
}
-
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 );
}
-
void MyWin::Paint( const Rectangle& rRect )
{
WorkWindow::Paint( rRect );
}
-
void MyWin::Resize()
{
WorkWindow::Resize();
diff --git a/vcl/workben/svptest.cxx b/vcl/workben/svptest.cxx
index e5c677375c93..0078e7bbfc45 100644
--- a/vcl/workben/svptest.cxx
+++ b/vcl/workben/svptest.cxx
@@ -41,11 +41,9 @@
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-
// Forward declaration
void Main();
-
SAL_IMPLEMENT_MAIN()
{
tools::extendApplicationEnvironment();
@@ -62,7 +60,6 @@ SAL_IMPLEMENT_MAIN()
return 0;
}
-
class MyWin : public WorkWindow
{
Bitmap m_aBitmap;
@@ -78,7 +75,6 @@ public:
void Resize();
};
-
void Main()
{
MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
@@ -88,7 +84,6 @@ void Main()
Application::Execute();
}
-
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle ),
m_aBitmap( Size( 256, 256 ), 32 )
@@ -114,37 +109,31 @@ 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 )
{
const double angle_x = M_PI / 6.0;
@@ -306,8 +295,6 @@ void MyWin::Paint( const Rectangle& rRect )
Size( aPaperSize.Width() - 2000,
500 ) ), aGradient );
-
-
LineInfo aLineInfo( LINE_SOLID, 200 );
double sind = sin( DELTA*M_PI/180.0 );
double cosd = cos( DELTA*M_PI/180.0 );
@@ -345,7 +332,6 @@ void MyWin::Paint( const Rectangle& rRect )
Pop();
}
-
void MyWin::Resize()
{
WorkWindow::Resize();
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index c8cd734e7732..80c5d66f0993 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <sal/main.h>
#include <tools/extendapplicationenvironment.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
@@ -40,7 +39,6 @@ using namespace ::com::sun::star::lang;
// Forward declaration
void Main();
-
SAL_IMPLEMENT_MAIN()
{
tools::extendApplicationEnvironment();
@@ -57,7 +55,6 @@ SAL_IMPLEMENT_MAIN()
return 0;
}
-
class MyWin : public WorkWindow
{
public:
@@ -72,7 +69,6 @@ public:
void Resize();
};
-
void Main()
{
MyWin aMainWin( NULL, WB_APP | WB_STDWORK );
@@ -82,19 +78,16 @@ void Main()
Application::Execute();
}
-
MyWin::MyWin( Window* pParent, WinBits nWinStyle ) :
WorkWindow( pParent, nWinStyle )
{
}
-
void MyWin::MouseMove( const MouseEvent& rMEvt )
{
WorkWindow::MouseMove( rMEvt );
}
-
void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
{
Rectangle aRect(0,0,4,4);
@@ -103,25 +96,21 @@ void MyWin::MouseButtonDown( const MouseEvent& rMEvt )
DrawRect( aRect );
}
-
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 );
}
-
void MyWin::Paint( const Rectangle& rRect )
{
fprintf(stderr, "MyWin::Paint(%ld,%ld,%ld,%ld)\n", rRect.getX(), rRect.getY(), rRect.getWidth(), rRect.getHeight());
@@ -146,7 +135,6 @@ void MyWin::Paint( const Rectangle& rRect )
DrawText( Point( 20, 30 ), OUString( "Just a simple test text" ) );
}
-
void MyWin::Resize()
{
WorkWindow::Resize();