summaryrefslogtreecommitdiff
path: root/framework/test
diff options
context:
space:
mode:
authorAndreas Schlüns <as@openoffice.org>2001-09-25 12:39:53 +0000
committerAndreas Schlüns <as@openoffice.org>2001-09-25 12:39:53 +0000
commit413dfe475feb8502f16d583a804ae36227ce22f3 (patch)
treefe80c0bad45c5333d4ac5286c09f909219f1a171 /framework/test
parentac4462ae489fdc07111b919e6f76d773f98ecd49 (diff)
no svdemo any longer
Diffstat (limited to 'framework/test')
-rw-r--r--framework/test/typecfg/cfgview.cxx32
1 files changed, 21 insertions, 11 deletions
diff --git a/framework/test/typecfg/cfgview.cxx b/framework/test/typecfg/cfgview.cxx
index 3b575fd6e167..c34a3b89502e 100644
--- a/framework/test/typecfg/cfgview.cxx
+++ b/framework/test/typecfg/cfgview.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cfgview.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: as $ $Date: 2001-08-31 09:38:40 $
+ * last change: $Author: as $ $Date: 2001-09-25 13:39:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -131,10 +131,16 @@
#include <hash_map>
#endif
+#ifndef _SAL_MAIN_H_
+#include <sal/main.h>
+#endif
+
+/*
#include <vcl/event.hxx>
#include <vcl/svapp.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/msgbox.hxx>
+*/
#include <stdio.h>
//_________________________________________________________________________________________________________________
@@ -220,21 +226,18 @@ struct AppMember
};
/*-***************************************************************************************************************/
-class CFGView : public Application
+class CFGView
{
//*************************************************************************************************************
public:
- void Main();
+ void start();
//*************************************************************************************************************
private:
void impl_parseCommandLine ( AppMember& rMember );
- void impl_generateHTMLView ();
-
- //*************************************************************************************************************
- private:
void impl_printCopyright ();
void impl_printSyntax ();
+ void impl_generateHTMLView ();
void impl_generateTypeListHTML ();
void impl_generateFilterListHTML ();
void impl_generateFilterModulListHTML ();
@@ -260,16 +263,23 @@ class CFGView : public Application
// global variables
//_________________________________________________________________________________________________________________
-CFGView gApplication;
-
//*****************************************************************************************************************
-void CFGView::Main()
+SAL_IMPLEMENT_MAIN()
{
// Init global servicemanager and set it.
// It's neccessary for other services ... e.g. configuration.
ServiceManager aManager;
::comphelper::setProcessServiceFactory( aManager.getGlobalUNOServiceManager() );
+ CFGView aGenerator;
+ aGenerator.start();
+
+ return 0;
+}
+
+//*****************************************************************************************************************
+void CFGView::start()
+{
// Get optional commands from command line.
impl_parseCommandLine( m_aData );