]> git.lyx.org Git - lyx.git/log
lyx.git
17 years ago* Status.15x: move bugs to bugzilla
Michael Schmitt [Sat, 27 Jan 2007 14:24:36 +0000 (14:24 +0000)]
* Status.15x: move bugs to bugzilla

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

17 years agocmake files for tex2lyx
Peter Kümmel [Sat, 27 Jan 2007 12:29:15 +0000 (12:29 +0000)]
cmake files for tex2lyx

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

17 years agoPrepare for advanced mouse click selections.
Abdelrazak Younes [Sat, 27 Jan 2007 10:41:03 +0000 (10:41 +0000)]
Prepare for advanced mouse click selections.

* WorkArea::dispatch(): add modifiers argument.

* GuiWorkArea::mousePressEvent(): transmit the modifier to WorkArea::dispatch().

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

17 years agoLimit the work-around in rev. 16874 to Windows.
Abdelrazak Younes [Sat, 27 Jan 2007 10:24:15 +0000 (10:24 +0000)]
Limit the work-around in rev. 16874 to Windows.

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

17 years agoFix bug 3138 (http://bugzilla.lyx.org/show_bug.cgi?id=3138).
Abdelrazak Younes [Sat, 27 Jan 2007 09:04:36 +0000 (09:04 +0000)]
Fix bug 3138 (http://bugzilla.lyx.org/show_bug.cgi?id=3138).

* BufferView::setCursorFromScrollbar(): Reset the cursor in any case because bv_funcs::status() does not work when the cursor is within mathed.

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

17 years agoAllows editing when the Prefs dialog is opened; fix bug 3140:
Abdelrazak Younes [Fri, 26 Jan 2007 22:38:14 +0000 (22:38 +0000)]
Allows editing when the Prefs dialog is opened; fix bug 3140:

http://bugzilla.lyx.org/show_bug.cgi?id=3140

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

17 years agoWork around bug 2859 by Bernhard R.:
Abdelrazak Younes [Fri, 26 Jan 2007 22:04:51 +0000 (22:04 +0000)]
Work around bug 2859 by Bernhard R.:

http://bugzilla.lyx.org/show_bug.cgi?id=2859

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

17 years agoHungarian update from Alex
Jean-Marc Lasgouttes [Fri, 26 Jan 2007 15:27:32 +0000 (15:27 +0000)]
Hungarian update from Alex

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

17 years agoMSVC warning (signed/unsigned).
Abdelrazak Younes [Fri, 26 Jan 2007 12:32:03 +0000 (12:32 +0000)]
MSVC warning (signed/unsigned).

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

17 years agoFix compiling errors caused by LyXText::ChangeOp::ACCEPT
Bo Peng [Fri, 26 Jan 2007 04:08:27 +0000 (04:08 +0000)]
Fix compiling errors caused by LyXText::ChangeOp::ACCEPT

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

17 years agoExtendedInsets: small cleanups
Uwe Stöhr [Fri, 26 Jan 2007 01:02:30 +0000 (01:02 +0000)]
ExtendedInsets: small cleanups

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

17 years agoExtendedInsets: change title order and fix PDF info tags
Uwe Stöhr [Fri, 26 Jan 2007 00:50:38 +0000 (00:50 +0000)]
ExtendedInsets: change title order and fix PDF info tags

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

17 years ago * src/text2.C: deleteEmptyParagraphMechanism(): fix a crash in
Michael Schmitt [Thu, 25 Jan 2007 22:51:00 +0000 (22:51 +0000)]
* src/text2.C: deleteEmptyParagraphMechanism(): fix a crash in
LyXText::acceptOrRejectChanges() caused by too aggressive deletion

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

17 years ago* src/lyxtext.h:
Michael Schmitt [Thu, 25 Jan 2007 22:28:15 +0000 (22:28 +0000)]
* src/lyxtext.h:
* src/text.C: rename acceptOrRejectChange() to acceptOrRejectChanges() because it can handle many changes within the given selection; add acceptChanges() and rejectChanges()

* src/text3.C:
* src/BufferView.C: adjust

* src/insets/insettext.C: accept/rejectChanges() become wrapper methods that call LyXText::acccept/rejectChanges

* src/text2.C: add assertion

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

17 years ago* src/lyxtext.h: add enum ChangeOp (ACCEPT/REJECT); add deleteEmptyParagraphMechanism()
Michael Schmitt [Thu, 25 Jan 2007 21:18:36 +0000 (21:18 +0000)]
* src/lyxtext.h: add enum ChangeOp (ACCEPT/REJECT); add deleteEmptyParagraphMechanism()

* src/text.C:
* src/text3.C:
* src/BufferView.C: adjust

* src/insets/insettext.C: acceptChanges() / rejectChanges(): fix pars_size bug introduced in previous commit; call deleteEmptyParagraphMechanism()

* src/text2.C: track changes in DEPM (I am not sure about whether this is actually useful; time will tell..); add deleteEmptyParagraphMechanism(pit_type, pit_type, bool)

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

17 years agoReal fix from Bernhard Roider
Georg Baum [Thu, 25 Jan 2007 21:12:12 +0000 (21:12 +0000)]
Real fix from Bernhard Roider

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

17 years agoadd comment
Georg Baum [Thu, 25 Jan 2007 21:02:08 +0000 (21:02 +0000)]
add comment

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

17 years agoFix bug 3135 by Bernhard Roider:
Abdelrazak Younes [Thu, 25 Jan 2007 20:16:30 +0000 (20:16 +0000)]
Fix bug 3135 by Bernhard Roider:

<http://bugzilla.lyx.org/show_bug.cgi?id=3135>

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

17 years agoScons: NSIS support (installer target)
Bo Peng [Thu, 25 Jan 2007 19:13:22 +0000 (19:13 +0000)]
Scons: NSIS support (installer target)

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

17 years agoFix beamer.layout (remove .cls in DeclareLaTeXClass)
Bo Peng [Thu, 25 Jan 2007 17:00:56 +0000 (17:00 +0000)]
Fix beamer.layout (remove .cls in DeclareLaTeXClass)

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

17 years agoupdate
Abdelrazak Younes [Thu, 25 Jan 2007 13:15:57 +0000 (13:15 +0000)]
update

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

17 years agoFix this bug:
Abdelrazak Younes [Thu, 25 Jan 2007 13:10:27 +0000 (13:10 +0000)]
Fix this bug:
1) View->Postscript
2) Export->LaTeX (plain)

