]> git.lyx.org Git - lyx.git/log
lyx.git
17 years agoTransfer the global converters and system_converters variables to LyX::Singletons...
Abdelrazak Younes [Wed, 17 Jan 2007 13:18:16 +0000 (13:18 +0000)]
Transfer the global converters and system_converters variables to LyX::Singletons class.

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

17 years ago* replace many toggled(bool) with changed() signals
Edwin Leuven [Wed, 17 Jan 2007 13:06:16 +0000 (13:06 +0000)]
* replace many toggled(bool) with changed() signals

the former is also trigged when updating dialogs. we should use toggled(bool) to en/disable widgets and in situations when we are sure that we always want to act on a toggle

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

17 years agoFix bug 3101 and 3108
Abdelrazak Younes [Wed, 17 Jan 2007 12:29:18 +0000 (12:29 +0000)]
Fix bug 3101 and 3108
http://bugzilla.lyx.org/show_bug.cgi?id=3101
http://bugzilla.lyx.org/show_bug.cgi?id=3108

* BufferView::setCursor(): delete the call to cursor_.setTargetX(). This is called differently for any LFUN anyway.

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

17 years ago* lib/images/buffer-update_pdf2.xpm:
Jürgen Spitzmüller [Wed, 17 Jan 2007 08:18:20 +0000 (08:18 +0000)]
* lib/images/buffer-update_pdf2.xpm:
* lib/Makefile.am:
* development/scons/scons_manifest.py:
- add missing "update pdf" icon. Not beautiful, but matches
   the other view/update icons.

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

17 years agoUse getline() to read filenames with space in session.C
Bo Peng [Wed, 17 Jan 2007 05:35:03 +0000 (05:35 +0000)]
Use getline() to read filenames with space in session.C

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

17 years agoFix inline collapsable inset set focus crash
Bo Peng [Wed, 17 Jan 2007 02:53:33 +0000 (02:53 +0000)]
Fix inline collapsable inset set focus crash

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

17 years agofix accidentally broken image
Uwe Stöhr [Wed, 17 Jan 2007 01:09:24 +0000 (01:09 +0000)]
fix accidentally broken image

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

17 years agoupdated icons
Uwe Stöhr [Wed, 17 Jan 2007 01:05:22 +0000 (01:05 +0000)]
updated icons

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

17 years ago * lib/CREDITS:
Michael Schmitt [Tue, 16 Jan 2007 22:33:44 +0000 (22:33 +0000)]
* lib/CREDITS:
* lib/generate_contributions.py:
* development/MacOSX/LyX.app/Contents/Resources/lyxrc.dist: rename "ascii" to "plain text"

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

17 years ago* development/scons/scons_manifest.py:
Michael Schmitt [Tue, 16 Jan 2007 22:29:33 +0000 (22:29 +0000)]
* development/scons/scons_manifest.py:
* src/frontends/qt4/Makefile.dialogs:
* src/frontends/qt4/QPrefsDialog.C:
* src/frontends/qt4/QPrefsDialog.h:
* src/frontends/qt4/ui/compile_uic.sh:
* src/frontends/qt4/ui/QPrefAsciiUi.ui:
* src/frontends/qt4/ui/QPrefPlaintextUi.ui: rename QPrefAsciiUi.ui to QPrefPlaintextUi.ui;
rename PrefAscii to PrefPlaintext

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

17 years agoUpdate install instructions: require two DLLs
Uwe Stöhr [Tue, 16 Jan 2007 22:18:40 +0000 (22:18 +0000)]
Update install instructions: require two DLLs
(The mentioned LyXWinBuildDLLs.zip was also updated)

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

