Commit Graph

8246 Commits

Author SHA1 Message Date
Abdelrazak Younes
972e1eec7c delete BufferView::text() method and add two FIXME in text.C
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15017 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-16 13:34:09 +00:00
Abdelrazak Younes
bcb71b1fbe Merge BufferView and BufferView_pimpl
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15013 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-16 10:08:51 +00:00
Georg Baum
69c447720a Add phantom icons from Uwe and me (last part of bug 1473)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add phnatom, vphantom and hphantom

	* lib/images/math/hphantom.xpm: new
	* lib/images/math/phantom.xpm: new
	* lib/images/math/vphantom.xpm: new

	* lib/Makefile.am: add new files
	* development/scons/scons_manifest.py: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15009 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 10:58:58 +00:00
Jean-Marc Lasgouttes
759849aa42 * text.C (setCursorFromCoordinates):
* text2.C (setCursorIntern): add an assertion.

	* BufferView_pimpl.C (scrollDocView): reset cursor before setting
	it from coordinates (bug 2830).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15004 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:51:41 +00:00
Jean-Marc Lasgouttes
77fd733217 link lyxclient against iconv
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15003 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:39:10 +00:00
Jean-Marc Lasgouttes
349aac558e * paragraph_funcs.C (breakParagraph): make sure to respect nesting
when depth > 0 (bug 2445)/



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15002 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:38:40 +00:00
Jürgen Spitzmüller
a7ed5b9486 * src/text3.C (doInsertInset): reset first paragraph to default after selected content has been pasted (bug 2802)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14993 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-14 13:44:53 +00:00
Georg Baum
9080c44458 Use wchar_t as lyx::char_type if it is 32 bit wide.
No scons and cmake support! scons and cmake need to find out the size of
wchar_t and define this macro in config.h (example for 32bit wchar_t):

