]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoRestore inputenc support
Georg Baum [Thu, 26 Oct 2006 15:01:45 +0000 (15:01 +0000)]
Restore inputenc support
* src/encoding.h
(encoding_table): remove, this is no longer needed with unicode
(iconvName_): new member: name of the encoding in iconv syntax

* src/exporter.C
(Exporter::Export): Use return value of Buffer::makeLaTeXFile

* src/buffer.[Ch]
(Buffer::makeLaTeXFile): return whether the file has been created
successfully

* src/buffer.C
(Buffer::makeLaTeXFile): Use a docstream that converts to the correct
encoding
Display an error dialog is something went wrong

* src/bufferparams.C
(BufferParams::writeLaTeX): Undo the utf8 inputenc hack

* src/frontends/qt4/QDocumentDialog.C: Add some FIXMEs

* src/support/unicode.[Ch]
(eightbit_to_ucs4): New conversion function
(ucs4_to_eightbit): New conversion function

* src/support/docstream.[Ch]
(utf8_codecvt_facet_exception): Move to header and rename to
iconv_codecvt_facet_exception
(odocfstream): Take the encoding as argument

* src/support/docstream.C
(utf8_codecvt_facet): Generalize to other encodings than utf8 and
rename to iconv_codecvt_facet

* src/encoding.C: Remove obsolete tables

* src/output_latex.C
(TeXOnePar): Convert the paragraph to different encoding if needed

* lib/encodings: Remove obsolete tables

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

17 years agoMake the code a bit more python-like
Georg Baum [Thu, 26 Oct 2006 14:43:58 +0000 (14:43 +0000)]
Make the code a bit more python-like

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

17 years agoadd Ran Rutenberg as new contributor
Jean-Marc Lasgouttes [Thu, 26 Oct 2006 14:28:44 +0000 (14:28 +0000)]
add Ran Rutenberg as new contributor

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

17 years agoupdate Hebrew translation of Intro
Jean-Marc Lasgouttes [Thu, 26 Oct 2006 13:47:16 +0000 (13:47 +0000)]
update Hebrew translation of Intro

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

17 years agopaintText(): replace the test on BufferView::buffer() with an assertion as this shoul...
Abdelrazak Younes [Thu, 26 Oct 2006 13:36:04 +0000 (13:36 +0000)]
paintText(): replace the test on BufferView::buffer() with an assertion as this should not happen anyway.

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

17 years agoThis commit fixes 3 crashes when reverting a document:
Abdelrazak Younes [Thu, 26 Oct 2006 13:29:10 +0000 (13:29 +0000)]
This commit fixes 3 crashes when reverting a document:

1) crash in GuiWorkArea::paintEvent(), this one is solved by by encapsulating the file loading in LyXView by busy(true)/busy(false) and by disabling/enabling the work area update in GuiView::busy().

2) crash in the cursor blinking because the cursor is timed out at the moment you click on "Revert". So the blinking cursor is now disabled/enabled in GuiView::busy().

3) crash in BufferView::setBuffer() because the current buffer was already closed folling the "revert" command.
* BufferView::loadLyXFile(): set buffer_ to 0 in case of a reload (when document is reverted)

* LyXView:
  - busy() is not const anymore (work_area_ is modified in GuiView)
  - loadLyXFile(): encapsulate the file loading with busy(true)/busy(false)
  - setBuffer(): encapsulate the buffer-switching with busy(true)/busy(false)

* GuiView::busy()
  - disable/enable workarea updates.
  - disable/enable blinking cursor.

* WorkArea: new startBlinkingCursor() and stopBlinkingCursor() methods.

* rowpainter.C:
  - paintText(): make sure there is a Buffer from which to paint.

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

17 years agosrc/frontends/qt4/GuiWorkArea.C:
Peter Kümmel [Thu, 26 Oct 2006 11:01:34 +0000 (11:01 +0000)]
src/frontends/qt4/GuiWorkArea.C:
    use position returned by BufferView
src/bufferview_funcs.C:
    adjust cursor x-position by hand

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

