main.cc
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <koApplication.h>
00021 #include <kcmdlineargs.h>
00022
00023 #include <dcopclient.h>
00024 #include "kspread_aboutdata.h"
00025
00026
00027 static const KCmdLineOptions options[]=
00028 {
00029 {"+[file]", I18N_NOOP("File to open"),0},
00030 KCmdLineLastOption
00031 };
00032
00033 extern "C" KSPREAD_EXPORT int kdemain( int argc, char **argv )
00034 {
00035
00036 KCmdLineArgs::init( argc, argv, newKSpreadAboutData() );
00037 KCmdLineArgs::addCmdLineOptions( options );
00038
00039 KoApplication app;
00040
00041 if (!app.start())
00042 return 1;
00043 app.exec();
00044 return 0;
00045 }
This file is part of the documentation for kspread Library Version 1.4.2.