]> git.lyx.org Git - lyx.git/log
lyx.git
16 years agoUse Minimalistic for branches
Martin Vermeer [Sat, 1 Sep 2007 11:40:09 +0000 (11:40 +0000)]
Use Minimalistic for branches

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

16 years agoFix wrapping bug within inset. dim_.wid was not set!
Abdelrazak Younes [Sat, 1 Sep 2007 10:30:44 +0000 (10:30 +0000)]
Fix wrapping bug within inset. dim_.wid was not set!
Add some commented out debug info.

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

16 years agoImprove painting debug info.
Abdelrazak Younes [Sat, 1 Sep 2007 09:36:53 +0000 (09:36 +0000)]
Improve painting debug info.

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

16 years agoImprove painting debug info.
Abdelrazak Younes [Sat, 1 Sep 2007 09:33:57 +0000 (09:33 +0000)]
Improve painting debug info.

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

16 years agocomment out debug info.
Abdelrazak Younes [Sat, 1 Sep 2007 09:26:37 +0000 (09:26 +0000)]
comment out debug info.

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

16 years ago* InsetCollapsable::metrics(): it seems we don't need to refit anymore. Saves an...
Abdelrazak Younes [Sat, 1 Sep 2007 09:24:20 +0000 (09:24 +0000)]
* InsetCollapsable::metrics(): it seems we don't need to refit anymore. Saves an InsetText::metrics() call and enable single Row painting within opened inline insets.

* TextMetrics::drawParagraph(): force full repaint on Insets that are within the current repainting row.

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

16 years agoEmbedding: add 'addFile' to embed arbitrary file, fix a few bugs along the way
Bo Peng [Sat, 1 Sep 2007 04:20:34 +0000 (04:20 +0000)]
Embedding: add 'addFile' to embed arbitrary file, fix a few bugs along the way

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

16 years agoAdd export to 1.5.x to trunk.
Richard Heck [Sat, 1 Sep 2007 04:09:03 +0000 (04:09 +0000)]
Add export to 1.5.x to trunk.

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

16 years agoThis patch continues 19964. It takes advantage of the work there to simplify a few...
Richard Heck [Sat, 1 Sep 2007 04:03:24 +0000 (04:03 +0000)]
This patch continues 19964. It takes advantage of the work there to simplify a few things elsewhere. First, in ControlDocument::dispatchParams(), we're setting the TextClass and then dispatching the BufferParams, which sets it again now. So we can get rid of the first call. This, however, requires loading the TextClass somewhere other than LFUN_TEXTCLASS_APPLY, which I do in BufferParams::setBaseClass(), which is when you'd actually need to do it. So I've moved some of the loading logic there. (It seemed a good idea to make setBaseClass() return whether it was successful, then, though this isn't used at the moment.)

That makes another simplification both possible and desirable. For some reason, whenever you change the Document Class combobox in Document Settings, LyX tries to read whatever you choose _before_ you try to hit "Apply". Why? I see no good reason. You get the warning earlier that way, but maybe you weren't going to try to load it anyway and were going to change your mind. So I have removed that behavior, in which case you'll get the warning when you try to apply the parameters. This means we can also remove ControlDocument::loadTextclass().

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

16 years agoThis addresses a bug in the module code so far committed. The problem is that changin...
Richard Heck [Sat, 1 Sep 2007 04:01:13 +0000 (04:01 +0000)]
This addresses a bug in the module code so far committed. The problem is that changing the modules used would update the Buffer's TextClass---but it wouldn't update the layouts used by existing paragraphs, the way changing the TextClass does. The solution, obviously, is to do that update. So what I've done is extract that logic from LFUN_TEXTCLASS_APPLY into an updateLayout() routine and then call that from LFUN_BUFFER_PARAMS_APPLY, LFUN_LAYOUT_MODULE_ADD, and LFUN_LAYOUT_MODULES_CLEAR, which are the three places the modules could be changed.

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

16 years agoFix compiling error caused by Andre's patch.
Bo Peng [Sat, 1 Sep 2007 02:43:14 +0000 (02:43 +0000)]
Fix compiling error caused by Andre's patch.

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

