IE-based file viewer plugin for Total Commander (Beta 4)

This plugin shuld be used only if the computer is powerful enough, otherwise delays may be
pretty significant. The plugin uses MS WebBrowser control to view files, so it automatically
supports all formats which IE supports. This includes, of course, native to IE file types like
HTML/XML, many MS Office file types if you have the MS Office installed, PDF through AcrobatReader/IE
integration, all the formats Quick View Plus supports if you have the QVP installed, and so on.
Even more, if you enable this plugin to open directories, then in QuickView mode
select a directory, the second panel magically becomes fully functional Windows Explorer 8-)

WARNING: Since HTML and MS Office files can contain macros or scripts, measures must be taken
to prevent possible script/macro viruses from working. By default, scripting is disabled in the IEView.ini file.
If you enable scripting, then make sure a good antivirus program is installed on your system, or DO NOT use
IEView for viewing files of unknown origin that can contain malicious scripts or macros.

Installation
------------
Copy ieview.wlx and ieview.ini files into your Total Commander plugins directory,
and add the following line to [ListerPlugins] section in the wincmd.ini file:

0=C:\wincmd\plugins\ieview.wlx

(Be sure to substitute actual path to the ieview.wlx file!). Restart the Total Commander.

Ieview.ini file format
--------------------------
[options]
; enables/disables displaying directories in the IE format (works in Quick View mode)
ShowDirs=1
; List of directories that IEView will not display
IgnoreDirs=..;
; When set to 1, prohibits displaying of the .. directory (useful in Quick View mode)
BlockParentDir=1
; Set this to 0 to prevent any Lister hotkeys from working
TranslateHotkeys=1
; When displaying files from these groups, do not set focus to the IE window forcedly
NoFocusChange=word;excel;
; Set to 1 to allow scripts execution
AllowScripting=0
; Set to 0 to disable images
ShowImages=1
; Set to 0 to disable videos
ShowVideos=1
; Set to 0 to disable sounds
PlaySounds=1
; Set to 1 to allow Java applets to execute
AllowJava=0
; Set to 1 to allow ActiveX controls to execute
AllowActiveX=0
; Prevents IEView from following hyperlinks on the Net.
; (This does not work on IE before v6.0, and I am not sure about v6.0. This is a MS bug.)
ForceOffline=0
[extensions]
; All the keys in this sections are arbitrary, and serve just for grouping purposes.
; IEView takes just values, and ignores keys. If you have no QVP installed, for example,
; you can just comment out the corresponding line, so the IEView will not use those extensions.
; You can create your own groups at your convenience.
explorer=.htm;.html;.plg;.mht;.xml;.xsl;
acrobat=.pdf;
word=.doc;.dot;
excel=.xls;
; Quick View Plus extensions. Uncomment this line if QVP is installed.
; some extensions in this list are not automatically supported by QVP when called from IE, so some 
; configuring may be required. Or just remove those that you do not want to view.
;qvp=.vsd;.ppt;.asp;.drw;.lwp;.prz;.wpd;.qpw;.uue;.zip;.123;.gz;.tar;
; Uncomment this line if you have VoloView or similar AutoCAD viewer that is integrated with the IE
;autocad=.dwg;.dxf;.dwf;.rml;.ipt;.iam;.idw;
[signatures]
; This section contains signatures that IEView uses to verify file formats before passing to IE.
; This is a protective measure against some undesired behavior or even crashes that may occur
; if file extension does not correspond to file format. All signatures are optional; if there is
; a signature for file extension, and first bytes of a file do not match the signature, IEView
; ignores the file. Signatures here are in form of hex byte sequence, or a quoted string. There may
; be more than one signature for an extension. In this case, file is viewed if first bytes of the
; file match at least one of them.
.doc=D0CF11E0A1B11AE1,DBA52D00
.dot=D0CF11E0A1B11AE1
.xls=D0CF11E0A1B11AE1
.pdf=""%PDF-""
[hotkeys]
; This section contains hotkeys that, when received by the IE window, will be sent to
; the Lister window. Lister hotkeys that are not in these lists will not work.
File=N;P;Ctrl+P;Esc;
Edit=Ctrl+C;Ctrl+A;

Disclaimer ;-)
--------------
This is a beta release based on beta lister plugin interface, so the author would appreciate
any feedback, error/crash reports etc., but cannot and will not guarantee anything 8-)

Known problems and Limitations
------------------------------
- May be pretty slow on slow machines, or when there is not enough memory
- Though in some cases it is possible to edit the file being viewed, changes are not saved.
  In general, there might be some strange behavior if, for example, a Word file is viewed
  and the user opens another instance of the MS Word. But nothing serious, though.

History
-------
Beta 2 (Dec 1, 2002)
- extensions are now case-insensitive
- added protection against wrong file formats (like text files with .doc or .pdf extension)
- displaying of directories is now optional
Beta 3 (Dec 3, 2002)
- Extensions for directories are not checked now.
- Fixed many issues mostly related to focus and hotkey handling.
- Esc handling is fixed
- Print, ProvFile, NextFile, Search hotkeys work now
- Search (Ctrl-F) is now operational in the IE window as well
- INI file: replaced ShowUpDir with IgnoreDirs (may be useful for future pugins that work with directories)
Beta 4 (Dec 17, 2002)
- Fixed crash on exit under Win98/ME
- Fixed some resource-related problems
- Added control over what HTML elements IEView loads and displays
- Added optional blocking of display of the .. directory

Contact the author
------------------
Yuri Gershanov (yu_gershanov@hotmail.com)
