]> git.lyx.org Git - lyx.git/log
lyx.git
16 years agoadd preamble snippets to charstyles
Martin Vermeer [Wed, 22 Aug 2007 18:55:03 +0000 (18:55 +0000)]
add preamble snippets to charstyles

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

16 years agoHebrew Tutorial.lyx: fix old link, fixes bug 4165
Uwe Stöhr [Wed, 22 Aug 2007 18:50:03 +0000 (18:50 +0000)]
Hebrew Tutorial.lyx: fix old link, fixes bug 4165

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

16 years agoForgot this one in an earlier commit.
Richard Heck [Wed, 22 Aug 2007 16:44:11 +0000 (16:44 +0000)]
Forgot this one in an earlier commit.

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

16 years agoadd comments and remove dead code from revision 19721.
Abdelrazak Younes [Wed, 22 Aug 2007 14:44:34 +0000 (14:44 +0000)]
add comments and remove dead code from revision 19721.

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

16 years agobug fix.
Abdelrazak Younes [Wed, 22 Aug 2007 14:38:25 +0000 (14:38 +0000)]
bug fix.

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

16 years agocosmetics: return early whenever possible to reduce indentation.
Abdelrazak Younes [Wed, 22 Aug 2007 14:36:18 +0000 (14:36 +0000)]
cosmetics: return early whenever possible to reduce indentation.

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

16 years agolayout2layout, changeover to version 5
Martin Vermeer [Wed, 22 Aug 2007 14:36:07 +0000 (14:36 +0000)]
layout2layout, changeover to version 5

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

16 years agosimplify BufferView::moveToPosition() use for the external use (in LyXView and LyXFunc).
Abdelrazak Younes [Wed, 22 Aug 2007 14:25:51 +0000 (14:25 +0000)]
simplify BufferView::moveToPosition() use for the external use (in LyXView and LyXFunc).

* BufferView::moveToPosition()
- now only return success boolean
- now schedule a screen centering
- now set the current font to the new position.

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

16 years agoFix bug 3427:
Abdelrazak Younes [Wed, 22 Aug 2007 14:14:52 +0000 (14:14 +0000)]
Fix bug 3427:
http://bugzilla.lyx.org/show_bug.cgi?id=3427

The problem was that offset_ref_ was calculated based on an empty metrics. The solution is delay the calculation up until the next metrics update.

* BufferView:
- center(): now just set the anchor_ref and program a new screen recentering.
- updateOffsetRef(): update the offset_ref_

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

16 years agotransfer cursor position saving (in the session) from ~WorkArea to ~BufferView.
Abdelrazak Younes [Wed, 22 Aug 2007 09:06:13 +0000 (09:06 +0000)]
transfer cursor position saving (in the session) from ~WorkArea to ~BufferView.

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

16 years ago* restore lastfile feature.
Abdelrazak Younes [Wed, 22 Aug 2007 09:04:31 +0000 (09:04 +0000)]
* restore lastfile feature.

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

16 years agoFix crash on first load with mouse wheel: this was because the scrollbar was not...
Abdelrazak Younes [Wed, 22 Aug 2007 08:48:01 +0000 (08:48 +0000)]
Fix crash on first load with mouse wheel: this was because the scrollbar was not updated.

* loadLyXFile::setBuffer(): get rid of a premature optimisation, we make sure that everything is properly drawn in any case.

* GuiView::setCurrentWorkArea(): make sure everything is updated if we don't change tab.

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

16 years agoFix crash when session is empty.
Abdelrazak Younes [Wed, 22 Aug 2007 08:34:48 +0000 (08:34 +0000)]
Fix crash when session is empty.

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

16 years agorevert 19714, this is not the right fix. LyXView::loadLyXFile() is not about displayi...
Abdelrazak Younes [Wed, 22 Aug 2007 08:22:32 +0000 (08:22 +0000)]
revert 19714, this is not the right fix. LyXView::loadLyXFile() is not about displaying a buffer.

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