16 years agosomewhat more uniform naming
André Pönitz [Fri, 31 Aug 2007 22:37:05 +0000 (22:37 +0000)]
somewhat more uniform naming

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

16 years agoMerge QController into individual dialogs. Also various cleanup
André Pönitz [Fri, 31 Aug 2007 22:16:11 +0000 (22:16 +0000)]
Merge QController into individual dialogs. Also various cleanup

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

16 years agoEmbedding: small adjustments of interfaces, single and double click in the embedding...
Bo Peng [Fri, 31 Aug 2007 22:02:34 +0000 (22:02 +0000)]
Embedding: small adjustments of interfaces, single and double click in the embedding dialog

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

16 years agocosmetics
Alfredo Braunstein [Fri, 31 Aug 2007 20:24:15 +0000 (20:24 +0000)]
cosmetics

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

16 years agofix make dist
André Pönitz [Fri, 31 Aug 2007 18:30:23 +0000 (18:30 +0000)]
fix make dist

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

16 years agofix typo
André Pönitz [Fri, 31 Aug 2007 18:16:50 +0000 (18:16 +0000)]
fix typo

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

16 years agoupdate .po files
André Pönitz [Fri, 31 Aug 2007 18:15:21 +0000 (18:15 +0000)]
update .po files

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

16 years agos/Q/Gui/ in POTFILES.in
André Pönitz [Fri, 31 Aug 2007 18:08:27 +0000 (18:08 +0000)]
s/Q/Gui/ in POTFILES.in

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

16 years agofix two metrics bug + remove an extra metrics call
Alfredo Braunstein [Fri, 31 Aug 2007 17:32:27 +0000 (17:32 +0000)]
fix two metrics bug + remove an extra metrics call

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

16 years agoEmbedding feature patch 3: basic gui support
Bo Peng [Fri, 31 Aug 2007 15:42:35 +0000 (15:42 +0000)]
Embedding feature patch 3: basic gui support
*  lib/ui/stdmenus.inc: add menu item embedded files
*  src/BufferParams.cpp: set default embedded status to false
*  src/EmbeddedFiles.h|cpp: add a few member functions
*  src/frontends/qt4/Dialogs.cpp: add embedding dialog
*  src/frontends/qt4/GuiEmbeddedFiles.h|cpp: embedding dialog
*  src/frontends/qt4/ui/EmbeddedFilesUi.ui: embedding dialog
*  src/frontends/controllers/ControlEmbeddedFiles.h|cpp: embedding dialog control
*  src/frontends/qt4/Makefile.am: build system update
*  src/frontends/controllers/Makefile.am
*  development/scons/scons_manifest.py

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

16 years agoModularize the theorem modules.
Richard Heck [Fri, 31 Aug 2007 15:01:17 +0000 (15:01 +0000)]
Modularize the theorem modules.

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

16 years agoTransfer Paragraph::hfillExpansion() to ParagraphMetrics. This also reduce the depend...
Abdelrazak Younes [Fri, 31 Aug 2007 14:46:13 +0000 (14:46 +0000)]
Transfer Paragraph::hfillExpansion() to ParagraphMetrics. This also reduce the dependency to Row.h which is probably going to change in the near future.

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

16 years agocompil fix
Abdelrazak Younes [Fri, 31 Aug 2007 14:26:43 +0000 (14:26 +0000)]
compil fix

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

16 years agodelete unused definition.
Abdelrazak Younes [Fri, 31 Aug 2007 14:24:16 +0000 (14:24 +0000)]
delete unused definition.

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

16 years agoHack: full repaint of text inset in Tabular. This will do until I can optimize it...
Abdelrazak Younes [Fri, 31 Aug 2007 14:02:12 +0000 (14:02 +0000)]
Hack: full repaint of text inset in Tabular. This will do until I can optimize it. We've never done anything but full repaint anyway in tabular.

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

16 years agode-indent
Abdelrazak Younes [Fri, 31 Aug 2007 13:46:19 +0000 (13:46 +0000)]
de-indent

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

16 years agoanother translation disambiguation
Martin Vermeer [Fri, 31 Aug 2007 12:07:14 +0000 (12:07 +0000)]
another translation disambiguation

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

