Commit Graph

14649 Commits

Author SHA1 Message Date
Abdelrazak Younes
b23058c578 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5319
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-15 08:42:43 +00:00
Richard Heck
d4136cb652 Correct the order of the tests here. Messed this up in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 18:06:08 +00:00
Richard Heck
6a5a7d7e20 The last little bit of comment, etc, cleanup here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:35:49 +00:00
Richard Heck
b73d5450b7 More cleanup for forthcoming patch. Also fix a copy-paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:14:25 +00:00
Richard Heck
9c95358b85 Check for changes to modules before switching text classes. See the removed
FIXME for more.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 17:03:57 +00:00
Richard Heck
c83ae83ebf Remove unnecessary argument to paramsToDialog(). This is again
cleanup prior to a forthcoming patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 16:59:28 +00:00
Richard Heck
a707ac75ac Change some vectors to lists. This is preparatory for a real patch later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 14:04:21 +00:00
Jürgen Spitzmüller
3109398469 disable some lfuns inside description/list items (bug 223).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 13:27:58 +00:00
Jean-Marc Lasgouttes
03ec50ac4d speed up _a_lot_ switchEncoding() by avoiding an object copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 13:06:47 +00:00
Richard Heck
a34c0a8742 Just whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 12:49:05 +00:00
Pavel Sanda
b2bb5e5090 Selection painting in Insets (courtesy of fishing industry)
http://bugzilla.lyx.org/show_bug.cgi?id=5270
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144726.html

Patch by Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 23:19:06 +00:00
Abdelrazak Younes
22204cda0b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5355
The mixing of internal and 'normal' buffers turned out to be problematic. This commit just dissociates the two types.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26884 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 20:40:58 +00:00
Pavel Sanda
b69f53cd0f typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26883 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 16:12:46 +00:00
Pavel Sanda
308e2d9df3 Sanitize backreferences in hyperref.
http://bugzilla.lyx.org/show_bug.cgi?id=5340
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144958.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26882 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 16:01:02 +00:00
Pavel Sanda
792ece8130 Fix whitespaces so the diff between branches is not so huge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 11:25:37 +00:00
Richard Heck
de01bc54ff All comments and formatting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26876 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:21:56 +00:00
Richard Heck
50e5a3b796 Remove old and out of date comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:07:47 +00:00
Richard Heck
9c2fa02d4a Add a comment, per Pavel's suggestion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26874 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 22:02:31 +00:00
André Pönitz
cb5a9b28d7 be kind to XaFooBarTeX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 19:19:41 +00:00
Uwe Stöhr
4331cbf30f babel handling: revert r26857 and r26858 for the reasons I posted o the list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26870 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 17:21:18 +00:00
Richard Heck
a9226314d1 Don't access this directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 15:34:08 +00:00
Richard Heck
4ececaf03d Update the modules after we make the document class. This will ensure
that we get any new default modules on board.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 15:29:54 +00:00
Jürgen Spitzmüller
6eb11f06a8 readjust indendation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26863 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 13:06:17 +00:00
Uwe Stöhr
51b4ac8e79 LaTeXFeatures.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5350
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 12:50:08 +00:00
Jürgen Spitzmüller
86eeea7566 * InsetSpecialChar.cpp:
- \protect nobreakdash if needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26861 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 09:54:39 +00:00
Jürgen Spitzmüller
d45ca67d1d ** fix bug 2114. Fileformat change.
** fix bug 5343 (patch from Richard, prerequisite for the other fix)

* Buffer.cpp:
	- increment format to 343
* src/BufferParams.{cpp,h}:
	- new param \use_default_options that allows to select/deselect
	  the "Other" class options defined in the layout file.
* src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/LaTeXUi.ui:
	- add GUI to set \use_default_options, display predefined options in the dialog
	- update dialog correctly on class change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 09:36:00 +00:00