1) will generate an error. 2) succeeeds (as it should), but the old error list is displayed again.

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

17 years agoAvoid errorList copy.
Abdelrazak Younes [Thu, 25 Jan 2007 10:39:40 +0000 (10:39 +0000)]
Avoid errorList copy.

* ControlErrorList:
  - error_list_: deleted
  - error_type_: new private member.

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

17 years ago* QErrorList::update_contents(): avoid touching the dialog here.
Abdelrazak Younes [Thu, 25 Jan 2007 10:21:02 +0000 (10:21 +0000)]
* QErrorList::update_contents(): avoid touching the dialog here.

* QErrorListDialog::showEvent(): new method. Set the error on the first item.

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

17 years agoScons: initial windows nsis installer support
Bo Peng [Thu, 25 Jan 2007 06:19:49 +0000 (06:19 +0000)]
Scons: initial windows nsis installer support

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

17 years agoFix compiler warning about multi-character constant
Enrico Forestieri [Thu, 25 Jan 2007 02:06:06 +0000 (02:06 +0000)]
Fix compiler warning about multi-character constant

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

17 years agoRemove buggy and redundant BufferView::update() calls.
Abdelrazak Younes [Wed, 24 Jan 2007 23:10:03 +0000 (23:10 +0000)]
Remove buggy and redundant BufferView::update() calls.

* BufferView::dispatch() now returns an Update::flags.

* lyx_cb.C::insertPlaintextFile(): delete redundant BufferView::update() call.

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