* The size of a `wchar_t', as computed by sizeof. */
#define SIZEOF_WCHAR_T 4

	* configure.ac: Test size of wchar_t

	* src/support/types.h: don't include docstring.h anymore.
	Use wchar_t as lyx::char_type if it is 32 bit wide.

	* src/support/docstring.h: Use lyx::char_type for defining docstring

	* src/metricsinfo.h: include support/docstring.h instead of
	support/types.h
	* src/lyxlex.h: ditto
	* src/frontends/font_metrics.h: ditto
	* src/frontends/qt4/qt_helpers.h: ditto
	* src/frontends/Painter.h: ditto
	* src/errorlist.h: ditto
	* src/support/lstrings.h: ditto
	* src/lyxfunc.h: ditto
	* src/LaTeX.h: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14991 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 21:13:49 +00:00
Georg Baum
59fdb31af3 s/boost::uint32_t/lyx::char_type/g except in the definition of lyx::docstring
and lyx::char_type


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14990 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 17:11:39 +00:00
Georg Baum
a82ca1eed1 * src/frontends/qt4/QLToolbar.C
(QLToolbar::QLToolbar): Fix initialization order


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14989 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 17:04:42 +00:00
Georg Baum
37f22e93a2 * src/frontends/qt3/QLPopupMenu.C
(QLPopupMenu::populate): Don't append a lyx::char_type to a qstring


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14988 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 16:36:56 +00:00
Georg Baum
61102f1028 Compile fix for the case when USE_BOOST_FORMAT is 0
* src/support/lstrings.C
	(bformat): Add missing lyx::from_ascii()

	* src/support/convert.C
	(docstring convert<docstring>(unsigned int)): Add specialization
	(docstring convert<docstring>(long)): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14983 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 11:18:13 +00:00
Enrico Forestieri
179ff08011 Avoid a name clash with boost 1.34
* src/lyx_cb.C (reconfigure):
	* src/buffer.C (runChktex):
	* src/lyxfunc.C (dispatch):
	* src/vc-backend.C (doVCCommand):
	* src/lyx_main.C (reconfigureUserLyXDir):
	Explicitly specify lyx::support::Path.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14982 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-12 17:41:50 +00:00
Enrico Forestieri
f66b23b4df Fix combo box items in the delimiter GUI
* src/frontends/qt4/QDelimiterDialog.C
	(QDelimiterDialog::QDelimiterDialog): add missing "Variable size" item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14981 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-12 01:17:03 +00:00
Georg Baum
d17a57a6f3 Fix converters in our scripts directory
* src/graphics/GraphicsConverter.C
	(build_script): quote filenames in the python script properly
	(build_script):
	(build_script):

	* src/support/filetools.[Ch]
	(quoteName): Add quote_style argument and quoting of python filenames
	(libScriptSearch): Add quote_style argument

	* src/support/filetools.C
	(quote_style): New enum to specify the quoting style


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14978 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 16:07:49 +00:00
Georg Baum
e45d0fb4e4 another compile fix I forgot
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14977 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 13:18:41 +00:00
José Matox
89a92e955d Fix from George to deal with the --disable-nls case
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14976 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 11:58:47 +00:00
Georg Baum
68eab2b645 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14975 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 11:02:36 +00:00
Jean-Marc Lasgouttes
3253193b63 * src/client/debug.C (showLevel):
* src/ispell.C (ISpell,check): compilation fix



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14974 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 10:27:48 +00:00
Georg Baum
fc83b49fd4 make it compile again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14973 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 10:07:39 +00:00
Abdelrazak Younes
a6444784dc A bunch of conversion to docstring.
- bformat(): contributed by Georg Beaum
- Alert::XXX
- error(): in SpellBase, ispell, psell, aspell, buffer, etc.
- message(), message signal
- displayMessage(), setMessage,
- ErrorItems
- prettyName()
- makeDisplayPath()

and maybe some more...


- etc... 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 08:54:10 +00:00
Georg Baum
189d298d96 Add operator+ for ASCII characters and ASCII C strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14969 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 07:13:56 +00:00
Lars Gullik Bjønnes
bb61b2655f More unicode work. Fixup some usages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14968 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 18:34:24 +00:00
Lars Gullik Bjønnes
2a06b31354 Some further work and simplification. Now the conversion engine is only restarted on error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14967 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 16:59:36 +00:00
Lars Gullik Bjønnes
8fd2299744 Cleanup and speedup some of the conversion functions a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14966 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 11:39:57 +00:00
Abdelrazak Younes
4b7fe14620 Revision 14964: forgot this...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14965 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 11:09:25 +00:00
Abdelrazak Younes
c9c47c6464 * LyXView.h:
- makeToolbar(): new pure virtual method

* qt4/GuiView.h:
  - makeToolbar(): new method transferred from QLToolbar

* qt4/QLToolbar: derive from QToolBar instead of owning a QToolBar member.

* Toolbars.h: remove make_toolbar() prototype (use LyXView::makeToolbar instead).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14964 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 11:03:21 +00:00
Abdelrazak Younes
42a7588f32 winwin32 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14963 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 10:53:23 +00:00
Abdelrazak Younes
cfb1d179e6 win32 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14962 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 10:32:41 +00:00
Georg Baum
a91f077dbd remove unused "using" directives
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14960 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 09:54:51 +00:00
Georg Baum
170adea390 Don't lie in debug messages: s/GuiClipboard/GuiSelection/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14959 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 09:42:02 +00:00
Georg Baum
3000b1baff Fix return value of InsetInclude::plaintext
* src/insets/insetinclude.C
	(InsetInclude::plaintext): Add line counting code


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14958 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 09:28:00 +00:00
Georg Baum
9b5a63aaaf Fix return value of InsetText::plaintext
* src/insets/insetnote.C
	(InsetNote::plaintext): Move line counting code from here ...

	* src/insets/insettext.C
	(InsetText::plaintext): ... here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14957 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 08:41:39 +00:00
Georg Baum
d929950da4 compile fix: add missing lyx::to_utf8() around _()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14956 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-10 08:14:30 +00:00
Lars Gullik Bjønnes
0dc81f2463 Change MenuBackend and the other menuclasses to store a docstring. Do the required updates to lstrings/convert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14955 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 22:27:22 +00:00
Lars Gullik Bjønnes
b5fccd53ac Add a virtual in the child as well.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14954 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 22:18:05 +00:00
Lars Gullik Bjønnes
edd81011ce Change editMessage to return a docstring, change functions to not use to_utf8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14953 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 18:52:00 +00:00
Lars Gullik Bjønnes
43b77ba2d7 Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14952 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 15:27:44 +00:00
Lars Gullik Bjønnes
5aa348d969 Make the l10n machinery work with ucs4. Update (as wip) callers to do manual conversion and a FIXME comment. Lots of work to do.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14951 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-09 11:16:28 +00:00
Georg Baum
c20cf44f4e remove unused 'using lyx::support::quoteName;'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14946 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 15:32:20 +00:00
Bo Peng
f478418d3f Minor os_cygwin.C change, from Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14945 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 15:07:22 +00:00
Bo Peng
31d4e8d00f Do not print locale warning under cygwin, from Enrico
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14942 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 14:43:50 +00:00
Jean-Marc Lasgouttes
fe8d08d72f Improve Inset dissolve capability (bug 2201).
* src/insets/insettabular.C (getStatus):
	* src/insets/insettext.C (doDispatch,getStatus): remove special code
	for LFUN_INSET_DISSOLVE.

	* src/text.C (dissolveInset): new method.
	(erase, backspace): use dissolveInset. 

	* src/text3.C (dispatch): use dissolveInset for LFUN_INSET_DISSOLVE.
	(getStatus): disable LFUN_INSET_DISSOLVE if the inset has more than one 	cell.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14940 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 14:08:26 +00:00
Jean-Marc Lasgouttes
45808381d0 Fix bug 2251 (from G Baum)
* src/mathed/math_hullinset.h (displayMargin): new static method.
	* src/mathed/math_hullinset.C (metrics): use displayMargin().

	* src/text2.C (cursorUp, cursorDown): use MathHullInset::displayMargin.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14939 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 13:52:41 +00:00
Jean-Marc Lasgouttes
1822466e57 * BufferView_pimpl.C (getCurrentChange): do not assume that
LyXText at cursor position is the same as LyXText at
	cursor.selBegin() position. Fixes a crash (bug 2600).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14936 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 12:17:45 +00:00
Georg Baum
c7be292968 s/errno.h/cerrno/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14932 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 15:23:16 +00:00
Georg Baum
71577b7c31 Fix compile error
* src/support/fs_extras.C: include errno.h



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14931 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 13:08:33 +00:00
Georg Baum
3f0fc88ced Fix bug 2698 (new images from Uwe Stöhr)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add intop and ointop

	* lib/images/math/intop.xpm: New
	* lib/images/math/ointop.xpm: Ditto

	* lib/images/math/int.xpm: Add box to make the difference to intop clear
	* lib/images/math/oint.xpm: ditto

	* lib/Makefile.am: add new files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14924 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 09:51:50 +00:00
Michael Schmitt
b8f28d4a58 add comments on the purpose and status of some LFUNs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14921 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-06 18:34:57 +00:00
Michael Schmitt
a2f396827c remove LFUN_INSET_SCROLL and LFUN_DIALOG_SHOW_NEXT_INSET
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14920 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-06 18:20:35 +00:00
Peter Kümmel
dc5a9f7d2c update to boost 1.34 cvs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14911 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-06 09:47:45 +00:00
Lars Gullik Bjønnes
d64a07a784 Update in-tree boost to latest from boost 1.34 cvs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14895 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-05 07:18:36 +00:00
Georg Baum
15be4fb8ef Fix byte order problems
* src/support/unicode.C
	(bytes_to_ucs4): make it work on big endian machines
	(bytes_to_ucs2): make it work on little endian machines
	(ucs2_to_ucs4): ditto
	(utf8_to_ucs4): Invoke iconv with explicit BE suffix
	(ucs2_to_ucs4): ditto
	(ucs4_to_ucs2): ditto
	(ucs4_to_utf8): ditto

	* configure.ac: Check for byte order

	* development/scons/SConstruct: Ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14890 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-04 14:43:25 +00:00
Abdelrazak Younes
b05e4c7a82 Fixes a MSVC/Qt4 crash when closing the Document Settings dialog.
* Dialogs::disconnect(string const & name): check if the dialog is an inset before resetting open_insets_


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14889 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-04 09:48:51 +00:00
André Pönitz
3663e1161a use enums instead of strings to distinguish different types of math hull
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14882 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 16:14:51 +00:00
Abdelrazak Younes
a6e0f26fe2 * MSVC compilation fix: replace subst template with subst_char and sub_string
* add lowercase() and uppercase() functions for unicode char_type.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14881 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 14:09:24 +00:00
Jürgen Spitzmüller
bae41d8a3b fix getStatus of LFUN_DISSOLVE_INSET:
* src/text3.C (getStatus): 
	disable the lfun in MainText.
* src/insets/insettabular.C (getStatus):
	disable inset-dissolve completely.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14879 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 13:39:54 +00:00
Abdelrazak Younes
9e18b8e975 All methods: use char_type as argument instead of char.
isLetterChar(): verify also that this is a one-byte char (<256).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14877 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 12:12:53 +00:00
Abdelrazak Younes
35ec954df8 This fixes the crash when PageDown scrolling UserGuide.lyx
* MathMacroTemplate::prefix(): now return docstring.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14876 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 11:54:17 +00:00
Georg Baum
e33bac93cd Fix clipboard/selection encoding
* src/frontends/qt[34]/qt_helpers.[Ch]
	(toqstr): add variant for docstring
	(qstring_to_ucs4): Use docstring and port from qt4 to qt3

	* Many other files: Many std::string -> lyx::docstring conversions

	* src/support/lstrings.[Ch]
	(subst): Add variant for docstring and char_type
	(externalLineEnding): std::string -> lyx::docstring
	(internalLineEnding): std::string -> lyx::docstring


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14871 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-03 07:02:38 +00:00
Georg Baum
0542f28f04 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14868 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-02 10:27:28 +00:00
Georg Baum
6afe0b915c Fix some conversion problems spotted by MSVC warnings
* src/insets/insetquotes.[Ch]
	(InsetQuotes::InsetQuotes): char -> lyx::char_type

	* src/support/lstrings.h
	(contains): new variant for docstrings

	* src/frontends/controllers/ControlSpellchecker.C
	(isLetter): Add missing conversion to utf8
	(nextWord): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14867 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-02 10:18:20 +00:00
Abdelrazak Younes
14c30e2b84 iconv_convert(): return empty vector in case of empty input
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14866 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-02 08:01:50 +00:00
Bo Peng
6d23395dc7 Improve Computer Algebra System, from Enrico Forestieri <forenr@tlc.unipr.it>
* src/mathed/math_symbolinset.C
	(void MathSymbolInset::maxima):
	       - newer maxima versions use inf instead of INF
	       - add support for greek pi

	(void MathSymbolInset::mathematica):
	       - add support for \cdot

	* src/mathed/math_stringinset.h
	       - account for the const version of asStringInset()

	* src/mathed/math_extern.C
	(bool extractScript):
	       - added bool superscript to formal parameters in order
	         to only extract superscripts

	(MathArray::iterator extractArgument):
	       - leave out delimiters and a possible superscript
	         for function arguments

	(bool isKnownFunction):
	(bool extractFunctionName):
	       - recognize standard and user defined function names

	(void splitScripts):
	       - correctly split scripts as expected by other functions

	(MathAtom replaceDelims):
	       - ranamed as replaceParenDelims

	(bool testOpenBracket):
	(bool testCloseBracket):
	       - test for "[" and "]", respectively

	(MathAtom replaceBracketDelims):
	       - replace something delimited by "[" and "]" with a
	         proper DelimInset

	(void extractDelims):
	       - create a DelimInset for "[" and "]" delimiters, too

	(void extractFunctions):
	       - improved recognition of function names

	(bool testTermDelimiter):
	       - test for '+' or '-' as term delimiters

	(MathArray::iterator extractTerm):
	       - extract a "term", i.e., something delimited by '+' or '-'

	(bool testDiffItem):
	       - improved recognition of a "differential fraction"

	(void extractDiff):
	       - call splitScripts() on numerator and denominator of a
	         differential fraction before analyzing them

	(void extractLims):
	       - improved recognition of a limit function

	(void extractStructure):
	       - reorganized order of searches

	(MathArray pipeThroughMaxima):
	       - newer versions of maxima use simpsum instead of SIMPSUM

	(string fromMathematicaName):
	       - translates from mathematica names

	(MathArray pipeThroughMathematica):
	       - calls mathematica and collects its output

	(MathArray pipeThroughExtern):
	       - add support for mathematica

	* src/mathed/math_numberinset.C
	* src/mathed/math_numberinset.h
	(void MathNumberInset::mathematica):
	       - add support for mathematica

	* src/mathed/math_matrixinset.C
	* src/mathed/math_matrixinset.h
	(void MathMatrixInset::mathematica):
	       - add support for mathematica

	* src/mathed/math_diffinset.C
	* src/mathed/math_diffinset.h
	(void MathDiffInset::maxima):
	       - add support for maxima

	(void MathDiffInset::mathematica):
	       - mathematica uses "D" and not "Dt" for normal derivatives

	* src/mathed/math_liminset.C
	* src/mathed/math_liminset.h
	(void MathLimInset::maxima):
	       - add support for maxima

	(void MathLimInset::mathematica):
	       - mathematica uses "Limit" and not "Lim" for limits

	* src/mathed/math_exfuncinset.C
	(string asMathematicaName):
	       - added some more function names


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14865 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-02 01:57:36 +00:00
Georg Baum
1fc0c01877 convert lfun arguments to docstring
* src/support/docstring.[Ch]
	(from_ascii): new conversion function
	(from_utf8): new conversion function
	(to_utf8): new conversion function
	(operator==) new, compare docstring and ASCII C string
	(operator!=) new, compare docstring and ASCII C string

	* src/support/Makefile.am: add new file docstring.C

	* development/scons/scons_manifest.py: ditto

	* src/funcrequest.[Ch]
	(argument): change name to argument_ and type to docstring,
	add an accessor
	(FuncRequest): Add two new constructors taking a docstring argument

	* all other files: adjust to the FuncRequest changes above


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14861 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-01 15:41:38 +00:00
Abdelrazak Younes
b486b53f8f Patch from Enrico:
Avoids the crash when quitting LyX on Cygwin/qt4


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14860 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-01 13:49:03 +00:00
Abdelrazak Younes
02f51e1820 Patch from Enrico:
In src/support/os_cygwin.C path styles are converted (when needed) from
one style to another. I discovered a couple of cases in which an
unnecessary conversion takes place.

The default output path style in external_path is windows because this
function is also used when adding fonts though a native Windows API call.
However, this call is not made in an X11 build, so it is not necessary
that the output path style is windows.

Log:
Small fixes for cygwin.

	* os_cygwin.C (is_windows_path): avoid unnecessary conversion
	when path is relative
	(convert_path_list): avoid unnecessary conversion when path
	list is empty
	(external_path): for an X11 build it is not necessary that
	the output path style is windows


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14859 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-01 13:37:52 +00:00
Lars Gullik Bjønnes
86b063d2da Use correct types for qstring, also to avoid 64<->32 bit issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14858 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 20:36:07 +00:00
Lars Gullik Bjønnes
810f6e499b Use exceptions to avoid more than one call to the filesystem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14857 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 19:32:12 +00:00
Edwin Leuven
74344a8f4b further ui cleanup: correct tab order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14856 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 13:46:28 +00:00
Edwin Leuven
27fa8c7d12 correct tab order + layout cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14855 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 13:07:05 +00:00
Abdelrazak Younes
d64b3a4a0a simple one line optimisation in iconv_convert().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14854 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-31 08:49:12 +00:00
Abdelrazak Younes
4d5767fd9c * qt_helpers.[Ch]: new conversion from/to ucs4 strings and chars to/from QChar and QString.
* qfont_metrics.C: make use of above methods instead of those in unicode.[Ch]

* QLPainter.C: ditto

* QLyXKeySym.C: ditto + simplification and a BOOST_ASSERT that verifies that the event is one char only.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14852 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-30 14:59:07 +00:00
Abdelrazak Younes
72a680e261 small cleanup: delete two unneeded lines of code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14850 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-29 09:08:51 +00:00
Jürgen Spitzmüller
16b150e6bf * src/buffer.C (save):
catch exception thrown by boost::filesystem if copying to the 
	backup directory fails (fixes bug 2740: crash and dataloss if
	the backup dir was invalid or not writeable).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14849 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-29 08:38:00 +00:00
Georg Baum
0df0e32b22 fix dropping of UNC filenames on windows (from Enrico)
* src/frontends/qt4/GuiWorkArea.C
	(GuiWorkArea::dropEvent): Use toLocalFile instead of toString,
	because toString omits the first backslash of UNC paths.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14846 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-27 16:10:41 +00:00
Edwin Leuven
e28114779b minimal effort implementation of:
* float widget as a .ui file
* floatplacement.[Ch] -> FloatPlacement.[Ch] 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14838 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 13:40:01 +00:00
Edwin Leuven
e18dcb5b9d get rid of comments, c++ style casts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14837 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 10:52:49 +00:00
Georg Baum
f7d81fbabf clean up Abdel's cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14836 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 19:43:06 +00:00
Abdelrazak Younes
3cf9a75bb3 remove qPixmapFromMimeSource. This caused the inclusion of Qt3 support headers which we want to get rid of.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14835 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 19:37:40 +00:00
Abdelrazak Younes
4cdd558c70 * BufferView: delete firstLayout()
* LyXView: save two setLayout() calls that are done in updateLayoutChoice() anyway.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14833 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 16:55:31 +00:00
Georg Baum
d6a42972ea Fix bug 2786: import of spaces
* src/tex2lyx/text.C
	(known_spaces): new, LaTeX names of known spaces
	(known_coded_spaces): new, LyX names of known spaces
	(parse_text): Recognize all known spaces


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14832 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 16:34:47 +00:00
Abdelrazak Younes
c70f77354a That commit replaces the Buffer::message() signal emissions from within "BufferView_pimpl.C" and "lyxfind.C" with BufferView::message() signal emission.
* BufferView.h: new message boost signal.

* BufferView_pimpl.C: replace Buffer::message() with BufferView::message() signal emission.

* lyxfind.C: ditto.

* WorkArea:
  - displayMessage(): new private method that calls LyXView::message().
  - messageConnection_: new signal connection.
  - setBufferView(): handle BufferView connection/disconnection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14831 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 14:10:22 +00:00
Jean-Marc Lasgouttes
07864bd9f8 * src/frontends/LyXView.C (setBuffer): update the list of layouts
before setting the current layout.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14830 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 09:46:29 +00:00
Abdelrazak Younes
cd8b0e563c This commit fixes the crash caused by loading an empty corrupted document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14828 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 08:17:47 +00:00
Abdelrazak Younes
1451d739c4 replace LyXView::message() direct call with Buffer::message() boost signal emission.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14827 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 21:14:43 +00:00
Michael Schmitt
d2232b650e resolve last occurrence of QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14824 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 14:01:24 +00:00
Michael Schmitt
d056d51087 revert recent change to development/FORMAT (don't change history)
drop LinuxDoc support (final part)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14823 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 12:55:23 +00:00
Michael Schmitt
5a0176a6eb drop linuxdoc support (part 5)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14822 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 12:43:46 +00:00
Michael Schmitt
2a71306d77 drop linuxdoc support (part 4)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14821 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 11:16:08 +00:00
Jean-Marc Lasgouttes
b4d20b81af Handle properly script insets which nucleus has more than one
element (like {a'}^{2}). (froward port from 14802)

	* src/mathed/math_nestinset.C (script): when creating a script
	inset, handle specially previous atom if it is a MathBraceInset
	(this is used in interactive input).

	* src/mathed/math_parser.C (parse1): when creating a script inset,
	handle specially previous atom if it is a MathBraceInset (this is
	used in parsing phase).

	* src/mathed/math_scriptinset.C (write): put nucleus into braces
	if it contains more than one element or is itself a script inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14819 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:57:49 +00:00
Michael Schmitt
b124158c34 drop linuxdoc support (part 3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14818 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:57:45 +00:00
Michael Schmitt
609889cb35 drop linuxdoc support (part 2)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14817 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:47:11 +00:00
Michael Schmitt
f0d215f752 drop linuxdoc support (part 1)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14816 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 10:41:43 +00:00
Abdelrazak Younes
83eb07fc4b Fix crash on exit after a Buffer switch.
Log:
* lyxfunc.C:
  - LyXFunc::dispatch(): put some save guards before using
    BufferView::cursor() and sendDispatchMessage().

* BufferView_pimpl.C
  - BufferView::Pimpl::setBuffer(): return before if exiting.

* WorkArea.C:
  - WorkArea::redraw(): update the toolbar when greying out.

* LyXView.C:
  - LyXView::setBuffer(): sanitization 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14815 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-23 08:27:51 +00:00
Jean-Marc Lasgouttes
c46e1bdc9a Make sure to link lyx and tex2lyx against libiconv.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14814 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-22 15:43:48 +00:00
Jean-Marc Lasgouttes
c9b50bc70e * math_nestinset.C (lfunMousePress): on button 2 press, paste
inner LyX selection if it exists (bug 2779).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14812 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-22 13:58:09 +00:00
Jean-Marc Lasgouttes
9ee8395133 Do not make all menu entries checkable
* src/frontends/qt4/Action.C (Action): do not set entry to
	checkable by default; invoke update() to set it up.
	(update): only set checkable property if needed.

	* src/frontends/qt4/QLPopupMenu.C (populate): in the case of
          a Command menu item, let Action set itself up.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14811 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-22 09:38:03 +00:00
Abdelrazak Younes
61443d8641 * src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent):
new methods; invoke LyXView::updateToolbars() (bug 2423).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14809 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-21 09:14:18 +00:00
Jürgen Spitzmüller
4758d556c9 * insetcite.C (getNatbibLabel): prevent filesystem exception
if the bib file is in a non-readable directory (bug 2782).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14807 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-19 10:39:03 +00:00
Jürgen Spitzmüller
9be166025a * insetcite.C (getNatbibLabel): prevent filesystem exception
if the bib file does not exist.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14805 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-18 16:03:48 +00:00
Abdelrazak Younes
4237016770 GuiWorkArea::inputMethodEvent(): remove unneeded Qt::KeyboardModifiers construction and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14803 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-18 09:25:45 +00:00
Abdelrazak Younes
a2d2d0c997 Fix resize bug (WorkArea not redrawn).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14800 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 22:01:59 +00:00
Abdelrazak Younes
8b67b6e357 This commit moves the busy cursor and formatting message handling from BufferView to WorkArea.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14799 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 22:00:07 +00:00
Abdelrazak Younes
5bda7ca222 This patch moves the dialogs hidding/update from BufferView::setBuffer() to LyXView::setBuffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14798 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:46:52 +00:00
Jean-Marc Lasgouttes
020a793ef9 Fix crash when cursor is in an empty script and the user clicks
in the text.

	* src/insets/insetbase.h (notifyCursorLeaves): return a bool
	indicating whether cursor is invalidated.

	* src/mathed/math_nestinset.C (notifyCursorLeaves): 
	* src/mathed/math_hullinset.C (notifyCursorLeaves): adapt to
	prototype change.

	* src/mathed/math_scriptinset.[Ch] (notifyCursorLeaves): return
	true when an inset has been deleted.

	* src/BufferView.C (mouseSetCursor): do not call dEPM when cursor
	is invalidated by notifyCursorLeaves.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14796 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:32:04 +00:00
Jean-Marc Lasgouttes
4d55c8b288 Fix bug 2727.
* math_scriptinset.C (notifyCursorLeaves): call recordUndoInset
	before deleting a cell; if the nucleus does not have scripts
	anymore, delete it and replace it by its contents at enclosing
	level. 
	(write): output scripts even when they are empry.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14793 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:07:24 +00:00
Jean-Marc Lasgouttes
3826a5c54f * text3.C (dispatch/LFUN_INSET_DISSOLVE): use recordUndoInset;
rewrite and simplify.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14792 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 20:32:32 +00:00
Jean-Marc Lasgouttes
d606047b0f * undo.C (recordUndoInset): remember the cursor position inside
the inset.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14791 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 20:13:30 +00:00
Abdelrazak Younes
58e769d564 Cosmetic changes:
- put some spaces
- delete some comments
- reorder #include
- delete unneeded workWidth_ and workHeight_ members.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14787 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 17:15:17 +00:00
Jean-Marc Lasgouttes
f46a3db4d8 fix bad debug messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14784 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 13:23:08 +00:00
Abdelrazak Younes
440c634377 GuiWorkArea::inputMethodEvent(QInputMethodEvent * e):
compile fix and use of the proper QKeyEvent prototype.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14782 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 12:39:11 +00:00
Abdelrazak Younes
a9f3ec2b60 delete unneeded #ifdef
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14781 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:58:15 +00:00
Abdelrazak Younes
2223e5414e get rid of QT3_SUPPORT
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14780 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:49:25 +00:00
Abdelrazak Younes
1d985ede5f set eol-style to native
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14777 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:01:27 +00:00
Abdelrazak Younes
bbd7b86d98 this was a remnant of qt3...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14772 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:04:54 +00:00
Abdelrazak Younes
4535977545 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14771 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:03:26 +00:00
Abdelrazak Younes
d150b99ed7 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14770 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:03:01 +00:00
Abdelrazak Younes
840a9a6d0e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14769 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:02:46 +00:00
Abdelrazak Younes
7ecb04d91e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14768 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:46 +00:00
Abdelrazak Younes
8a57064442 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14767 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:25 +00:00
Abdelrazak Younes
6e9dd92302 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14766 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:01:06 +00:00
Abdelrazak Younes
7774e06950 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14765 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:54 +00:00
Abdelrazak Younes
26c9642c16 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14764 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:36 +00:00
Abdelrazak Younes
778964380e get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14763 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 09:00:11 +00:00
Abdelrazak Younes
ca6e17c52a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14762 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:59:28 +00:00
Abdelrazak Younes
fe5a193198 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14761 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:59:00 +00:00
Abdelrazak Younes
16d37fd803 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14760 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:46 +00:00
Abdelrazak Younes
9aac0f789a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14759 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:35 +00:00
Abdelrazak Younes
a9a6a5447d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14758 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:28 +00:00
Abdelrazak Younes
be9ae60c82 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14757 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:16 +00:00
Abdelrazak Younes
7bf7f56194 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14756 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:58:01 +00:00
Abdelrazak Younes
d1fd1a1f97 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14755 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:44 +00:00
Abdelrazak Younes
df076c43f4 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14754 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:29 +00:00
Abdelrazak Younes
8ae752ec32 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14753 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:15 +00:00
Abdelrazak Younes
b0203c1d15 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14752 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:57:05 +00:00
Abdelrazak Younes
19b3779d44 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14751 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:56:53 +00:00
Abdelrazak Younes
6240926584 get rid of QT3_SUPPORT (not complete) and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14750 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:56:30 +00:00
Abdelrazak Younes
6b399ede5d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14749 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:55:41 +00:00
Abdelrazak Younes
6aabd01568 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14748 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:55:23 +00:00
Abdelrazak Younes
6d3edcf760 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14747 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:44 +00:00
Abdelrazak Younes
ad45381bd6 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14746 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:22 +00:00
Abdelrazak Younes
550d0f0be8 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14745 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:54:12 +00:00
Abdelrazak Younes
dba6b54acc get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14744 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:53:44 +00:00
Abdelrazak Younes
77b7e8adea get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14743 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:53:10 +00:00
Abdelrazak Younes
ae2cce4188 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:59 +00:00
Abdelrazak Younes
4a2016826d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14741 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:45 +00:00
Abdelrazak Younes
766be8d03c get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14740 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:32 +00:00
Abdelrazak Younes
cb05434d79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14739 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:52:14 +00:00
Abdelrazak Younes
4b2eb61391 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14738 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:54 +00:00
Abdelrazak Younes
715685a31f get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14737 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:41 +00:00
Abdelrazak Younes
7b6815810d get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14736 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:30 +00:00
Abdelrazak Younes
e6a07c092a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14735 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:51:02 +00:00
Abdelrazak Younes
49852dca94 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14734 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:34 +00:00
Abdelrazak Younes
92b3cd4074 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14733 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:50:14 +00:00
Abdelrazak Younes
43a8d1529b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14732 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:57 +00:00
Abdelrazak Younes
8eb5da91da get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14731 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:40 +00:00
Abdelrazak Younes
773f079a56 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14730 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:49:05 +00:00
Abdelrazak Younes
4a59eb800b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14729 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:48:24 +00:00
Abdelrazak Younes
c1bf7d7c8b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14728 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:52 +00:00
Abdelrazak Younes
7b8f73cc9a get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14727 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:47:20 +00:00
Abdelrazak Younes
73f862e94b get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14726 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:59 +00:00
Abdelrazak Younes
e2cf98e4f5 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14725 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:38 +00:00
Abdelrazak Younes
8762a5cab8 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14724 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:46:00 +00:00
Abdelrazak Younes
64317e45cd get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14723 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:48 +00:00
Abdelrazak Younes
e30a1e10a7 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14722 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:45:13 +00:00
Abdelrazak Younes
8670d821c4 some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14721 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:44:15 +00:00
Abdelrazak Younes
76bf4f5a79 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14720 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:43:48 +00:00
Abdelrazak Younes
05c1fd0832 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14718 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:46 +00:00
Abdelrazak Younes
b1bb25dbb3 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14717 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:37:26 +00:00
Abdelrazak Younes
82a90fceb7 get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14716 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 08:36:59 +00:00
Georg Baum
9e87592940 autotools support for including moc files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14715 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 23:10:31 +00:00
Bo Peng
0ba726bb7a Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually.
* src/frontends/qt3/[all mocable files].C: add #include _moc.cpp at the end.
	* development/scons/SConstruct: do not compile _moc files individually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14714 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 22:10:20 +00:00
Jean-Marc Lasgouttes
f8a5da9048 * configure.ac: add LYX_DATE variable for release date.
* config/lyxinclude.m4: reset release date for development versions.

	* src/version.C.in: make lyx_release_date a placeholder.

	* src/lyx_main.C (parse_version): 
	* src/frontends/controllers/ControlAboutlyx.C (getVersion): change a 
	bit the display of LyX release date.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14712 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:54:55 +00:00
Bo Peng
e530d2ddd2 Scons: add support for msvc qt3
* src/support/package.C.in: use PATH_MAX instead of MAX_PATH
	* INSTALL.scons: add instruction for building qt3 2ith msvc
	* development/scons/SConstruct: use the right lib (qt-mt3) and manifest file


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14709 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:34:24 +00:00
Jean-Marc Lasgouttes
a772437054 Fix bug 2068 and do some cleanup
* src/CutAndPaste.C (setSelectionRange, replaceWord): remove.
	(replaceSelectionWithString): select the new string after
	replacement; add a bool parameter indicating in which sense the
	selection is made.

	* src/lyxfind.C (replace): adapt to above changes.
	(find): comment out debug message.

	* src/frontends/controllers/ControlSpellchecker.C (isLetter):
	rename parameter.
	(nextWord): take a LCursor as parameter; set the selection over
	the word that has been found.
	(check): adapt to changes above (the length of the word is not
	necessarily the length of the selection -- fixes bug 2068).
	(replace): use cap::replaceSelectionWithString




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14708 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:12:20 +00:00
Jean-Marc Lasgouttes
bc6cf52e9f * src/BufferView_pimpl.C (getStatus, dispatch): do not handle
LFUN_GOTOERROR.

	* src/bufferview_funcs.C (findInset): exit early when at end of
	document (and avoid a crash).

	* src/insets/insetbase.[Ch]: remove ERROR_CODE



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14706 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:06:40 +00:00
Abdelrazak Younes
dd429b7f26 This commit should hopefully fix all scrolling issues. As an added bonus, mouse scrolling should be faster due to a deleted call to BufferView::update() that was not usefull (the important call to updateMetrics() is done in WorkArea()).
Log:
* BufferView/pimpl:
  - scrollDocView(): call to BufferView::update() deleted.
  - scrollDocView(): second part is now in setCursorFromScrollbar()
  - setCursorFromScrollbar(): new method.

* WorkArea:
  - setBufferView(): show the cursor immediately
  - redraw(): call to updateScrollbar()
  - updateScrollbar(): new method
  - scrollBufferView(): fix it and show the cursor immediately.

* qt4/GuiWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.
  - paintEvent(): scrollbar related code deleted

* qt3/QWorkArea
  - setScrollbarParams(): now disable the Qt scrollbar tracking.

* qt3/QContentPane
  - paintEvent(): scrollbar related code deleted




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14704 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 15:24:38 +00:00
Edwin Leuven
c98992f774 rework mathdelimiter dialog and add size combo...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14703 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 14:22:47 +00:00
Georg Baum
9b3398d56c Start to export palin text in utf8 (no insets besides InsetText for now)
* src/output_plaintext.C
	(asciiParagraph): output utf8 instead of ucs4 garbage


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14700 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 11:56:06 +00:00
Jean-Marc Lasgouttes
2669c51d1a * text2.C (init): do not reset curent font (bug 2664)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14698 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 10:09:23 +00:00
Abdelrazak Younes
1004ba79f1 Port of Martin Vermeer's QNote work: fix of framed and shaded note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14696 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 08:57:00 +00:00
Abdelrazak Younes
f475b7bde6 This commit transfers most of the LyXView use from BufferView to WorkArea, most notably:
LyXView::updateLayoutChoice();
LyXView::updateToolbars();
LyXView::getLyXFunc().processKeySym(key, state);
LyXView::dispatch(cmd);

* BufferView
  - workAreaKeyPress(): deleted

* BufferView::pimpl
  - gui(): deleted
  - workAreaKeyPress(): deleted
  - workAreaDispatch(): special FuncRequest transfered to WorkArea::dispatch()

* WorkArea
  - WorkArea(): now needs a LyXView
  - lyx_view: new member
  - scrollBufferView(): new method

* qt4/GuiWorkArea: adapted to above changes
* qt4/GuiImplementation: ditto
* qt3/GuiWorkArea: ditto
* qt3/QContentPane: ditto
* gtk/GuiWorkArea: ditto
* gtk/GWorkArea: ditto



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14695 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 21:57:23 +00:00
Jean-Marc Lasgouttes
d147703f9b unused code I forgot
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14694 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 15:43:33 +00:00
Bo Peng
6be47509b8 Fix bug 2768 (inset comment eats space after it)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14692 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 15:12:26 +00:00
Edwin Leuven
e305fdea55 replace depreciated bitBlt() with calls to qpainter's drawPixmap()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14691 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 14:55:34 +00:00
Jean-Marc Lasgouttes
b1a54e83eb remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14687 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 13:28:23 +00:00
Georg Baum
161db0a9ee * src/support/docstring.h: Add char_traits template functions for
gcc 3.3.x and older. They were first supplied with the libstdc++ of
	gcc 3.4.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14685 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 12:31:35 +00:00
Georg Baum
9245b426b3 Update file format for unicode
* src/buffer.C
	(LYX_FORMAT): update

	* src/bufferparams.h
	(inputenc): document

	* lib/lyx2lyx/LyX.py
	(format_relation): last format is now 249
	(get_encoding): return utf8 for formats > 248

	* lib/lyx2lyx/lyx_1_5.py
	(convert_utf8): don't change \inputencoding anymore
	(revert_utf8): new, revert encoding if possible

	* development/FORMAT: describe format 249


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14684 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 07:08:58 +00:00
Georg Baum
9e5a37c7d0 * src/output_plaintext.C
(asciiParagraph): fix constant overflow


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14679 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:46:36 +00:00
Jean-Marc Lasgouttes
91ea3b5438 * text2.C (changeDepthAllowed): exit early when selection spans
several cells (bug 2630)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14678 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:14:44 +00:00
Abdelrazak Younes
0ca50d9637 deleted "#include <boost/cstdint.hpp>" as it is already in unicode.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14674 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 16:30:47 +00:00
Edwin Leuven
5d28253e20 * furter simplifications:
- simplify setting/unsetting of item
  - consolidate 2 methods that set bulletSelected
  - store character (int) instead of pointer to item

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14672 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 15:07:13 +00:00
Abdelrazak Younes
bd61a7a387 Windows compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14671 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 14:19:52 +00:00
Georg Baum
28ef49f2d9 * src/buffer.C
(Buffer::errorList): simplify

	* src/buffer.h
	emptyErrorList_ move to buffer.C and make it static const

	* src/lyx_main.C
	(LyX::exec2): Use for_each instead of for loop


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14667 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 09:33:49 +00:00
Abdelrazak Younes
615ef2527a add docstring.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14665 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 09:00:53 +00:00
Lars Gullik Bjønnes
c46b7d8955 Merge the unicode branch into trunk.
- src/support/unicode.[Ch]: new files with functions for converting
  to and fro ucs4, ucs2 and utf8.
- src/support/docstring.h: specialization of basic_string that
  holds a uint32_t internally.
- Several functions changed to use char_type instead of char or unsigned char.
- Qt3 and Qt4 sends ucs2 on to core
- Gtk sends ucs4 on to core
- Read and write utf-8 .lyx files.
- font_metrics and painter updated to handle ucs4 chars as input.
- Quite a bit of ugly compability code, conversion string->docstring, etc.
- Have fun...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 22:54:59 +00:00
Georg Baum
f0648e2320 Fix bug 2637
* src/graphics/GraphicsConverter.C
	(Converter::Impl::Impl): Don't call the default converter directly,
	but create a temporary script with build_script() as for the
	configured converters. This makes sure that the file name does not
	need to be passed on the command line anymore.
	(build_script): This cannot fail anymore, so change the return type
	to void
	(build_script): Use build_conversion_command also for the default
	converter. This has the advantage that the special code for moving
	${outfile}.0, ${outfile}.1 is actually used for ImageMagick's convert.
	(build_conversion_command): factored out from build_script


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14657 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 19:07:43 +00:00
Georg Baum
a392ba1c17 Fix bug 2723
* src/lyx_sty.C
	(lyxgreyedout_def): Use \textcolor instead of \color


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14654 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 17:36:49 +00:00
Abdelrazak Younes
c5a4f61f33 This commit creates a error_lists map member inside the Buffer class.
I had no choice but to use string for the map key. This is
because the only information that could be passed to the controller is a
string.

With this new architecture, persistent error lists are now possible.

* Buffer
  - errorList_, addError(),  : deleted
  - std::map<std::string, ErrorList> errorLists_ : new member
  - errorList(std::string const & type): associated accessors

* buffer_funcs.C
  - bufferErrors(Buffer const & buf, TeXErrors const & terr): now needs a third errorList argument
  - bufferErrors(Buffer const & buf, ErrorList const & el): deleted.

* Converter
  - convert(): now needs an ErrorList argument instead of filling the Buffer errorList member directly.
  - runLaTeX(): ditto
  - scanLog(): ditto

* CutAndPaste.C
  - pasteParagraphList(): ditto
  - pasteSelection(): ditto

* lyxtext.h/text.C
  - readParagraph(): ditto
  - LyXText::read(): ditto

* importer:
  - Importer::Import(): ditto

* BufferView_pimpl.C
  - loadLyXFile(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly.

* exporter.C
  - Export(): send the Buffer::errors() signal instead of calling LyXView::showErrorList() directly in lyxfunc.C

* ControlErrorList.C
  - initialiseParams(): translation operation transfered here from LyXView::showErrorList().

* LyXView.C
  - LoadLyXFile(): add a showErrorList("Parse") call.
  - showErrorList(): simplified due to code transferred to the ControlErrorList.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14652 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:16:43 +00:00