Abdelrazak Younes
4d4ee5d7a6 Factorize out the hardcoded babel tests. This whole thing is a real mess...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26858 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 07:56:06 +00:00
Abdelrazak Younes
bc8e829ce0 Simplify and optimize a bit the special babel language detection; and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26857 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 07:19:43 +00:00
Abdelrazak Younes
81a1ae187e MenuDefinition::expandFlexInsert(): simplify a tiny bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 06:52:26 +00:00
Richard Heck
b03a5823be We don't always want that, just with custom insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26855 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 04:12:37 +00:00
Richard Heck
02e4744ce3 Fix bug 5346.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 04:04:55 +00:00
Richard Heck
50ef03a245 Revert.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26853 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 03:43:15 +00:00
Richard Heck
3373ec397b Typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26852 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-12 03:40:30 +00:00
Uwe Stöhr
d30e01fd08 Support for Mongolian, fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-11 23:52:31 +00:00
André Pönitz
26fafc111d typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-11 16:08:42 +00:00
André Pönitz
01bb9e2a57 fix problem with non-recognized utf8 encoding that lead to broken .lyx
files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-11 16:07:14 +00:00
Uwe Stöhr
19c27c8714 BufferParams.cpp: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26842 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-11 12:47:51 +00:00
Abdelrazak Younes
a774b2ce7a MSVC Compil fix: Finish JMarc's work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 14:53:25 +00:00
Jean-Marc Lasgouttes
90101f72b1 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26831 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 14:48:30 +00:00
Jean-Marc Lasgouttes
15b49036ed X dependency cleanup (2/3)
(inernal|external)LineEnding are only used by the clipboard code. Therefore
move them to the Qt helpers, where the current environment is known.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:21:48 +00:00
Jean-Marc Lasgouttes
2759268092 X dependency cleanup (1/3)
Move the special handling of -geometry command option from LyX to GuiApplication, 
where it belongs


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26823 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:19:34 +00:00
Abdelrazak Younes
47020302ae fix memory leak.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26815 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 15:12:49 +00:00
Richard Heck
b90919e48b Revert r26683 and add some comments making it a little clearer what
is going on here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26814 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 15:07:09 +00:00
Abdelrazak Younes
9601279dbb moveItem(): simplify a bit more and clarify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26813 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 14:52:07 +00:00
Abdelrazak Younes
79cffed886 moveItem(): simplify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26812 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 14:19:31 +00:00
Abdelrazak Younes
93ae7c8c33 Oups...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26811 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 14:06:20 +00:00
Abdelrazak Younes
237c713046 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5328
* Paragraph::insertInset(): check if inset insertion is allowed before insertion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-08 14:03:15 +00:00
Stefan Schimanski
c874e95030 * Be more conservative about leaving out parenthesis by checking for < 0x80.
This fixes lyxmathsym characters as macro arguments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-07 16:24:07 +00:00
Richard Heck
2078e09e67 The default modules should be kept in order.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26801 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-07 15:53:05 +00:00
Enrico Forestieri
f505227f6e Smash remaining drawbacks for bug 2315
http://bugzilla.lyx.org/show_bug.cgi?id=2315


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 22:49:30 +00:00
Richard Heck
d841355b7e Fix bug 5316 properly. The fix is to make the routine that reads a counter
update an existing counter rather than overwrite it.

This turns out to be more complicated than it might seem. There are two 
large parts to the patch. One moves the counter read routine out of TextClass
and into the Counter and Counters classes. The other changes the syntax of 
counters from:
	Counter
		Name whatever
	....
to:
	Counter whatever
	....
This allows us to get the name of the counter right away, so we can decide
whether it is an old one or a new one. So the layout format had to be 
changed (again), with corresponding layout2layout code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26779 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 14:37:28 +00:00
Richard Heck
2b234dad7d Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26778 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 12:24:31 +00:00
Richard Heck
63644744fd Whitespace and comment cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26777 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 12:16:17 +00:00
Jean-Marc Lasgouttes
f993482628 fix misleading debug message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26773 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 10:14:41 +00:00
Richard Heck
7eb60756fd Remove unused code related to InsetEnvironment experiment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 04:23:26 +00:00
Richard Heck
244cda474c Add a FIXME. We need to be more careful here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26766 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 03:16:26 +00:00
Richard Heck
94bc5c3086 Further to r26743, add CustomPars and ForcePlain layout tags to InsetLayout,
so that the allowParagraphCustomization() and forcePlainLayout() features can
be independently controlled.