17 years agoFix screen update after CT bug.
Abdelrazak Younes [Wed, 24 Jan 2007 23:05:40 +0000 (23:05 +0000)]
Fix screen update after CT bug.

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

17 years agoUpdates and image path fixes from Hartmut
Uwe Stöhr [Wed, 24 Jan 2007 21:38:53 +0000 (21:38 +0000)]
Updates and image path fixes from Hartmut

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

17 years agofix compiler warnings about unused parameter
Georg Baum [Wed, 24 Jan 2007 19:02:41 +0000 (19:02 +0000)]
fix compiler warnings about unused parameter

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

17 years agoSmall formatting and comment cleanup.
Abdelrazak Younes [Wed, 24 Jan 2007 17:19:56 +0000 (17:19 +0000)]
Small formatting and comment cleanup.

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

17 years agoget rid of MSVC warning (signed/unsigned comparison)
Abdelrazak Younes [Wed, 24 Jan 2007 17:05:49 +0000 (17:05 +0000)]
get rid of MSVC warning (signed/unsigned comparison)

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

17 years agofix filenames
Georg Baum [Wed, 24 Jan 2007 16:44:50 +0000 (16:44 +0000)]
fix filenames

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

17 years agocompile fix: std::exception does only have a default constructor, the other
Georg Baum [Wed, 24 Jan 2007 16:24:47 +0000 (16:24 +0000)]
compile fix: std::exception does only have a default constructor, the other
constrcutor is non-standard.

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

17 years agoDisplay error/warning dialogs if possible.
Abdelrazak Younes [Wed, 24 Jan 2007 15:49:20 +0000 (15:49 +0000)]
Display error/warning dialogs if possible.

* ExceptionMessage: new exception based message for errors and warnings.

* package.C.in:
  - replace lyxerr based errors and warning with ExceptionMessage throwing.
  - bail_out(): erased!

* os_win32.C:
  - replace lyxerr based errors and warning with ExceptionMessage throwing.
  - bail_out(): erased!

* tex2lyx.C: catch any exception from Package class.

* lyx_main.C:  catch any exception from Package class and act accordingly.

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

17 years agoWe use char_type, not size_t for storing UCS4 characters.
Georg Baum [Wed, 24 Jan 2007 14:01:34 +0000 (14:01 +0000)]
We use char_type, not size_t for storing UCS4 characters.
This may make a difference when char_type is signed.

* src/frontends/LyXKeySym.h
(getUCSEncoded): change return type from size_t to char_type

* src/frontends/qt4/QLyXKeySym.[Ch]
(getUCSEncoded): ditto

* src/lyxfunc.C
(LyXFunc::processKeySym): adjust to the above and add a FIXME since
this is strange code that looks like it was not intended to do what
it does.

* src/lyxfunc.h
(encoded_last_key): Correct documentation

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

17 years agowhitespace
Georg Baum [Wed, 24 Jan 2007 13:33:13 +0000 (13:33 +0000)]
whitespace

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

17 years ago* src/lyxtext.h:
Michael Schmitt [Tue, 23 Jan 2007 21:53:16 +0000 (21:53 +0000)]
* src/lyxtext.h:
* src/BufferView.C:
* src/text3.C:
* src/text.C: merge methods acceptChange() and rejectChange() to acceptOrRejectChange() because they share a lot of tricky code

* src/text.C: yet another revision of acceptOrRejectChange()

* src/paragraph.C:
* src/paragraph.h:
* src/paragraph_pimpl.C:
* src/paragraph_pimpl.h:
* src/insets/insettabular.C:
* src/insets/insettabular.h:
* src/insets/insettext.C:
* src/insets/insettext.h:
* src/insets/insetbase.h: pass BufferParams to acceptChanges() and rejectChanges() (needed for paragraph merging)

* src/insets/insettext.C: handle end-of-par in acceptChanges() and rejectChanges()

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

