]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agos/errno.h/cerrno/
Georg Baum [Thu, 7 Sep 2006 15:23:16 +0000 (15:23 +0000)]
s/errno.h/cerrno/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14932 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix compile error
Georg Baum [Thu, 7 Sep 2006 13:08:33 +0000 (13:08 +0000)]
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

17 years agoFix bug 2660
Georg Baum [Thu, 7 Sep 2006 12:47:13 +0000 (12:47 +0000)]
Fix bug 2660
* lib/doc/de_UserGuide.lyx: fix image paths

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14930 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoforgot this
Georg Baum [Thu, 7 Sep 2006 09:58:47 +0000 (09:58 +0000)]
forgot this

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14926 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix bug 2698 (new images from Uwe Stöhr)
Georg Baum [Thu, 7 Sep 2006 09:51:50 +0000 (09:51 +0000)]
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

17 years ago- remove static_filters: fix crash of the aspell executable by using only cygwin...
Peter Kümmel [Thu, 7 Sep 2006 09:06:07 +0000 (09:06 +0000)]
- remove static_filters: fix crash of the aspell executable by using only cygwin generated files
- CMakelists.txt: add shared lib option (mingw only)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14922 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd comments on the purpose and status of some LFUNs
Michael Schmitt [Wed, 6 Sep 2006 18:34:57 +0000 (18:34 +0000)]
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

17 years agoremove LFUN_INSET_SCROLL and LFUN_DIALOG_SHOW_NEXT_INSET
Michael Schmitt [Wed, 6 Sep 2006 18:20:35 +0000 (18:20 +0000)]
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

17 years agoupdate POTFILES.in
Jean-Marc Lasgouttes [Wed, 6 Sep 2006 12:57:17 +0000 (12:57 +0000)]
update POTFILES.in

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14914 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd/fix menu prefix for submenus;
Michael Schmitt [Wed, 6 Sep 2006 11:33:06 +0000 (11:33 +0000)]
add/fix menu prefix for submenus;
remove "Document/Read-Only" entry

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14913 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix file list for the updated boost library
Michael Schmitt [Wed, 6 Sep 2006 11:18:57 +0000 (11:18 +0000)]
fix file list for the updated boost library

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14912 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoupdate to boost 1.34 cvs
Peter Kümmel [Wed, 6 Sep 2006 09:47:45 +0000 (09:47 +0000)]
update to boost 1.34 cvs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14911 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocheck PATH for iconv.dll
Peter Kümmel [Wed, 6 Sep 2006 08:43:48 +0000 (08:43 +0000)]
check PATH for iconv.dll

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14901 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoupdate to boost 1.34 cvs
Peter Kümmel [Wed, 6 Sep 2006 08:43:10 +0000 (08:43 +0000)]
update to boost 1.34 cvs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14900 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agopatch and build system for cvs version of aspell
Peter Kümmel [Tue, 5 Sep 2006 07:30:27 +0000 (07:30 +0000)]
patch and build system for cvs version of aspell

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14896 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoUpdate in-tree boost to latest from boost 1.34 cvs.
Lars Gullik Bjønnes [Tue, 5 Sep 2006 07:18:36 +0000 (07:18 +0000)]
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

17 years agoadd forgotten comma
Georg Baum [Mon, 4 Sep 2006 15:54:57 +0000 (15:54 +0000)]
add forgotten comma

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14893 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix byte order problems
Georg Baum [Mon, 4 Sep 2006 14:43:25 +0000 (14:43 +0000)]
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

17 years agoFixes a MSVC/Qt4 crash when closing the Document Settings dialog.
Abdelrazak Younes [Mon, 4 Sep 2006 09:48:51 +0000 (09:48 +0000)]
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