16 years agoFurther cleanup, decoration -> geometry, bugfix
Martin Vermeer [Fri, 31 Aug 2007 12:05:41 +0000 (12:05 +0000)]
Further cleanup, decoration -> geometry, bugfix

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

16 years agoFix ambiguity in translation
Martin Vermeer [Fri, 31 Aug 2007 11:09:46 +0000 (11:09 +0000)]
Fix ambiguity in translation

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

16 years agoTransfer Text::drawSelection() to TextMetrics.
Abdelrazak Younes [Fri, 31 Aug 2007 10:05:12 +0000 (10:05 +0000)]
Transfer Text::drawSelection() to TextMetrics.

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

16 years agocompil fix and cosmetics.
Abdelrazak Younes [Fri, 31 Aug 2007 10:01:31 +0000 (10:01 +0000)]
compil fix and cosmetics.

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

16 years agoIncrement file format due to the embedded feature
José Matox [Fri, 31 Aug 2007 09:46:14 +0000 (09:46 +0000)]
Increment file format due to the embedded feature

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

16 years agoCleanup: Replace decoration() calls by geometry(). (And get rid of unused call)
Martin Vermeer [Fri, 31 Aug 2007 07:15:32 +0000 (07:15 +0000)]
Cleanup: Replace decoration() calls by geometry(). (And get rid of unused call)

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

16 years agoremove unneeded drawSelection() method.
Abdelrazak Younes [Fri, 31 Aug 2007 07:10:24 +0000 (07:10 +0000)]
remove unneeded drawSelection() method.

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

16 years agomove our stuff off the Q* namespace
André Pönitz [Fri, 31 Aug 2007 05:53:55 +0000 (05:53 +0000)]
move our stuff off the Q* namespace

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

16 years agoTransfer Text::drawSelection() from InsetText::drawSelection() to InsetText::draw...
Abdelrazak Younes [Thu, 30 Aug 2007 22:46:22 +0000 (22:46 +0000)]
Transfer Text::drawSelection() from InsetText::drawSelection() to InsetText::draw(). This enables to take care of the background at one place. This will also enable to draw only the selection in the future (and not the full inset).

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

16 years agoGerman UserGuide.lyx: updates from Hartmut
Uwe Stöhr [Thu, 30 Aug 2007 22:45:24 +0000 (22:45 +0000)]
German UserGuide.lyx: updates from Hartmut

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

16 years agocompil fix.
Abdelrazak Younes [Thu, 30 Aug 2007 22:30:31 +0000 (22:30 +0000)]
compil fix.

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

16 years agocompil fix.
Abdelrazak Younes [Thu, 30 Aug 2007 22:30:14 +0000 (22:30 +0000)]
compil fix.

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

16 years agocosmetics
André Pönitz [Thu, 30 Aug 2007 22:25:35 +0000 (22:25 +0000)]
cosmetics

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

16 years agofix text background painting.
Abdelrazak Younes [Thu, 30 Aug 2007 22:12:13 +0000 (22:12 +0000)]
fix text background painting.

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

16 years agoEmbedding patch two: read/write embedded files'
Bo Peng [Thu, 30 Aug 2007 20:46:42 +0000 (20:46 +0000)]
Embedding patch two: read/write embedded files'
*  src/insets/InsetGraphics.h
*  src/insets/InsetExternal.cpp
*  src/insets/InsetGraphics.cpp
*  src/insets/InsetInclude.cpp
*  src/insets/Inset.h
*  src/insets/InsetInclude.h
*  src/insets/InsetExternal.h: register embedded files
*  src/EmbeddedFiles.h|cpp: core of embedded files
*  src/Buffer.h|cpp: read/write embed file
*  src/BufferParams.h|cpp: embedded flag
*  src/Makefile.am
*  po/POTFILES.in
*  development/scons/scons_manifest.py: build system updates

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

16 years agocompile fiz
André Pönitz [Thu, 30 Aug 2007 20:14:33 +0000 (20:14 +0000)]
compile fiz

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

16 years agoxpm -> png
André Pönitz [Thu, 30 Aug 2007 20:09:12 +0000 (20:09 +0000)]
xpm -> png

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

