]> git.lyx.org Git - lyx.git/log
lyx.git
16 years agodocument my LFUN changes in the past
Uwe Stöhr [Thu, 6 Dec 2007 22:38:46 +0000 (22:38 +0000)]
document my LFUN changes in the past

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

16 years agopreamble.cpp: correct recognition of all cases of font scalings (fix for method intro...
Uwe Stöhr [Thu, 6 Dec 2007 22:09:31 +0000 (22:09 +0000)]
preamble.cpp: correct recognition of all cases of font scalings (fix for method introduced in r21970)

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

16 years agopreamble.cpp: addition to r21970: ad support for the two possible font options
Uwe Stöhr [Thu, 6 Dec 2007 18:58:32 +0000 (18:58 +0000)]
preamble.cpp: addition to r21970: ad support for the two possible font options

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

16 years agoShutdown LyX server and socket before trying to remove the tempdir,
Enrico Forestieri [Thu, 6 Dec 2007 18:52:17 +0000 (18:52 +0000)]
Shutdown LyX server and socket before trying to remove the tempdir,
otherwise it would not be empty and could not be removed.

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

16 years agoLet's actually warn when a directory could not be removed.
Enrico Forestieri [Thu, 6 Dec 2007 16:54:02 +0000 (16:54 +0000)]
Let's actually warn when a directory could not be removed.

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

16 years ago* RELEASE_NOTES: document interface changes.
Jürgen Spitzmüller [Thu, 6 Dec 2007 11:16:46 +0000 (11:16 +0000)]
* RELEASE_NOTES: document interface changes.

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

16 years agoSupport for \slash and \nobreakdash-
Jürgen Spitzmüller [Thu, 6 Dec 2007 11:04:56 +0000 (11:04 +0000)]
Support for \slash and \nobreakdash-

* src/lfuns.h:
* src/Text3.cpp:
* src/insets/InsetMathNest.cpp:
* src/insets/insetCollapsable:
- new LFUN_SPECIALCHAR_INSERT
- nuke LFUN_HYPHENATION_POINT_INSERT,
  LFUN_LIGATURE_BREAK_INSERT,
  LFUN_DOTS_INSERT,
               LFUN_END_OF_SENTENCE_PERIOD_INSERT,
  LFUN_MENU_SEPARATOR_INSERT
  (functions now handled as arguments of the above)

* src/insets/InsetSpecialChar.{cpp,h}:
- implement \slash and \nobreakdash-

* src/Buffer.cpp:
- increment format to 307.
* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- reversion methods for SpecialChar \slash{} and
  SpecialChar \nobreakdash-
* development/FORMAT:
- document file format change

* lib/ui/stdmenus.inc:
* lib/ui/classic.ui:
- add new SpecialChars to the menus, adapt lfuns to new scheme

* lib/bind/aqua.bind:
* lib/bind/cua.bind:
* lib/bind/emacs.bind:
* lib/bind/fi/menus.bind:
* lib/bind/mac.bind:
* lib/bind/menus.bind:
* lib/bind/sciword.bind:
* lib/bind/xemacs.bind:
- add shortcuts for new SpecialChars, adapt lfuns to new scheme

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

16 years ago* InsetHFill: small drawing tweaks and fix the cursor positionning and selection...
Abdelrazak Younes [Thu, 6 Dec 2007 08:51:56 +0000 (08:51 +0000)]
* InsetHFill: small drawing tweaks and fix the cursor positionning and selection of the inset.

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

16 years agoCode simplification. We don't need to memorize the current Row hfill anymore.
Abdelrazak Younes [Thu, 6 Dec 2007 08:39:42 +0000 (08:39 +0000)]
Code simplification. We don't need to memorize the current Row hfill anymore.

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

16 years agostdinset.inc: Some more documentation from Martin.
Abdelrazak Younes [Thu, 6 Dec 2007 07:56:39 +0000 (07:56 +0000)]
stdinset.inc: Some more documentation from  Martin.

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

16 years agoInsetHFill drawing: some other tweaks. There's still a problem with cursor positionni...
Abdelrazak Younes [Wed, 5 Dec 2007 23:10:11 +0000 (23:10 +0000)]
InsetHFill drawing: some other tweaks. There's still a problem with cursor positionning and selection when the hfill is not expanded.

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

16 years agoInsetHFill drawing: some tweaks.
Abdelrazak Younes [Wed, 5 Dec 2007 22:47:14 +0000 (22:47 +0000)]
InsetHFill drawing: some tweaks.

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

16 years agoAvoid loading local layout file multiple times
Bo Peng [Wed, 5 Dec 2007 22:28:16 +0000 (22:28 +0000)]
Avoid loading local layout file multiple times

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

16 years agoconfigure.py: fix detection of LaTeX (bug 4397)
Uwe Stöhr [Wed, 5 Dec 2007 22:26:48 +0000 (22:26 +0000)]
configure.py: fix detection of LaTeX (bug 4397)

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

16 years agoCleanup Hfill metrics and painting. InsetHFill is now treated almost like any other...
Abdelrazak Younes [Wed, 5 Dec 2007 22:25:07 +0000 (22:25 +0000)]
Cleanup Hfill metrics and painting. InsetHFill is now treated almost like any other inset.

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

16 years agolanguages: update a two comments
Uwe Stöhr [Wed, 5 Dec 2007 22:07:19 +0000 (22:07 +0000)]
languages: update a two comments

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

16 years agosupport for the language Interlingua
Uwe Stöhr [Wed, 5 Dec 2007 22:04:33 +0000 (22:04 +0000)]
support for the language Interlingua
- fileformat change

(Interlingua was the last missing language supported by babel)

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

16 years agoBuffer.cpp: forgot this part of the previous fileformat change
Uwe Stöhr [Wed, 5 Dec 2007 21:45:09 +0000 (21:45 +0000)]
Buffer.cpp: forgot this part of the previous fileformat change

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

16 years agosupport for the language Bahasa Malaysia
Uwe Stöhr [Wed, 5 Dec 2007 21:42:57 +0000 (21:42 +0000)]
support for the language Bahasa Malaysia
- fileformat change
- rename "Bahasa" to "Bahasa Indonesia"

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

16 years agotex2lyx: support font settings -> move fileformat to 247
Uwe Stöhr [Wed, 5 Dec 2007 20:02:49 +0000 (20:02 +0000)]
tex2lyx: support font settings -> move fileformat to 247

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

16 years agoDistinguish occurence of 'Note' string between layouts and inset
Pavel Sanda [Wed, 5 Dec 2007 18:19:55 +0000 (18:19 +0000)]
Distinguish occurence of 'Note' string between layouts and inset

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

16 years ago* docstream: factorize out some code and introduce odocfstream::reset()
Abdelrazak Younes [Wed, 5 Dec 2007 13:56:53 +0000 (13:56 +0000)]
* docstream: factorize out some code and introduce odocfstream::reset()

* Buffer::makeLaTeXFile(): try to catch one more iconv exception. Fix bug 4385 (http://bugzilla.lyx.org/show_bug.cgi?id=4385)

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

16 years agoRevert part of 21965 which was debugging code.
Abdelrazak Younes [Wed, 5 Dec 2007 10:45:19 +0000 (10:45 +0000)]
Revert part of 21965 which was debugging code.

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

16 years agoIntroducing FileNameList, cleanup some headers and put back dirList() into FileName.
Abdelrazak Younes [Wed, 5 Dec 2007 10:32:49 +0000 (10:32 +0000)]
Introducing FileNameList, cleanup some headers and put back dirList() into FileName.

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

16 years agoHeader cleanup.
Abdelrazak Younes [Wed, 5 Dec 2007 09:23:19 +0000 (09:23 +0000)]
Header cleanup.

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

16 years agoAvoid a second confirmation when reverting a Buffer.
Abdelrazak Younes [Tue, 4 Dec 2007 23:07:14 +0000 (23:07 +0000)]
Avoid a second confirmation when reverting a Buffer.

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

16 years agoSanitize the way Buffers are saved, renamed and closed.
Abdelrazak Younes [Tue, 4 Dec 2007 22:21:25 +0000 (22:21 +0000)]
Sanitize the way Buffers are saved, renamed and closed.

* LyXFunc: Transfer and simplify LFUN_BUFFER_WRITE, LFUN_BUFFER_WRITE_AS  and LFUN_BUFFER_WRITE_ALL to GuiView.

* BufferList: Transfer quitWriteAll() and close() to GuiView.

* Buffer: Transfer writeAs() and menuWrite() functionalities to GuiView.

* LyXView::closeBuffer(): new pure virtual method.

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

16 years agopreamble.cpp: update the list of supported languages to the one of LyX 1.4.5.1
Uwe Stöhr [Tue, 4 Dec 2007 21:35:08 +0000 (21:35 +0000)]
preamble.cpp: update the list of supported languages to the one of LyX 1.4.5.1

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

16 years agoPatch from Sven Hoexter. Use 'xdg-open' and 'sensible-editor' when
André Pönitz [Tue, 4 Dec 2007 21:25:46 +0000 (21:25 +0000)]
Patch from Sven Hoexter. Use 'xdg-open' and 'sensible-editor' when
available

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

16 years agoPatch from Sven Hoexter. Fix non-ASCII char in name.
André Pönitz [Tue, 4 Dec 2007 21:10:50 +0000 (21:10 +0000)]
Patch from Sven Hoexter. Fix non-ASCII char in name.

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

16 years agoscons/SConstruct: disable assertions for stable releases
Uwe Stöhr [Tue, 4 Dec 2007 21:05:41 +0000 (21:05 +0000)]
scons/SConstruct: disable assertions for stable releases

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

16 years agopreamble.cpp: small cleanup
Uwe Stöhr [Tue, 4 Dec 2007 20:53:43 +0000 (20:53 +0000)]
preamble.cpp: small cleanup

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

16 years agopreamble.cpp, text.cpp:
Uwe Stöhr [Tue, 4 Dec 2007 20:09:40 +0000 (20:09 +0000)]
preamble.cpp, text.cpp:
 - fix bug 27
 - support for multi-language files
 - code cleanups

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

16 years ago* src/frontends/qt4/ui/PrintUi.ui:
Jürgen Spitzmüller [Tue, 4 Dec 2007 11:32:40 +0000 (11:32 +0000)]
* src/frontends/qt4/ui/PrintUi.ui:
- fix bug 4345.

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

16 years ago* src/frontends/qt4/GuiBox.cpp:
Jürgen Spitzmüller [Tue, 4 Dec 2007 11:29:43 +0000 (11:29 +0000)]
* src/frontends/qt4/GuiBox.cpp:
- Fix button activation with pagebreak CB.

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

16 years ago* lib/layouts.memoir.layout:
Jürgen Spitzmüller [Tue, 4 Dec 2007 10:27:27 +0000 (10:27 +0000)]
* lib/layouts.memoir.layout:
- memoir.cls provides framed.sty.
* src/LaTeXFeatures.cpp:
- also output the shadecolor definition if framed.sty
  is provided by a class.

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

16 years agoforgot this ...
Jürgen Spitzmüller [Tue, 4 Dec 2007 09:48:57 +0000 (09:48 +0000)]
forgot this ...

* lib/ui/stdmenus.ui:
- remove Shaded and Framed notes.

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

16 years agoframed.sty goes InsetBox:
Jürgen Spitzmüller [Tue, 4 Dec 2007 09:25:50 +0000 (09:25 +0000)]
framed.sty goes InsetBox:

* src/insets/InsetBox.{cpp,h}:
* src/frontends/qt4/GuiBox.{cpp,h}:
* src/frontends/qt4/ui/BoxUi.ui:
- add and handle Framed and Shaded boxes
- use more descriptive label names
- implement name() function for Box:Shaded's sake

* src/insets/InsetNote.{cpp,h}:
* src/frontends/qt4/GuiNote.cpp:
* src/frontends/qt4/ui/NoteUi.ui:
- remove Framed and Shaded.

* lib/layouts/stdinsets.inc:
- remove Note:Framed and Note:Shaded
- add Box:Shaded

* Buffer.cpp:
- bump format to 304.

* lib/lyx2lyx/LyX.py:
* lib/lyx2lyx/lyx_1_6.py:
- add conversion/reversion of framed/shaded notes to boxes.

* development/FORMAT:
- document file format change.

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

16 years agoinclude intl/libintl.h that is relative to $TOP_SRCDIR/src
Bo Peng [Tue, 4 Dec 2007 03:55:02 +0000 (03:55 +0000)]
include intl/libintl.h that is relative to $TOP_SRCDIR/src

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

16 years agolanguages: sort only
Uwe Stöhr [Tue, 4 Dec 2007 00:02:47 +0000 (00:02 +0000)]
languages: sort only

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

16 years agopreamble.cpp: update fileformat
Uwe Stöhr [Mon, 3 Dec 2007 22:17:38 +0000 (22:17 +0000)]
preamble.cpp: update fileformat

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

16 years ago* src/BufferParams.cpp (readToken):
Jürgen Spitzmüller [Mon, 3 Dec 2007 16:42:43 +0000 (16:42 +0000)]
* src/BufferParams.cpp (readToken):
- initialize pair<bool, lyx::textclass_type> pp.

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

16 years agoAdd some documentation.
Abdelrazak Younes [Mon, 3 Dec 2007 15:24:53 +0000 (15:24 +0000)]
Add some documentation.

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

16 years agosimplify C-sytle code
Peter Kümmel [Mon, 3 Dec 2007 06:40:51 +0000 (06:40 +0000)]
simplify C-sytle code

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

16 years agoFix typo
Pavel Sanda [Sun, 2 Dec 2007 23:55:38 +0000 (23:55 +0000)]
Fix typo

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

16 years agoCmdDef:
Bernhard Roider [Sun, 2 Dec 2007 22:10:26 +0000 (22:10 +0000)]
CmdDef:
- deboostification
- correct comments

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

16 years ago* BufferView:
Abdelrazak Younes [Sun, 2 Dec 2007 20:05:17 +0000 (20:05 +0000)]
* BufferView:
- dispatch(): transfer LFUN_FILE_INSERT_PLAINTEXT_* to GuiView::dispatch()
- insertPlaintextFile(): split in BufferView::insertPlaintextFile() and GuiView::insertPlaintextFile()

This patch get rid of FileDialog use in BufferView. Remains Buffer, Converters and LyXFunc.

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

16 years agofix memory leaks
Peter Kümmel [Sun, 2 Dec 2007 18:39:05 +0000 (18:39 +0000)]
fix memory leaks

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

16 years agoexport when building vld
Peter Kümmel [Sun, 2 Dec 2007 18:37:58 +0000 (18:37 +0000)]
export when building vld

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

16 years agoadd vld info
Peter Kümmel [Sun, 2 Dec 2007 18:35:11 +0000 (18:35 +0000)]
add vld info

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

16 years ago* src/BufferParams.cpp (readToken):
Jürgen Spitzmüller [Sun, 2 Dec 2007 17:59:53 +0000 (17:59 +0000)]
* src/BufferParams.cpp (readToken):
- fix assertion introduced with rev. 21800 (bug 4395).

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

16 years ago* BufferView:
Abdelrazak Younes [Sun, 2 Dec 2007 17:50:08 +0000 (17:50 +0000)]
* BufferView:
- dispatch(): transfer LFUN_FILE_INSERT to GuiView::dispatch()
- menuInsertLyXFile(): split in BufferView::insertLyXFile() and GuiView::insertLyXFile()

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

16 years ago* src/insets/InsetTabular.cpp:
Jürgen Spitzmüller [Sun, 2 Dec 2007 15:19:39 +0000 (15:19 +0000)]
* src/insets/InsetTabular.cpp:
- sanitize cursor after insertion via LFUN_CLIPBOARD_PASTE
   or LFUN_FILE_INSERT_PLAINTEXT (bug 4368).

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

16 years ago- Some small Tutorial corrections spotted by Siegfried
Uwe Stöhr [Sun, 2 Dec 2007 13:45:40 +0000 (13:45 +0000)]
- Some small Tutorial corrections spotted by Siegfried
- French EmbeddedObjects translation update also by Siegfried

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

16 years agovld: prepare adding Qt to leak detection. Beware: it could be that vld has problems...
Peter Kümmel [Sun, 2 Dec 2007 12:20:20 +0000 (12:20 +0000)]
vld: prepare adding Qt to leak detection. Beware: it could be that vld has problems with the statics of Qt

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

16 years agocmake: disable warning 4355
Peter Kümmel [Sun, 2 Dec 2007 12:08:52 +0000 (12:08 +0000)]
cmake: disable warning 4355

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

16 years ago* FileName::fileContents(): new argument to define the file encoding.
Abdelrazak Younes [Sun, 2 Dec 2007 11:55:25 +0000 (11:55 +0000)]
* FileName::fileContents(): new argument to define the file encoding.

* BufferView:
- insertPlaintextString(): now accept a FileName.
- contentsOfPlaintextFile(): ditto and use FileName::fileContents().

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

16 years agovld LyX/cmake integration
Peter Kümmel [Sun, 2 Dec 2007 11:19:39 +0000 (11:19 +0000)]
vld LyX/cmake integration

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

16 years agovld LyX/cmake integration
Peter Kümmel [Sun, 2 Dec 2007 11:17:01 +0000 (11:17 +0000)]
vld LyX/cmake integration

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

16 years agoadd leak tool for msvc 'Visual Leak Detection' 1.9f: original files
Peter Kümmel [Sun, 2 Dec 2007 11:05:21 +0000 (11:05 +0000)]
add leak tool for msvc 'Visual Leak Detection' 1.9f: original files

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

16 years agoalso compile without pchs
Peter Kümmel [Sun, 2 Dec 2007 10:52:18 +0000 (10:52 +0000)]
also compile without pchs

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

16 years agoreduce <vector> include from 73 to 3
Peter Kümmel [Sun, 2 Dec 2007 10:43:11 +0000 (10:43 +0000)]
reduce <vector> include from 73 to 3

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

16 years agocmake: buffer msvc's compiler settings
Peter Kümmel [Sun, 2 Dec 2007 10:29:25 +0000 (10:29 +0000)]
cmake: buffer msvc's compiler settings

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

16 years agocompile also without pch
Peter Kümmel [Sun, 2 Dec 2007 09:59:26 +0000 (09:59 +0000)]
compile also without pch

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

16 years agopch fix
Peter Kümmel [Sun, 2 Dec 2007 09:58:23 +0000 (09:58 +0000)]
pch fix

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

16 years agofix memory leak. addMenu does not take ownership, a Qt bug?
Peter Kümmel [Sun, 2 Dec 2007 09:27:02 +0000 (09:27 +0000)]
fix memory leak. addMenu does not take ownership, a Qt bug?

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

16 years agofix merge build
Peter Kümmel [Sun, 2 Dec 2007 09:24:26 +0000 (09:24 +0000)]
fix merge build

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

16 years agomove funtion with std::vector to filetools
Peter Kümmel [Sun, 2 Dec 2007 09:19:43 +0000 (09:19 +0000)]
move funtion with std::vector to filetools

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

16 years agocosmetics.
Abdelrazak Younes [Sun, 2 Dec 2007 08:09:16 +0000 (08:09 +0000)]
cosmetics.

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

16 years agocompil Fix.
Abdelrazak Younes [Sun, 2 Dec 2007 07:52:28 +0000 (07:52 +0000)]
compil Fix.

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

16 years agoupdate scons/scons_manifest.py
Uwe Stöhr [Sat, 1 Dec 2007 22:24:35 +0000 (22:24 +0000)]
update scons/scons_manifest.py

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

16 years agofix crash on exit (when using http://dmoulding.googlepages.com/vld)
Peter Kümmel [Sat, 1 Dec 2007 12:17:00 +0000 (12:17 +0000)]
fix crash on exit (when using http://dmoulding.googlepages.com/vld)

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

16 years agofix memory leak
Peter Kümmel [Sat, 1 Dec 2007 10:52:52 +0000 (10:52 +0000)]
fix memory leak

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

16 years agocmake merge: declare before instantiate
Peter Kümmel [Sat, 1 Dec 2007 10:24:48 +0000 (10:24 +0000)]
cmake merge: declare before instantiate

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

16 years agofix memory leak, cleanup FileName interface
Peter Kümmel [Sat, 1 Dec 2007 10:23:16 +0000 (10:23 +0000)]
fix memory leak, cleanup FileName interface

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

16 years agoFix copy&paste bug in rev 21883.
Abdelrazak Younes [Sat, 1 Dec 2007 09:51:45 +0000 (09:51 +0000)]
Fix copy&paste bug in rev 21883.

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

16 years agoComment out unneeded debug output and add some in checksum().
Abdelrazak Younes [Sat, 1 Dec 2007 08:48:17 +0000 (08:48 +0000)]
Comment out unneeded debug output and add some in checksum().

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

16 years agoDon't warn when the file being deleted does not really exist.
Enrico Forestieri [Sat, 1 Dec 2007 00:30:12 +0000 (00:30 +0000)]
Don't warn when the file being deleted does not really exist.
This happens when opening the External Material dialog, where
a temporary filename is generated but the corresponding file
is not yet created.

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

16 years agocosmetics
André Pönitz [Sat, 1 Dec 2007 00:12:03 +0000 (00:12 +0000)]
cosmetics

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

16 years agocompile fix for mingw
Enrico Forestieri [Sat, 1 Dec 2007 00:10:04 +0000 (00:10 +0000)]
compile fix for mingw

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

16 years agomove chdir to FileName
André Pönitz [Sat, 1 Dec 2007 00:06:50 +0000 (00:06 +0000)]
move chdir to FileName

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

16 years agounused
André Pönitz [Fri, 30 Nov 2007 22:47:02 +0000 (22:47 +0000)]
unused

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

16 years agounneeded
André Pönitz [Fri, 30 Nov 2007 22:18:37 +0000 (22:18 +0000)]
unneeded

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

16 years agoComments.
Richard Heck [Fri, 30 Nov 2007 22:16:02 +0000 (22:16 +0000)]
Comments.

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

16 years agocosmetics
André Pönitz [Fri, 30 Nov 2007 22:02:33 +0000 (22:02 +0000)]
cosmetics

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

16 years agoI'll find a solution for the 'dirList problem', Abdel.
André Pönitz [Fri, 30 Nov 2007 20:57:53 +0000 (20:57 +0000)]
I'll find a solution for the 'dirList problem', Abdel.

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

16 years ago~Buffer: Move wa_ destruction to Buffer::~Impl()
Abdelrazak Younes [Fri, 30 Nov 2007 20:30:09 +0000 (20:30 +0000)]
~Buffer: Move wa_ destruction to Buffer::~Impl()

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

16 years agoallow boost/current_function to be used again
André Pönitz [Fri, 30 Nov 2007 18:48:35 +0000 (18:48 +0000)]
allow boost/current_function to be used again

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

16 years agofix crash.
Abdelrazak Younes [Fri, 30 Nov 2007 18:34:25 +0000 (18:34 +0000)]
fix crash.

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

16 years agopimpl_ is too verbose to write.
Abdelrazak Younes [Fri, 30 Nov 2007 17:46:49 +0000 (17:46 +0000)]
pimpl_ is too verbose to write.

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

16 years ago* Buffer:
Abdelrazak Younes [Fri, 30 Nov 2007 17:41:27 +0000 (17:41 +0000)]
* Buffer:
- tocBackend(), errorList(), texrow(), etc: now const.
- masterBuffer(): get rid of non const access.
- setParent(): set parent Buffer, replace setParentName()
- parent(), resetChildDocuments(): new.

* InsetInclude.{h,cpp}: new resetParentBuffer() method.

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

16 years agoAdd FIXMEs
Abdelrazak Younes [Fri, 30 Nov 2007 09:49:35 +0000 (09:49 +0000)]
Add FIXMEs

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

16 years agorevert erroneous commit in r21874.
Abdelrazak Younes [Fri, 30 Nov 2007 09:34:08 +0000 (09:34 +0000)]
revert erroneous commit in r21874.

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

16 years agolyxlib.h:sum -> FileName::checksum()
Abdelrazak Younes [Fri, 30 Nov 2007 09:23:44 +0000 (09:23 +0000)]
lyxlib.h:sum -> FileName::checksum()

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

16 years agocompile fix.
Abdelrazak Younes [Fri, 30 Nov 2007 08:35:54 +0000 (08:35 +0000)]
compile fix.

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

16 years agoLyXFunc.cpp: add missing case
Uwe Stöhr [Fri, 30 Nov 2007 00:04:44 +0000 (00:04 +0000)]
LyXFunc.cpp: add missing case

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

16 years agoupdate scons/scons_manifest.py
Uwe Stöhr [Fri, 30 Nov 2007 00:03:31 +0000 (00:03 +0000)]
update scons/scons_manifest.py

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

16 years agofive lines plain loop vs seven lines fancy boost & algorithm
André Pönitz [Thu, 29 Nov 2007 22:48:35 +0000 (22:48 +0000)]
five lines plain loop  vs  seven lines fancy  boost & algorithm

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

16 years agono need for pointers, not even leaking ones...
André Pönitz [Thu, 29 Nov 2007 22:38:53 +0000 (22:38 +0000)]
no need for pointers, not even leaking ones...

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

16 years agouse structure with named members instead of pair<int, int>...
André Pönitz [Thu, 29 Nov 2007 22:12:19 +0000 (22:12 +0000)]
use structure with named members instead of  pair<int, int>...

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