17 years agorevert last change
Abdelrazak Younes [Tue, 23 Jan 2007 15:23:59 +0000 (15:23 +0000)]
revert last change

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

17 years agorevert last change
Abdelrazak Younes [Tue, 23 Jan 2007 15:09:00 +0000 (15:09 +0000)]
revert last change

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

17 years agoWrite the warnings and errors both to lyxerr and to the dialog.
Abdelrazak Younes [Tue, 23 Jan 2007 14:29:15 +0000 (14:29 +0000)]
Write the warnings and errors both to lyxerr and to the dialog.
If the mode is nogui don't raise the dialog.

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

17 years agoReplace lyxerr based warnings and errors with Alert::error() and Alert::warning().
Abdelrazak Younes [Tue, 23 Jan 2007 13:30:30 +0000 (13:30 +0000)]
Replace lyxerr based warnings and errors with Alert::error() and Alert::warning().

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

17 years ago * src/text.C: implement rejectChange() as the inverse of acceptChange()
Michael Schmitt [Tue, 23 Jan 2007 13:25:50 +0000 (13:25 +0000)]
* src/text.C: implement rejectChange() as the inverse of acceptChange()
(requires some further testing)

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

17 years agoReplace lyxerr based warnings and errors with Alert::error() and Alert::warning().
Abdelrazak Younes [Tue, 23 Jan 2007 13:09:28 +0000 (13:09 +0000)]
Replace lyxerr based warnings and errors with Alert::error() and Alert::warning().

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

17 years agoWith this commit, errors and warnings can use message box even before LyX is properly...
Abdelrazak Younes [Tue, 23 Jan 2007 12:38:20 +0000 (12:38 +0000)]
With this commit, errors and warnings can use message box even before LyX is properly initialized. This is especially useful for missing sysdir and/or userdir directory.

* Alert.C:
  - error(): calls error_pimpl() in any case.
  - warning(): calls warning_pimpl() in any case.

* Alert_pimpl.C:
  - error_pimpl(): construct a QApplication if LyX is not initialized yet.
  - warning_pimpl(): ditto.

* lyx_main.C:
  - parse_sysdir(): replace lyxerr with Alert::error().
  - parse_userdir(): ditto.

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

17 years agoInstaller: Aiksaurus again
Uwe Stöhr [Tue, 23 Jan 2007 01:41:45 +0000 (01:41 +0000)]
Installer: Aiksaurus again

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

17 years agoInstaller: use better version to register Aiksaurus
Uwe Stöhr [Tue, 23 Jan 2007 01:19:58 +0000 (01:19 +0000)]
Installer: use better version to register Aiksaurus

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

17 years agoInstaller: Language update Hungarian
Uwe Stöhr [Tue, 23 Jan 2007 00:43:29 +0000 (00:43 +0000)]
Installer: Language update Hungarian

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

17 years agoInstaller: Language and information updates
Uwe Stöhr [Tue, 23 Jan 2007 00:33:33 +0000 (00:33 +0000)]
Installer: Language and information updates

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

17 years agoFix inverse DVI search as reported on the french list.
Abdelrazak Younes [Mon, 22 Jan 2007 15:00:33 +0000 (15:00 +0000)]
Fix inverse DVI search as reported on the french list.

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

17 years ago * src/LyXAction.C: mark goto-clear-bookmark as working without buffer
Jean-Marc Lasgouttes [Mon, 22 Jan 2007 14:43:45 +0000 (14:43 +0000)]
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer

* src/lyxfunc.C (getStatus): move handling of LFUN_LYX_QUIT,
LFUN_BOOKMARK_GOTO, LFUN_BOOKMARK_CLEAR and LFUN_TOOLBAR_TOGGLE_STATE
where they belong.

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

17 years agoCleanup Action class: The mother should be the main window (GuiView). This will hopef...
Abdelrazak Younes [Mon, 22 Jan 2007 11:31:42 +0000 (11:31 +0000)]
Cleanup Action class: The mother should be the main window (GuiView). This will hopefully fix bug 3107 (Tooltips not showing on main window).

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