16 years agoFix redrawing bug for multirow inlined collapsable inset.
Abdelrazak Younes [Thu, 30 Aug 2007 19:27:33 +0000 (19:27 +0000)]
Fix redrawing bug for multirow inlined collapsable inset.

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

16 years agouse bald pointers in clone()
André Pönitz [Thu, 30 Aug 2007 18:03:17 +0000 (18:03 +0000)]
use bald pointers in clone()

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

16 years agoFix DEPM crash within inset.
Abdelrazak Younes [Thu, 30 Aug 2007 16:48:47 +0000 (16:48 +0000)]
Fix DEPM crash within inset.

* BufferView::updateMetrics(): always clear the full text_metrics_ when doing a full update.

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

16 years agoFinally enable single row repainting within insets! The inset width needs to stay...
Abdelrazak Younes [Thu, 30 Aug 2007 15:17:38 +0000 (15:17 +0000)]
Finally enable single row repainting within insets! The inset width needs to stay fixed of course.

* BufferView::draw(): makes use of PainterInfo::full_repaint
* TextMetrics::drawParagraph(): ditto.
* InsetText::drawSelection(): don't fillRectangle() if there's no selection.

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

16 years agoSave the right timestamp and checksum of an opened file.
Enrico Forestieri [Thu, 30 Aug 2007 14:50:12 +0000 (14:50 +0000)]
Save the right timestamp and checksum of an opened file.

* src/Buffer.cpp (Buffer::readFile): save timestamp and checksum
of the original disk file, and not those of the file converted
to current format.

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

16 years agostupid copy&paste bug fix.
Abdelrazak Younes [Thu, 30 Aug 2007 14:26:52 +0000 (14:26 +0000)]
stupid copy&paste bug fix.

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

16 years agosingle depth for preference items,
Edwin Leuven [Thu, 30 Aug 2007 14:22:56 +0000 (14:22 +0000)]
single depth for preference items,
fixes bug http://bugzilla.lyx.org/show_bug.cgi?id=4153

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

16 years ago* RowPainter: store PainterInfo reference instead of creating one.
Abdelrazak Younes [Thu, 30 Aug 2007 13:53:02 +0000 (13:53 +0000)]
* RowPainter: store PainterInfo reference instead of creating one.

* PainterInfo: new full_repaint member.

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

16 years ago* RowPainter:
Abdelrazak Younes [Thu, 30 Aug 2007 13:19:24 +0000 (13:19 +0000)]
* RowPainter:
- paintOnlyInsets(): new public method for inset painting only in case the inset dimension didn't change within a Row.
- paintInset(): put out everything not strictly related to the inset painting itself.
- paintHfill(): new private method to cut the reduce code in paintText().

* TextMetrics::drawParagraph(): use paintOnlyInsets() when the Row text nor it's dimension changed.

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

16 years agosolve Bug 3600 by eliminating a call to stripLeadingSpaces
Alfredo Braunstein [Thu, 30 Aug 2007 12:28:22 +0000 (12:28 +0000)]
solve Bug 3600 by eliminating a call to stripLeadingSpaces

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

16 years ago* RowPainter::paintFromPos(): transfer inset part to paintInset()
Abdelrazak Younes [Thu, 30 Aug 2007 09:01:30 +0000 (09:01 +0000)]
* RowPainter::paintFromPos(): transfer inset part to paintInset()

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

16 years agoFix old error string in Cases
Martin Vermeer [Thu, 30 Aug 2007 08:21:28 +0000 (08:21 +0000)]
Fix old error string in Cases

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

16 years agoFix bug 3999: Highlight search text.
Richard Heck [Thu, 30 Aug 2007 01:26:18 +0000 (01:26 +0000)]
Fix bug 3999: Highlight search text.

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

16 years agoGerman UserGuide.lyx: updates from Hartmut
Uwe Stöhr [Thu, 30 Aug 2007 01:08:57 +0000 (01:08 +0000)]
German UserGuide.lyx: updates from Hartmut

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

16 years agodocumentation: bugfixes by Ignacio
Uwe Stöhr [Thu, 30 Aug 2007 00:53:49 +0000 (00:53 +0000)]
documentation: bugfixes by Ignacio

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

