Commit Graph

8862 Commits

Author SHA1 Message Date
Georg Baum
b7c3347e9a Fix bug 3037
* src/lyxfunc.C
	(LyXFunc::dispatch): Use default include type if no type is given


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16324 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 16:45:20 +00:00
Jean-Marc Lasgouttes
e5b8f69561 * Application.C (Application): initialize correctly current_view_.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16322 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 15:21:43 +00:00
Enrico Forestieri
6b5289825e Don't use a global variable for avoiding removal of the system temp dir
* src/support/package.h
	(Package::system_temp_dir): new, return the system temp dir.

	* src/support/package.C.in
	(Package::Package): record the system temp dir.

	* src/lyx_main.C
	(LyX::prepareExit): don't remove the temporary directory if it
	is the same as the system temp dir, meaning that the lyx_tmpdir
	has not yet been created.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16318 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 21:52:40 +00:00
Edwin Leuven
dc8bba7918 fix: http://bugzilla.lyx.org/show_bug.cgi?id=452
ControlMath.C: cleanup order of symbols in math panel
iconpalette.C: 6 cols since many symbols come in pairs
Rrightarrow.xpm: was missing
searrow.xpm: was north east
swarrow.xpm: was north west


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16316 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 17:36:00 +00:00
Michael Schmitt
822df54fc2 * paragraph_pimpl.C: fix a seg fault when accepting a change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16315 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 15:09:32 +00:00
Georg Baum
e208fa001b remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16314 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 15:05:18 +00:00
Jürgen Spitzmüller
506c5df84b * src/frontends/qt4/ui/QCitationUi.ui:
- fix shortcut

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16313 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 14:04:18 +00:00
Jürgen Spitzmüller
ddac5c916b * src/text2.C (getPitNearY):
- fix compiler warning (unsigned/signed int comparision).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16312 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 12:52:53 +00:00
Georg Baum
29b6f5cad9 Convert filenames to local encoding for running lyx2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16311 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 12:12:17 +00:00
Georg Baum
e4c3ce4627 Convert most of the bibtex machinery to docstring.
Don't limit citation keys to ASCII anymore, since InsetBibitem can generate
non-ASCII keys.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16310 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 10:52:04 +00:00
Abdelrazak Younes
21b0a4ab9b Fix for bug 3027 by Martin V.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16309 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 10:11:28 +00:00
Georg Baum
01c3046d5a Add some forgotten FileName conversions to enable installation in non-ascii
paths


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16308 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 09:46:04 +00:00
Georg Baum
cd5c02c925 fix variable initialization order (shuts up a gcc warning)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16298 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:40:43 +00:00
Georg Baum
bdbedecab3 add comment about possibly wrong encoding
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16297 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:38:01 +00:00
Georg Baum
0a1057b62e remove unused stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16296 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 10:37:41 +00:00
Abdelrazak Younes
4d96e200f0 Fix this crash:
new doc
type:  foo bar
put cursor after foo: foo| bar
enter space: foo | bar
click somewhere else -> CRASH

