Commit Graph

101 Commits

Author SHA1 Message Date
Georg Baum
5ed606f9c5 Add a cache for converted image files. This needs to be enabled in the
preferences file with \use_converter_cache true. It is disabled by default,
and no GUI support for changing the preferences is yet implemented.

	* src/insets/insetgraphics.C
	(InsetGraphics::prepareFile): Use image file cache

	* src/insets/ExternalSupport.C
	(updateExternal): Use image file cache

	* src/exporter.C
	(Exporter::Export): Do not use image file cache

	* src/graphics/GraphicsCacheItem.C

	(CacheItem::Impl::imageConverted): Add the converted file to the
	image file cache
	(CacheItem::Impl::convertToDisplayFo): Use image file cache

	* src/converter.C
	(Converters::convert): Use image file cache if the caller allowed that

	* src/converter.h
	(Converters::convert): Adjust arguments

	* src/Makefile.am: Add new files

	* src/support/lyxlib.h
	(chmod): new function
	(copy): add mode argument

	* src/support/copy.C
	(chmod): new function
	(copy): implement mode argument

	* src/support/mkdir.C
	(lyx::support::mkdir): Add warning if permissions are ignored

	* src/lyxrc.[Ch]: Add new settings \converter_cache_maxage and
	\use_converter_cache

	* src/ConverterCache.[Ch]: New image file cache

	* src/importer.C
	(Importer::Import): Do nut use the image file cache

	* src/lyx_main.C
	(LyX::init): Initialize the image file cache

	* src/mover.[Ch]
	(Mover::do_copy): Add mode argument
	(SpecialisedMover::do_copy): ditto

	* configure.ac: Check for chmod

	* development/cmake/ConfigureChecks.cmake: ditto

	* development/cmake/config.h.cmake: ditto

	* development/scons/SConstruct: ditto

	* development/scons/scons_manifest.py: Add new files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15897 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 10:27:57 +00:00
Georg Baum
be76af20b3 comment unused method
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15863 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 19:02:27 +00:00
André Pönitz
6c300f72a2 move everything into namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00
Michael Schmitt
09d0195092 * lyxrc.h:
* lyxfunc.C: remove RC_WHEEL_JUMP


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14415 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-10 18:51:17 +00:00
Michael Schmitt
f8bfe2bc99 * src/lyxrc.C:
* src/lyxrc.h:
	* lib/lyxrc.example: remove wheel jump option


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14406 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-09 17:57:15 +00:00
Jean-Marc Lasgouttes
44a5cfc89c Renaming:
cygwin_path_fix		->	windows_style_tex_paths
	cygwin_path_fix_needed	->	tex_expects_windows_paths
	check_cygwin_path	->	check_windows_style_tex_paths
	use_cygwin_paths	->	use_windows_paths
	RC_CYGWIN_PATH_FIX	->	RC_TEX_EXPECTS_WINDOWS_PATHS

	* src/frontends/qt4/ui/QPrefCygwinPathUi.ui
	* src/frontends/qt3/ui/QPrefCygwinPathModule.ui
	  Updated checkbutton label and description

	* src/frontends/qt4/QPrefsDialog.C
	  (PrefCygwinPath): cygwin_path_fix -> windows_style_tex_paths
	  (QPrefsDialog): Enable checkbutton for native WIN32 builds

	* src/frontends/xforms/forms/form_preferences.fd
	  Updated label and name of checkbutton

	* src/frontends/xforms/FormPreferences.C
	  (apply): cygwin_path_fix -> windows_style_tex_paths
	           check_cygwin_path -> check_windows_style_tex_paths
	  (build): Enable checkbutton for native WIN32 builds
	  (update): Ditto
	  (feedback): Updated description

	* src/frontends/qt3/QPrefs.C
	* src/frontends/qt3/QPrefsDialog.C
	* src/frontends/qt3/QPrefsDialog.h
	  Renaming as above, enabled checkbutton for native WIN32 builds

	* src/support/os_unix.C
	* src/support/os.h
	* src/support/os_win32.C
	  Renaming cygwin_path_fix -> windows_style_tex_paths
	* src/support/os_cygwin.C
	  Ditto
	  (external_path, external_path_list): always return windows
	  style paths, not depending on the checkbutton status

	* src/lyxrc.C
	* src/lyxrc.h
	* src/lyxfunc.C
	* src/lyx_main.C
	  Renaming

	* lib/configure.py
	  Renaming, more meaningful diagnostics




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-06-27 10:51:24 +00:00
Lars Gullik Bjønnes
b2effebe20 2006-04-06 Bo Peng <ben.bob@gmail.com>
session support that
    * handle recent opened files (previously lastfile)
    * save/load bookmarks when quit lyx
    * save/load buffer cursor location whan a file is closed
    * save/load windows position and size when a file is closed
    * add rc entries load_session, use_lastfilepos,
      screen_geometry_height, screen_geometry_width,
      screen_geometry_xysaved.
    * trigger LFUN_QUIT when Alt-F4 or close-button is used to close lyx.
    * remove lastfile.h lastfile.C (merged in session.h, session.C)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13561 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 22:56:18 +00:00