16 years agoBug fixes. changed_ was always true...
Abdelrazak Younes [Wed, 29 Aug 2007 23:06:14 +0000 (23:06 +0000)]
Bug fixes. changed_ was always true...

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

16 years agoGet package things working with modules prior to UI patch.
Richard Heck [Wed, 29 Aug 2007 22:59:25 +0000 (22:59 +0000)]
Get package things working with modules prior to UI patch.

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

16 years agoEnable use of Row::changed()
Abdelrazak Younes [Wed, 29 Aug 2007 21:33:11 +0000 (21:33 +0000)]
Enable use of Row::changed()

* TextMetrics::redoParagraph(): crop the RowList if it is too big.
* ParagraphMetrics::reset():  don't clear its RowList.

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

16 years agoScons update for r19893, tex2lyx is still broken
Bo Peng [Wed, 29 Aug 2007 21:18:02 +0000 (21:18 +0000)]
Scons update for r19893, tex2lyx is still broken

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

16 years agoTransfer ParagraphMetrics::rowChangeStatus() to Row::changed(). Prepare for fine...
Abdelrazak Younes [Wed, 29 Aug 2007 21:03:41 +0000 (21:03 +0000)]
Transfer ParagraphMetrics::rowChangeStatus() to Row::changed(). Prepare for fine grained row redrawing.

^ Row:
- changed_: new boolean to inform change status at draw time.
- crc_: new crc_ signature
- inline pos() and endpos()
- replace width(), ascent() and descent() direct access with dimension().

* ParagraphMetrics
- do not maintain row_signature_ anymore
- rename calculateRowSignature() to computeRowSignature() and make it public

* TextMetrics
- redoParagraph(): don't clear the ParagraphMetrics row list, reuse and update it.
- rowHeight(), rowWidth(), rowBreakPoint(): take first/end positions instead of Row.

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

16 years agoThis is one of a series of patches that will merge the layout modules development...
Richard Heck [Wed, 29 Aug 2007 17:59:49 +0000 (17:59 +0000)]
This is one of a series of patches that will merge the layout modules development in personal/branches/rgheck back into the tree.

Design goal: Allow the use of layout "modules", which are to LaTeX packages as layout files are to LaTeX document classes. Thus, one could have a module that defined certain character styles, environments, commands, or what have you, and include it in various documents, each of which uses a different document class, without having to modify the layout files themselves. For example, a theorems.module could be used with article.layout to provide support for theorem-type environments, without having to modify article.layout itself, and the same module could be used with book.layout, etc.

This patch adds the backend. The ModuleList class holds a list of the available modules, which are retrieved from lyxmodules.lst, itself generated by configure.py. There are two LFUNs available: modules-clear and module-add, which do the obvious thing; you can test by typing these into the minibuffer, along with the name of one of the available modules: URL (a CharStyle), Endnote (a Custom Inset), and---with the spaces---End To Foot (View>LaTeX and look at the user preamble), which are themselves in lib/layouts. There are some others, too, that allow theorems to be added to classes like article and book.

The GUI will come next.

Issues: (i) The configure.py script could be improved. It'd be nice, for example, if it tested for the presence of the LaTeX packages a particular module needs. But this would mean re-working the LaTeX script, and I don't know how to do that. Note that at present, the packages are ignored. This will change shortly. (ii) I've used std::string in LyXModule, following what seemed to be a precedent in TextClass. If some of these should be docstrings, please let me know, and I'll change them. (iii) There is at present no distinction between LaTeX and DocBook modules. Should there be? That is: Should there be modules that are available when the document class is a LaTeX class and others that are available only when it is DocBook? Or should there just be one set of modules? Each module can of course indicate for what it is suitable in its description.

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

16 years agoAdd some more logical charstyles
Martin Vermeer [Wed, 29 Aug 2007 16:04:56 +0000 (16:04 +0000)]
Add some more logical charstyles

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

16 years agoFix bug 4170: Close window when user wants it closed.
Richard Heck [Wed, 29 Aug 2007 15:24:41 +0000 (15:24 +0000)]
Fix bug 4170: Close window when user wants it closed.

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

