summaryrefslogtreecommitdiff
path: root/vcl/workben/vcldemo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/workben/vcldemo.cxx')
-rw-r--r--vcl/workben/vcldemo.cxx12
1 files changed, 0 insertions, 12 deletions
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();