17 years agoadd some initialization and some assertion.
Abdelrazak Younes [Thu, 26 Oct 2006 08:10:22 +0000 (08:10 +0000)]
add some initialization and some assertion.

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

17 years agoFix (hopefully) gcc warning about initialization order in constructor.
Abdelrazak Younes [Thu, 26 Oct 2006 08:01:48 +0000 (08:01 +0000)]
Fix (hopefully) gcc warning about initialization order in constructor.

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

17 years agoPort InsetCommandParams::scanCommand to lyx2lyx.
Georg Baum [Wed, 25 Oct 2006 20:08:44 +0000 (20:08 +0000)]
Port InsetCommandParams::scanCommand to lyx2lyx.
Now we can parse all commands that could be parsed in the old
InsetCommandParams

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

17 years agomissing bits of the new galician translation
Georg Baum [Wed, 25 Oct 2006 19:03:36 +0000 (19:03 +0000)]
missing bits of the new galician translation

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

17 years agocmake: precompiled headers
Peter Kümmel [Wed, 25 Oct 2006 17:57:04 +0000 (17:57 +0000)]
cmake: precompiled headers
    - enable by default, could be disabled with -Ddisable-pch
    - use different pch files for Debug/Release/...
    - use only one config_pch.C

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

17 years agoChanged default date formatting string to be compatible with both Windows/UNIX. This...
Joost Verburg [Wed, 25 Oct 2006 10:28:29 +0000 (10:28 +0000)]
Changed default date formatting string to be compatible with both Windows/UNIX. This solves crashes on Windows systems.

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

17 years agoadd fixme for cursor positioning
Edwin Leuven [Wed, 25 Oct 2006 09:20:07 +0000 (09:20 +0000)]
add fixme for cursor positioning

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

17 years agocompile fix.
Abdelrazak Younes [Wed, 25 Oct 2006 07:48:48 +0000 (07:48 +0000)]
compile fix.

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

17 years agochange tracking:
Michael Schmitt [Tue, 24 Oct 2006 21:38:47 +0000 (21:38 +0000)]
change tracking:

* src/*.C:
* src/insets/*.C: implement rejectChanges() in analogy to
acceptChanges();

* src/paragraph_pimpl.C: add assertions for pos, start, and
end parameters

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

17 years ago * src/frontends/qt4/GuiWorkArea.C: fix cursor positioning
Michael Schmitt [Tue, 24 Oct 2006 21:12:46 +0000 (21:12 +0000)]
* src/frontends/qt4/GuiWorkArea.C: fix cursor positioning

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

17 years ago * ui/stdmenus.ui: move "New Window" and "Close Window" to the bottom of the menu
Michael Schmitt [Tue, 24 Oct 2006 20:57:29 +0000 (20:57 +0000)]
* ui/stdmenus.ui: move "New Window" and "Close Window" to the bottom of the menu

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

17 years agoadd missing lyx::
Edwin Leuven [Tue, 24 Oct 2006 19:05:26 +0000 (19:05 +0000)]
add missing lyx::

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

17 years agoLayout improvements
Edwin Leuven [Tue, 24 Oct 2006 17:52:37 +0000 (17:52 +0000)]
Layout improvements

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

17 years agoFix cursor size...
Abdelrazak Younes [Tue, 24 Oct 2006 16:38:17 +0000 (16:38 +0000)]
Fix cursor size...

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

17 years agocompile fix.
Abdelrazak Younes [Tue, 24 Oct 2006 15:31:22 +0000 (15:31 +0000)]
compile fix.

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

17 years ago* Gui.h: new closeAll() pure virtual method.
Abdelrazak Younes [Tue, 24 Oct 2006 15:01:07 +0000 (15:01 +0000)]
* Gui.h: new closeAll() pure virtual method.

* qt4/Alert_pimpl.C: make sure the proper Qt attributes are set.

* GuiApplication::quitLyx(): add the "force" argument to the funcRequest.

* GuiImplementation:
  - GuiImplementation(): remove the signal connection. This was triggered after the LastWindowClosed signal so was not useful.
  - cleanupViews(): renamed to unregisterView() and handle the WorkAreas as well.
  - closeAll(): new method (from LyXView).

* GuiView.C
  - clean up the includes order.
  - closeEvent(): make sure that theBufferList().quitWriteAll() is called if last window closed.

* lyx_main.C / LyX::quit():
  - remove noAsk argument
  - delete bufferList::quitWriteAll() call (this is handled in the frontend).
  - delete Session stuff (ditto)

* LyXFunc::dispatch()
  - LFUN_LYX_EXIT: close all window before exiting from user command (as opposed to last window closed).

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

17 years agosmall update to contributors
Jean-Marc Lasgouttes [Tue, 24 Oct 2006 14:12:27 +0000 (14:12 +0000)]
small update to contributors

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

17 years agoadd galician to known languages
Jean-Marc Lasgouttes [Tue, 24 Oct 2006 13:52:11 +0000 (13:52 +0000)]
add galician to known languages

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

17 years agonew Galician l10n
Jean-Marc Lasgouttes [Tue, 24 Oct 2006 13:49:50 +0000 (13:49 +0000)]
new Galician l10n

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

17 years ago- implement sizeHint()
Edwin Leuven [Tue, 24 Oct 2006 11:32:20 +0000 (11:32 +0000)]
- implement sizeHint()
- set minimum width of QTreeWidget
- bit of cleanup

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

17 years agonew Galician docs
Jean-Marc Lasgouttes [Tue, 24 Oct 2006 08:10:34 +0000 (08:10 +0000)]
new Galician docs

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

17 years agofix crash on exit.
Abdelrazak Younes [Tue, 24 Oct 2006 07:55:46 +0000 (07:55 +0000)]
fix crash on exit.

* LyXView::setBuffer(): returns early if quitting.

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

17 years agochange tracking:
Michael Schmitt [Tue, 24 Oct 2006 06:11:45 +0000 (06:11 +0000)]
change tracking:

        * src/paragraph.h: rename acceptChange() to acceptChanges()
        * src/insets/insetbase.h:
        * src/insets/insettext.h:
        * src/insets/insettabular.h: add acceptChanges()
        * src/*.C: fix acceptChanges() (& also accept changes in nested
        insets)

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

17 years ago * CutAndPaste.C: fix change tracking in case of
Michael Schmitt [Mon, 23 Oct 2006 20:08:18 +0000 (20:08 +0000)]
* CutAndPaste.C: fix change tracking in case of
deletion of a selection

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

17 years agoScons: mocing GuiApplication.C and GuiImplementation.C
Bo Peng [Mon, 23 Oct 2006 19:47:40 +0000 (19:47 +0000)]
Scons: mocing GuiApplication.C and GuiImplementation.C

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

17 years agocmake precompile:
Peter Kümmel [Mon, 23 Oct 2006 19:04:29 +0000 (19:04 +0000)]
cmake precompile:
- only precompile boost and stl headers
- for qt4 also precompile QtGui and QtGui
- don't use one global precomiled header file
  to get out of the dependency hell

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

17 years agoread lyxrc.dist a second time to be able to override viewer auto-detection
Joost Verburg [Mon, 23 Oct 2006 18:01:31 +0000 (18:01 +0000)]
read lyxrc.dist a second time to be able to override viewer auto-detection

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

17 years agonew LFUN_WINDOW_CLOSE
Abdelrazak Younes [Mon, 23 Oct 2006 16:29:24 +0000 (16:29 +0000)]
new LFUN_WINDOW_CLOSE

* LyXFunc:
  - dispatch(): transfer assertion on lyx_view_ to each LFUN on a case by case basis.
  - dispatch(): new LFUN_WINDOW_CLOSE
  - getStatus(): special treatment for LFUN_LYX_QUIT

* LyX:
  - views_, addLyXView(): deleted
  - quit(): call saveGeometry() on each LyXView before exiting.

* GuiApplication:
  - is now a QObject.
  - quitLyX(): new Qt slot for lastWindowClosed signal.

* Gui.h:
  - destroyView(), destroyWorkArea(): deleted
  - viewIds(): new method

* GuiImplementation:
  - implement above changes.
  - GuiImplementation is now a QObject
  - cleanupViews(): new private slot.
  - buildViewIds(): new helper method
  - views_ and work_areas_ are now maps of raw pointers instead of schared_ptr.

* LyXView
  - now stores its id.
  - dispatch(): special treatment for LFUN_WINDOW_CLOSE.
  - workAreaIds(): new method.
  - close(): new pure virtual method.
  - saveGeometry(): new pure virtual method.

* GuiView:
  - implements above changes.
  - GuiView(): set WA_DeleteOnClose and Qt::WA_QuitOnClose to let Qt manage the destruction on close().
  - closeEvent(): session stuff transfered to saveGeometry()

* WorkArea
  - now store its id.

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

17 years ago * src/lyxfind.C:
Michael Schmitt [Mon, 23 Oct 2006 16:25:29 +0000 (16:25 +0000)]
* src/lyxfind.C:
* src/paragraph.C: more change tracking cosmetics

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

17 years ago * CutAndPaste.C:
Michael Schmitt [Mon, 23 Oct 2006 16:22:05 +0000 (16:22 +0000)]
* CutAndPaste.C:
* text.C: change tracking cosmetics

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

17 years agochange tracking:
Michael Schmitt [Mon, 23 Oct 2006 16:04:51 +0000 (16:04 +0000)]
change tracking:

* paragraph.h: add method isUnchanged(..)

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

17 years ago * text2.C:
Michael Schmitt [Mon, 23 Oct 2006 16:03:14 +0000 (16:03 +0000)]
* text2.C:
* paragraph.C: change tracking cosmetics

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

17 years agofix wrong usage of precompiled headers, now it's really faster, more to come
Peter Kümmel [Mon, 23 Oct 2006 14:32:12 +0000 (14:32 +0000)]
fix wrong usage of precompiled headers, now it's really faster, more to come

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

17 years agomove #endif to the end of the file
Peter Kümmel [Mon, 23 Oct 2006 14:24:04 +0000 (14:24 +0000)]
move #endif to the end of the file

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

17 years agoupdate to HEAD
Peter Kümmel [Mon, 23 Oct 2006 13:49:18 +0000 (13:49 +0000)]
update to HEAD

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

17 years agoadd support of precompiled headers for msvc, enable with -Dpch=1, disable headers...
Peter Kümmel [Mon, 23 Oct 2006 13:34:22 +0000 (13:34 +0000)]
add support of precompiled headers for msvc, enable with -Dpch=1, disable headers by defining LYX_DONT_PRECOMPILE_* macros in config.C.cmake

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

17 years agoadd support of precompiled headers for msvc, enable with -Dpch=1, disable headers...
Peter Kümmel [Mon, 23 Oct 2006 13:32:46 +0000 (13:32 +0000)]
add support of precompiled headers for msvc, enable with -Dpch=1, disable headers by defining LYX_DONT_PRECOMPILE_* macros in config.C.cmake

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

17 years agocursor cosmetics
André Pönitz [Mon, 23 Oct 2006 11:34:43 +0000 (11:34 +0000)]
cursor cosmetics

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

17 years agocursor is no more damaging the background. L-shaped cursor is broken right now....
André Pönitz [Mon, 23 Oct 2006 11:19:17 +0000 (11:19 +0000)]
cursor is no more  damaging the background. L-shaped cursor is broken right now. will fix later

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

17 years agodo not draw to intermediate pixmap
André Pönitz [Mon, 23 Oct 2006 08:47:27 +0000 (08:47 +0000)]
do not draw to intermediate pixmap

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

17 years agodo not draw to intermediate pixmap
André Pönitz [Mon, 23 Oct 2006 08:46:09 +0000 (08:46 +0000)]
do not draw to intermediate pixmap

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

17 years agosrc/coordcache.C: stop compiler complaint for std::min
Bo Peng [Sun, 22 Oct 2006 20:38:10 +0000 (20:38 +0000)]
src/coordcache.C: stop compiler complaint for std::min

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

17 years agoScons: remove some other qt3 debris
Bo Peng [Sun, 22 Oct 2006 20:34:37 +0000 (20:34 +0000)]
Scons: remove some other qt3 debris

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

17 years agomicrooptimization
André Pönitz [Sun, 22 Oct 2006 19:33:37 +0000 (19:33 +0000)]
microoptimization

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

17 years ago- We guess Lars smoked something (we didn't see him, but
Asger Ottar Alstrup [Sun, 22 Oct 2006 19:09:09 +0000 (19:09 +0000)]
- We guess Lars smoked something (we didn't see him, but
  that's the only explanation)

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

17 years ago- LyX is dead slow, so the least we can do is use anti-alised text
Asger Ottar Alstrup [Sun, 22 Oct 2006 18:49:18 +0000 (18:49 +0000)]
- LyX is dead slow, so the least we can do is use anti-alised text
- Various micro-optimisations
- Revert Abdel's repaint instead of update for QPainter
- Get rid of unused methods in GuiWorkArea

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

17 years agoLFUN_UNICODE_INSERT - unicode-insert
Lars Gullik Bjønnes [Sun, 22 Oct 2006 18:47:19 +0000 (18:47 +0000)]
LFUN_UNICODE_INSERT - unicode-insert

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

17 years agoRevert faulty floatlist fix (revision 15376) and fix reading of floatlists
Georg Baum [Sun, 22 Oct 2006 18:24:41 +0000 (18:24 +0000)]
Revert faulty floatlist fix (revision 15376) and fix reading of floatlists
correctly.
The floatlist type is now stored in the InsetCommand parameter "type".
Formerly it was stored in the command name, which is not possible anymore
because all command names need to be known.
The file format of .lyx files is still the same.

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

17 years agoThe Gtk removal from trunk.
Lars Gullik Bjønnes [Sun, 22 Oct 2006 18:05:16 +0000 (18:05 +0000)]
The Gtk removal from trunk.

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

17 years agocosmetics
André Pönitz [Sun, 22 Oct 2006 17:58:09 +0000 (17:58 +0000)]
cosmetics

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

17 years ago- fix StatusBar update
Asger Ottar Alstrup [Sun, 22 Oct 2006 17:21:00 +0000 (17:21 +0000)]
- fix StatusBar update

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

17 years agochange tracking:
Michael Schmitt [Sun, 22 Oct 2006 17:02:23 +0000 (17:02 +0000)]
change tracking:

* src/paragraph.h: add method isInserted(...)

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

17 years agoFix stupid backslash quoting error that resukted in wrong conversion of
Georg Baum [Sun, 22 Oct 2006 16:51:44 +0000 (16:51 +0000)]
Fix stupid backslash quoting error that resukted in wrong conversion of
command inset parameters containing a ".

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

17 years ago * src/text.C: fix status information output (change tracking)
Michael Schmitt [Sun, 22 Oct 2006 16:47:42 +0000 (16:47 +0000)]
* src/text.C: fix status information output (change tracking)

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

17 years ago * CREDITS: Let the world know that I worked on change tracking :-)
Michael Schmitt [Sun, 22 Oct 2006 16:12:49 +0000 (16:12 +0000)]
* CREDITS: Let the world know that I worked on change tracking :-)

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

17 years agoCompile fix
Enrico Forestieri [Sun, 22 Oct 2006 15:38:21 +0000 (15:38 +0000)]
Compile fix

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

17 years agomake macrfos readable again
André Pönitz [Sun, 22 Oct 2006 14:37:32 +0000 (14:37 +0000)]
make macrfos readable again

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

17 years agochange tracking:
Michael Schmitt [Sun, 22 Oct 2006 14:36:08 +0000 (14:36 +0000)]
change tracking:

* src/paragraph.h: rename erase() to eraseChars()
for consistency with eraseChar()
* src/paragraph_pimpl.h: dito; merge the two erase() methods
* src/*.C: adjust properly

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

17 years ago * mathed/InsetFormulaMacro.C:
Michael Schmitt [Sun, 22 Oct 2006 14:23:14 +0000 (14:23 +0000)]
* mathed/InsetFormulaMacro.C:
* mathed/InsetMathXYArrow.C:
* mathed/InsetMathMBox.C: do not include non-existing MathMLStream.h

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

17 years ago * scons/scons_manifest.py: remove MathMLStream.[Ch]
Michael Schmitt [Sun, 22 Oct 2006 14:16:04 +0000 (14:16 +0000)]
* scons/scons_manifest.py: remove MathMLStream.[Ch]

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

17 years ago- 5% speed-up by reserving space in the vector we build for drawing
Asger Ottar Alstrup [Sun, 22 Oct 2006 13:51:37 +0000 (13:51 +0000)]
- 5% speed-up by reserving space in the vector we build for drawing
- Simplify isPrintableNonspace

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

17 years ago- Do not use kerning, because that fucks up cursor positioning for good
Asger Ottar Alstrup [Sun, 22 Oct 2006 13:10:12 +0000 (13:10 +0000)]
- Do not use kerning, because that fucks up cursor positioning for good

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

17 years ago- fix broken behaviour of Scrollbar and MouseWheel when
Asger Ottar Alstrup [Sun, 22 Oct 2006 12:36:31 +0000 (12:36 +0000)]
- fix broken behaviour of Scrollbar and MouseWheel when
  changing between using it and the keyboard-cursor
  movements.

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

17 years agofix reading UTF8 encoded symbol file
André Pönitz [Sun, 22 Oct 2006 12:07:01 +0000 (12:07 +0000)]
fix reading UTF8 encoded symbol file

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

17 years agoconvert symbols file to UTF8
André Pönitz [Sun, 22 Oct 2006 11:48:21 +0000 (11:48 +0000)]
convert symbols file to UTF8

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

17 years ago- rework update handling, make cursor movement faster,
Asger Ottar Alstrup [Sun, 22 Oct 2006 11:46:36 +0000 (11:46 +0000)]
- rework update handling, make cursor movement faster,
  fixing lots of navigation problems.

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

17 years agofix indentation
André Pönitz [Sun, 22 Oct 2006 11:35:16 +0000 (11:35 +0000)]
fix indentation

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

17 years agocompile fix for sgml.C
André Pönitz [Sun, 22 Oct 2006 11:24:33 +0000 (11:24 +0000)]
compile fix for sgml.C

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

17 years agocompile fix
André Pönitz [Sun, 22 Oct 2006 11:22:14 +0000 (11:22 +0000)]
compile fix

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

17 years agosome compile fixes, more to be expected
André Pönitz [Sun, 22 Oct 2006 11:13:18 +0000 (11:13 +0000)]
some compile fixes, more to be expected

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

17 years agosome compile fixes, more to be expected
André Pönitz [Sun, 22 Oct 2006 11:00:04 +0000 (11:00 +0000)]
some compile fixes, more to be expected

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

17 years agoImmediate rendering of buffer change for one or multiple LyXView.
Abdelrazak Younes [Sun, 22 Oct 2006 10:51:59 +0000 (10:51 +0000)]
Immediate rendering of buffer change for one or multiple LyXView.

* Buffer: new changed() boost::signal.

* LyXView:
  - redrawWorkArea(): deleted
  - bufferChangedConnection_: new signal connection

* LyXFunc: replace LyXView::redrawWorkArea() direct call with Buffer::changed() signal emission.

* WorkArea.C: deleted some comments about redrawWorkArea.

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

17 years agochange tracking:
Michael Schmitt [Sun, 22 Oct 2006 10:48:09 +0000 (10:48 +0000)]
change tracking:

        * src/paragraph_pimpl.C: activate basic CT code
        * src/text.C: fix FIXME

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

17 years agouse more unicode in math
André Pönitz [Sun, 22 Oct 2006 10:15:23 +0000 (10:15 +0000)]
use more unicode in math

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

17 years agoMore unicode fixes for docbook.
José Matox [Sat, 21 Oct 2006 19:40:29 +0000 (19:40 +0000)]
More unicode fixes for docbook.

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

17 years ago- Try to improve require(lyxdot) detection for insetgraphics
Asger Ottar Alstrup [Sat, 21 Oct 2006 19:37:53 +0000 (19:37 +0000)]
- Try to improve require(lyxdot) detection for insetgraphics

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

17 years agosome more unicode work. even more should be possible
Lars Gullik Bjønnes [Sat, 21 Oct 2006 19:27:02 +0000 (19:27 +0000)]
some more unicode work. even more should be possible

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

17 years ago- Fix erase selections broken by "changeTracking" it
Asger Ottar Alstrup [Sat, 21 Oct 2006 17:05:20 +0000 (17:05 +0000)]
- Fix erase selections broken by "changeTracking" it
  seems. ChangeTracking responsible please verify all
  erase/eraseChar where we added false or where it is
  called without changetracking bool (jug).

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

17 years ago- InsetQuotes updates the inset cache
Asger Ottar Alstrup [Sat, 21 Oct 2006 16:03:53 +0000 (16:03 +0000)]
- InsetQuotes updates the inset cache
- Do not use the nullpainter for the rows outside the screen, because the nullpainter does not calculate the width of text, and thus the metric entries in the inset cache are completely wrong, causing assertions when using for instance page up or page down into an inset. This fixes the dreading assertion on navigation in the user guide, and elsewhere

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 16:01:45 +0000 (16:01 +0000)]
change tracking:

* src/changes.C: fix lookup(), isChanged(), and merge()

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 15:36:04 +0000 (15:36 +0000)]
change tracking:

* src/changes.C: fix erase() and insert()

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

17 years agoFix LaTeX output of characters on systems where char is signed
Georg Baum [Sat, 21 Oct 2006 15:03:21 +0000 (15:03 +0000)]
Fix LaTeX output of characters on systems where char is signed

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

17 years agoUpdate to latest boost 1.34 svn.
Lars Gullik Bjønnes [Sat, 21 Oct 2006 14:52:25 +0000 (14:52 +0000)]
Update to latest boost 1.34 svn.

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 14:34:05 +0000 (14:34 +0000)]
change tracking:

* src/changes.C: fix set(...)

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 14:14:37 +0000 (14:14 +0000)]
change tracking:

* src/changes.h: add insert(); cleanup comments

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 13:47:50 +0000 (13:47 +0000)]
change tracking:

* src/changes.h: pass Change and Range to ChangeRange constructor
* src/changes.C: adjust

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 12:54:29 +0000 (12:54 +0000)]
change tracking:

* changes.h:
* changes.C: remove record(), del(), and add()
* paragraph_pimpl.C: comment out method calls

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

17 years agochange tracking:
Michael Schmitt [Sat, 21 Oct 2006 12:20:39 +0000 (12:20 +0000)]
change tracking:

        * src/paragraph_pimpl.h:
        * src/paragraph_pimpl.C: remove tracking();
        remove setChar(); changes_ becomes an object
        (not a pointer); hide CT functionality behind
        some return & if statements

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

17 years ago- Review screen update flags
Asger Ottar Alstrup [Sat, 21 Oct 2006 12:01:14 +0000 (12:01 +0000)]
- Review screen update flags

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

17 years agoFix sgml::escapeChar and sgml::escapeString to return docstring.
José Matox [Sat, 21 Oct 2006 11:38:43 +0000 (11:38 +0000)]
Fix sgml::escapeChar and sgml::escapeString to return docstring.

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

17 years ago- Fix sign error in Cursor::setSelection
Asger Ottar Alstrup [Sat, 21 Oct 2006 11:29:34 +0000 (11:29 +0000)]
- Fix sign error in Cursor::setSelection
- Add debugging input
- If cursor::dispatch does not handle the func, then it should not request an update
- Dump metrics cache after redraw

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

17 years agoFix some unicode conversion problems, more work needed.
Lars Gullik Bjønnes [Sat, 21 Oct 2006 11:15:37 +0000 (11:15 +0000)]
Fix some unicode conversion problems, more work needed.

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

17 years ago- Dump the inset position cache as well
Asger Ottar Alstrup [Sat, 21 Oct 2006 10:56:36 +0000 (10:56 +0000)]
- Dump the inset position cache as well
- More debugging printing stuff

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