-/* mview.c -- File viewer
+/* mview.c -- File viewer -*- coding: euc-jp; -*-
Copyright (C) 2003, 2004
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
02111-1307, USA. */
/***en
- @page mview view file
+ @enpage m17n-view view file
- @section mview-synopsis SYNOPSIS
+ @section m17n-view-synopsis SYNOPSIS
- mview [ XT-OPTION ...] [ OPTION ... ] [ FILE ]
+ m17n-view [ XT-OPTION ...] [ OPTION ... ] [ FILE ]
- @section mview-description DESCRIPTION
+ @section m17n-view-description DESCRIPTION
Display FILE on a window.
</ul>
*/
+/***ja
+ @japage m17n-view ¥Õ¥¡¥¤¥ë¤ò¸«¤ë
+
+ @section m17n-view-synopsis SYNOPSIS
+
+ m17n-view [ XT-OPTION ...] [ OPTION ... ] [ FILE ]
+
+ @section m17n-view-description DESCRIPTION
+
+ FILE ¤ò¥¦¥£¥ó¥É¥¦¤Ëɽ¼¨¤¹¤ë¡£
+
+ FILE ¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¤Ï¡¢É¸½àÆþÎϤ«¤é¤È¤ë¡£
+
+ XT-OPTIONs ¤Ï Xt ¤Îɸ½à¤Î°ú¿ô¤Ç¤¢¤ë¡£ (e.g. -fn, -fg).
+
+ °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬ÍøÍѤǤ¤ë¡£
+
+ <ul>
+
+ <li> -e ENCODING
+
+ ENCODING ¤Ï FILE ¤Î¥³¡¼¥É·Ï¤Ç¤¢¤ë¡£(¥Ç¥Õ¥©¥ë¥È¤Ï UTF-8)
+
+ <li> -s FONTSIZE
+
+ FONTSIZE ¤Ï¥Õ¥©¥ó¥È¤ÎÂ礤µ¤ò¥Ý¥¤¥ó¥Èñ°Ì¤Ç¼¨¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£¾Êά
+ ¤µ¤ì¤¿¾ì¹ç¤Ï¡¢X ¤Î¥ê¥½¡¼¥¹¤ÇÄêµÁ¤µ¤ì¤¿¥Ç¥Õ¥©¥ë¥È¥Õ¥©¥ó¥È¤ÎÂ礤µ¤È
+ ¤Ê¤ë¡£
+
+ <li> --version
+
+ ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
+
+ <li> -h, --help
+
+ ¤³¤Î¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤¹¤ë¡£
+
+ </ul>
+*/
#ifndef FOR_DOXYGEN
#include <stdio.h>
+#ifdef HAVE_X11_XAW_COMMAND_H
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
-#include <X11/Xaw/Form.h>
-#include <X11/Xaw/Command.h>
-#include <X11/Xaw/Viewport.h>
#include <m17n-gui.h>
#include <m17n-misc.h>
#include <m17n-X.h>
-#define VERSION "1.0"
+#include <X11/Xaw/Form.h>
+#include <X11/Xaw/Command.h>
+#include <X11/Xaw/Viewport.h>
+
+#define VERSION "1.2.0"
/* Global m17n variables. */
MFrame *frame;
/* Open an application context. */
XtSetLanguageProc (NULL, NULL, NULL);
- shell = XtOpenApplication (&context, "MView", NULL, 0, &argc, argv, NULL,
+ shell = XtOpenApplication (&context, "M17NView", NULL, 0, &argc, argv, NULL,
sessionShellWidgetClass, NULL, 0);
XtAppAddActions (context, actions, XtNumber (actions));
help_exit (argv[0], 0);
else if (! strcmp (argv[i], "--version"))
{
- printf ("mview (m17n library) %s\n", VERSION);
+ printf ("m17n-view (m17n library) %s\n", VERSION);
printf ("Copyright (C) 2003 AIST, JAPAN\n");
exit (0);
}
exit (0);
}
+
+#else /* not HAVE_X11_XAW_COMMAND_H */
+
+int
+main (int argc, char **argv)
+{
+ fprintf (stderr,
+ "Building of this program failed (lack of some header files)\n");
+ exit (1);
+}
+
+#endif /* not HAVE_X11_XAW_COMMAND_H */
+
#endif /* not FOR_DOXYGEN */