16 years agoFix crash on first load with mouse wheel: this was because the scrollbar was not...
Abdelrazak Younes [Wed, 22 Aug 2007 07:51:39 +0000 (07:51 +0000)]
Fix crash on first load with mouse wheel: this was because the scrollbar was not updated. The solution is just to force a redraw in LyXView::loadLyXFile().

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

16 years agoCompile fix for mingw
Enrico Forestieri [Wed, 22 Aug 2007 04:52:40 +0000 (04:52 +0000)]
Compile fix for mingw

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

16 years agosimplify build process of tex2lyx
André Pönitz [Tue, 21 Aug 2007 23:17:37 +0000 (23:17 +0000)]
simplify build process of tex2lyx

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

16 years ago"proper" fix for utime use in filetools.cpp
André Pönitz [Tue, 21 Aug 2007 23:16:49 +0000 (23:16 +0000)]
"proper" fix for utime use in filetools.cpp

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

16 years agocompile fix for ubuntu, probably not generic enough
André Pönitz [Tue, 21 Aug 2007 23:05:48 +0000 (23:05 +0000)]
compile fix for ubuntu, probably not generic enough

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

16 years agofix a wrong scons fix due to the removal of /TP option
Bo Peng [Tue, 21 Aug 2007 22:14:30 +0000 (22:14 +0000)]
fix a wrong scons fix due to the removal of /TP option

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

16 years agoFix file inclusion in src/support/filetools.cpp under mac
Bo Peng [Tue, 21 Aug 2007 22:10:58 +0000 (22:10 +0000)]
Fix file inclusion in src/support/filetools.cpp under mac

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

16 years agoadd Joan Montané to the credits
Uwe Stöhr [Tue, 21 Aug 2007 21:52:06 +0000 (21:52 +0000)]
add Joan Montané to the credits

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

16 years ago* LyXView:
Abdelrazak Younes [Tue, 21 Aug 2007 21:41:12 +0000 (21:41 +0000)]
* LyXView:
- setBuffer(): LyXView has no business in setting parent document.
- loadLyXFile():  delete dead code.

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

16 years agoinset configurability: ERT
Martin Vermeer [Tue, 21 Aug 2007 21:29:13 +0000 (21:29 +0000)]
inset configurability: ERT

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

16 years agoSCons: msvc gives different result for this ICONV_CONST test so I need to change...
Bo Peng [Tue, 21 Aug 2007 21:21:39 +0000 (21:21 +0000)]
SCons: msvc gives different result for this ICONV_CONST test so I need to change the test to .cpp

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

16 years agominizip fixes for msvc and cmake
Peter Kümmel [Tue, 21 Aug 2007 21:09:45 +0000 (21:09 +0000)]
minizip fixes for msvc and cmake

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

16 years agoAdd autotools support for src/support/minizip stuff
Bo Peng [Tue, 21 Aug 2007 20:40:02 +0000 (20:40 +0000)]
Add autotools support for src/support/minizip stuff

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

