]> git.lyx.org Git - features.git/commit
New auto-open feature from Bo Peng (with help from Jean-Marc and Enrico)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 17 May 2006 22:13:33 +0000 (22:13 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 17 May 2006 22:13:33 +0000 (22:13 +0000)
commitb6e30400f512a894fc87052293a47f0e958d4fe6
tree23d71b081a9d27310c78574a4e28f2d96ef81215
parentf39c9e1d5ee77eb1b4fe392bce2f9988fa2699e0
New auto-open feature from Bo Peng (with help from Jean-Marc and Enrico)

* src/lyx_main.C (init): call Formats::setAutoOpen.

* src/lyxrc.C (read): do not reset editor/viewer values of "none".

* src/format.C (fixCommand): helper function: tweak command depending
of the availability of OS viewer/editor.
(setAutoOpen): run fixCommand over all the formats.

* src/support/Makefile.am: under win32, link against shlwapi.dll.

* src/support/os_*.C (canAutoOpenFile, autoOpenFile): new
functions, used to let the OS handle viewers and editors it knows about.

* configure.ac: improve check for shlwapi.

* lib/configure.py: remove check for native windows viewers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13855 a592a061-630c-0410-9148-cb99ea01b6c8
configure.ac
lib/configure.py
src/format.C
src/format.h
src/lyx_main.C
src/lyxrc.C
src/support/Makefile.am
src/support/os.h
src/support/os_cygwin.C
src/support/os_unix.C
src/support/os_win32.C