At present, these are active only for InsetFlex. In future, they should be made
active for InsetCollapsable, in general. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26757 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 19:38:22 +00:00
Peter Kümmel
30260f0a4d underlying filesystem is case insensitive
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 19:37:56 +00:00
Uwe Stöhr
dfcd6fb7ea make Latvian documents compilable, fixes http://bugzilla.lyx.org/show_bug.cgi?id=5324
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 19:12:12 +00:00
Pavel Sanda
bba02237ea Typo from Bennett
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26751 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 18:09:51 +00:00
Peter Kümmel
9229214eea fix bug 5332: preferences opens wrong folder for keyboard maps when there is no valid map
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26748 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 14:11:04 +00:00
Uwe Stöhr
8d11bc23be BufferParams.cpp: make Lithuanian documents compilable, fixes http://bugzilla.lyx.org/show_bug.cgi?id=5323
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26746 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 13:42:37 +00:00
Peter Kümmel
f4787aa9c9 Use long path names when comparing FileNames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26745 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 12:08:21 +00:00
Peter Kümmel
cab745d661 Fix bug 2235: jpeg capital letters (.JPG) does not work with pdflatex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26744 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 11:51:18 +00:00
Jürgen Spitzmüller
e7b99324ca * InsetFlex.h:
- correct the enabling of paragraph and layout changes as far as this
	  is possible with the current interface (see FIXMEs).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26743 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 11:00:48 +00:00
Jürgen Spitzmüller
f9e0957eb8 * InsetIndex.h:
- disallow layout and paragraph changes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 10:44:30 +00:00
Jürgen Spitzmüller
19372cb052 * InsetBox.h (allowParagraphCustomization):
- fix logic, constify.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26741 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 10:22:53 +00:00
Jürgen Spitzmüller
e996067afa * InsetCollapsable.cpp (getStatus):
- this code is now in InsetText.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 10:05:18 +00:00
Jürgen Spitzmüller
a0e6594ced fix bug 3434.
* InsetText.cpp (getStatus):
	- correctly disable layout and paragraph settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 09:51:28 +00:00