17 years agoFix encoding of converters path and arguments
Enrico Forestieri [Mon, 22 Jan 2007 02:58:47 +0000 (02:58 +0000)]
Fix encoding of converters path and arguments

* src/converter.C
(Converters::convert): Convert command to be executed to the proper
encoding. Use from_utf8 instead of from_ascii in order to avoid
assertions when displaying an alert.

* src/support/docstring.[Ch]
(to_filesystem8bit): new conversion function.

* lib/scripts/fig2pstex.py
* lib/scripts/fig2pdftex.py:
Modified to reflect the changes above.

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

17 years agoIntro.lyx updated for LyX 1.5add source code of LyXWinInstaller
Uwe Stöhr [Mon, 22 Jan 2007 00:14:36 +0000 (00:14 +0000)]
Intro.lyx updated for LyX 1.5add source code of LyXWinInstaller
(I know that not everybody likes this, but -- you know.)

The folder PDFViewWin contains the programs I wrote to fix bug 3045.

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

17 years agoCompile fix.
Georg Baum [Sun, 21 Jan 2007 21:52:01 +0000 (21:52 +0000)]
Compile fix.
Michael, I guess that you need to retest this code, since the old one did
obviously not do what you intended.

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

17 years agoFrom Bernhard Roider:
Georg Baum [Sun, 21 Jan 2007 21:46:33 +0000 (21:46 +0000)]
From Bernhard Roider:
* src/insets/insetexternal.C
(InsetExternalParams::read): Read filenames with spaces correctly

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

17 years ago * src/text.C: acceptChange(): complete rewrite; there should be no crashes any more
Michael Schmitt [Sun, 21 Jan 2007 21:20:51 +0000 (21:20 +0000)]
* src/text.C: acceptChange(): complete rewrite; there should be no crashes any more

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

17 years ago * src/paragraph.h:
Michael Schmitt [Sun, 21 Jan 2007 21:11:27 +0000 (21:11 +0000)]
* src/paragraph.h:
* src/paragraph.C: stripLeadingSpaces(); return boolean indicating
whether any character has been deleted - either physically or logically

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

17 years agoadd comment.
Abdelrazak Younes [Sun, 21 Jan 2007 16:55:41 +0000 (16:55 +0000)]
add comment.

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

17 years agoFix crash when breaking paragraph and Change tracking is involved.
Abdelrazak Younes [Sun, 21 Jan 2007 16:43:27 +0000 (16:43 +0000)]
Fix crash when breaking paragraph and Change tracking is involved.

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

17 years ago * lib/ui/stdttoolbars.inc: for the perfectionists: use a shorter
Michael Schmitt [Sun, 21 Jan 2007 11:48:21 +0000 (11:48 +0000)]
* lib/ui/stdttoolbars.inc: for the perfectionists: use a shorter
toolbar title ("View/Update") for consistency with the other
toolbars (e.g., we say "Table" rather than "Edit Table")

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

17 years ago * po/de.po: update German messages
Michael Schmitt [Sun, 21 Jan 2007 11:33:35 +0000 (11:33 +0000)]
* po/de.po: update German messages

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