16 years agoChange src/support/minizip/* from K&R to ANSI style so that a C++ compiler can compil...
Bo Peng [Tue, 21 Aug 2007 20:02:05 +0000 (20:02 +0000)]
Change src/support/minizip/* from K&R to ANSI style so that a C++ compiler can compile them

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

16 years agocharstyle update for beamer
Martin Vermeer [Tue, 21 Aug 2007 19:44:47 +0000 (19:44 +0000)]
charstyle update for beamer

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

16 years agoThe necessary changes to these XML layouts (charstyle new format)
Martin Vermeer [Tue, 21 Aug 2007 19:43:10 +0000 (19:43 +0000)]
The necessary changes to these XML layouts (charstyle new format)

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

16 years agomore translations
Martin Vermeer [Tue, 21 Aug 2007 18:15:04 +0000 (18:15 +0000)]
more translations

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

16 years agoSCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also...
Bo Peng [Tue, 21 Aug 2007 16:46:05 +0000 (16:46 +0000)]
SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also fix a CXX_GLOBAL_CSTD bug (not quite sure)

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

16 years agoEmbedding feature patch 1: add zipFiles and unzipToDir to support
Bo Peng [Tue, 21 Aug 2007 14:48:47 +0000 (14:48 +0000)]
Embedding feature patch 1: add zipFiles and unzipToDir to support
* src/support/lyxlib.h: add makedir(), used by unzipToDir
* src/support/filetools.[h|cpp]: add zipFiles() and unzipToDir()
* src/support/mkdir.cpp: add makedir() and mymkdir(char*).
* src/support/minizip: add zlib-1.2.3/contrib/minizip files to lyx svn
* src/support/minizip/iowin32.h
* src/support/minizip/ioapi.c
* src/support/minizip/zip.c
* src/support/minizip/unzip.c
* src/support/minizip/crypt.h
* src/support/minizip/ioapi.h
* src/support/minizip/zip.h
* src/support/minizip/unzip.h
* src/support/minizip/iowin32.c
* development/scons/scons_manifest.py: adjust scons
* development/scons/SConstruct

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

16 years ago* BufferView::buffer() returns a reference instead of a pointer.
Abdelrazak Younes [Tue, 21 Aug 2007 13:03:55 +0000 (13:03 +0000)]
* BufferView::buffer() returns a reference instead of a pointer.

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

16 years agosimplify setInsetFont, removing a potential bug (an invalid DocIterator was built...
Alfredo Braunstein [Tue, 21 Aug 2007 10:54:04 +0000 (10:54 +0000)]
simplify setInsetFont, removing a potential bug (an invalid DocIterator was built). Use CursorSlices when possible.

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

16 years agosome work on fi.po
Martin Vermeer [Tue, 21 Aug 2007 07:57:11 +0000 (07:57 +0000)]
some work on fi.po

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

16 years agoThe BufferView/WorkArea/LyXView reorg a.k.a Multiple WorkAreas:
Abdelrazak Younes [Tue, 21 Aug 2007 07:33:46 +0000 (07:33 +0000)]
The BufferView/WorkArea/LyXView reorg a.k.a Multiple WorkAreas:

* Buffer:
- get rid of cursor_ and anchor_
- ~Buffer(): update the labels of its master buffer before closing
- closing(): pass the Buffer address.

* BufferView():
- BufferView(): needs a valid Buffer (should be const in the future.
- most of the change is about removing all test of buffer_ nullity.
- resize(): deleted.
- setBuffer(): deleted.

* Application:
- newLyXView(): simplification
- updated design description in Application.h

* Gui/GuiImplementation: remove all WorkAreas and BufferView creation/Deletion. Workareas are directly handled by  LyXView/GuiView and BufferView is created/delete by WorkArea.

* LyXView/GuiView: implement the new design

What is not working yet:
- the close tab button: it is implemented but does not show up.

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

16 years agofix MSVC warnings
Abdelrazak Younes [Tue, 21 Aug 2007 07:17:49 +0000 (07:17 +0000)]
fix MSVC warnings

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

16 years agoGerman splash.lyx: fix image path
Uwe Stöhr [Tue, 21 Aug 2007 00:33:20 +0000 (00:33 +0000)]
German splash.lyx: fix image path

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

16 years agoSpanish EmbeddedObjects.lyx: updates from Ignacio
Uwe Stöhr [Tue, 21 Aug 2007 00:18:05 +0000 (00:18 +0000)]
Spanish EmbeddedObjects.lyx: updates from Ignacio

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

16 years agoinstaller: sync with branch
Uwe Stöhr [Tue, 21 Aug 2007 00:01:08 +0000 (00:01 +0000)]
installer: sync with branch

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

16 years agoLINGUAS: LINGUAS: sort languages
Uwe Stöhr [Mon, 20 Aug 2007 23:59:18 +0000 (23:59 +0000)]
LINGUAS: LINGUAS: sort languages

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

16 years agoFix crash when a user removes a formula when its preview is being generated. (Another...
Bo Peng [Mon, 20 Aug 2007 21:30:33 +0000 (21:30 +0000)]
Fix crash when a user removes a formula when its preview is being generated. (Another signal/destructor/gcc3 bug)

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

16 years agoInset configurability, LaTeX work
Martin Vermeer [Mon, 20 Aug 2007 19:02:38 +0000 (19:02 +0000)]
Inset configurability, LaTeX work

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

16 years agoSymbolic colour names work\!
Martin Vermeer [Mon, 20 Aug 2007 18:57:48 +0000 (18:57 +0000)]
Symbolic colour names work\!

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

16 years agofix tex4ht detection on older SuSE and current Debian
Georg Baum [Mon, 20 Aug 2007 17:31:42 +0000 (17:31 +0000)]
fix tex4ht detection on older SuSE and current Debian

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

16 years agofix bug 4132: parse some more column specifiers
Georg Baum [Mon, 20 Aug 2007 17:30:45 +0000 (17:30 +0000)]
fix bug 4132: parse some more column specifiers

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

16 years agocompile fix for qt 4.2.1.
Georg Baum [Mon, 20 Aug 2007 17:23:33 +0000 (17:23 +0000)]
compile fix for qt 4.2.1.

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

16 years agoBiblio.{h,cpp} --> BiblioInfo.{h,cpp}
Richard Heck [Mon, 20 Aug 2007 17:04:36 +0000 (17:04 +0000)]
Biblio.{h,cpp} --> BiblioInfo.{h,cpp}

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

16 years agoFix margin problem.
Richard Heck [Mon, 20 Aug 2007 17:04:00 +0000 (17:04 +0000)]
Fix margin problem.

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

16 years agoImprovements to the citation dialog UI. It is now possible to search particular field...
Richard Heck [Mon, 20 Aug 2007 16:30:02 +0000 (16:30 +0000)]
Improvements to the citation dialog UI. It is now possible to search particular fields (author, title, etc) and to filter keys by entry types (article, book, etc).

The changes are essentially of three types.

First, the std::maps previously used here for storing BibTeX data have become full-fledged classes and so what were previously just a bunch of functions have now become methods of these new  classes. This leads to a lot of minor changes in other files, to adapt to the  new signature. The changes in insets/ are mostly of this kind.

Second, there are some slightly more substantial changes in src/insets/InsetBibtex.cpp. We now store lists of the field names and entry types that have been used.

Finally, there are the changes to the citation UI. These are mostly straightforward, though adding the new functionality exposed some inadequacies in the previous code that also had to be fixed.

One other change: BibTeX keys are now docstring. This solves some Unicode issues.

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

16 years agomake these definitions useful for latex
Martin Vermeer [Mon, 20 Aug 2007 14:22:39 +0000 (14:22 +0000)]
make these definitions useful for latex

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

16 years agosmall Note cleanup
Martin Vermeer [Mon, 20 Aug 2007 04:58:29 +0000 (04:58 +0000)]
small Note cleanup

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

16 years agoCleanup 3: move dispatch stuff from CharStyle to Collapsable
Martin Vermeer [Mon, 20 Aug 2007 04:56:04 +0000 (04:56 +0000)]
Cleanup 3: move dispatch stuff from CharStyle to Collapsable

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

16 years ago * lib/ui/stdmenus.inc: use Capital letters in menu entries
Michael Schmitt [Sun, 19 Aug 2007 19:02:28 +0000 (19:02 +0000)]
* lib/ui/stdmenus.inc: use Capital letters in menu entries

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

16 years agoCleanup 2: moving more stuff charstyle -> collapsable
Martin Vermeer [Sun, 19 Aug 2007 15:45:35 +0000 (15:45 +0000)]
Cleanup 2: moving more stuff charstyle ->  collapsable

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

16 years agoForgot this
Martin Vermeer [Sun, 19 Aug 2007 15:42:14 +0000 (15:42 +0000)]
Forgot this

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

16 years agofix tabulation bug (python is amazing)
Alfredo Braunstein [Sun, 19 Aug 2007 14:03:51 +0000 (14:03 +0000)]
fix tabulation bug (python is amazing)

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

16 years agorev 19644: I forgot this.
Abdelrazak Younes [Sun, 19 Aug 2007 13:40:09 +0000 (13:40 +0000)]
rev 19644: I forgot this.

* Cursor::fixIfBroken(): return fix status.

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

16 years agoFix bug 4117.
Abdelrazak Younes [Sun, 19 Aug 2007 13:32:21 +0000 (13:32 +0000)]
Fix bug 4117.
http://bugzilla.lyx.org/show_bug.cgi?id=4117

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

16 years agoFix bug 4123:
Abdelrazak Younes [Sun, 19 Aug 2007 10:48:16 +0000 (10:48 +0000)]
Fix bug 4123:
http://bugzilla.lyx.org/show_bug.cgi?id=4123

* GuiView:
- closeEvent(): set quitting=true only when quitting. I don't know why and how this was changed but it was clearly wrong.
- update_view_state_qt(): only update when focus is in. Make sure this is the current LyXView.

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

16 years agoSmall cleanup
Martin Vermeer [Sun, 19 Aug 2007 10:08:09 +0000 (10:08 +0000)]
Small cleanup

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

16 years agoimplement --enable-monolithic-{client,frontend-qt4,controllers}. Careful with fronten...
André Pönitz [Sun, 19 Aug 2007 09:44:34 +0000 (09:44 +0000)]
implement --enable-monolithic-{client,frontend-qt4,controllers}. Careful with frontend-qt4, it takes ~490 MB to build (but 3 instead of 8 minutes...)

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

16 years agoFurther inset configurability, moving charstyle stuff to collapsable
Martin Vermeer [Sat, 18 Aug 2007 23:26:07 +0000 (23:26 +0000)]
Further inset configurability, moving charstyle stuff to collapsable

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

16 years ago* Text:
Abdelrazak Younes [Sat, 18 Aug 2007 21:17:10 +0000 (21:17 +0000)]
* Text:
- singleWidth(Buffer...): transfered to TextMetrics.
- singleWidth(Paragraph...): transfered to ParagraphMetrics.

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

16 years ago* TextMetrics.cpp
Abdelrazak Younes [Sat, 18 Aug 2007 21:10:45 +0000 (21:10 +0000)]
* TextMetrics.cpp
- access par_metrics_ directly instead of parMetrics()
- redoParagraph() simplify the changed calculation.

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

16 years agoBuilding debug only is so much faster. Fastest way to check if LyX compiles with...
Peter Kümmel [Sat, 18 Aug 2007 18:54:01 +0000 (18:54 +0000)]
Building debug only is so much faster. Fastest way to check if LyX compiles with cmake

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

16 years agoforgot to enable mergsvn statusing
Peter Kümmel [Sat, 18 Aug 2007 18:48:23 +0000 (18:48 +0000)]
forgot to enable mergsvn statusing

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

16 years agomake static default againt. use --disable-static --enable-dynamic to get the shiny...
André Pönitz [Sat, 18 Aug 2007 15:38:43 +0000 (15:38 +0000)]
make static default againt. use --disable-static --enable-dynamic to get the shiny new dynamic behaviour

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

16 years ago* Layout.h
Abdelrazak Younes [Sat, 18 Aug 2007 13:21:12 +0000 (13:21 +0000)]
* Layout.h
- leftMargin, rightMargin, labelsep, labelindent, parindent are now docstring.

* TextClass.h:
- leftMargin() and rightMargin(): now return a docstring.

All other files: adapt to change above.

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

16 years agocosmetics.
Abdelrazak Younes [Sat, 18 Aug 2007 13:08:36 +0000 (13:08 +0000)]
cosmetics.

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

16 years ago* Paragraph::getFontSettings(): small optimisation: avoid a Font copy
Abdelrazak Younes [Sat, 18 Aug 2007 13:00:07 +0000 (13:00 +0000)]
* Paragraph::getFontSettings(): small optimisation: avoid a Font copy

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

16 years agodon't pollute the namespace with Qt macros
Peter Kümmel [Sat, 18 Aug 2007 12:45:11 +0000 (12:45 +0000)]
don't pollute the namespace with Qt macros

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

16 years agoadd batch file to completely rebuild a release version
Peter Kümmel [Sat, 18 Aug 2007 12:35:02 +0000 (12:35 +0000)]
add batch file to completely rebuild a release version

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

16 years agoupdate to new version.cpp
Peter Kümmel [Sat, 18 Aug 2007 12:09:08 +0000 (12:09 +0000)]
update to new version.cpp

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

16 years agoBrown paper bag
Martin Vermeer [Sat, 18 Aug 2007 11:48:53 +0000 (11:48 +0000)]
Brown paper bag

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

16 years agoforgot this
Martin Vermeer [Fri, 17 Aug 2007 15:58:38 +0000 (15:58 +0000)]
forgot this

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

16 years agopartial merge of charstyle and insetlayout stuff, part 2 (lyx2lyx)
Martin Vermeer [Fri, 17 Aug 2007 15:48:41 +0000 (15:48 +0000)]
partial merge of charstyle and insetlayout stuff, part 2 (lyx2lyx)

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

16 years agoPartial merge of CharStyle and InsetLayout stuff, first part
Martin Vermeer [Fri, 17 Aug 2007 15:38:58 +0000 (15:38 +0000)]
Partial merge of CharStyle and InsetLayout stuff, first part

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

16 years ago* InsetCollapsable::geometry(): shut up warning by returning a dummy value and cosmetics.
Abdelrazak Younes [Fri, 17 Aug 2007 12:11:32 +0000 (12:11 +0000)]
* InsetCollapsable::geometry(): shut up warning by returning a dummy value and cosmetics.

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

16 years ago * buffer_funcs.cpp (setLabel): use a switch instead of nested ifs.
Jean-Marc Lasgouttes [Fri, 17 Aug 2007 09:15:04 +0000 (09:15 +0000)]
* buffer_funcs.cpp (setLabel): use a switch instead of nested ifs.

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

16 years agomake sure that the C++ preprocessor is set up
Jean-Marc Lasgouttes [Fri, 17 Aug 2007 08:53:27 +0000 (08:53 +0000)]
make sure that the C++ preprocessor is set up

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

16 years agoselect one row less in some cases
Alfredo Braunstein [Fri, 17 Aug 2007 07:39:50 +0000 (07:39 +0000)]
select one row less in some cases

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

16 years agodisable pixmap cache under X11
Abdelrazak Younes [Fri, 17 Aug 2007 07:14:03 +0000 (07:14 +0000)]
disable pixmap cache under X11

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

16 years agoScons: distribute missing layout file
Bo Peng [Fri, 17 Aug 2007 04:17:01 +0000 (04:17 +0000)]
Scons: distribute missing layout file

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

16 years agoremove automake generated Makefiles when using qmake
André Pönitz [Thu, 16 Aug 2007 19:07:05 +0000 (19:07 +0000)]
remove automake generated Makefiles when using qmake

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

16 years ago--with-qmake: move special Package.cpp handling from src/src.pro to support/support.pro
André Pönitz [Thu, 16 Aug 2007 19:05:42 +0000 (19:05 +0000)]
--with-qmake: move special Package.cpp handling from src/src.pro to support/support.pro

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

16 years agoFix crash when a user removes the underlying figure of a graphic inset that has...
Bo Peng [Thu, 16 Aug 2007 18:37:38 +0000 (18:37 +0000)]
Fix crash when a user removes the underlying figure of a graphic inset  that has been copied and pasted (Bug 4108). Revert Andel's fix r19591

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

16 years agoStreamlining CollapseStatus stuff
Martin Vermeer [Thu, 16 Aug 2007 16:36:50 +0000 (16:36 +0000)]
Streamlining CollapseStatus stuff

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

16 years agoFix color of \Omega.
Abdelrazak Younes [Thu, 16 Aug 2007 16:35:38 +0000 (16:35 +0000)]
Fix color of \Omega.

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

16 years agorevert inadvertent patch
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 16:18:04 +0000 (16:18 +0000)]
revert inadvertent patch

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

16 years agorename TextClass::ctrs_ to counters_
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 15:26:00 +0000 (15:26 +0000)]
rename TextClass::ctrs_ to counters_

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

16 years agosome doxygen comments
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 14:44:22 +0000 (14:44 +0000)]
some doxygen comments

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

16 years agoremove annoying debug message
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 12:42:56 +0000 (12:42 +0000)]
remove annoying debug message

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

16 years agoThe counters labelstring patch. Part 3: adapt some layout files and documentation
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 11:16:07 +0000 (11:16 +0000)]
The counters labelstring patch. Part 3: adapt some layout files and documentation

* numarticle.inc:
* numreport.inc:
* stdcounter.inc:
* stdsections.inc:
* stdstarsections.inc:
* stdclass.inc:
* scrbook.layout:
* amsmath.inc: adapt: remove most of the LabelString in layouts,
add the necessary stuff to counters.

* lib/doc/Customization.lyx: document the new stuff.

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

16 years agoThe counters labelstring patch. Part 2: Use the new code.
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 11:12:56 +0000 (11:12 +0000)]
The counters labelstring patch. Part 2: Use the new code.

* src/Paragraph.cpp (expandLabel): if the labelstring is empty,
use \thecounter instead; when processing @layout@ tokens, pass the
process_appendix boolean.

* src/buffer_funcs.cpp (setLabel):
* src/insets/InsetFoot.cpp (updateLabels):
* src/insets/InsetCaption.cpp (updateLabels): use
Counters::theCounter.

* src/insets/InsetBibitem.cpp: remove the ad-hoc numbering code
and replace it with a proper updateLabels-based solution.

* src/insets/InsetCommands.cpp (refresh): new method.

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

16 years agoThe counters labelstring patch. Part 1: the infrastructure.
Jean-Marc Lasgouttes [Thu, 16 Aug 2007 11:07:00 +0000 (11:07 +0000)]
The counters labelstring patch. Part 1: the infrastructure.

* src/Counters.cpp (Counter::labelString/labelStringAppendix): new
accessors for two new variables
(Counter::setMaster): removed
(Counter::Counter): add a version with arguments.
(Counters::newCounter): add relevant arguments; allow to redefine
an existing counter.
(Counters::reset): reset the current float float.
(Counters::theCounter): return a representation of a given counter
using its labelstring or by default \themaster.\arabic{counter}.
Handle appendix too.
(Counters::counterLabel): add support for macros of the form
\thecounter.

* src/TextClass.cpp (readCounters): also read LabelString and
LabelStringAppendix.
(readFloats): allow to update an existing float; create the
counter associated with the float.

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

16 years agoCosmetics (alignment)
Enrico Forestieri [Thu, 16 Aug 2007 05:15:06 +0000 (05:15 +0000)]
Cosmetics (alignment)

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

16 years agoRe-write of the BibTeX representation. The main change is that we now have
Richard Heck [Thu, 16 Aug 2007 01:59:20 +0000 (01:59 +0000)]
Re-write of the BibTeX representation. The main change is that we now have
a structure representing field->value instead of just a single string with
all the data. The data structures are defined in src/Biblio_typedefs.h, and
the main changes are to the parser code in src/insets/InsetBibtex.cpp.

-src/Biblio_typedefs.h
 Contains typedefs for new representation. Separating them out limits how much
 gets #include'd by other files, and also resolves a circularity problem with
 Buffer.h.

-src/Biblio.{h,cpp}
 Signature changes and massive simplifications to routines that report
 BibTeX data, since we now have an articulate representation.

-src/insets/InsetBibtex.{h,cpp}
 Re-write the parser code so we store a key->value map of the BibTeX data
 rather than just one long string. This is the main work.

-src/frontends/controllers/ControlCitation.{h,cpp}
-src/insets/InsetBibitem.{h,cpp}
-src/insets/InsetCitation.cpp
 Adaptations and simplifications.

-src/insets/Inset.h
-src/Buffer.{h,cpp}
-src/insets/InsetInclude.{h,cpp}
 Signature changes.

-src/Makefile.am
-development/scons/scons_manifest.py
 Add src/Biblio_typedefs.h

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

16 years agoFix tex2lyx linking
Enrico Forestieri [Thu, 16 Aug 2007 01:18:55 +0000 (01:18 +0000)]
Fix tex2lyx linking

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