The problem is that the paragraph breaking needs to be redone after the empty space is deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16295 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 23:17:10 +00:00
Enrico Forestieri
5b5585e723 Account for a bigger width or precision when inserting a number into
a wide stream on systems where sizeof(wchar_t) == 2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16294 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 22:53:06 +00:00
Bo Peng
7df29f6562 minor style change: use 0 instead of NULL
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16293 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 21:39:57 +00:00
Bo Peng
647df45a50 minor comment fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16286 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:53:02 +00:00
Bo Peng
e78b1cf6d7 BufferView.h/C: use member variable last_inset_ instead of static variable in workAreaDispatch to avoid potential mutliple window problems
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16285 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:48:09 +00:00
Abdelrazak Younes
b802e94208 Fix cursor repositioning when a Window is resized or when switching Windows showing the same Buffer (this bug was not visible if "Cursor follow mouse" was set).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16282 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:16:20 +00:00
Edwin Leuven
6bfb3e6dc4 georg baum:
- add encoding arg to idocfstream
- open .bib files with idocfstream
- add ascii_lowercase that takes docstring

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16281 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 16:09:05 +00:00
Bo Peng
50d1ba117a add a comment in workAreaResize
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16280 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 15:39:57 +00:00
Abdelrazak Younes
2049cc5afc remove unneeded local variable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16279 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 15:05:46 +00:00
Jean-Marc Lasgouttes
d01dad8bac remove some old cruft (unused OS X specific code)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16278 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 14:43:13 +00:00
Edwin Leuven
2c832e6578 more cleanup:
- clear selected keys on ok/cancel
 - update info when navigating with keyboard
 - add clear search button
 - don't allow search strings that return empty selection

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16277 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 09:58:44 +00:00
Enrico Forestieri
e7a9321e43 Provide do_put methods for inserting all remaining basic type values
into wide streams on systems where sizeof(wchar_t) == 2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16275 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 00:30:46 +00:00
Bo Peng
74602628f6 Fix the multiple window rows() availability bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16273 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-14 03:41:32 +00:00
Enrico Forestieri
fb5b1bc6c8 Provide do_put methods for inserting "unsigned long" and "double" values
into wide streams on systems where sizeof(wchar_t) == 2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16272 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-14 00:31:18 +00:00
Enrico Forestieri
272fd4d7df Replace the Qt3 support signal QComboBox::textChanged
with the correct Qt4 signal QComboBox::editTextChanged.

	* src/frontends/qt4/QSearchDialog.C
	(QSearchDialog::QSearchDialog): use QComboBox::editTextChanged instead
	of QComboBox::textChanged.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16270 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 20:01:39 +00:00
Bo Peng
6d0f02557d revert r16260
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16266 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 16:23:29 +00:00
Jean-Marc Lasgouttes
6b55f26eb8 Convert shortcut strings to unicode (required by Qt/Mac); restore
shortcuts in menus on the Mac.

	* src/frontends/qt4/QLPopupMenu.C (addBinding): remove special
	OS X code (and hopefully restore shortcuts for LyX/Mac).

	* src/lyxfunc.C (processKeySym, dispatch, sendDispatchMessage,
	viewStatusMessage): adapt to changes below.

	* src/MenuBackend.C (binding): adapt to changes below.

	* src/kbmap.C (printKey, print, printbindings): return a
	docstring; adapt to kbsequence changes.

	* src/kbsequence.C (print, printOptions): return a docstring.

	* src/frontends/LyXKeySym.h (print): return a docstring.

	* src/frontends/qt4/QLyXKeySym.C (print): return a docstring.
	(qprint): remove.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16265 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 14:13:01 +00:00
Enrico Forestieri
cd5b51f4a3 Remove the tmp dir only if it has been created and create the lyxsocket
in the right place.

	* src/lyx_main.C
	(LyX::exec): create the lyxsocket in the temporary directory.
	(LyX::prepareExit): remove the temporary directory only if it
	has been created.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16262 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 05:29:19 +00:00