17 years agomove project_source_group macro into an extra file: ProjectSourceGroup.cmake
Peter Kümmel [Sun, 3 Sep 2006 23:52:51 +0000 (23:52 +0000)]
move project_source_group macro into an extra file: ProjectSourceGroup.cmake

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14888 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agomore flexible msvc project folder generation, flat is default
Peter Kümmel [Sun, 3 Sep 2006 23:50:16 +0000 (23:50 +0000)]
more flexible msvc project folder generation, flat is default

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14887 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodon't overwrite the command line value
Peter Kümmel [Sun, 3 Sep 2006 18:04:23 +0000 (18:04 +0000)]
don't overwrite the command line value

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14884 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoHeaders and .C files are now in The Golden Code folder
Peter Kümmel [Sun, 3 Sep 2006 17:51:53 +0000 (17:51 +0000)]
Headers and .C files are now in The Golden Code folder

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14883 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agouse enums instead of strings to distinguish different types of math hull
André Pönitz [Sun, 3 Sep 2006 16:14:51 +0000 (16:14 +0000)]
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

17 years ago* MSVC compilation fix: replace subst template with subst_char and sub_string
Abdelrazak Younes [Sun, 3 Sep 2006 14:09:24 +0000 (14:09 +0000)]
* 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

17 years agosearch also for other names of iconv.dll
Peter Kümmel [Sun, 3 Sep 2006 13:46:47 +0000 (13:46 +0000)]
search also for other names of iconv.dll

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14880 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix getStatus of LFUN_DISSOLVE_INSET:
Jürgen Spitzmüller [Sun, 3 Sep 2006 13:39:54 +0000 (13:39 +0000)]
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

17 years agoalso work with MSYS
Peter Kümmel [Sun, 3 Sep 2006 13:20:38 +0000 (13:20 +0000)]
also work with MSYS

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14878 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoAll methods: use char_type as argument instead of char.
Abdelrazak Younes [Sun, 3 Sep 2006 12:12:53 +0000 (12:12 +0000)]
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

17 years agoThis fixes the crash when PageDown scrolling UserGuide.lyx
Abdelrazak Younes [Sun, 3 Sep 2006 11:54:17 +0000 (11:54 +0000)]
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

17 years agoadd \n
Peter Kümmel [Sun, 3 Sep 2006 10:51:46 +0000 (10:51 +0000)]
add \n

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14875 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoalso check vor env. variable GNUWIN32_DIR
Peter Kümmel [Sun, 3 Sep 2006 10:51:20 +0000 (10:51 +0000)]
also check vor env. variable GNUWIN32_DIR

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14874 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoalso work with spaces in the path
Peter Kümmel [Sun, 3 Sep 2006 09:10:18 +0000 (09:10 +0000)]
also work with spaces in the path

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14873 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd -DGNUWI32_DIR=my/path/to/gnuwin32 option
Peter Kümmel [Sun, 3 Sep 2006 08:48:58 +0000 (08:48 +0000)]
add -DGNUWI32_DIR=my/path/to/gnuwin32 option

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14872 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix clipboard/selection encoding
Georg Baum [Sun, 3 Sep 2006 07:02:38 +0000 (07:02 +0000)]
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

17 years agoScons: add /MD as default option under msvc
Bo Peng [Sat, 2 Sep 2006 13:09:10 +0000 (13:09 +0000)]
Scons: add /MD as default option under msvc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14869 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoforgot this
Georg Baum [Sat, 2 Sep 2006 10:27:28 +0000 (10:27 +0000)]
forgot this

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14868 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix some conversion problems spotted by MSVC warnings
Georg Baum [Sat, 2 Sep 2006 10:18:20 +0000 (10:18 +0000)]
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

17 years agoiconv_convert(): return empty vector in case of empty input
Abdelrazak Younes [Sat, 2 Sep 2006 08:01:50 +0000 (08:01 +0000)]
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

17 years agoImprove Computer Algebra System, from Enrico Forestieri <forenr@tlc.unipr.it>
Bo Peng [Sat, 2 Sep 2006 01:57:36 +0000 (01:57 +0000)]
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

17 years agoScons: link to ole32 for (msvc/aspell), add suffix to mo files
Bo Peng [Sat, 2 Sep 2006 01:30:40 +0000 (01:30 +0000)]
Scons: link to ole32 for (msvc/aspell), add suffix to mo files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14864 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd some missing LFUNs to the menu
Michael Schmitt [Fri, 1 Sep 2006 16:39:35 +0000 (16:39 +0000)]
add some missing LFUNs to the menu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14862 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoconvert lfun arguments to docstring
Georg Baum [Fri, 1 Sep 2006 15:41:38 +0000 (15:41 +0000)]
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