16 years agoFix bug 4158.
José Matox [Wed, 29 Aug 2007 13:39:15 +0000 (13:39 +0000)]
Fix bug 4158.

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

16 years ago* src/Text2.cpp:
Jürgen Spitzmüller [Wed, 29 Aug 2007 13:04:29 +0000 (13:04 +0000)]
* src/Text2.cpp:
- fix wrong DEPM in ct mode (bug 3961).

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

16 years agoGerman Extended.lyx and UserGuide.lyx: updates from Hartmut
Uwe Stöhr [Wed, 29 Aug 2007 00:22:57 +0000 (00:22 +0000)]
German Extended.lyx and UserGuide.lyx: updates from Hartmut

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

16 years agoEmbeddedObjects.lyx: correct the description of the list of algorithms
Uwe Stöhr [Tue, 28 Aug 2007 23:48:09 +0000 (23:48 +0000)]
EmbeddedObjects.lyx: correct the description of the list of algorithms

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

16 years agoTake Track-Change into account when calculating row signature.
Abdelrazak Younes [Tue, 28 Aug 2007 22:44:09 +0000 (22:44 +0000)]
Take Track-Change into account when calculating row signature.

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

16 years agoadd minizp to qmake
André Pönitz [Tue, 28 Aug 2007 21:41:53 +0000 (21:41 +0000)]
add minizp to qmake

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

16 years agomore cmake cosmetics
André Pönitz [Tue, 28 Aug 2007 20:47:42 +0000 (20:47 +0000)]
more cmake cosmetics

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

16 years agocmake cosmetics
André Pönitz [Tue, 28 Aug 2007 19:54:42 +0000 (19:54 +0000)]
cmake cosmetics

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

16 years agoUpdate comment.
Abdelrazak Younes [Tue, 28 Aug 2007 18:30:15 +0000 (18:30 +0000)]
Update comment.

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

16 years agocmake cosmetics
André Pönitz [Tue, 28 Aug 2007 18:30:02 +0000 (18:30 +0000)]
cmake cosmetics

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

16 years ago* TextMetrics::redoParagraph(): we need to check the returned value of Inset::metrics...
Abdelrazak Younes [Tue, 28 Aug 2007 18:25:28 +0000 (18:25 +0000)]
* TextMetrics::redoParagraph(): we need to check the returned value of Inset::metrics() nevertheless because some changes don't involves a dimension change (especially in multiline InsetText).

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

16 years ago* InsetCollapsable::setStatus(): remove the Buffer::changed() signal emission. This...
Abdelrazak Younes [Tue, 28 Aug 2007 18:13:17 +0000 (18:13 +0000)]
* InsetCollapsable::setStatus(): remove the Buffer::changed() signal emission. This causes a WorkArea redraw before the BufferView metrics update happens.
* WorkArea::dispatch(): replace the redraw() call with a Buffer::changed() signal emission in order to update all views of the Buffer, even though some view won't need the redraw...

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

16 years agoDon't draw if there's nothing to draw.
Abdelrazak Younes [Tue, 28 Aug 2007 18:05:55 +0000 (18:05 +0000)]
Don't draw if there's nothing to draw.

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

16 years agoSecond Brown paper bag!
Abdelrazak Younes [Tue, 28 Aug 2007 17:40:40 +0000 (17:40 +0000)]
Second Brown paper bag!

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

16 years agoBrown paper bag!
Abdelrazak Younes [Tue, 28 Aug 2007 17:39:36 +0000 (17:39 +0000)]
Brown paper bag!

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

16 years agosome attempt at cmake beautification
André Pönitz [Tue, 28 Aug 2007 17:07:02 +0000 (17:07 +0000)]
some attempt at cmake beautification

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

16 years agoScons for previous commit.
Richard Heck [Tue, 28 Aug 2007 16:50:59 +0000 (16:50 +0000)]
Scons for previous commit.

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

16 years agoThis is one of a series of patches that will merge the layout modules development...
Richard Heck [Tue, 28 Aug 2007 16:49:40 +0000 (16:49 +0000)]
This is one of a series of patches that will merge the layout modules development in personal/branches/rgheck back into the tree.

