### SVIEW.INI example for use with Windows Standalone SwiftView only. ### ### To use this file, rename it to sview.ini and save it in your ### c:\programs\SwiftView folder. ### ### Note: the numbers below have to start with ICS0= and you cannot ### skip numbers. That means if you rem out a line in the ### middle by putting a # in front of it, you must renumber the ### subsequent commands, or they will be ignored. [SwiftView] # Things to do when we load a document. First, set the title of the window to # be the name of the document. Second, put a non printing markup on each page. ICS0=set ldocinit "gui wintitle \"\$docname()\"|onpage all markup text font \"face cour style normal size 10 pitchcpi 17 \" |onpage all markup attributes print disable|onpage all markup attributes fgcolor rgb:ff/00/00| onpage all markup attributes coordinates device xorigin 0.15 yorigin 0.1|onpage all markup text rxloc 0 ryloc .5 string \"This non-printing SwiftView markup is configured in the sview.ini file. Document opened on $strftime(%X %x).\"" # Erase all the buttons so we can put our own custom buttons in. ICS1=gui controls clear # Show both icons and text on buttons. ICS2=gui controls style both ICS3=gui button label "Open" icon open info "Open document" command "gui dialog open" ICS4=gui button label "All" icon all info "Show entire page" command "draw all" ICS5=gui button label "Wide" icon wide info "Use full window width" command "draw widetop" ICS6=gui button label "Rotate" icon rotate info "Rotate clockwise" command "rotate next|draw" # Use this button if you have both unix text and windows text document # so you can change display modes. ICS7=gui button label "Unix" icon save info "Change to Unix Text and reload" command "set hpfiletype unixtext|reload" ICS8=gui button label "Print" icon print info print command "gui dialog print" # Zooms in, gets the icon for the button from a http location. # Design your own button icons and access them via http or file system. ICS9=gui button label "Zoom" icon http://www.swiftview.com/tech/magnify.bmp info "this icon loaded via http" command "set zoomfactor 1.1|zoom in" # This save dialog has been configured to have TEXT as the default filetype # to save as. ICS10=gui button label "Save" icon save info "save files default as text" command "gui dialog save deftype text" # Customized button for searching text. ICS11=gui button label "Search" icon http://www.swiftview.com/tech/binoc.bmp info "search for text" command "gui dialog find" ICS12=gui button label "Exit" icon exit info "Close SwiftView" command "quit" # Configure a custom keypress like this. ICS13=gui key q "gui dialog help"