Commit Graph

12971 Commits

Author SHA1 Message Date
José Matox
8283c6f5b2 Mark spaces which belong to a foreign language in the same manner that non-whitespace is marked (from Dov).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18387 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 21:20:34 +00:00
Abdelrazak Younes
9092bffc32 This patch solves this crash (due to an assertion):
1) Open EmbeddedObject.lyx
2) Open Toc
3) Click on section 7.2.2 which is in the second child document
4) assertion.

This commit adds proper support for multi-part documents. With this each child document has access to the _full_ TOC tree (including LOT and LOF). This enables to switch between master and child document using the TOC.

* buffer_funcs.cpp:
  - updateLabels(): do not emit Buffer::structureChanged() signal for child document
  - checkBufferStructure(): update the structure of the master document.

* ControlToc.cpp: always use the TocBackend of the master document.

* LyXView::connectBuffer(): connect structureChanged() of master document.

* TocBackend:
  - TocItem: get rid of child_ member.
  - TocBackend::item(): only compare items from the same document.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18386 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 19:19:37 +00:00
Bo Peng
f827bcd96e InsetListings: separate first and last lines to a separate group box called range, fix bug 3628
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18385 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 18:23:45 +00:00
Michael Schmitt
cb4c79b1c6 fix typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18384 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 16:22:16 +00:00
Richard Heck
119400e4b3 Add originaldir,needaux flags to default Latex to HTML(Word) conversion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18383 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 15:33:47 +00:00
Richard Heck
3430c35ee3 [Bugs 3461 and 3630] Allow real_current_font to be reset in Text::setFont even when we have a selection.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18382 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 12:17:38 +00:00
Richard Heck
98554422d1 [Bug 3461] Make escape key trigger a reset of the dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18381 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 12:11:56 +00:00
Peter Kümmel
fea3a375a4 fix format before Andre complains :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18380 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 09:36:21 +00:00
Jürgen Spitzmüller
4976f50634 * src/Text3.cpp: record undo in specialChar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18379 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 08:38:41 +00:00
Georg Baum
89b5802463 Fix files with spaces in converter cache;
Delete cached conversions if the converter changes.

	* src/frontends/qt4/QPrefs.cpp
	(PrefConverters::update_converter): delete cached files since the
	new converter might create different ones
	(PrefConverters::remove_converter): ditto

	* src/support/convert.cpp
	(unsigned long convert<unsigned long>): New template specialization

	* src/ConverterCache.h
	(ConverterCache::remove_all): New method, removes all cached
	conversions of a particular converter

	* src/ConverterCache.cpp
	(CacheType): Also store source file format
	(ConverterCache::Impl::readIndex): Handle files with spaces correctly
	(ConverterCache::Impl::writeIndex): ditto
	(various): adapt to changed CacheType


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18378 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 08:31:00 +00:00
Peter Kümmel
1137260f55 tab correcten to <don't process generated key events if the system is busy>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18377 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 08:26:05 +00:00
Peter Kümmel
032d16501d don't process generated key events if the system is busy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18376 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-17 08:24:44 +00:00
Bo Peng
aa9f87addb InsetListings: fix bug 3627
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18374 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 20:57:03 +00:00
Bo Peng
a90f967d6f InsetListings: fix bug 3626
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18373 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 20:34:57 +00:00
Bo Peng
40a746bb0f InsetListings: Use a combo box for number placement, fix bug 3623
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18372 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 20:28:46 +00:00
Abdelrazak Younes
d2649159ca Toc navigation doesn't work well with child document. This is the first part of the fix: the Toc item selection is properly done before the location of the child document.
Use case solved by this patch:
1) open EmbeddedObject.lyx
2) open the TOC widget (Uwe says it crashes there but I can't reproduce)
3) try to select an item previous to 6.2.2: crash because of an assertion:

Assertion triggered in bool __cdecl lyx::operator <(const class lyx::CursorSlice
 &,const class lyx::CursorSlice &) by failing check "false" in file D:\LyXSVN\ly
x-devel\src\CursorSlice.cpp:106

I think this patch will also solve bug 3616:
http://bugzilla.lyx.org/show_bug.cgi?id=3616 

* TocItem::child_: new member for child document; default to false.
* TocBackend::item(): skip DocIterator comparison if item is in child docuemt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18370 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 16:43:14 +00:00
Jean-Marc Lasgouttes
16d4022189 move the LyXWinInstaller directory one step up in the hierarchy and rename it to AltInstaller
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18369 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 14:12:26 +00:00
Bo Peng
be8a8c302c InsetListings: rename Number style to Line numbering, as suggested by Uwe, bug 3621
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18368 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 13:57:58 +00:00
Abdelrazak Younes
961db56ed8 Temptatively fix bug 3546 by testing for more exceptionm types and by unifying the possible errors. I think the reason why we did not have a crash on windows is because we don't use wchar_t and the related basic_filebuf etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18366 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 10:39:41 +00:00
Martin Vermeer
df73111092 polishing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18365 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 09:52:09 +00:00
Abdelrazak Younes
e9780fe317 Fix cursor movement inside insets within RTL mode.
* Bidi.{h,cpp}:
  - isWithinRtlParagraph(): new helper function.