Georg Baum
0d05cc2711 document that wheel_jump is only used in xforms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13461 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-23 12:02:39 +00:00
Jean-Marc Lasgouttes
2e7621d77b enable running latex on files which path contains spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9745 a592a061-630c-0410-9148-cb99ea01b6c8
2005-03-25 15:27:30 +00:00
Angus Leeming
3f938d4dbf The LyXRC::prepend_path patch as tested on the Mac by Andreas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9485 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-16 21:01:41 +00:00
Angus Leeming
7b214dd05e The Cygwin path fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9478 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-14 15:53:30 +00:00
Jürgen Spitzmüller
780ee52866 float2string #3 (lyxrc)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9432 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-05 10:54:31 +00:00
Angus Leeming
e5706b107d The Movers patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9130 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-26 18:39:13 +00:00
Angus Leeming
e978fa42e3 Whitespace, only whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9044 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-05 10:11:42 +00:00
Angus Leeming
965a772279 Hartmut's patch to make the indexing command (makeindex) configurable.
Plus tweaks to get the UI working.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9043 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-05 08:34:41 +00:00
Angus Leeming
f16199abd2 Enable the user to preview xfig figures (f.ex.) without previewing mathed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8670 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-19 13:31:17 +00:00
Angus Leeming
9f4d9b92b9 Bug fix: enable the frontend to ignore the contents of system_lyxrc
when posting the user's changes to lyxrc back to the core.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8611 a592a061-630c-0410-9148-cb99ea01b6c8
2004-04-05 18:21:25 +00:00
Angus Leeming
931a49cc87 A new LFUN_LYXRC_APPLY lfun, together with a bit of a clean-up of the
preferences dialog code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8570 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-31 16:50:59 +00:00
Jürgen Spitzmüller
aecf612d10 customize bibtex call (bug 720)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8559 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-29 12:11:53 +00:00
Jean-Marc Lasgouttes
aefbd97a16 find correct ps and pdf previewers in win32 (bug 1508); remove lyxrc variable \ps_command
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8515 a592a061-630c-0410-9148-cb99ea01b6c8
2004-03-22 16:22:52 +00:00
Jean-Marc Lasgouttes
d891a896f4 Georg Baum\'s no-tempdir patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8458 a592a061-630c-0410-9148-cb99ea01b6c8
2004-02-25 12:00:53 +00:00
Lars Gullik Bjønnes
44cd0fc9a1 The std::string mammoth path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7862 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-06 15:43:21 +00:00
John Levon
74f08e13ea Correct Andr�'s name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7742 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-15 02:24:31 +00:00
Angus Leeming
0f9678630c Remove all unnecessary #includes from header files.
Add them as appropriate to .C files.
Rename Voss as Vo�, Juergen as J�rgen and Spitzmueller as Spitzm�ller.
Happy compiling.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7701 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-07 01:45:40 +00:00
Angus Leeming
1dffc5cfe4 Move #includes out of header files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7659 a592a061-630c-0410-9148-cb99ea01b6c8
2003-09-04 03:54:04 +00:00
Angus Leeming
0be0fcfd59 If I ever see another licence blurb again, it'll be too soon...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-23 00:17:00 +00:00
Jean-Marc Lasgouttes
80d7f70dc3 move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7372 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-26 23:04:39 +00:00
Lars Gullik Bjønnes
fe390e9da1 namespace grfx -> lyx::graphics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7239 a592a061-630c-0410-9148-cb99ea01b6c8
2003-07-04 08:23:23 +00:00
John Levon
22451cf2a8 some reworking to allow Qt to successfully choose a serif default font
with fontconfig


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6655 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-31 02:59:34 +00:00
John Levon
99215ea58f Support for new GNU aspell library. Final pspell fix ups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6578 a592a061-630c-0410-9148-cb99ea01b6c8
2003-03-26 01:20:25 +00:00
Lars Gullik Bjønnes
99d1627a47 dont use pragma impementation and interface anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6138 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-13 16:53:15 +00:00
John Levon
ae87b94515 The big change tracking patch. Changes from posted version :
1) abstract time_t into lyx::time_type
2) abstrace struct passwd into support/userinfo
3) make authorlist a per-buffer property instead of global