Enrico Forestieri
964a4fac79 Fix bug 1784
http://bugzilla.lyx.org/show_bug.cgi?id=1784


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 00:50:39 +00:00
Peter Kümmel
0d75676233 don't reinvent the wheel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-04 15:57:26 +00:00
Peter Kümmel
e3a494d322 fix bug 4693, Exporting files doesn't create the files in the correct folder
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-04 12:05:06 +00:00
Jürgen Spitzmüller
e2fc0d4385 Box fixes from Vincent and me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26711 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-04 09:24:40 +00:00
Richard Heck
605ce88938 Fix Abdel's FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 23:16:51 +00:00
Richard Heck
e852600e61 Typo, from Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 22:58:29 +00:00
Abdelrazak Younes
4f878b3566 stupid me...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26702 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 19:57:13 +00:00
Abdelrazak Younes
448f715831 Fix assertion with imaginary end-of-par in Changes::addToToc().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26701 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 19:53:53 +00:00
Jürgen Spitzmüller
87018001e1 * ListingsUi.ui: polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26698 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 16:22:55 +00:00
Abdelrazak Younes
f5b6ca1909 Don't show the dock widget at construction time. This should fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5273
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26697 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:45:56 +00:00
Abdelrazak Younes
4873fb9d6c We don't want to restore geometry session for dock widgets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:34:10 +00:00
Abdelrazak Younes
e29edccc3f GuiView::findOrBuild(): hide the dialog if requested and the dialog already exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:17:22 +00:00
Abdelrazak Younes
ac55ec0f56 It seems that somebody added the code to show the dockwidget at layout restoration time. This is wrong so I reverted this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 13:12:58 +00:00
Peter Kümmel
7231275a09 fix merge build: this is a std::exception
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26693 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 12:51:20 +00:00
Enrico Forestieri
4ec9b07596 Don't trust designer and manually fix TocUi.ui for Qt 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26692 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 11:51:49 +00:00
Enrico Forestieri
9df450b058 Revert r26686
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26691 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 11:25:38 +00:00
Abdelrazak Younes
4ea899a7af Make sure that the focus is correctly set before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26690 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:54:32 +00:00
Abdelrazak Younes
d8a6c1fc1e potential bug fix, reported by Richard:
Open LyX. Open a new window. Open a new window. Close the first. Close the second.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-03 07:38:51 +00:00
Enrico Forestieri
c68a342d72 Fix TocUi.ui for Qt 4.2.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 18:08:46 +00:00
Pavel Sanda
0c46365302 Port Enrico's patch for the current version of Toc.ui
so that vsize is stretched even for Qt 4.2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 15:09:00 +00:00
Pavel Sanda
2ca370b135 Add persistent view switch to the outliner.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg144343.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 15:00:43 +00:00
Richard Heck
4dc976497f Simplify the mover semantics a bit further: The extra variable being passed in
the deleted functions was never actually used, and it hasn't been for a very
long time. So the comment about the "other version" of Mover::copy() was way
out of date.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 14:41:07 +00:00
Pavel Sanda
4e02ce0a9b * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26682 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-02 12:17:58 +00:00
Jean-Marc Lasgouttes
8cc7e00cfd Turn th message about disabled socket into optional debug, since many
windows users believe that it actually means something, see e.g.
http://thread.gmane.org/gmane.editors.lyx.general/50338
http://thread.gmane.org/gmane.editors.lyx.general/39680



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 09:37:25 +00:00
Abdelrazak Younes
c7a28bbec7 Attempt to fix http://bugzilla.lyx.org/show_bug.cgi?id=4693
isDirWritable(): make it work when there is no trailing slash!
createPath(): return false if the directory already exists.
createDirectory(): don't use mymkdir on Windows, use createPath() instead.


 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 09:36:01 +00:00
Abdelrazak Younes
0ac664310a Modify the way multi-cell selection is done in tables:
* Always put the cursor at the end of the cell (this was set at the beginning with mouse selection).
* handle LFUN_SELF_INSERT in case of multi-cell selection -> the whole cell contents will be deleted.

This commit fixes http://bugzilla.lyx.org/show_bug.cgi?id=5225


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 08:18:57 +00:00
Abdelrazak Younes
1b47d2e5e2 Remove assertion that are already checked in debug mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 08:15:02 +00:00
Uwe Stöhr
af9752a0a6 boost.cpp: make LyX compilable again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26662 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 00:35:26 +00:00
Pavel Sanda
37f82d6b30 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 23:49:25 +00:00
Pavel Sanda
7d86961eed Proper lfun handling naming for listing tabs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 23:42:43 +00:00
Peter Kümmel
a07f5fcc35 win2k fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26649 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 18:03:26 +00:00
Peter Kümmel
c2f99181e6 update boost to version 1.36
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26648 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 18:01:03 +00:00
Uwe Stöhr
7382c55fd7 add support for TABs in Listings, fileformat change, fixes http://bugzilla.lyx.org/show_bug.cgi?id=3629 , patch by Vincent, lyx2lyx and UI stuff by me
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26647 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 18:00:02 +00:00
Jean-Marc Lasgouttes
ede2dbfade Cleanup and layoutification of the InsetInfo class.
* InsetInfo.cpp (InsetInfo): derive from InsetCollapsable instead of 
	InsetText, so that we can use InsetLayout. Should be reverted when the 
	layout stuff is migrated to InsetText or some lower level.
	(initTranslator, nameTranslator): moved outside of the class.
	(name, neverIndent): added.
	(draw, setMouseHover): removed.
	(updateInfo): cleanup and use layout
	(read, setInfo): make sure to reset layout.

	* lib/layouts/stdinsets.inc: add layouts for the various Info insets.
	These are used for both display and output.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 14:11:40 +00:00