Bo Peng
525e28f520 Be consistent in how qt headers are included (QtCore/Q...), because QtXml etc may be used later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16260 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 04:43:50 +00:00
Georg Baum
fe5c73915e Make libQtCore a support library like boost and implement encoding conversion
from/to the local 8bit encoding with it.
Only the autotools build system is updated, scons and cmake users need to
add qt4 cpp flags when compiling libsupport, and link libsupport against
libQtCore.

	* src/frontends/qt4/qt_helpers.[Ch]
	(toqstr, qchar_to_ucs4, ucs4_to_qchar, ucs4_to_qstring,
	 qstring_to_ucs4, fromqstr): Move these qstring conversion functions
	from here ...

	* src/support/qstring_helpers.[Ch] ... to these new files

	* src/support/docstring.[Ch]
	(from_local8bit): new conversion function from local 8bit encoding
	to ucs4
	(to_local8bit): new conversion function from ucs4 to local 8bit
	encoding to ucs4
	(to_local8bit_failure): exception that is thrown by to_local8bit if
	the argument cannot be converted to the local encoding

	* src/support/filename.C
	(FileName::toFilesystemEncoding): implement with the help of QFile

	* src/support/Makefile.am: Add new files, qt4 cpp flags and link
	against libQtCore

	* src/client/client.C: Convert commandline input from local encoding
	to ucs4. Convert stuff that is sent to to the server to utf8,
	because LyX interprets it as utf8 on the other end of the pipe.

	* src/lyx_main.C
	(LyX::exec): convert commandline input from local encoding to utf8
	(LyX::init): ditto
	(LyX::easyParse): ditto

	* development/scons/scons_manifest.py: Add new files

	* config/qt4.m4: Define new variables QT4_CORE_INCLUDES,
	QT4_CORE_LDFLAGS and QT4_CORE_LIB


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16257 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 20:19:46 +00:00
Georg Baum
51839e89a7 Unify InsetLatexAccent output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16254 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 18:55:55 +00:00
Georg Baum
995d1337bb do not create invalid .lyx files when importing \i{}, \j{}, \l{} or \L{}.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16253 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 14:36:52 +00:00
Georg Baum
02fe5e67b8 Translate \l{} and \L{} to InsetLatexAccent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16252 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 13:56:32 +00:00
Peter Kümmel
91abd65a92 Don't forget bug in GuiImplementation::closeAllViews()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16251 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 10:54:37 +00:00
Georg Baum
0928419638 document why we are not using ucs-4 when communicating with aspell
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16249 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 08:17:22 +00:00
Enrico Forestieri
d08210e961 Fix cancel on quit
* src/lyxfunc.C
	(LyXFunc::dispatch): Move to GuiView::closeEvent the session code
	for lastpos in LFUN_LYX_QUIT. Check for unsaved changes before
	initiating the quit procedure in LFUN_LYX_QUIT and LFUN_WINDOW_CLOSE. 

	* src/frontends/qt4/GuiView.h
	(class GuiView): New boolean member quitting_by_menu_.

	* src/frontends/qt4/GuiView.C
	(GuiView::GuiView): Initialize quitting_by_menu_.
	(GuiView::close): Set to true quitting_by_menu_ before calling
	the quit procedure and reset it afterwards.
	(GuiView::closeEvent): Account for the close window button.
	Save last positions to the session file. Remove wrongly placed
	call to quitWriteAll.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16248 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 01:39:50 +00:00
Georg Baum
9c62a5e332 fix aspell encoding (confirmed on linux, cygwin and native windows,
confirmnation on OS S is still missing)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16247 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 20:39:15 +00:00
Jürgen Spitzmüller
50eba7d4f2 * insettabular.C (doDispatch): call mouseSetCursor on mouse
click to ensure dEPM is triggered.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16245 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 17:10:11 +00:00
Jürgen Spitzmüller
fc30e9f6bb Fix dEPM crash:
* src/BufferView.[Ch]: 
	- make mouseSetCursor a bool and pass dEPM return value.

* src/text3.C (doDispatch):
	- LFUN_MOUSE_PRESS: request update if mouseSetCursor
	  (i.e. dEPM) returned true.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16240 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 13:59:40 +00:00
Jürgen Spitzmüller
9667cb3836 * lib/languages:
change default for latin1-languages to latin9 (bug 845)
* src/paragraph_pimpl.C:
	add support for the subset of symbols that is only covered by
	latin1 (not latin9) to make the above switch painless.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16239 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 07:42:43 +00:00
Georg Baum
ff2bea7d39 Fix spell two checker bugs. The reason for both bugs was a string->docstring
commit from an unclean tree.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16235 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 19:00:57 +00:00
Georg Baum
42024f3198 Fix encoding for pspell. I cannot test this, but this should work according
to the documentation of pspell 0.12.2 (the latest version before it became
aspell). Since pspell.C did not even compile from Denmark till yesterday and
nobody noticed I am not willing to spend more time with this.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16234 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 17:47:44 +00:00
Enrico Forestieri
d4575a6c92 Adjust -dbg output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16233 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 16:51:25 +00:00
Georg Baum
35914695d1 Make Enrico happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16232 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 16:37:26 +00:00
Georg Baum
2aad27b2f3 Oops, committed an old version. This one links.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16231 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 16:13:00 +00:00