Design goal: Allow the use of layout "modules", which are to LaTeX packages as layout files are to LaTeX document classes. Thus, one could have a module that defined certain character styles, environments, commands, or what have you, and include it in various documents, each of which uses a different document class, without having to modify the layout files themselves. For example, a theorems.module could be used with article.layout to provide support for theorem-type environments, without having to modify article.layout itself, and the same module could be used with book.layout, etc.

This third patch just re-factors some code presently in QCitation*. (It also incorporates some bug fixes that have been committed separately.) We're going to use essentially the same set of widgets for choosing modules that is used for choosing citation keys, so we pull the controlling logic out into a new class, QSelectionManager. I did not make this a QWidget. That seemed to me to be overkill, and it would have made things much more complicated, I think...and I'm not all that experienced with Qt, anyway. Anyone who wants to do that is of course welcome.

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

16 years agoWe are not forced to redraw the row each time the cursor is moved.
Abdelrazak Younes [Tue, 28 Aug 2007 16:39:46 +0000 (16:39 +0000)]
We are not forced to redraw the row each time the cursor is moved.

* TextMetrics.cpp: CursorOnRow() removed.
* TextMetrics::drawParagraph() do not check cursor position.

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

16 years agoMerge the Row and RowMetrics class. Those classes were separated in the 1.4 code...
Abdelrazak Younes [Tue, 28 Aug 2007 15:47:53 +0000 (15:47 +0000)]
Merge the Row and RowMetrics class. Those classes were separated in the 1.4 code base because the Row list was part of Paragraph. As it is now in ParagraphMetrics, there is no need to separate them. Also, only compute the rowmetrics once when the containing paragraph is redone.

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

16 years agoheader cleanup.
Abdelrazak Younes [Tue, 28 Aug 2007 15:34:55 +0000 (15:34 +0000)]
header cleanup.

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

16 years agoheader cleanup.
Abdelrazak Younes [Tue, 28 Aug 2007 15:33:15 +0000 (15:33 +0000)]
header cleanup.

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

16 years agoheader cleanup.
Abdelrazak Younes [Tue, 28 Aug 2007 15:32:39 +0000 (15:32 +0000)]
header cleanup.

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

16 years agotransfer margin declaration to BufferView.h
Abdelrazak Younes [Tue, 28 Aug 2007 15:31:04 +0000 (15:31 +0000)]
transfer margin declaration to BufferView.h

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

16 years agoheader cleanup.
Abdelrazak Younes [Tue, 28 Aug 2007 15:08:03 +0000 (15:08 +0000)]
header cleanup.

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

16 years agoheader cleanup.
Abdelrazak Younes [Tue, 28 Aug 2007 15:07:39 +0000 (15:07 +0000)]
header cleanup.

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

16 years agoOops...
Martin Vermeer [Tue, 28 Aug 2007 14:33:44 +0000 (14:33 +0000)]
Oops...

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

16 years agosome more inclusions of stdinsets.inc
Martin Vermeer [Tue, 28 Aug 2007 14:32:06 +0000 (14:32 +0000)]
some more inclusions of stdinsets.inc

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

16 years ago* Row: Use Dimension class.
Abdelrazak Younes [Tue, 28 Aug 2007 09:21:48 +0000 (09:21 +0000)]
* Row: Use Dimension class.

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

16 years ago- Transfer rowpainter.cpp:paintPar() to TextMetrics::drawParagraph()
Abdelrazak Younes [Tue, 28 Aug 2007 08:57:13 +0000 (08:57 +0000)]
- Transfer rowpainter.cpp:paintPar() to TextMetrics::drawParagraph()
- move RowPainter class out of the anonymous namespace so that it can be used by TextMetrics::drawParagraph().

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

16 years agofix scons for the removal of Package.cpp.in
Bo Peng [Tue, 28 Aug 2007 02:46:09 +0000 (02:46 +0000)]
fix scons for the removal of Package.cpp.in

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

16 years agoTransfer rowpainter.cpp:paintText() to BufferView::draw()
Abdelrazak Younes [Mon, 27 Aug 2007 22:53:16 +0000 (22:53 +0000)]
Transfer rowpainter.cpp:paintText() to BufferView::draw()

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