[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/docgenerators (silent)
Bram Schoenmakers
bramschoenmakers at kde.nl
Mon Aug 21 21:28:40 UTC 2006
SVN commit 575687 by bram:
SVN_SILENT: Spelling fix
M +8 -8 main.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/docgenerators/main.cpp #575686:575687
@@ -45,20 +45,20 @@
static KCmdLineOptions options[] =
{
{ "+[File]", I18N_NOOP("File to transform"), 0 },
- { "xslt <url>", I18N_NOOP("The XSLT file tu use"), 0},
+ { "xslt <url>", I18N_NOOP("The XSLT file to use"), 0},
// INSERT YOUR COMMANDLINE OPTIONS HERE
KCmdLineLastOption
};
-int main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
xsltStylesheetPtr cur = NULL;
xmlDocPtr doc, res;
-
+
const char *params[16 + 1];
int nbparams = 0;
params[nbparams] = NULL;
-
+
KAboutData aboutData( "umbodoc", I18N_NOOP("Umbrello UML Modeller autonomous code generator"),
UMBRELLO_VERSION, description, KAboutData::License_GPL,
I18N_NOOP("(c) 2006 Gael de Chalendar (aka Kleag), (c) 2002-2006 Umbrello UML Modeller Authors"), 0,
@@ -71,21 +71,21 @@
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QCStringList xsltOpt = args->getOptionList("xslt");
- if (xsltOpt.size() > 0)
+ if (xsltOpt.size() > 0)
{
QString xsltFile(xsltOpt.last());
-
+
xmlSubstituteEntitiesDefault(1);
xmlLoadExtDtdDefaultValue = 1;
cur = xsltParseStylesheetFile((const xmlChar *)xsltFile.latin1());
doc = xmlParseFile(args->url( 0 ).url().latin1());
res = xsltApplyStylesheet(cur, doc, params);
xsltSaveResultToFile(stdout, res, cur);
-
+
xsltFreeStylesheet(cur);
xmlFreeDoc(res);
xmlFreeDoc(doc);
-
+
xsltCleanupGlobals();
xmlCleanupParser();
}
More information about the umbrello-devel
mailing list