Jean-Marc Lasgouttes
709df05d9f Fix properly bug 5287: http://bugzilla.lyx.org/show_bug.cgi?id=5287
* BufferView.cpp (setCursorFromInset): do not ignore the first inset 
	of the document; revert first tentative patch for this bug.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26645 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 13:47:16 +00:00
Abdelrazak Younes
b54b51c694 gcc compile fix: vector::insert() requires an iterator, not a const_iterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 12:34:36 +00:00
Abdelrazak Younes
f40a74eae2 Fix the order of changes in the Navigator. They appeared backwards.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26641 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 11:26:40 +00:00
Abdelrazak Younes
2d55770a29 stupid cut&paste error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 11:18:16 +00:00
Abdelrazak Younes
5ce39aa8b5 Add a "List of Changes" in the Navigator. The list is updated only when the document structure is reset or when the update button is clicked. Some work is needed to track more finely individual changes as we do for sections.
Changes::addToToc(): New method to insert changes sorted by authors. The symbols 0x2702 and 0x270d are used to represent deletion and insertion.

TocBackend::item(): new method to lookup for a given item.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 11:06:34 +00:00
Abdelrazak Younes
7236cfc31d revert faulty commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 10:07:22 +00:00
Abdelrazak Younes
9388404c88 TocWidget::updateView(): only set the tree depth if there's a model reset. This is to avoid node collapsing when simply editing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:59:33 +00:00
Abdelrazak Younes
7bd33462a0 Avoid a complete Toc reset in case when only a toc item update is needed.
* Buffer: new updateTocItem() signal (with Delegates and GuiView associates).
* TocBackend: take care of the signal emission instead of the Cursor::checkBufferStructure()
* TocModel: new updateTocItem() method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 09:50:54 +00:00
Jürgen Spitzmüller
03b652c9b8 * InsetInclude.cpp:
- fix duplicate check of listings labels.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 08:41:37 +00:00
Abdelrazak Younes
6bd9b43ce5 cosmetics and doxygen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 07:38:34 +00:00
Abdelrazak Younes
5cfe7daadb TocWidget: disable the tree view during an update in order to minimize a bit the flashing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 07:18:24 +00:00
Jürgen Spitzmüller
3ddfec9ae0 * GuiInclude.cpp:
- prevent assertion (listings parameters can have non-ascii chars)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-30 06:51:08 +00:00
Uwe Stöhr
54d81dd012 BufferView.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5287, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 22:55:24 +00:00
André Pönitz
0985bab38e cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 21:53:24 +00:00
Uwe Stöhr
ce09194e43 GuiDocument.cpp, BufferParams.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5294
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26628 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 19:33:37 +00:00
Uwe Stöhr
4c48e7746b BufferParams.cpp, LaTeXFeatures.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5291
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26627 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 19:18:00 +00:00
Abdelrazak Younes
6f798773a5 Dialogs: discourage non const access to lyxview().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 11:01:53 +00:00
Jean-Marc Lasgouttes
a2ffb1915a remove mutable property
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:56:45 +00:00
Abdelrazak Younes
53acfb8351 Dialogs: discourage non const access to buffer() and bufferview().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26620 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:52:17 +00:00
Abdelrazak Younes
03e76f0651 constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:48:49 +00:00
Abdelrazak Younes
aedba73655 constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:29:35 +00:00
Abdelrazak Younes
14875e5e31 Properly fix http://bugzilla.lyx.org/show_bug.cgi?id=5285 by using lfun machinery in all cases.
Also fixes dialog view in case of multipar selection.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:18:37 +00:00
Jean-Marc Lasgouttes
1c76b4b11d compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 10:13:28 +00:00
Abdelrazak Younes
56a60dce0a Merge FileFileName::Private::checksum() into FileFileName::checksum().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 09:35:13 +00:00
Jean-Marc Lasgouttes
0442417d22 constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 09:33:36 +00:00
Abdelrazak Younes
508ac52ac0 previous commit: revert debugging code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26613 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 09:06:37 +00:00
Abdelrazak Younes
3378d0cc23 FileName::Private::checksum(): disable Qt4.4 based version because of bug http://bugzilla.lyx.org/show_bug.cgi?id=5293
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 09:04:14 +00:00
Jürgen Spitzmüller
8dd1185d9f whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 08:48:02 +00:00
Abdelrazak Younes
3a0ee2070c Add fall back code to assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 08:42:18 +00:00
Jean-Marc Lasgouttes
1899c81d3e whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-29 08:30:41 +00:00
Enrico Forestieri
d7daeb752e If the "force" flag is in effect and a textmode command from the unicodesymbols
file is used, don't add the \lyxmathsym definition to the preamble if we
already are in textmode. This hopefully smashes all weird cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 21:57:31 +00:00
Uwe Stöhr
8f76634f10 tex2lyx/preamble.cpp: fix bug 19, patch by JMarc (I'm working with this patch for 4 months now and it is really stable.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 20:15:08 +00:00
Abdelrazak Younes
4b8f0d359c Add a new 'Sort' box to the Navigator so that each list can be optionally sorted.
* TocModel: redesign so that sorted list are available.
* TocWidget/TocUi: handle the new Sort check box.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 17:14:29 +00:00
Abdelrazak Younes
45cd1149e4 Full text in toc for index entries.
* Text::asString(): new method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 17:10:16 +00:00
Uwe Stöhr
7c8851a45b LaTeXFeatures.cpp: fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5294 also for trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26600 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-28 12:14:15 +00:00
Jürgen Spitzmüller
4cb08129a3 attempt to fix bug 5282:
* src/insets/InsetTabular.cpp:
	- keep track of encoding after passing a copy of the OutputParams.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-27 15:32:43 +00:00
Abdelrazak Younes
90af53afff move sum() to FileName::private::checksum() and add a new method using Qt4.4 mmap support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26590 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-27 10:54:26 +00:00
Abdelrazak Younes
16d182a0b9 header cleanup: remove duplicate includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-27 09:22:51 +00:00
Abdelrazak Younes
4122944455 First step toward fixing bug http://bugzilla.lyx.org/show_bug.cgi?id=5252
- Move lyx::sum() to FileName.cpp
- Get rid of the third slow implementation of sum() as istreambuf_iterator is supported since at least gcc 3.2.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-27 09:15:55 +00:00
Pavel Sanda
82f1cb7463 Let lyxclient read the whole line of input.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26586 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 23:58:40 +00:00
Pavel Sanda
8195cd1e2a * man
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26585 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 23:49:03 +00:00
Pavel Sanda
f88e202e39 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5285 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26583 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 21:34:08 +00:00
Uwe Stöhr
a7722811f7 InsetTabular: make Slovak and Czech documents compilable, fixes http://bugzilla.lyx.org/show_bug.cgi?id=5290, thanks to Heiko Obderdiek for the hint how to fix this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26581 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 21:24:59 +00:00
Enrico Forestieri
5ca3be4d67 In mathmode, treat nonascii chars with diacritical marks as an input method
for entering math accents, such that an umlauted A is translated as \ddot{A},
for example.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26577 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 15:53:15 +00:00
Pavel Sanda
c7bfae826c Let cursor appear after call of disabled lfun.
Patch by Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 12:35:35 +00:00
Abdelrazak Younes
5731e7faae Small cleanup in order to improve toc change detection within insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 10:37:24 +00:00
Pavel Sanda
42693547f7 Find-next fallback to search dialog when no string was entered before.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 10:07:10 +00:00