17 years ago * lib/doc/*.lyx: replace "ascii" by "plain text"
Michael Schmitt [Tue, 16 Jan 2007 22:15:33 +0000 (22:15 +0000)]
* lib/doc/*.lyx: replace "ascii" by "plain text"

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

17 years ago * src/paragraph.C: remove unused sgmlLineBreak()
Michael Schmitt [Tue, 16 Jan 2007 22:11:00 +0000 (22:11 +0000)]
* src/paragraph.C: remove unused sgmlLineBreak()

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

17 years agoPass input data to a CAS program through a file instead of piping it to stdin
Enrico Forestieri [Tue, 16 Jan 2007 18:10:10 +0000 (18:10 +0000)]
Pass input data to a CAS program through a file instead of piping it to stdin

* src/mathed/MathExtern.C:
(captureOutput): redirect stdin from a file.
(pipeThroughMaxima, pipeThroughOctave, pipeThroughMathematica): use
"output:" instead of "out:" in the informational messages in order to
better match the "input:" message from captureOutput.

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

17 years ago* LyXView::updateInset(): schedule a redraw instead of redraw immediately.
Abdelrazak Younes [Tue, 16 Jan 2007 15:16:09 +0000 (15:16 +0000)]
* LyXView::updateInset(): schedule a redraw instead of redraw immediately.

* WorkArea::sheduleRedraw(): new pure virtual method.

* GuiWorkArea::showCursor(): handle the scheduled redraw.

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

17 years agoCleanup declaration.
Abdelrazak Younes [Tue, 16 Jan 2007 14:45:12 +0000 (14:45 +0000)]
Cleanup declaration.

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

17 years agoFix compilation problem with gcc-3.3.4-11.
Abdelrazak Younes [Tue, 16 Jan 2007 14:31:07 +0000 (14:31 +0000)]
Fix compilation problem with gcc-3.3.4-11.

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

17 years ago* avoid signal triggered by setChecked(bool)
Edwin Leuven [Tue, 16 Jan 2007 12:24:49 +0000 (12:24 +0000)]
* avoid signal triggered by setChecked(bool)
* get rid of suprefluous mailer updates

should get rid of bugs:
http://bugzilla.lyx.org/show_bug.cgi?id=3076
http://bugzilla.lyx.org/show_bug.cgi?id=3077

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

17 years agoMake LyX compile again.
Jürgen Spitzmüller [Tue, 16 Jan 2007 11:28:37 +0000 (11:28 +0000)]
Make LyX compile again.
* lib/Makefile.am:
- fix URIs introduced with r16699

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

17 years ago* src/frontends/qt4/ui/QPrefCygwinPathUi.ui:
Jürgen Spitzmüller [Tue, 16 Jan 2007 07:29:02 +0000 (07:29 +0000)]
* src/frontends/qt4/ui/QPrefCygwinPathUi.ui:
- fix layout (bug 3103).

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

17 years agoreplace 'ascii' by 'plain text' (more to come)
Michael Schmitt [Tue, 16 Jan 2007 07:05:07 +0000 (07:05 +0000)]
replace 'ascii' by 'plain text' (more to come)

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

17 years agofix tipo
Uwe Stöhr [Mon, 15 Jan 2007 23:59:23 +0000 (23:59 +0000)]
fix tipo

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

17 years agoUpdate Win build instructions
Uwe Stöhr [Mon, 15 Jan 2007 23:57:24 +0000 (23:57 +0000)]
Update Win build instructions
(require Microsoft.VC80.CRT.manifest)

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

17 years ago- remove duplicate PDFs
Uwe Stöhr [Mon, 15 Jan 2007 23:22:06 +0000 (23:22 +0000)]
- remove duplicate PDFs
- correct entries in makefile.am

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

17 years ago* change LFUN file-insert-ascii to file-insert-plaintext
Michael Schmitt [Mon, 15 Jan 2007 22:49:14 +0000 (22:49 +0000)]
* change LFUN file-insert-ascii to file-insert-plaintext
* change LFUN file-insert-ascii-para to file-insert-plaintext-para
* change LyXRC::RC_ASCIIROFF_COMMAND to LyXRC::RC_PLAINTEXT_ROFF_COMMAND
* change LyXRC::RC_ASCII_LINELEN to LyXRC::RC_PLAINTEXT_LINELEN
* replace "ascii" by "plaintext" in method names

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

17 years ago * Status.15x: remove some bugs which are already listed at bugzilla.lyx.org
Michael Schmitt [Mon, 15 Jan 2007 22:10:56 +0000 (22:10 +0000)]
* Status.15x: remove some bugs which are already listed at bugzilla.lyx.org

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

17 years agoTranslate labels based on the paragraph language instead of the Buffer language.
Abdelrazak Younes [Mon, 15 Jan 2007 16:58:14 +0000 (16:58 +0000)]
Translate labels based on the paragraph language instead of the Buffer language.

* Buffer:
  - translateLabel(): deleted.

* Paragraph:
  - translateIfPossible(): new method.
  - expandLabel(): new method.

* buffer_funcs.[Ch]
  - expandLabel(): deleted.

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

17 years agoFix bug 3058: changes in LyX's preferences aren't taken immediately
Abdelrazak Younes [Mon, 15 Jan 2007 15:51:45 +0000 (15:51 +0000)]
Fix bug 3058: changes in LyX's preferences aren't taken immediately

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

Bug fixed by setting the UpdateFlags correctly in LFUN_LYXRC_APPLY and LFUN_SCREEN_FONT_UPDATE.

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

17 years agoUpdate to latest from boost 1.34.x branch
Lars Gullik Bjønnes [Mon, 15 Jan 2007 00:47:01 +0000 (00:47 +0000)]
Update to latest from boost 1.34.x branch

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

17 years agoforgot this in r16687
Uwe Stöhr [Sun, 14 Jan 2007 21:05:26 +0000 (21:05 +0000)]
forgot this in r16687

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

17 years agoremove unneeded image
Uwe Stöhr [Sun, 14 Jan 2007 20:40:06 +0000 (20:40 +0000)]
remove unneeded image

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

17 years ago- updated: removed the stuff that is now described in Extended-Insets (The same as...
Uwe Stöhr [Sun, 14 Jan 2007 18:30:28 +0000 (18:30 +0000)]
- updated: removed the stuff that is now described in Extended-Insets (The same as done some days ago in the 1.4.x branch)
Now all docs are in sync again.

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

17 years ago* src/CutAndPaste.C:
Michael Schmitt [Sun, 14 Jan 2007 18:27:27 +0000 (18:27 +0000)]
* src/CutAndPaste.C:
* src/paragraph.C:
* src/paragraph.h:
* src/text2.C: consider change tracking in stripLeadingSpaces()

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

17 years ago * lib/*: rename Extended-Insets to ExtendedInset
Michael Schmitt [Sun, 14 Jan 2007 18:17:56 +0000 (18:17 +0000)]
* lib/*: rename Extended-Insets to ExtendedInset
* development/scons/scons_manifest.py: add es_ExtendedInset

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

17 years agofix member initialization order (gcc warning)
Georg Baum [Sun, 14 Jan 2007 17:53:30 +0000 (17:53 +0000)]
fix member initialization order (gcc warning)

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

17 years ago * src/buffer.C: save(): use correct filesystem encoding; check whether backup was...
Michael Schmitt [Sun, 14 Jan 2007 17:31:15 +0000 (17:31 +0000)]
* src/buffer.C: save(): use correct filesystem encoding; check whether backup was successful

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

17 years agoThe Mac doesn't need a offset for the save/restore window position code
Peter Kümmel [Sun, 14 Jan 2007 17:14:31 +0000 (17:14 +0000)]
The Mac doesn't need a offset for the save/restore window position code

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

17 years agoadd new docs
Georg Baum [Sun, 14 Jan 2007 17:13:54 +0000 (17:13 +0000)]
add new docs

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

17 years ago- new documentation
Uwe Stöhr [Sun, 14 Jan 2007 16:41:42 +0000 (16:41 +0000)]
- new documentation
- images used in the new documentation

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

17 years agoit seems that queryUserLyXDir needs to have access to the translation...
Abdelrazak Younes [Sun, 14 Jan 2007 11:31:30 +0000 (11:31 +0000)]
it seems that queryUserLyXDir needs to have access to the translation...

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

17 years ago* messages.h:
Abdelrazak Younes [Sun, 14 Jan 2007 10:37:14 +0000 (10:37 +0000)]
* messages.h:
  - getMessages(), getGuiMessages(): new global function definitions

* lyx_main.C: implementation of getMessages() and getGuiMessages().

* LyX class:
  - getMessages(), getGuiMessages(), setGuiLanguage(): new interface for Messages access.

* LyX::Singletons class:
  - messages_: new container for Messages objects.

* Buffer::Impl::messages is now a pointer to the singleton defined in lyx_main.C.

* gettext.C: _() uses the global getGuiMessages() instead of the local static Messages object.

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

17 years ago- In order to properly cache <language, Messages> pair I needs to get rid of the...
Abdelrazak Younes [Sun, 14 Jan 2007 09:55:08 +0000 (09:55 +0000)]
- In order to properly cache <language, Messages> pair I needs to get rid of the pimpl. This was not necessary anyway because minimal  header change is needed (<map> is added and <boost/scoped_ptr> is removed).

- I changed (again) the get() interface to return  full copy instead of const reference because the no ENABLE_NLS case was not working.

- I put the C++ example implementation at the end of messages.C.

- I did some header cleanup in messages.C.

This will be the last change to the Messages class.

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

17 years agoAdd two files that are included by the beamer example file and that I forgot.
Georg Baum [Sat, 13 Jan 2007 21:08:13 +0000 (21:08 +0000)]
Add two files that are included by the beamer example file and that I forgot.
Found out by Jean-Pierre Chretien.

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

17 years agofix completely stupid commit.
Abdelrazak Younes [Sat, 13 Jan 2007 20:05:48 +0000 (20:05 +0000)]
fix completely stupid commit.

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

17 years agoFix bug 2138: copy and paste should preserve formatting between different
Georg Baum [Sat, 13 Jan 2007 18:29:50 +0000 (18:29 +0000)]
Fix bug 2138: copy and paste should preserve formatting between different
LyX instances. This re-enables copy/paste from the internal clipboard on
OS X (currently broken since Clipboard::isInternal() always returns false for
some reason).

* src/insets/insettabular.C
(InsetTabular::doDispatch): adjust to clipboard interface change
(InsetTabular::copySelection): ditto

* src/mathed/InsetMathGrid.C
(InsetMathGrid::doDispatch): ditto

* src/mathed/InsetMathNest.C
(InsetMathNest::doDispatch): ditto

* src/buffer.[Ch]
(Buffer::readString): New method: Read document from a string
(Buffer::readFile): Change return value from bool to enum (needed
for readString). Return wrongversion if we are reading from a string
and the version does not match.
(Buffer::do_writeFile): make public and rename to write

* src/CutAndPaste.C
(putClipboard): New helper, put stuff to the system clipboard
(void copySelectionHelper): Use putClipboard instead of
theClipboard().put()
(void copySelection): ditto
(void pasteClipboard): new method for pasting in text
(void pasteParagraphList):

* src/frontends/Clipboard.h
(Clipboard::get): Rename to getAsText
(Clipboard::getAsLyX): New method for getting the system clipboard
in LyX format
(Clipboard::hasLyXContents): New method telling whether there is LyX
contents in the clipboard

* src/frontends/qt4/GuiClipboard.[Ch]: Implement the new methods

* src/text3.C
(LyXText::dispatch): Use pasteClipboard for pasting the system
clipboard

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

17 years ago- rename CacheType
Abdelrazak Younes [Sat, 13 Jan 2007 17:10:39 +0000 (17:10 +0000)]
- rename CacheType
- replace static string with private member
- test the success of the cache insertion

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

17 years agoChange lyx2lyx conversion and LaTeX export of documents with
Georg Baum [Sat, 13 Jan 2007 14:36:54 +0000 (14:36 +0000)]
Change lyx2lyx conversion and LaTeX export of documents with
\inputencoding default

* src/paragraph_pimpl.C
(isEncoding): Explain why bparams.inputenc == "default" is ignored

* src/bufferparams.C
(BufferParams::encoding): Determine the encoding from the language
for inputenc == "default"

* src/buffer.h
(writeLaTeXSource): Mention inputenc == "default" in documentation

* src/bufferparams.h
(inputenc): Update documentation of "default"

* src/output_latex.C
(switchEncoding): Switch the encoding also for inputenc == "default",
but don't output \inputencoding commands in that case

* lib/lyx2lyx/LyX.py
(get_encoding): Determine the encoding from the language for
inputencoding == "default"

* lib/lyx2lyx/lyx_1_5.py
(convert_multiencoding): ditto

* development/FORMAT: Update documentation of \inputencoding default

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

17 years agowhitespace only again
Uwe Stöhr [Sat, 13 Jan 2007 14:19:58 +0000 (14:19 +0000)]
whitespace only again

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

17 years ago* src/frontends/qt4/QGraphicsDialog.C:
Jürgen Spitzmüller [Sat, 13 Jan 2007 10:33:04 +0000 (10:33 +0000)]
* src/frontends/qt4/QGraphicsDialog.C:
- allow double values in the bounding box widgets (bug 3055, 3056).

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

17 years agoMessages:
Abdelrazak Younes [Sat, 13 Jan 2007 09:31:47 +0000 (09:31 +0000)]
Messages:
- cache_: new cache for gettext translated string.

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

17 years agowhitespace only -- improve readability
Uwe Stöhr [Sat, 13 Jan 2007 02:25:14 +0000 (02:25 +0000)]
whitespace only -- improve readability

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

17 years agoAdd a const. A second const as in:
Abdelrazak Younes [Fri, 12 Jan 2007 10:19:51 +0000 (10:19 +0000)]
Add a const. A second const as in:
  InsetBase const * const nextinset = = nextInset();

is not possible because InsetBase::asInsetMath() is not const.

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

17 years agoMake sure that all inputed filenames are in internal style, and avoid
Enrico Forestieri [Fri, 12 Jan 2007 03:19:58 +0000 (03:19 +0000)]
Make sure that all inputed filenames are in internal style, and avoid
a bug on Windows due to an unnecessary conversion to external style.

* src/insets/ExternalSupport.C
(subst_path): avoid a bug in the external material inset on Windows
by don't using external_path. The filename will be quoted and thus
there will be no problems with forward slashes.

* src/frontends/qt4/QGraphics.C
* src/frontends/qt4/QExternal.C
* src/frontends/qt4/QInclude.C:
(Qxxx::apply): On Windows, the user could input an absolute path in
native style by hand (without using the file dialog), so make sure
that no backslashes can slip in by this way.

* src/frontends/qt4/QPrefsDialog.C
(internal_path_list, external_path_list): new wrappers for the
corresponding functions in the os namespace.
(PrefPaths::apply): make sure that path_prefix is stored in the
internal style, i.e., without backslashes.
(PrefPaths::update): make sure that path_prefix is displayed to
the user in the native style.

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

17 years agooptimization.
Abdelrazak Younes [Thu, 11 Jan 2007 22:56:21 +0000 (22:56 +0000)]
optimization.

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

17 years agotiny optimization.
Abdelrazak Younes [Thu, 11 Jan 2007 22:38:37 +0000 (22:38 +0000)]
tiny optimization.

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

17 years agotiny optimisation.
Abdelrazak Younes [Thu, 11 Jan 2007 22:38:00 +0000 (22:38 +0000)]
tiny optimisation.

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

17 years agoLog:
Enrico Forestieri [Thu, 11 Jan 2007 21:22:18 +0000 (21:22 +0000)]
Log:
Move OS dependent code where it belongs.

* src/lyx_cb.C:
Remove unused include

* src/support/os.h
* src/support/os_unix.C
* src/support/os_win32.C
* src/support/os_cygwin.C:
Move here the code from fontutils.[Ch]

* src/support/os_cygwin.C
(external_path, external_path_list): don't differentiate anymore
on Qt/X11 or Qt/Win builds.

* src/support/environment.C
(setEnvPath): get rid of the #ifdef for cygwin.

* src/lyx_main.C
(LyX::exec): addFontResources and restoreFontResources are now
in the os namespace.

* src/support/Makefile.am
* src/client/Makefile.am
* src/tex2lyx/Makefile.am
* development/scons/scons_manifest.py:
Updated

* src/support/fontutils.[Ch]:
Removed

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

17 years agoopen TOC dialog and switching doc crash
Peter Kümmel [Thu, 11 Jan 2007 20:57:47 +0000 (20:57 +0000)]
open TOC dialog and switching doc crash

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

17 years agotiny optimisation.
Abdelrazak Younes [Thu, 11 Jan 2007 18:50:39 +0000 (18:50 +0000)]
tiny optimisation.

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

17 years agotiny optimisation.
Abdelrazak Younes [Thu, 11 Jan 2007 18:25:11 +0000 (18:25 +0000)]
tiny optimisation.

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

17 years agorevert mistake.
Abdelrazak Younes [Thu, 11 Jan 2007 18:20:20 +0000 (18:20 +0000)]
revert mistake.

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

17 years agooptimization.
Abdelrazak Younes [Thu, 11 Jan 2007 18:05:09 +0000 (18:05 +0000)]
optimization.

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

17 years agooptimization.
Abdelrazak Younes [Thu, 11 Jan 2007 17:40:23 +0000 (17:40 +0000)]
optimization.

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

17 years agooptimization.
Abdelrazak Younes [Thu, 11 Jan 2007 16:38:08 +0000 (16:38 +0000)]
optimization.

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

17 years agoFix bug 3092, use both pit and id to keep track of bookmarks.
Bo Peng [Thu, 11 Jan 2007 16:01:10 +0000 (16:01 +0000)]
Fix bug 3092, use both pit and id to keep track of bookmarks.
* src/session.h/C: save pit instead of id
* src/lyxfunc.h/C: gotoBookmark function
* src/BufferView.h/C: proper update of bookmarks

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

17 years agooptimization.
Abdelrazak Younes [Thu, 11 Jan 2007 15:58:26 +0000 (15:58 +0000)]
optimization.

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

17 years agoOptimize buffer-switch: do first updateLabels() on opening instead of at each buffer...
Abdelrazak Younes [Thu, 11 Jan 2007 08:34:23 +0000 (08:34 +0000)]
Optimize buffer-switch: do first updateLabels() on opening instead of at each buffer switching.

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

17 years ago po/de.po: tiny update
Michael Schmitt [Wed, 10 Jan 2007 21:54:04 +0000 (21:54 +0000)]
po/de.po: tiny update

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

17 years ago * po/*.po: remerge
Michael Schmitt [Wed, 10 Jan 2007 21:28:29 +0000 (21:28 +0000)]
* po/*.po: remerge

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

17 years agoAdd more precise comment
Georg Baum [Wed, 10 Jan 2007 21:06:09 +0000 (21:06 +0000)]
Add more precise comment

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

17 years agoremove obsolete comment
Georg Baum [Wed, 10 Jan 2007 20:59:32 +0000 (20:59 +0000)]
remove obsolete comment

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

17 years agoFix encoding problem when reading the latex log file
Enrico Forestieri [Wed, 10 Jan 2007 18:12:52 +0000 (18:12 +0000)]
Fix encoding problem when reading the latex log file

* src/LaTeX.C
(LaTeX::scanLogFile): use from_local8bit instead of from_utf8.

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

17 years agoFix another non-ascii filename related assertion
Enrico Forestieri [Wed, 10 Jan 2007 17:18:41 +0000 (17:18 +0000)]
Fix another non-ascii filename related assertion

* src/frontends/qt4/QErrorList.C
(QErrorList::update_contents): use from_utf8 instead of from_ascii.

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

17 years agofix cursor movements.
Abdelrazak Younes [Wed, 10 Jan 2007 10:59:18 +0000 (10:59 +0000)]
fix cursor movements.

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

17 years agoPartially revert changeset 16635.
Enrico Forestieri [Wed, 10 Jan 2007 04:24:36 +0000 (04:24 +0000)]
Partially revert changeset 16635.

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

17 years agoFix encoding of filenames in python scripts
Enrico Forestieri [Wed, 10 Jan 2007 03:42:06 +0000 (03:42 +0000)]
Fix encoding of filenames in python scripts

* lib/scripts/fig2pstex.py
* lib/scripts/fig2pdftex.py
* lib/scripts/fig_copy.py
* lib/scripts/fen2ascii.py:
convert filenames from utf8 to the default locale encoding.

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

17 years agoFix problem with non-ascii filenames in include inset
Enrico Forestieri [Wed, 10 Jan 2007 00:30:49 +0000 (00:30 +0000)]
Fix problem with non-ascii filenames in include inset

* src/insets/insetinclude.C
(InsetInclude::getScreenLabel): use from_utf8 instead of from_ascii

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

17 years agoMake the output of \inputencoding commands (and the change of output
Georg Baum [Tue, 9 Jan 2007 19:25:40 +0000 (19:25 +0000)]
Make the output of \inputencoding commands (and the change of output
encodings) more fine grained: From paragraph level to individual character
level. The inputenc package supports that since at least 2000.

* src/insets/insetbase.h
(latex): Document the differences between output to a string stream
and a file stream

* src/buffer.h
(writeLaTeXSource): ditto

* src/output_latex.h
(latexParagraphs): ditto
(switchEncoding): new function to change the encoding of a stream
(and output \inputencoding commands)

* src/paragraph_pimpl.C
(Paragraph::Pimpl::simpleTeXSpecialC): Adjust to latexWriteEndChanges
changes

* src/support/docstream.[Ch]
(setEncoding, operator<<): New stream modifier that changes the
encoding of file streams

* src/lyxfont.[Ch]
(LyXFont::latexWriteStartChanges): Change stream encoding if needed
(LyXFont::latexWriteEndChanges): Change stream encoding if needed

* src/lyxfont.h
(public:):

* src/paragraph.C
(Paragraph::simpleTeXOnePar): Adjust to latexWriteStartChanges and latexWriteEndChanges changes
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):
(bool Paragraph::simpleTeXOnePar):

* src/output_latex.C
(TeXOnePar): Remove the ugly hack to for wencoding changes and use
switchEncoding instead. A nice side effect is that the old hack would
not work if the main language encoding is latin1 and a character
would be mapped to a cedilla in the "fake ucs4" encoding, because
iconv refuses to convert such a character to latin1, although it
exists in latin1 (it wants to attach it to a base character).

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

17 years agoAdd some documentation for findtexfile
Georg Baum [Tue, 9 Jan 2007 19:10:29 +0000 (19:10 +0000)]
Add some documentation for findtexfile

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

17 years agoBookmarks: change from LIFO to FIFO
Bo Peng [Tue, 9 Jan 2007 18:13:29 +0000 (18:13 +0000)]
Bookmarks: change from LIFO to FIFO

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

17 years agosmall optimization and code formatting.
Abdelrazak Younes [Tue, 9 Jan 2007 15:48:04 +0000 (15:48 +0000)]
small optimization and code formatting.

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

17 years agomore Sweave commands from Gregor Gorjanc
Georg Baum [Tue, 9 Jan 2007 08:38:17 +0000 (08:38 +0000)]
more Sweave commands from Gregor Gorjanc

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

17 years ago* status.15x: remove bogus report.
Jürgen Spitzmüller [Tue, 9 Jan 2007 07:12:20 +0000 (07:12 +0000)]
* status.15x: remove bogus report.

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

17 years ago* src/changes.C: two changes of type UNCHANGED are always equals
Michael Schmitt [Mon, 8 Jan 2007 23:28:41 +0000 (23:28 +0000)]
* src/changes.C: two changes of type UNCHANGED are always equals

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

17 years ago* lib/ui/stdmenus.inc: use marginally better shortcuts
Michael Schmitt [Mon, 8 Jan 2007 23:17:44 +0000 (23:17 +0000)]
* lib/ui/stdmenus.inc: use marginally better shortcuts

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

17 years ago* src/text.C: replace "[C]" by the more meaningful "[Change tracking]" and support...
Michael Schmitt [Mon, 8 Jan 2007 22:38:49 +0000 (22:38 +0000)]
* src/text.C: replace "[C]" by the more meaningful "[Change tracking]" and support localization

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

17 years ago* src/paragraph_pimpl.C:
Michael Schmitt [Mon, 8 Jan 2007 22:25:59 +0000 (22:25 +0000)]
* src/paragraph_pimpl.C:
* src/paragraph_pimpl.h: lookupChange(): return reference for performance optimization

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

17 years ago* src/paragraph.C:
Michael Schmitt [Mon, 8 Jan 2007 22:21:57 +0000 (22:21 +0000)]
* src/paragraph.C:
* src/paragraph.h: lookupChange(): return reference for performance optimization

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

17 years ago* lib/ui/stdmenus.inc: remove "paste " from "paste selection as xxx"
Michael Schmitt [Mon, 8 Jan 2007 22:00:43 +0000 (22:00 +0000)]
* lib/ui/stdmenus.inc: remove "paste " from "paste selection as xxx"

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

17 years agoUpdated
Uwe Stöhr [Mon, 8 Jan 2007 21:45:27 +0000 (21:45 +0000)]
Updated

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

17 years agoinclude tabulars and math in the "paste recent" stack
Georg Baum [Mon, 8 Jan 2007 18:40:37 +0000 (18:40 +0000)]
include tabulars and math in the "paste recent" stack

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

17 years agoFix enabling of LFUN_PRIMARY_SELECTION_PASTE: It was always disabled, because
Georg Baum [Mon, 8 Jan 2007 18:37:40 +0000 (18:37 +0000)]
Fix enabling of LFUN_PRIMARY_SELECTION_PASTE: It was always disabled, because
we don't set the selection with qApp->clipboard()->put().
Therefore we get the status of the internal selection from the cursor, and
the empty flag for fake selections is not needed anymore.

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

17 years ago* src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache.
Jürgen Spitzmüller [Mon, 8 Jan 2007 17:38:39 +0000 (17:38 +0000)]
* src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache.

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

17 years agoForgot this in revision 16606.
Abdelrazak Younes [Mon, 8 Jan 2007 15:51:43 +0000 (15:51 +0000)]
Forgot this in revision 16606.

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

17 years agoproperly inline inMathed() and inTexted().
Abdelrazak Younes [Mon, 8 Jan 2007 15:30:17 +0000 (15:30 +0000)]
properly inline inMathed() and inTexted().

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

17 years agoDelay bibfileCache first update up until it is used.
Abdelrazak Younes [Mon, 8 Jan 2007 13:36:01 +0000 (13:36 +0000)]
Delay bibfileCache first update up until it is used.

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

17 years ago* src/frontends/qt4/QGraphicsDialog.C:
Jürgen Spitzmüller [Mon, 8 Jan 2007 13:22:50 +0000 (13:22 +0000)]
* src/frontends/qt4/QGraphicsDialog.C:
- do not focus filename widget for already existing insets (bug 1663).

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

17 years ago * support/os_unix.C (canAutoOpen, autoOpenFile): on Mac OS X, use
Jean-Marc Lasgouttes [Mon, 8 Jan 2007 13:20:19 +0000 (13:20 +0000)]
* support/os_unix.C (canAutoOpen, autoOpenFile): on Mac OS X, use
the role kLSRolesAll for both edito and viewer, since it is what
the finder does.

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

17 years agosame performance fix as rev. 16600.
Abdelrazak Younes [Mon, 8 Jan 2007 11:42:20 +0000 (11:42 +0000)]
same performance fix as rev. 16600.

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

17 years agoperformance fix.
Abdelrazak Younes [Mon, 8 Jan 2007 11:35:55 +0000 (11:35 +0000)]
performance fix.

* InsetFloat::addToToc(): avoid a string copy, a map lookup and a TocItem construction. Don't complete the loop if item found.

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