17 years agoPatch from Enrico:
Abdelrazak Younes [Fri, 1 Sep 2006 13:49:03 +0000 (13:49 +0000)]
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

17 years agoPatch from Enrico:
Abdelrazak Younes [Fri, 1 Sep 2006 13:37:52 +0000 (13:37 +0000)]
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

17 years agoUse correct types for qstring, also to avoid 64<->32 bit issues.
Lars Gullik Bjønnes [Thu, 31 Aug 2006 20:36:07 +0000 (20:36 +0000)]
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

17 years agoUse exceptions to avoid more than one call to the filesystem.
Lars Gullik Bjønnes [Thu, 31 Aug 2006 19:32:12 +0000 (19:32 +0000)]
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

17 years agofurther ui cleanup: correct tab order
Edwin Leuven [Thu, 31 Aug 2006 13:46:28 +0000 (13:46 +0000)]
further ui cleanup: correct tab order

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14856 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agocorrect tab order + layout cleanup
Edwin Leuven [Thu, 31 Aug 2006 13:07:05 +0000 (13:07 +0000)]
correct tab order + layout cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14855 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosimple one line optimisation in iconv_convert().
Abdelrazak Younes [Thu, 31 Aug 2006 08:49:12 +0000 (08:49 +0000)]
simple one line optimisation in iconv_convert().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14854 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd some missing LFUNs to the menu
Michael Schmitt [Wed, 30 Aug 2006 19:06:12 +0000 (19:06 +0000)]
add some missing LFUNs to the menu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14853 a592a061-630c-0410-9148-cb99ea01b6c8

17 years ago* qt_helpers.[Ch]: new conversion from/to ucs4 strings and chars to/from QChar and...
Abdelrazak Younes [Wed, 30 Aug 2006 14:59:07 +0000 (14:59 +0000)]
* 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

17 years agoAll lyx files are encoded in utf-8 now. :-)
José Matox [Tue, 29 Aug 2006 11:11:12 +0000 (11:11 +0000)]
All lyx files are encoded in utf-8 now. :-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14851 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agosmall cleanup: delete two unneeded lines of code.
Abdelrazak Younes [Tue, 29 Aug 2006 09:08:51 +0000 (09:08 +0000)]
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

17 years ago* src/buffer.C (save):
Jürgen Spitzmüller [Tue, 29 Aug 2006 08:38:00 +0000 (08:38 +0000)]
* 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

17 years agoalso remove BOOST_NO_WREGEX
Peter Kümmel [Mon, 28 Aug 2006 17:59:14 +0000 (17:59 +0000)]
also remove BOOST_NO_WREGEX

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14848 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoqt should not pollute the namespace
Peter Kümmel [Mon, 28 Aug 2006 16:41:48 +0000 (16:41 +0000)]
qt should not pollute the namespace

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14847 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agofix dropping of UNC filenames on windows (from Enrico)
Georg Baum [Sun, 27 Aug 2006 16:10:41 +0000 (16:10 +0000)]
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

17 years agoScons: fix options like CPPFLAGS
Bo Peng [Sat, 26 Aug 2006 18:55:51 +0000 (18:55 +0000)]
Scons: fix options like CPPFLAGS

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14845 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoScons: fix scons_manifest.py for flatplacement.* for qt3
Bo Peng [Sat, 26 Aug 2006 18:45:19 +0000 (18:45 +0000)]
Scons: fix scons_manifest.py for flatplacement.* for qt3

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14844 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoadd FloatPlacementUi.ui
Abdelrazak Younes [Sat, 26 Aug 2006 13:42:27 +0000 (13:42 +0000)]
add FloatPlacementUi.ui

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14843 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agominimal effort implementation of:
Edwin Leuven [Fri, 25 Aug 2006 13:40:01 +0000 (13:40 +0000)]
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

