summaryrefslogtreecommitdiff
path: root/desktop/source/app
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-01-11 12:33:18 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-01-11 12:34:25 -0500
commitf52db3c55b191ee9ea17dfa03ea33527aac491d9 (patch)
tree59a0bc02a3405992aa81b07370f4ec44cc30a1ff /desktop/source/app
parent3fb8ce944058089697fb90a082d6c180a4394ad7 (diff)
Use a dialog for the non-unix platforms.
Diffstat (limited to 'desktop/source/app')
-rw-r--r--desktop/source/app/cmdlinehelp.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/desktop/source/app/cmdlinehelp.cxx b/desktop/source/app/cmdlinehelp.cxx
index 1bab74e6a219..00754d91631e 100644
--- a/desktop/source/app/cmdlinehelp.cxx
+++ b/desktop/source/app/cmdlinehelp.cxx
@@ -133,7 +133,7 @@ namespace desktop
" If -outdir is not specified then current working dir is used as output_dir.\n"\
" Eg. -print-to-file *.doc\n"\
" -print-to-file -printer-name nasty_lowres_printer -outdir /home/user *.doc\n"\
- "\nRemaining arguments will be treated as filenames or URLs of documents to open.\n";
+ "\nRemaining arguments will be treated as filenames or URLs of documents to open.\n\n";
void ReplaceStringHookProc( UniString& rStr );
@@ -187,7 +187,14 @@ namespace desktop
::rtl::OUString aDefault;
String aVerId = ::utl::Bootstrap::getBuildIdData(aDefault);
aVersionMsg.SearchAndReplaceAscii("%BUILDID", aVerId);
+#ifdef UNX
fprintf(stdout, "%s", ByteString(aVersionMsg, RTL_TEXTENCODING_ASCII_US).GetBuffer());
+#else
+ // Just re-use the help dialog for now.
+ CmdlineHelpDialog aDlg;
+ aDlg.m_ftHead.SetText(aVersionMsg);
+ aDlg.Execute();
+#endif
}
#ifndef UNX