* Text2.cpp: use function above for cursor up and down instead of needReverseDirection() which is about cursor left and right.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18364 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 09:35:12 +00:00
Bo Peng
291b765a61 InsetListings: fix bug mouse symbol in the layout dialog, bug 3620
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 02:58:00 +00:00
Uwe Stöhr
f6017e7a50 chkconfig.ltx: sort fontnames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18361 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 01:05:44 +00:00
Uwe Stöhr
b303cdd837 installer:
- updates again
- better merge of InstallActions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18360 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 23:37:34 +00:00
José Matox
59065c3dd5 Update po files due to the release preparation (last for 1.5.0 beta 3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18359 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 23:32:46 +00:00
José Matox
04e3cd2297 Add file format change to support the standard font size for ext* family of textclasses
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 23:31:47 +00:00
Uwe Stöhr
975fca2f74 installer:
- infrastructures: merge the InstallActions file as requested by Christian
  - updated documentation and structure graphic
- some more changes due to update to MiKTeX 2.6
- updates

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18357 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 22:43:05 +00:00
Peter Kümmel
daf8c932ce bug 3203: try to load as local 8-bit encoded when it is not utf-8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18356 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 18:45:23 +00:00
Abdelrazak Younes
ff19dcb49c Fix assertion with LOF and LOT by transfering the test from TocWidget::select() to QToc::getCurrentIndex().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18355 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 18:01:22 +00:00
Jürgen Spitzmüller
4912255342 * src/mathed/IndetMathNest.cpp (getStatus):
- disable specialchar inset (bug 3590)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18354 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:33:42 +00:00
José Matox
3f0ef8856c Update po files due to the release preparation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18353 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:31:12 +00:00
Abdelrazak Younes
06676b6d5b rev 18350: forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18352 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:25:30 +00:00
Abdelrazak Younes
105b8b2bf1 rev 18350: forgot this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18351 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:24:26 +00:00
Abdelrazak Younes
55a26d72d4 Fix cursor movement inside insets by Dov Feldstern.
* Bidi.[h,cpp]: new helper function reverseDirectionNeeded()

* Cursor::isRTL(): delete unused method



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18350 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:19:05 +00:00
Abdelrazak Younes
6277ba63ab Properly search for relevant TocItem. Now works fine with sections inside insets.
* DocIterator
  - new comparison operators: <, > and <= (Courtesy of JMarc)

* TocBackend::item() use above <= operator instead of crude pit() comparison.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18349 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:07:55 +00:00
Abdelrazak Younes
f653540961 Fix bug 3183 by Ozgur Ugras BARAN:
* TocWidget::select()
    - Do not allow select ModelItem from the code for non-TOC types
    - add a FIXME explaining the situation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18348 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 17:02:10 +00:00
Peter Kümmel
2c7396cc59 Add debug output, harmless
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18347 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 16:29:04 +00:00
Jürgen Spitzmüller
4944e64733 From Ozgur Ugras BARAN:
* src/TocBackend.cpp:
   	- Allow TOC entries with depth larger than bufferParams.tocdepth.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18346 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 15:09:19 +00:00
Jürgen Spitzmüller
20fd0f9cf3 * lib/layouts/extarticle.layout:
* lib/layouts/extbook.layout:
* lib/layouts/extletter.layout:
* lib/layouts/exrteport.layout:
	- add missing font sizes (10,11,12)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18345 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 15:03:05 +00:00
Bo Peng
7ea0cd1dd9 InsetListingsParams.h/cpp: fix compiler warning about initialization order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18344 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 14:56:55 +00:00
Martin Vermeer
1184b0be29 Reorder and clean up the beamer layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18343 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 14:52:12 +00:00
Jürgen Spitzmüller
e5640f93ac * unify class naming scheme: class (type)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18342 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 13:32:07 +00:00
Georg Baum
9c765e64de * src/ConverterCache.cpp
(ConverterCache::Impl::readIndex): prevent assertion in
	fs::last_write_time for corrupted cache index


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18341 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 11:34:26 +00:00
José Matox
058d731103 Prepare documents for new release
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18340 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 11:31:30 +00:00
José Matox
111516498d André was nice to scons and forgot autotools :-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18339 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 11:27:04 +00:00
Jürgen Spitzmüller
9e4022e235 From Ozgur Ugras BARAN: Fix bug 3529
* src/frontends/qt4/TocWidget.{cpp,h}:
	-  new member disconnectSelectionModel()
	- (select): replace blockSignal() directives for tocTV selectionModel() 
	   with disconnect (the above new function) and reconnect relevant signal

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18338 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 11:26:24 +00:00
Martin Vermeer
df90247126 added beamer item
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 08:31:33 +00:00
Jürgen Spitzmüller
b6320bf67a * lib/chkconfig.ltx:
* lib/doc/LaTeXConfig.lyx.in:
	- add listings package.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 07:35:52 +00:00
Edwin Leuven
ccc639d842 * layout tweak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 07:22:55 +00:00
Bo Peng
33b2331867 Add examples/listings.lyx that roughly demonstrates the use of listings features
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-15 04:01:59 +00:00