#  Copyright (C) 2003 Ingo K"ohne
#  
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#  
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#  
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.

. ../include/common
. ../include/x11

cmd=xdvi

optcomplete  $cmd allowshell
optcomplete -C "$xpc_x11_font_C #"  $cmd altfont font
optcomplete -C "$xpc_x11_color_C #"  $cmd background bg bordercolor bd foreground fg
optcomplete -m noappend -C "$xpc_url_C #"  $cmd base
optcomplete -W "$xpc_digit_W"  $cmd borderwidth bw
optcomplete  $cmd browser
optcomplete  $cmd copy
optcomplete -C "$xpc_x11_color_C #"  $cmd cr
optcomplete -W "$xpc_digit_W"  $cmd debug
optcomplete -W "$xpc_digit_W"  $cmd density
optcomplete -A hostname  $cmd display
optcomplete  $cmd expert
optcomplete -W "$xpc_digit_W"  $cmd gamma
optcomplete -C "$xpc_x11_color_C #"  $cmd grid1 grid2 grid3
optcomplete -W "$xpc_digit_W"  $cmd geometry
optcomplete -W 'Color Greyscale Monochrome'  $cmd gspalette
optcomplete  $cmd gsalpha
optcomplete -C '#color'  $cmd hl
optcomplete  $cmd hush
optcomplete  $cmd hushchars
optcomplete  $cmd hushchecksums
optcomplete  $cmd hushspecials
optcomplete -W "$xpc_digit_W"  $cmd icongeometry
optcomplete  $cmd iconic
optcomplete  $cmd install
optcomplete -f  $cmd interpreter
optcomplete  $cmd keep
optcomplete  $cmd l
optcomplete -W "$xpc_digit_W"  $cmd margins
optcomplete -C "$xpc_mf_modes_C #"  $cmd mfmode
optcomplete -W "$xpc_digit_W"  $cmd mgs mgs1 mgs2 mgs3 mgs4 mgs5 mgs6 mgs7
optcomplete  $cmd noghostscript
optcomplete  $cmd nogrey
optcomplete  $cmd nogssafer
optcomplete  $cmd noinstall
optcomplete  $cmd nomakepk
optcomplete  $cmd nopostscript
optcomplete  $cmd noscan
optcomplete -W "$xpc_digit_W"  $cmd offsets
optcomplete -W "$xpc_digit_W"  $cmd p
optcomplete -W "$xpc_papertype_W"  $cmd paper
optcomplete  $cmd rv
optcomplete -W "$xpc_digit_W"  $cmd s
optcomplete -W "$xpc_digit_W"  $cmd S
optcomplete  $cmd safer
optcomplete -W "$xpc_digit_W"  $cmd shrinkbutton1 shrinkbutton2 shrinkbutton3 shrinkbutton4
optcomplete -W "$xpc_digit_W"  $cmd sidemargin
optcomplete  $cmd thorough
optcomplete -W "$xpc_digit_W"  $cmd topmargin
optcomplete  $cmd underlink
optcomplete  $cmd version
optcomplete  $cmd warnspecials
optcomplete -W "$xpc_digit_W"  $cmd xoffset
optcomplete -W "$xpc_digit_W"  $cmd yoffset
optcomplete -d -C "compgen -f -X\!\*.dvi -- \"\$XPC_PATTERN\" #"  $cmd NONOPT

optcomplete -m singledash  $cmd

complete -F xpcompfunc  $cmd

unset cmd ${!xpc_*}