17 years agoget rid of comments, c++ style casts
Edwin Leuven [Fri, 25 Aug 2006 10:52:49 +0000 (10:52 +0000)]
get rid of comments, c++ style casts

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14837 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoclean up Abdel's cleanup
Georg Baum [Thu, 24 Aug 2006 19:43:06 +0000 (19:43 +0000)]
clean up Abdel's cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14836 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoremove qPixmapFromMimeSource. This caused the inclusion of Qt3 support headers which...
Abdelrazak Younes [Thu, 24 Aug 2006 19:37:40 +0000 (19:37 +0000)]
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

17 years ago* BufferView: delete firstLayout()
Abdelrazak Younes [Thu, 24 Aug 2006 16:55:31 +0000 (16:55 +0000)]
* 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

17 years agoFix bug 2786: import of spaces
Georg Baum [Thu, 24 Aug 2006 16:34:47 +0000 (16:34 +0000)]
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

17 years agoThat commit replaces the Buffer::message() signal emissions from within "BufferView_p...
Abdelrazak Younes [Thu, 24 Aug 2006 14:10:22 +0000 (14:10 +0000)]
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

17 years ago * src/frontends/LyXView.C (setBuffer): update the list of layouts
Jean-Marc Lasgouttes [Thu, 24 Aug 2006 09:46:29 +0000 (09:46 +0000)]
* 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

17 years agoQt4 autoconf cleanup.
Jean-Marc Lasgouttes [Thu, 24 Aug 2006 09:33:14 +0000 (09:33 +0000)]
Qt4 autoconf cleanup.

* config/qt4.m4
(QT4_FIND_PATH, QT_FIND_UIC4, QT_FIND_MOC4): remove,
AC_PATH_PROGS does this very well.
(QT4_DO_PKG_CONFIG): add $QT4DIR/lib to pkg-config search path;
do not run QT4_DO_MANUAL_CONFIG on failure.
(QT4_DO_MANUAL_CONFIG): remove some code.
(QT4_DO_IT_ALL): move code to handle --with-foo here; move
code to search for moc/uic here; call QT4_DO_PKG_CONFIG first,
and QT4_DO_MANUAL_CONFIG on failure.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14829 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commit fixes the crash caused by loading an empty corrupted document.
Abdelrazak Younes [Thu, 24 Aug 2006 08:17:47 +0000 (08:17 +0000)]
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

17 years agoreplace LyXView::message() direct call with Buffer::message() boost signal emission.
Abdelrazak Younes [Wed, 23 Aug 2006 21:14:43 +0000 (21:14 +0000)]
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