17 years ago * po/*.po: remerge (again :-( )
Michael Schmitt [Sun, 21 Jan 2007 11:08:54 +0000 (11:08 +0000)]
* po/*.po: remerge (again :-( )

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

17 years ago * lib/ui/stdtoolbars.inc: fix typo; use Capitals in
Michael Schmitt [Sun, 21 Jan 2007 10:20:39 +0000 (10:20 +0000)]
* lib/ui/stdtoolbars.inc: fix typo; use Capitals in
toolbar name; remove term "output" in "DVI output"
for consistency with the other items

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

17 years ago * src/output_plaintext.C: partially revert r16780
Michael Schmitt [Sun, 21 Jan 2007 09:46:15 +0000 (09:46 +0000)]
* src/output_plaintext.C: partially revert r16780
to support RtL languages

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

17 years agochange default position of new "view/update" toolbar to the right as this was the...
Uwe Stöhr [Sun, 21 Jan 2007 00:50:51 +0000 (00:50 +0000)]
change default position of new "view/update" toolbar to the right as this was the original intention.

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

17 years agonew toolbar to view/update view documents; as discussed on the list
Uwe Stöhr [Sun, 21 Jan 2007 00:05:33 +0000 (00:05 +0000)]
new toolbar to view/update view documents; as discussed on the list

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

17 years ago * src/MenuBackend.C: Import plain text: align
Michael Schmitt [Sat, 20 Jan 2007 18:38:06 +0000 (18:38 +0000)]
* src/MenuBackend.C: Import plain text: align
labels with menu entries in stdmenus.inc

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

17 years ago * lib/ui/classic.ui: "Plain Text, Join Lines" - align
Michael Schmitt [Sat, 20 Jan 2007 18:35:27 +0000 (18:35 +0000)]
* lib/ui/classic.ui: "Plain Text, Join Lines" - align
with menu entries in stdmenus.ui

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

17 years ago * po/*.po: remerge
Michael Schmitt [Sat, 20 Jan 2007 17:37:49 +0000 (17:37 +0000)]
* po/*.po: remerge

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

17 years agocount correctly
Georg Baum [Sat, 20 Jan 2007 17:21:52 +0000 (17:21 +0000)]
count correctly

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

17 years agoSome renaming (has been discussed a long time ago)
Georg Baum [Sat, 20 Jan 2007 17:08:39 +0000 (17:08 +0000)]
Some renaming (has been discussed a long time ago)
* src/LaTeXFeatures.[Ch]
(LaTeXFeatures::addExternalPreamble): rename to addPreambleSnippet,
since this is not specialized for InsetExternal at all

* src/insets/insetexternal.C
(InsetExternal::validate): reflect name change above

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

17 years ago * src/text.C: move forward when logically deleting character
Michael Schmitt [Sat, 20 Jan 2007 16:59:13 +0000 (16:59 +0000)]
* src/text.C: move forward when logically deleting character
(previously broken; the cursor was even moved forward if
the character was physically removed and the next character was
marked as deleted)

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

17 years ago * src/output_plaintext.C: fix line break handling;
Michael Schmitt [Sat, 20 Jan 2007 16:38:58 +0000 (16:38 +0000)]
* src/output_plaintext.C: fix line break handling;
don't stop 10 characters before max line length

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

17 years ago * src/output_plaintext.C: remove cryptic comment;
Michael Schmitt [Sat, 20 Jan 2007 16:25:52 +0000 (16:25 +0000)]
* src/output_plaintext.C: remove cryptic comment;
do not output deleted characters in plain text output

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

17 years ago * src/output_plaintext.C: save two *.po entries;
Michael Schmitt [Sat, 20 Jan 2007 16:14:39 +0000 (16:14 +0000)]
* src/output_plaintext.C: save two *.po entries;
output label+space only if label is not empty

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

17 years ago * src/output_plaintext.C: fix line breaks in plain text output;
Michael Schmitt [Sat, 20 Jan 2007 15:35:39 +0000 (15:35 +0000)]
* src/output_plaintext.C: fix line breaks in plain text output;
add a line break at the end of each paragraph; add a second line break
if maximum line length is > 0

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

17 years ago * src/paragraph_pimpl.C: check for linelen == 0 in LaTeX output;
Michael Schmitt [Sat, 20 Jan 2007 15:07:20 +0000 (15:07 +0000)]
* src/paragraph_pimpl.C: check for linelen == 0 in LaTeX output;
otherwise, every word in printed on a separate line

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

17 years ago * output_plaintext.C: cosmetics in comment: line length cannot be < 0
Michael Schmitt [Sat, 20 Jan 2007 14:51:40 +0000 (14:51 +0000)]
* output_plaintext.C: cosmetics in comment: line length cannot be < 0

* frontends/qt4/ui/QPrefPlaintextUi.ui:
* lyxrc.C: align descriptions (saves a message in *.po)

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

17 years agowhitespace
Georg Baum [Sat, 20 Jan 2007 13:17:40 +0000 (13:17 +0000)]
whitespace

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

17 years agoFix typo.
Abdelrazak Younes [Sat, 20 Jan 2007 08:43:51 +0000 (08:43 +0000)]
Fix typo.

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

17 years agoFix cursor navigation in math.
Abdelrazak Younes [Sat, 20 Jan 2007 01:23:07 +0000 (01:23 +0000)]
Fix cursor navigation in math.

* metricsinfo.h:
  - ScreenUpdateStrategy: new enum describing the screen update strategy (replace singlepar boolean).

* UpdateFlags.h:
  new Update::Decoration flag.

* BufferView.C
  - update(): takes Decoration flag into account (CoordCache is not cleared out). Fills in metrics_info_.update_strategy

* mathed/InsetMathNest.C: adjust the cursor flags to new strategy.

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

17 years agoPreparePrepare for independent decoration drawing and correct a CoordCache bug: Previ...
Abdelrazak Younes [Sat, 20 Jan 2007 01:15:05 +0000 (01:15 +0000)]
PreparePrepare for independent decoration drawing and correct a CoordCache bug: Previously, only the math insets containing the cursor were put in the cache. I believe this was the reason for some of the weird problems with cursors in math (egg: cursor trapped in a fraction).

* insetbase.C
  - drawMarkers(): draw the decoration in any case (but visible only in editing mode). Fill-in the CoordCache in any case.
  - drawMarkers2(): ditto.

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

17 years agoPrepare for independent decoration drawing.
Abdelrazak Younes [Sat, 20 Jan 2007 00:55:24 +0000 (00:55 +0000)]
Prepare for independent decoration drawing.

* InsetBase::drawDecoration(): new method.

* all other files: implement drawDecoration().

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

17 years agoTOC/tab crash bug fixed
Peter Kümmel [Fri, 19 Jan 2007 23:01:05 +0000 (23:01 +0000)]
TOC/tab crash bug fixed

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

17 years agocoding style: fix crash on buffer-switching (2 tabs) + toc-clicking
Peter Kümmel [Fri, 19 Jan 2007 22:17:01 +0000 (22:17 +0000)]
coding style: fix crash on buffer-switching (2 tabs) + toc-clicking

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

17 years agofix crash on buffer-switching (2 tabs) + toc-clicking
Peter Kümmel [Fri, 19 Jan 2007 22:16:26 +0000 (22:16 +0000)]
fix crash on buffer-switching (2 tabs) + toc-clicking

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

17 years agoupdate
Peter Kümmel [Fri, 19 Jan 2007 20:32:55 +0000 (20:32 +0000)]
update

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

17 years ago * insetbranch.C (textString): implement, so that branches appear
Jean-Marc Lasgouttes [Fri, 19 Jan 2007 16:23:47 +0000 (16:23 +0000)]
* insetbranch.C (textString): implement, so that branches appear
in the ToC.

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

17 years ago * insets/insetbase.h (textString): Simplify the signature
Jean-Marc Lasgouttes [Fri, 19 Jan 2007 16:23:13 +0000 (16:23 +0000)]
* insets/insetbase.h (textString): Simplify the signature

* insets/insetquotes.C (textString):
* insets/insetcharstyle.C (textString):
* mathed/InsetMathHull.C (textString): adapt.

* insets/insetquote.C (plaintext, textString): output disString
instead of a raw quote.

* paragraph.C: adapt and remove unused methods.

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

17 years ago * output_plaintext.C (asciiParagraph): output things in the right
Jean-Marc Lasgouttes [Fri, 19 Jan 2007 16:17:39 +0000 (16:17 +0000)]
* output_plaintext.C (asciiParagraph): output things in the right
order when there is an inset and runparams.linelen == 0.

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

17 years ago * lyx_main.C (readUIFile): when reading an include file which name
Jean-Marc Lasgouttes [Fri, 19 Jan 2007 14:30:30 +0000 (14:30 +0000)]
* lyx_main.C (readUIFile): when reading an include file which name
ends in .ui, try the .inc version too (support for user ui files)

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

17 years agoFix encoding of bibtex keys and files read from the latex aux file
Enrico Forestieri [Fri, 19 Jan 2007 00:55:17 +0000 (00:55 +0000)]
Fix encoding of bibtex keys and files read from the latex aux file

* src/LaTeX.C
(LaTeX::scanAuxFile): Convert to utf8 citation keys and filenames.

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

17 years ago * po/*.po: remerge
Michael Schmitt [Thu, 18 Jan 2007 23:04:01 +0000 (23:04 +0000)]
* po/*.po: remerge

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

17 years ago * insets/insetfloatlist.C:
Michael Schmitt [Thu, 18 Jan 2007 22:29:50 +0000 (22:29 +0000)]
* insets/insetfloatlist.C:
* insets/insettoc.C:
* TocBackend.C:
* TocBackend.h: rename 'asciiTocList()' to '.writePlaintextTocList'

* insets/insettext.C:
* output_plaintext.C:
* output_plaintext.h: rename 'asciiParagraph' to 'writePlaintextParagraph'

* output_plaintext.C:
* exporter.C:
* output_plaintext.h: rename 'writeFileAscii' to 'writePlaintextFile'

* lyxrc.C: change lyxrc section title (ASCII => PLAIN TEXT)

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

17 years ago * LyXView.C:
Michael Schmitt [Thu, 18 Jan 2007 21:47:27 +0000 (21:47 +0000)]
* LyXView.C:
* qt4/GuiWorkArea.h:
* qt4/GuiWorkArea.C:
* WorkArea.h: fix typos: "shedule" => "schedule"

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

17 years agoFix bug 3063, the problem was a recursive call to QRef::gotoRef() (which indirectly...
Abdelrazak Younes [Thu, 18 Jan 2007 21:06:49 +0000 (21:06 +0000)]
Fix bug 3063, the problem was a recursive call to QRef::gotoRef() (which indirectly call
QRef::updateRefs() which called gotoRef(), etc).

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

17 years agoFix several filename and environment variable encoding problems
Georg Baum [Thu, 18 Jan 2007 20:47:27 +0000 (20:47 +0000)]
Fix several filename and environment variable encoding problems

* src/LaTeX.C
(LaTeX::deplog): Assume that filenames in log files are stored in
the file system encoding

* src/frontends/qt4/qt_helpers.[Ch]
(internal_path): delete

* src/frontends/qt4/QGraphics.C: Adjust to change above

* src/frontends/qt4/QPrefsDialog.C: ditto

* src/frontends/qt4/QExternal.C: ditto

* src/frontends/qt4/QInclude.C: ditto

* src/support/os.h: Document the encoding of filename arguments

* src/support/os_win32.h: ditto

* src/support/filetools.C
(findtexfile): Convert filename from file system encoding

* src/support/os_win32.C: Convert filenames from utf8 to file system
encoding and vice versa where needed

* src/support/os_cygwin.C: ditto

* src/support/getcwd.C
(getcwd): Use internal_path() with correct encoding

* src/support/docstring.[Ch]
(from_filesystem8bit): new conversion function

* src/support/environment.C
(getEnv): convert environment variable from local 8bit encoding to utf8
(setEnv): convert environment variable from utf8 to local 8bit encoding

* src/support/environment.h: document encoding of function arguments

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

17 years agorequire needed packages for beamer class
Uwe Stöhr [Thu, 18 Jan 2007 19:20:32 +0000 (19:20 +0000)]
require needed packages for beamer class

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

17 years agoAdd new information to old bug. This one is a show stopper for the beta IMO.
Georg Baum [Thu, 18 Jan 2007 19:16:08 +0000 (19:16 +0000)]
Add new information to old bug. This one is a show stopper for the beta IMO.

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