I will look at the paragraph breaking soon, in the meantime I opened a bug on bugzilla.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6074 a592a061-630c-0410-9148-cb99ea01b6c8
2003-02-08 19:18:01 +00:00
Angus Leeming
32fc061305 Strip out the override_x_deadkeys stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5819 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-16 12:47:31 +00:00
Lars Gullik Bjønnes
13349032cb ws changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5758 a592a061-630c-0410-9148-cb99ea01b6c8
2002-12-01 22:59:25 +00:00
Dekel Tsur
568ce36c5c lyxrc.*_font_foundry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5737 a592a061-630c-0410-9148-cb99ea01b6c8
2002-11-27 21:49:50 +00:00
John Levon
6af5ac769a Rob's followup (nr. 1 ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5127 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-27 20:30:20 +00:00
John Levon
fe9d927e39 remove 2nd exit confirmation. I think this mutated over time, because
the descriptions of what the option did disagree


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4672 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 04:53:05 +00:00
Jean-Marc Lasgouttes
57e89ae2bf compile fix in XPM image loader; fix opaque handling; remove warnings; fix turkish locale problems; add shortcuts to documents menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4661 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-16 21:17:10 +00:00
John Levon
fa02980a7e remove file->new asks for name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4606 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-11 15:13:21 +00:00
Angus Leeming
0e3d3dc850 preview_shape_factor is a float.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4584 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-10 10:24:33 +00:00
Angus Leeming
a0003fb2a8 New lyxrc variables for the preview stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4580 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-10 09:09:37 +00:00
André Pönitz
9c1a896972 There is now a \preview lyxrc variable defaulting to 'false'.
Would be nice if someone would make this available in the preferences
dialog.

And this incorporates Herberts' patch to use pdfLaTeX which means
we are approaching TeXMacs ballpark of sluggishness...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4484 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-26 08:59:25 +00:00
John Levon
13430adc9a remove show_banner + keyboard_shortcuts as discussed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4455 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-21 11:35:41 +00:00
Lars Gullik Bjønnes
8283e978f8 ws cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
2002-03-21 17:27:08 +00:00
Angus Leeming
5e1253ee88 Revoke change made the other day to make menus appear as bold.
Change variable names in lyxrc and in FormPreferences to reflect the
new meanings, e.g. popup_normal_font, popup_bold_font, popup_font_encoding.
Change preference dialog labels to suit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3329 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-10 15:14:22 +00:00
Jean-Marc Lasgouttes
305c07b193 better latin3&4 support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2848 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-08 14:50:16 +00:00
Jean-Marc Lasgouttes
370fe4e994 latin3 support ; latin9 improvements
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2844 a592a061-630c-0410-9148-cb99ea01b6c8
2001-10-05 16:25:34 +00:00
Jean-Marc Lasgouttes
846ea78a7b Juergen class-change patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2779 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-21 10:41:09 +00:00
Angus Leeming
59df20fcc6 The redesigned graphics dialog, some tweeks to the preferences and ref
dialogs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2768 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-18 10:58:35 +00:00
Angus Leeming
5bc3841d41 Rob Lahaye's "iconify dialogs with main window if so desired" patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2703 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-07 10:11:02 +00:00