17 years agofix typo
Michael Schmitt [Wed, 23 Aug 2006 14:11:14 +0000 (14:11 +0000)]
fix typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14825 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoresolve last occurrence of QT3_SUPPORT
Michael Schmitt [Wed, 23 Aug 2006 14:01:24 +0000 (14:01 +0000)]
resolve last occurrence of QT3_SUPPORT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14824 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agorevert recent change to development/FORMAT (don't change history)
Michael Schmitt [Wed, 23 Aug 2006 12:55:23 +0000 (12:55 +0000)]
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

17 years agodrop linuxdoc support (part 5)
Michael Schmitt [Wed, 23 Aug 2006 12:43:46 +0000 (12:43 +0000)]
drop linuxdoc support (part 5)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14822 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodrop linuxdoc support (part 4)
Michael Schmitt [Wed, 23 Aug 2006 11:16:08 +0000 (11:16 +0000)]
drop linuxdoc support (part 4)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14821 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodo not define QT3_SUPPORT
Michael Schmitt [Wed, 23 Aug 2006 10:58:54 +0000 (10:58 +0000)]
do not define QT3_SUPPORT

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14820 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoHandle properly script insets which nucleus has more than one
Jean-Marc Lasgouttes [Wed, 23 Aug 2006 10:57:49 +0000 (10:57 +0000)]
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

17 years agodrop linuxdoc support (part 3)
Michael Schmitt [Wed, 23 Aug 2006 10:57:45 +0000 (10:57 +0000)]
drop linuxdoc support (part 3)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14818 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodrop linuxdoc support (part 2)
Michael Schmitt [Wed, 23 Aug 2006 10:47:11 +0000 (10:47 +0000)]
drop linuxdoc support (part 2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14817 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agodrop linuxdoc support (part 1)
Michael Schmitt [Wed, 23 Aug 2006 10:41:43 +0000 (10:41 +0000)]
drop linuxdoc support (part 1)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14816 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoFix crash on exit after a Buffer switch.
Abdelrazak Younes [Wed, 23 Aug 2006 08:27:51 +0000 (08:27 +0000)]
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

17 years agoMake sure to link lyx and tex2lyx against libiconv.
Jean-Marc Lasgouttes [Tue, 22 Aug 2006 15:43:48 +0000 (15:43 +0000)]
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

17 years ago * math_nestinset.C (lfunMousePress): on button 2 press, paste
Jean-Marc Lasgouttes [Tue, 22 Aug 2006 13:58:09 +0000 (13:58 +0000)]
* 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

17 years agoDo not make all menu entries checkable
Jean-Marc Lasgouttes [Tue, 22 Aug 2006 09:38:03 +0000 (09:38 +0000)]
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

17 years ago* src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent):
Abdelrazak Younes [Mon, 21 Aug 2006 09:14:18 +0000 (09:14 +0000)]
* 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

17 years ago* insetcite.C (getNatbibLabel): prevent filesystem exception
Jürgen Spitzmüller [Sat, 19 Aug 2006 10:39:03 +0000 (10:39 +0000)]
* 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

17 years ago* insetcite.C (getNatbibLabel): prevent filesystem exception
Jürgen Spitzmüller [Fri, 18 Aug 2006 16:03:48 +0000 (16:03 +0000)]
* 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

17 years agoGuiWorkArea::inputMethodEvent(): remove unneeded Qt::KeyboardModifiers construction...
Abdelrazak Younes [Fri, 18 Aug 2006 09:25:45 +0000 (09:25 +0000)]
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

17 years agoFix resize bug (WorkArea not redrawn).
Abdelrazak Younes [Thu, 17 Aug 2006 22:01:59 +0000 (22:01 +0000)]
Fix resize bug (WorkArea not redrawn).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14800 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoThis commit moves the busy cursor and formatting message handling from BufferView...
Abdelrazak Younes [Thu, 17 Aug 2006 22:00:07 +0000 (22:00 +0000)]
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

17 years agoThis patch moves the dialogs hidding/update from BufferView::setBuffer() to LyXView...
Abdelrazak Younes [Thu, 17 Aug 2006 21:46:52 +0000 (21:46 +0000)]
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

17 years agoFix crash when cursor is in an empty script and the user clicks
Jean-Marc Lasgouttes [Thu, 17 Aug 2006 21:32:04 +0000 (21:32 +0000)]
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

17 years ago Fix bug 2727.
Jean-Marc Lasgouttes [Thu, 17 Aug 2006 21:07:24 +0000 (21:07 +0000)]
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

17 years ago * text3.C (dispatch/LFUN_INSET_DISSOLVE): use recordUndoInset;
Jean-Marc Lasgouttes [Thu, 17 Aug 2006 20:32:32 +0000 (20:32 +0000)]
* 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

17 years ago * undo.C (recordUndoInset): remember the cursor position inside
Jean-Marc Lasgouttes [Thu, 17 Aug 2006 20:13:30 +0000 (20:13 +0000)]
* 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

17 years agoCosmetic changes:
Abdelrazak Younes [Thu, 17 Aug 2006 17:15:17 +0000 (17:15 +0000)]
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

17 years agofix bad debug messages
Jean-Marc Lasgouttes [Thu, 17 Aug 2006 13:23:08 +0000 (13:23 +0000)]
fix bad debug messages

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14784 a592a061-630c-0410-9148-cb99ea01b6c8

17 years agoGuiWorkArea::inputMethodEvent(QInputMethodEvent * e):
Abdelrazak Younes [Thu, 17 Aug 2006 12:39:11 +0000 (12:39 +0000)]
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