Commit Graph

13995 Commits

Author SHA1 Message Date
Abdelrazak Younes
896cb74fe2 Optimize the graphics loader: don't put the image in the queue if it is directly loadable and no conversion is needed. No more temporary preview image, yeah!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25166 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 13:30:38 +00:00
Abdelrazak Younes
e4a5278060 start image loading at metrics time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25165 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:39:43 +00:00
Abdelrazak Younes
21f59b816b RenderGraphic::metrics(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:34:27 +00:00
Abdelrazak Younes
9d00e2ec0a Move loadableImageFormats() to the frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25163 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:29:58 +00:00
Abdelrazak Younes
264f32ec37 Simplify image loading on screen which is not asynchronous, never was...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:52:02 +00:00
Abdelrazak Younes
20b45450f6 move GuiImage::loadableFormats() to support/imagetools.{h,cpp} and simplify this whole stuff. What a mess!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:34:49 +00:00
Pavel Sanda
c6ecad82c9 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25160 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:06:23 +00:00
Pavel Sanda
ed1ca813ef LFUN_ERROR_NEXT removal.
http://www.nabble.com/LFUN_ERROR_NEXT-td17667485.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 10:29:14 +00:00
Abdelrazak Younes
5fe7778d28 Fix disconnection on escaped dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 10:00:33 +00:00
Abdelrazak Younes
fb1d57d24c oups...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:49:09 +00:00
Abdelrazak Younes
af050ab1b0 Some polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25156 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:33:24 +00:00
Abdelrazak Younes
b4213b9fe5 LFUN_INFO_INSERT: avoid static_cast.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25155 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:01:55 +00:00
Abdelrazak Younes
81cc98a500 InsetInfo: Some fixes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25154 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:45:58 +00:00
Abdelrazak Younes
062bec11d0 * Dialog::inset(): make it const.
* InsetInfo::validate(): new method for checking dispatch argument. Not implemented yet.

* GuiInfo: remove non working code and rework the dialog following my vision of an ideal info dialog :-) not every thing works yet.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:01:59 +00:00
Bo Peng
3c142cdd47 GuiInfo: display and initialize the information dialog, can not apply yet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 04:10:42 +00:00
Bo Peng
f5101ebec8 InsetInfo: allow select and copy of text inside InsetInfo, trigger the info dialog correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25151 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:25:36 +00:00
Richard Heck
95a5be2891 Prevent a crash when destroying insets whose Buffers have been closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:11:56 +00:00
Jürgen Spitzmüller
0f07e83733 Wrap figures can also have subfloats. I simply forgot that when implementing subfloat support.
Well, here it is. Fixes one part of bug 4927. There's a remaining problem on conversion of onld subfigs with LaTeX content (e.g. \label). I'll fix that in a second step.

There's 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 16:05:52 +00:00
Abdelrazak Younes
ccea2a5cd9 Move inset lookup to Dialog class as this is generic enough to be reused by other dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 16:03:08 +00:00
Abdelrazak Younes
6e4494b9b7 InsetInfo::inset(): look also for next inset as InsetInfo cannot be entered with the cursor (yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:48:29 +00:00
Abdelrazak Younes
34739e59f7 The inset connection is not needed as the dialog will retrieve the inset from the cursor location.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:28:27 +00:00
Abdelrazak Younes
f276338227 Preliminar InsetInfo dialog. This was done as an exercise to show Bo (an others) how easy it is to create a new dialog. This dialog needs to be filled in, right now, there is just an OK button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:08:46 +00:00
Abdelrazak Younes
cf466ab567 Mac compil fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 14:40:41 +00:00
Abdelrazak Younes
a1756319b3 Mac compil and warning fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25142 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 13:27:37 +00:00
Pavel Sanda
e327d63c91 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25141 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 12:24:27 +00:00
Abdelrazak Younes
e060218986 * InsetInfo: use Application::iconName().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 08:49:19 +00:00
Abdelrazak Younes
b1002fc32c Provide a generic way to retrieve icons from the frontend.
* Application: new iconName() pure virtual interface.

* GuiApplication: transfer icon searching code from GuiToolbar.cpp.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25139 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 08:31:22 +00:00
Richard Heck
f65bb20bfe Forgot this bit.
The only remaining problem here is that, if you edit the TEXT that goes with
an InsetBibitem, then the information in the citation will not get updated
until something else invalidates the cache.  The only way to fix this, given
the existing system, would seem to be to check, every time anything gets 
edited, whether we're in a Bibliography environment or not, and if so to
invalidate the cache. I'm not sure that is worth it. Really, it points to a
more general issue with InsetBibitem, IMHO: It ought to be a kind of combined
inset, a hybrid of sorts between an InsetCollapsable and an InsetCommand. But
that would be for 1.7.x at least.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:59:35 +00:00
Richard Heck
8a64579d9c More cache fixing. Similar fix as for InsetBibtex, and I've renamed the key routine.
Unfortunately, we can't do a one-short fix for InsetCommand, requiring that it take
a Buffer & in the constructor, due to problems in mathed, specifically, here:
void InsetMathHull::label(row_type row, docstring const & label)
{
...
label_[row] = new InsetLabel(p);
if (buffer_)
label_[row]->setBuffer(buffer());
}
If InsetLabel has to have a Buffer, then buffer_ has to be set, which means InsetMathHull needs a Buffer. But then truckloads of these are created in Parser, where we don't really seem to have access to a Buffer.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:55:34 +00:00
Richard Heck
2ea039ba99 Fix some of the BibTeX cache issues. We need to be able to invalidate the cache when
InsetBibtex's get created and destroyed, or modified.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25136 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:42:53 +00:00
Jürgen Spitzmüller
d7eaaba900 ** support for CJK font argument. File Format change **
* src/BufferParams.{cpp,h}:
	- new param fontsCJK (font_cjk).

* src/output_latex.cpp:
	- use fontsCJK param.

* src/Buffer.cpp:
	- increase file format

* src/frontends/qt4/GuiDocument.cpp:
* src/frontends/qt4/ui/FontUi.ui:
	- GUI for the CJK font param

* lib/lyx2lyx/lyx_1_6.py:
	- remove font_cjk param on reversion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25135 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:18:34 +00:00
Richard Heck
45a8fed1d5 Fix bug 4899. My bad.
There are still some problems here, also related to the cache.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25134 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:46:49 +00:00
Richard Heck
ad76cb5c5f Give an error message here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:48 +00:00
Richard Heck
96fbd90e92 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25132 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:19 +00:00
Bo Peng
c6565b4209 Add InsetInfo::SHORTCUTS_INFO and ICON_INFO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 03:41:35 +00:00
Dov Feldstern
140958f4a3 this entire method can now be removed (thanks for pointing this out, Bernhard!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25120 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 21:05:27 +00:00
Dov Feldstern
6fb8b95a28 whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25119 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 19:52:16 +00:00
Dov Feldstern
dba608e1d7 fix completion painting for RTL (inline completion and completion list)
see http://permalink.gmane.org/gmane.editors.lyx.devel/107923 for an 
explanation, though note that this patch is more extensive than the one
attached there


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25118 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 19:45:26 +00:00
Pavel Sanda
8cc2f84269 Doxy - these are similar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25117 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 18:40:07 +00:00
Pavel Sanda
f1ab9fa147 Last rites for LFUN_BREAK_PARAGRAPH_SKIP, LFUN_DELETE_BACKWARD_SKIP, LFUN_DELETE_FORWARD_SKIP.
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4492 .
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4525 .



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 18:09:06 +00:00
Pavel Sanda
89ad02ee67 Last rites for LFUN_LIST_INSERT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25115 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 17:43:13 +00:00
Pavel Sanda
7a3c484635 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25114 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 17:04:38 +00:00
Jean-Marc Lasgouttes
31cc9454ef fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 09:57:37 +00:00
Abdelrazak Younes
4f2a7a953b Fix crash while InsetInfo hovering by replacing the hover message with a tooltip.
Note to all: NEVER send a message inside a draw() method! This triggers a recursive painting of the status bar with Qt4.4 !



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 07:15:43 +00:00
Enrico Forestieri
4ad2d0e15c Produce a cleaner latex output by avoiding \lyxmathsym when in text mode
inside math mode, and also ensure the proper mode inside math when using
the symbols from the unicodesymbols file. This hopefully fixes bug 3938.
Note that this approach could also be used for fixing bug 1527.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 00:36:04 +00:00
Bernhard Roider
0d4ab86261 Fix item delegate for qt 4.2:
In the completion-listbox rtl-Text does not work like it does for newer qt and icons are not displayed for math symbols.
The rtl handling is incorrect atm but now it works the same way for all versions of qt.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 22:00:47 +00:00
Pavel Sanda
e34c18c8fd On the same note.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 13:42:03 +00:00
Pavel Sanda
70dbaa6b0f oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 13:23:36 +00:00
Pavel Sanda
f47f4c64a5 LFUN: delete-back/forward -> char-delete-back/forward
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg140977.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 13:21:19 +00:00
Pavel Sanda
c6f21863a8 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25098 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 11:41:27 +00:00
Abdelrazak Younes
3803473627 Fix toc generation after rev25096.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 11:33:13 +00:00
Abdelrazak Younes
c99463ebfc Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 11:12:45 +00:00
Jürgen Spitzmüller
b607d70eb4 * src/output_latex.cpp:
- handle CJK nesting correctly with nested insets (bug 4913).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25093 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 07:51:14 +00:00
Jürgen Spitzmüller
e8d99617b5 * Allow the use of eqrefs in mathed (bug 4623).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25092 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 06:23:45 +00:00
Enrico Forestieri
07d1b1684b Account for text mode inside math mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 02:38:38 +00:00
Enrico Forestieri
69bd59cc8b Be sure to insert a space after a macro when needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25088 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 00:09:20 +00:00
Abdelrazak Younes
b5f4c93599 Remove bug work around due to bad event loop startup process in 1.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25071 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 14:19:39 +00:00
Abdelrazak Younes
2003a50e14 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4904
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25070 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 13:59:00 +00:00
Abdelrazak Younes
cebd63f844 Move secondary toolbars to View->Toolbars->Other Toolbars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25069 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 12:51:36 +00:00
Pavel Sanda
5293c58724 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25066 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 11:44:28 +00:00
Pavel Sanda
ec348c574a Unify LFUN naming.
(LFUN_FLOAT_LIST -> LFUN_FLOAT_LIST_INSERT)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 11:31:03 +00:00
Abdelrazak Younes
655f66b700 Get rid of GuiMath layer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25064 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 10:05:29 +00:00
Abdelrazak Younes
f7f385f73b More code removal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25063 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 09:26:27 +00:00
Abdelrazak Younes
19668bf2d6 remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25062 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 09:18:07 +00:00
Enrico Forestieri
1a2af1197e Allow to specify either text mode or math mode commands (or both) in the
unicodesymbols file. When the command for a mode is not specified, the
other one is used (taking care that it also works in the "wrong" mode).
This allows to avoid the \lyxmathsym macro when a native math command
is available. Patch from Georg, modifications to the unicodesymbols
file by me.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25061 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 01:35:42 +00:00
Bo Peng
87103ddb21 Fix manual update of the viewsource dialog, set default states of the view source checkboxes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25059 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 20:03:36 +00:00
Bo Peng
ee9511f52c Change inset label from ": filename" to "Program Listing: filename" for listings without caption.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25057 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 18:23:22 +00:00
Pavel Sanda
772d040c16 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25056 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 16:45:25 +00:00
Enrico Forestieri
3e95457d4c Rename \mathsym -> \lyxmathsym in order to avoid potential clashes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25049 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 14:11:36 +00:00
Enrico Forestieri
c9d2c73706 Simplify the definition of \mathsym by using the package relsize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25042 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 04:46:50 +00:00
Enrico Forestieri
9aa6b8a8aa Allow boldface and font size changing commands for unicode symbols in math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25030 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 01:10:59 +00:00
André Pönitz
7f678a39cd fix my color cache "improvements"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25029 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 22:39:52 +00:00
Enrico Forestieri
a694de895e Fix bug 3938
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25028 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 20:54:50 +00:00
Jürgen Spitzmüller
5b72bafdc8 * LyXAction.cpp:
- small clarification in the doxy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25027 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 13:34:50 +00:00
Pavel Sanda
daec6dc0be One more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 12:28:16 +00:00
Pavel Sanda
f803442229 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25022 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 10:07:09 +00:00
Pavel Sanda
7d4c55677c Remove client/debug.* since they are not used anymore.
Moreover they cause problems wrt make dist.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25021 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 23:45:52 +00:00
Pavel Sanda
fe1d23c7af * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25020 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 23:10:56 +00:00
Richard Heck
2a47858dda Fix remaining issues with InsetSpace. The identifier "Space" used in the .lyx
file has been changed to "space" to match the identifier used for the inset in
Inset.cpp and for the dialog in GuiView.cpp.

In future, we will want to get a similar uniformity elsewhere: The identifier
used in the LyX file should match the one used as inset identifier. The easy
way to do this, in the code, is to have insets write themselves this way:
	os << insetName(lyxCode()) << " ";
rather than at present:
	os << "space ";
Similar things could then happen elsewhere. E.g., if the dialog names are in
sync with the inset names, then we could do something like:
	hideDialogs(insetName(lyxCode()), this);
rather than
	hideDialogs("space", this);
and perhaps even put that into the Inset destructor rather than have specific
versions in each inset---with a test for whether there is such a dialog, of
course.

But this is all for later.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25016 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 15:38:43 +00:00
Richard Heck
afbc6bd2b9 Fix some of the InsetSpace problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25014 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 15:18:13 +00:00
Abdelrazak Younes
ebcc4db6de Add list of branches.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25011 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 13:59:29 +00:00
Abdelrazak Younes
8d93f5173f forgot that one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25009 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:23:15 +00:00
Abdelrazak Younes
9558962c4f Reset the focus on the work area after using on any navigator gui control.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25008 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 12:13:42 +00:00
Abdelrazak Younes
1d3fcde7f7 Code simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25006 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:59:57 +00:00
Abdelrazak Younes
655f696612 set the focus on the work area after clicking on a navigator item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25005 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 11:33:24 +00:00
Jürgen Spitzmüller
48e6184e84 * InsetSpace.cpp:
- brace/arrowfill drawing cosmetics, by Helge.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25002 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-30 09:31:06 +00:00
Pavel Sanda
2b8c5bd406 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25001 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 23:11:06 +00:00
André Pönitz
2e968d0661 next try
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 17:57:57 +00:00
Richard Heck
77ed747114 FuncStatus::enabled(bool) --> FuncStatus::setEnabled(bool)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 15:14:00 +00:00
Jürgen Spitzmüller
fb69a2e3e4 * GuiErrorList.{cpp,h}:
- Fix error navigation with the keyboard (bug 4895).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 12:37:22 +00:00
Pavel Sanda
89e93deea2 one string more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24995 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 11:54:29 +00:00
Abdelrazak Younes
cc614c4664 remove invalid comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24993 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 11:25:01 +00:00
Pavel Sanda
f447ef3395 Some strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24992 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 11:24:42 +00:00
Pavel Sanda
e2128c434c typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24991 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 09:47:06 +00:00
Pavel Sanda
485ddc2243 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24990 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 09:40:47 +00:00
Stefan Schimanski
3c591515e9 * enabled() is the getter, enabled(bool) is the setter method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24989 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 08:09:58 +00:00
Abdelrazak Younes
1e109a2a3b small updates.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24980 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 16:08:14 +00:00
Richard Heck
8921a18a89 Add LFUN_BRANCH_ACTIVATE and LFUN_BRANCH_DEACTIVATE, fixing bug 4341.
These have been added to BufferView::dispatch() and BufferView::getStatus() for now. Shortly, we'll be making wider use of Buffer::dispatch() and introducing Buffer::getStatus() and moving these and some other LFUNs there.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24979 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 16:02:09 +00:00
Abdelrazak Younes
5254716219 GuiToolbar::fill(): only once.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24978 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 10:30:25 +00:00
Abdelrazak Younes
15b42ccd4a startup optimisation: delay toolbar filling until it is shown on screen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24977 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 10:26:03 +00:00
Richard Heck
2ce7c41f03 Fix bug 4097: Give LyX an intelligent return value on file load errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24976 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-28 00:25:42 +00:00
Pavel Sanda
fcf458adcd Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 22:17:01 +00:00
Pavel Sanda
e850bb99be * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 22:14:03 +00:00
Richard Heck
317432f315 Branches can use any layout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 19:25:57 +00:00
Richard Heck
c3f7bc6a43 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24968 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 19:00:42 +00:00
Richard Heck
32f1dce79a Simplify things just a little bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 18:57:16 +00:00
Abdelrazak Younes
891cfdda68 bug fix with minibuffer focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 17:29:36 +00:00
Abdelrazak Younes
7e127a496b fix focus problem with minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 16:15:56 +00:00
Abdelrazak Younes
af442b7369 fullscreen tweaking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:30:40 +00:00
Abdelrazak Younes
57fb699944 Temptatively fix fullscreen problems on X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24960 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 13:16:50 +00:00
Abdelrazak Younes
a2db0e8ed4 Fix crash with multiple windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24959 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:33:06 +00:00
Pavel Sanda
cd1cc0b647 Move graphics code from class to namespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24958 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:06:34 +00:00
Abdelrazak Younes
5c0c53ccf8 Switch off fullscreen before closing a window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 12:01:50 +00:00
Pavel Sanda
0b5323587f Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:47:50 +00:00
Abdelrazak Younes
1c7f411c10 save/restore toolbars state when toggling fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:34:59 +00:00
Abdelrazak Younes
7bb8a5f183 Re-engineer the toolbar support code:
- We now rely more upon Qt features,
- the initial toolbar positioning defined in "lib/ui/default.ui" is now only used if there is no session or if session handling is disabled,
- The session saving/restoring is window dependent.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-27 11:15:17 +00:00
Pavel Sanda
83b74cc14d * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24951 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 19:36:29 +00:00
Pavel Sanda
0e15b3c036 Oops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 19:19:56 +00:00
Pavel Sanda
94ce1baddf Change description.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24949 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 19:16:41 +00:00
Pavel Sanda
db578f0b98 Add FIXMEs wrt unicode.
http://thread.gmane.org/gmane.editors.lyx.devel/106763/focus=106769



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 18:37:42 +00:00
Pavel Sanda
5b99af2237 Fix button enabling for graphics input.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 17:56:48 +00:00
Abdelrazak Younes
114f9755ec Mac compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24944 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 13:43:35 +00:00
Jean-Marc Lasgouttes
050ec93722 remove some useless workarounds in getStatus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 10:23:07 +00:00
Jean-Marc Lasgouttes
703eca7670 make display of group list only depend on existence of groups; move the addition of a separator to the ui file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24941 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 09:33:08 +00:00
Jean-Marc Lasgouttes
a94c091d9d move handling of LFUN_SET_GRAPHICS_GROUP status where it belongs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-26 09:08:30 +00:00
Uwe Stöhr
06e0a5df20 InsetTabular.cpp: fix the logic when \linebreaks are allowed in table cells, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4839
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 21:14:36 +00:00
Jean-Marc Lasgouttes
5a67cddfe8 Note to self: `!' is not the complement-to-one operator...
This allows me to revert a 3 years old commit from Juergen that I never
managed to understand before.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 21:01:27 +00:00
Jürgen Spitzmüller
eaeadeded7 * GuiPrefs.cpp:
- translate Formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 09:42:41 +00:00
Abdelrazak Younes
033c3df44c a bunch of toolbar related renaming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24931 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 08:30:06 +00:00
Peter Kümmel
dcd8650998 cleanup export of mime type strings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 07:49:16 +00:00
Abdelrazak Younes
4d188198ba Fix MSVC link error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24929 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 07:22:45 +00:00
Peter Kümmel
3ddfbb8cc0 define mime strings at one place only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 22:04:58 +00:00
Peter Kümmel
6abce3ec85 remove stupid windows defines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 21:58:56 +00:00
Pavel Sanda
caf98f4139 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 17:12:38 +00:00
Abdelrazak Younes
8a7c802ab0 Introduce docstring_list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 10:15:52 +00:00
Abdelrazak Younes
f46e57afa0 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24923 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:51:17 +00:00
Abdelrazak Younes
ebdd3bc0a4 Get rid of GuiApplication::readMenus().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24922 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:32:50 +00:00
Abdelrazak Younes
145585dc18 First step towards fixing bug 4588: move the ui file reading and the ToolbarBackend to the frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24921 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 09:28:05 +00:00
André Pönitz
bbb9cb65e7 simplify color cache code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 20:29:48 +00:00
André Pönitz
225e9e5547 slightly more compact code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24918 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 18:09:40 +00:00
Pavel Sanda
107eea9c2b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 14:49:38 +00:00
Richard Heck
935b568c5c Compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24915 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 14:30:28 +00:00
Abdelrazak Younes
574c3ea073 Make sure the temp path is a directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24914 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 14:22:59 +00:00
Abdelrazak Younes
0d71b51796 I forgot about the has trailing suffix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24913 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 13:59:53 +00:00
Abdelrazak Younes
750b88f23c Hopefully fix client following boost::filesystem removal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24912 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 13:44:17 +00:00
Jean-Marc Lasgouttes
e3fb29a66c remove annoying debug information
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24911 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 13:34:16 +00:00
Abdelrazak Younes
20b7a31051 Potential bugfix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24910 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 12:16:44 +00:00
Pavel Sanda
2e1cd6b575 Doxy - add similar, some reodering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24908 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:36:06 +00:00
Abdelrazak Younes
5d32aace21 Potential bug fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24907 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:16:23 +00:00
Abdelrazak Younes
85d944702f Get rid of GuiApplication::viewCount().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24906 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 11:08:12 +00:00
Abdelrazak Younes
26e8409172 simplify GuiApplication::unregisterView().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24905 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:54:34 +00:00
Abdelrazak Younes
d2a96bcdc3 Get rid of GuiApplication::view_ids_
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:45:55 +00:00
Pavel Sanda
8118cc08b5 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24903 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 10:19:12 +00:00
Abdelrazak Younes
9f5daec59a * Application: change the signature of getStatus() to reflect the one of GuiView.
* LyXFunc::getStatus(): properly use Application::getStatus()
* LFUN_SET_COLOR: transfer to GuiApplication (and get rid of Application::updateColor()).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24900 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 09:53:27 +00:00
Pavel Sanda
5924ca2831 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 09:32:49 +00:00
Abdelrazak Younes
6186965651 Get rid of Application::initGlobalMenu().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24896 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 08:57:41 +00:00
Abdelrazak Younes
f45523aa7a Pimpl stuff in GuiApplication.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 08:43:07 +00:00
Abdelrazak Younes
a0ec412cd4 - Move as much platform specific stuff as possible to GuiApplication.cpp
- introduce GuiApplication::Private


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-23 07:52:39 +00:00
Pavel Sanda
db8afd2720 The purpose prize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24893 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 23:34:54 +00:00
Abdelrazak Younes
0c6940f5ca Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4650
This bug dates back to my cleanup of the Paragraph class; amazing that nobody noticed it before.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24891 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 22:04:38 +00:00
Enrico Forestieri
44e18e9107 Disable a socket notifier when unregistering it.
This avoids the following Qt warnings when performing a reverse dvi search:

QSocketNotifier: Multiple socket notifiers for same socket 9 and type Read
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...

occurring when using the lyxserver or the lyxclient, respectively.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24890 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 21:08:34 +00:00
Pavel Sanda
6e40d48208 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24889 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 19:50:30 +00:00
Abdelrazak Younes
7b2f6ae6ed fix http://bugzilla.lyx.org/show_bug.cgi?id=4870
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24888 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:20:43 +00:00
Jean-Marc Lasgouttes
b5d3d3b722 * frontends/LyXView.h:
* frontends/qt4/GuiView.h:
	* frontends/qt4/GuiView.cpp (getStatus): change signature to return a 
	bool indicating whether the view knows something about the lfun.

	* LyXFunc.cpp (getStatus): remove knowledge about what lfuns are 
	handled in view. Call LyXView::getStatus() when nothing is known at
	LyXFunc level.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24887 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 15:01:36 +00:00
Richard Heck
d216aacabf Fix bug 4712. Forgot the case where we need to reset layout from empty to default.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24884 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 14:06:23 +00:00
Richard Heck
3e28f0fc57 Add some constness where we can.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24883 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 14:02:35 +00:00
Abdelrazak Younes
eb28cb8755 Unify Paragraph::asString() methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24882 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 14:01:33 +00:00
Richard Heck
0dea68828b Warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 13:52:18 +00:00
Abdelrazak Younes
771e0ba1a3 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4641
SVN blames Jürgen for this code (rev 22325).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24879 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 10:44:28 +00:00
Abdelrazak Younes
5398dce8ae forward port rev 24877. Even if trunk is not affected by 4857, it is safer to only display printable characters in the toc items and not go inside insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24878 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 10:14:20 +00:00
Abdelrazak Younes
956b2cd11d Revert 24816, this didn't not work with the minibuffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24875 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 08:25:17 +00:00
Pavel Sanda
0e179cb5f1 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24874 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-21 00:43:51 +00:00
Abdelrazak Younes
e2af27e61d Fix http://bugzilla.lyx.org/show_bug.cgi?id=4607
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24872 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 13:32:04 +00:00
Jean-Marc Lasgouttes
09093f41d8 * insets/InsetQuotes.cpp (displayString): reenable quote display code
(but use a table-based solution instead of the old code).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 13:21:28 +00:00
Abdelrazak Younes
3e92432049 get rid of useless debug output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24870 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 13:13:48 +00:00
Abdelrazak Younes
034cccd008 - Fix crash with clicking on second Listings iten in Navigator (in EmbeddedObject.lyx).
- Fix http://bugzilla.lyx.org/show_bug.cgi?id=4613


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 13:09:35 +00:00
Abdelrazak Younes
641ae02e37 Delay the Toc update of child documents until we update the master one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 12:58:54 +00:00
Abdelrazak Younes
c1de549560 revert accidental commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:58:34 +00:00
Abdelrazak Younes
b630a55d77 Fix caption numbering of child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:54:23 +00:00
Abdelrazak Younes
be310e33ca Fix label numbering of child documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24865 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:25:29 +00:00
Abdelrazak Younes
31517754ad fix MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24864 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 11:24:12 +00:00
Jürgen Spitzmüller
bcf3cbef4f * InsetCitation:
- use valid citation commands only (bug 4876)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-20 07:22:55 +00:00
André Pönitz
de6483b8ab cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 20:52:24 +00:00
André Pönitz
8bb1c2fc78 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 19:58:05 +00:00
Jürgen Spitzmüller
bcb835953e * src/frontends/qt4/GuiSendto.cpp:
- use translated formats.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 10:12:27 +00:00
Jürgen Spitzmüller
21bd7671ec *** fix bug 2488 (make dynamic formats in menus translatable) ***
* po/lyx_pot.py:
	- new method formats_l10n that parses configure.py for file formats and shortcuts
* po/Makefile.in.in:
* development/scons/SConstruct:
	- call formats_l10n on po update

* src/frontends/qt4/Menus.cpp:
	- handle translated formats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24833 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-19 09:33:53 +00:00
Abdelrazak Younes
69dd2ac3a7 Ensure the focus is returned to the editing area after a dispatch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24816 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 13:59:52 +00:00
Abdelrazak Younes
d1bc775b06 Fix cursor positioning bug in TocBackend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24815 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 13:50:49 +00:00
Pavel Sanda
98d3ca8bd8 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24814 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-18 12:14:07 +00:00
Abdelrazak Younes
ef3b045378 add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24813 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:08:09 +00:00
Abdelrazak Younes
0d61832d22 simplify navigator. Get rid of the selectionModel() based navigation as this was too buggy. The tree now react to 'clicked' and activated signal. Changing a selection with the keyboard won't trigger a cursor jump, the user will have to hit 'Enter' for that. This is a ui change that probably needs to be documented (if it was already).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24812 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 17:03:53 +00:00
Uwe Stöhr
fdea53d34b tex2lyx/preamble.cpp: handle also onecolumn and oneside as discussed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24811 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 15:11:41 +00:00
Pavel Sanda
77740fc1f0 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-17 13:49:29 +00:00
Uwe Stöhr
8c8a2794b3 tex2lyx/preamble.cpp: support for the \geometry settings and the paper orientation, fixes bug 4826.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 20:25:44 +00:00
Pavel Sanda
a0663bc825 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24807 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 18:28:08 +00:00
Pavel Sanda
a985b079de Add dist file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24806 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 18:06:01 +00:00
Pavel Sanda
2d6b03f487 Resurrect make check from dead.
LASSERT was pulling dependency hell for the test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 17:14:42 +00:00
Abdelrazak Younes
4573abd0f1 * TocBackend::item(): fix toc navigation bug by using DocIterator instead of ParConstIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24804 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 15:06:26 +00:00
Pavel Sanda
ab47d8188e make check in src/support: only absolute path can be reasonably tested now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24803 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 14:54:35 +00:00
Abdelrazak Younes
e8f819f85b Compil fix for Qt4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 14:30:46 +00:00
Abdelrazak Younes
fb212b9112 Factorize out some code between TocModel.cpp and Menus.cpp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24801 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 13:49:49 +00:00
Abdelrazak Younes
fb31797d13 reverse Toc searching: use DocIterator instead of ParconsIterator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24800 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 13:11:43 +00:00
Abdelrazak Younes
6fd7c7c973 doxy new LFUN_PARAGRAPH_GOTO parameter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24799 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 12:55:19 +00:00
Abdelrazak Younes
2dfc84a22c More accurate toc navigation (LFUN_PARAGRAPH_GOTO).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24798 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 12:48:13 +00:00
Abdelrazak Younes
fc22b68e37 Menubar autohiding: add some more comments and hide it a bit earlier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24797 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 08:11:37 +00:00
Pavel Sanda
513c880f8d Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24796 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 06:35:31 +00:00
Abdelrazak Younes
eadef99854 add a hack to autohide the menubar in fullscreen mode for LyX specific shortcuts beginning with Alt.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24795 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:55:00 +00:00
Abdelrazak Younes
34dc63da87 menubar autoshowing: go back to r24786
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24794 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:26:31 +00:00
Uwe Stöhr
001c77d65b tex2lyx/preamble.cpp: cosmetics again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24793 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 23:02:53 +00:00
Uwe Stöhr
b2b4cb1fe3 BufferParams.cpp: fix the order for page sizes, fileformat change is needed, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4868
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 22:54:13 +00:00
Uwe Stöhr
f185e01c68 - tex2lyx\box-color-size-space-align.tex: add preamble options to test the geometry settings
- tey2lyx\test-structure.tex: add paper size document class option for testing

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24791 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 22:48:54 +00:00
Uwe Stöhr
34bdb2151b tex2lyx/preamble.cpp: cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24790 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 21:09:53 +00:00
Uwe Stöhr
2546bde017 tex2lyx/preamble.cpp: support for the document class options twocolumn and twoside, fixes bug 4867
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 21:05:25 +00:00
Abdelrazak Younes
e5b6e5c58b Restoring autohiding and showing of menubar upon Pavel's request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 11:02:23 +00:00
Abdelrazak Younes
40f50f2a94 - using Alt key in fullscreen mode: don't autoshow the menubar but popup directly relevant menu if possible. This code will I guess not work on Mac. The solution is I think for GlobalMenuBar to subclass MenuBar instead of QMenuBar.
- remove autohide of menu and status bar.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 10:18:49 +00:00
Abdelrazak Younes
5691d8d8ce - Don't popup the menubar if only Alt is pressed.
- add a FIXME wrt LyX own shortcuts using Alt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:42:28 +00:00
Abdelrazak Younes
a72c205638 Autoshow and autohide menubar while in fullscreen mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 09:14:09 +00:00
Abdelrazak Younes
3dc6a5f43c rework a bit the document dialog so that it works more or less fine without any open document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 08:41:17 +00:00
Abdelrazak Younes
ed4ea2cb97 bug 4652: better fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24781 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 08:06:32 +00:00
Abdelrazak Younes
5b4edfeb2c Fix http://bugzilla.lyx.org/show_bug.cgi?id=4652
This was a copy&paste error on my side I guess.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24780 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 07:50:37 +00:00
Abdelrazak Younes
80a3256114 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4585
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 16:38:15 +00:00
Abdelrazak Younes
2b9fea2db3 Cosmetics and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24771 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 15:37:20 +00:00
Abdelrazak Younes
fb8914b9ca cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24770 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 15:24:36 +00:00
Abdelrazak Younes
ffc1002291 simplify selected text painting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24769 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 15:16:10 +00:00
Abdelrazak Younes
2cf301033e Add session to citation dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 14:37:33 +00:00
Abdelrazak Younes
c5c65daee4 Add session to view-source dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24767 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 14:24:55 +00:00
Abdelrazak Younes
a7b54c0d12 Add session to paragraph dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24766 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 14:08:58 +00:00
Abdelrazak Younes
c9353904ce Add session to character dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 12:03:12 +00:00
Abdelrazak Younes
074f1bee36 Fix locale aware language sorting in character (text style) dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 11:27:33 +00:00
Pavel Sanda
42a70d2559 Fix gcc compilation and warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 11:01:27 +00:00
Abdelrazak Younes
2e7713306c white space.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24759 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 10:36:47 +00:00
Abdelrazak Younes
09a3be216e Hopefully fix locale aware language sorting in document and prefs dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24758 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-14 10:34:19 +00:00
Abdelrazak Younes
c944438338 clearing a map of pointer is not needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 22:32:38 +00:00
Abdelrazak Younes
58a9ab8f67 Add some initialisations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24755 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 22:31:33 +00:00
Abdelrazak Younes
42d79d543b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4860
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 21:28:04 +00:00
Uwe Stöhr
2a18b2a5cc BufferParams.cpp: follow Jürgen's advice to load subfig after \PassOptionsToPackage
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24753 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 20:46:49 +00:00
Jean-Marc Lasgouttes
d16ca201e6 Fix Settings entry for space insets.
* inset/inset.cpp (doDispatch, getStatus): handle LFUN_INSET_TOGGLE.

	* BufferView.cpp (getStatus): cleanup
	(dispatch): do not call Inset::edit() explicitely.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 14:44:53 +00:00
Pavel Sanda
42d71d632f getStatus for LFUN_SET_GRAPHICS_GROUP so context menu looks nicer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24751 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 14:26:47 +00:00
Abdelrazak Younes
1e51e87f68 Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator. The idea is to have more accurate navigation in the paragraph. But this doesn't work yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24747 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 08:23:44 +00:00
Uwe Stöhr
842587a1a6 BufferParams.cpp: load the subfig package conditionally to make it work with the caption package
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24746 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-13 01:23:50 +00:00
Uwe Stöhr
ffe427cfdd tex2lyx/text.cpp: only whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-11 14:13:23 +00:00
Enrico Forestieri
c4bcdf837a Make it less ugly and safer, as when adding to the preamble one doesn't
have to check whether \makeatletter has already been added or not.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24713 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-10 22:35:17 +00:00
Pavel Sanda
a476534342 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-10 17:24:48 +00:00
Pavel Sanda
8b46b81f32 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-10 14:36:44 +00:00
Uwe Stöhr
bbd5ddeff3 tex2lyx/text.cpp: support for the centering environment used to center e.g. images
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-10 00:01:46 +00:00
Dov Feldstern
91f8368696 Doxy for word-level cursor movement lfuns.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 14:02:05 +00:00
Jürgen Spitzmüller
71f8cee976 * src/InsetIndex: further corrections od LaTeX output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 09:50:18 +00:00
Jürgen Spitzmüller
7d5fd32778 * lib/layouts/apa.layout:
- Use styleguide-conforming headings in the APA layout (bug 4827).

* src/Buffer.cpp:
	- file format change to 333.

* lib/lyx2lyx/lyx_1_6.py:
	- convert obsoleted layouts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 08:57:32 +00:00
Stefan Schimanski
7fc89d34da * compare locale aware
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24688 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-09 01:16:49 +00:00
Stefan Schimanski
e0edc21111 * no .h for Qt headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 15:08:46 +00:00
Stefan Schimanski
419c7ed481 * For gcc to know about QStandardItemModel < QAbstractItemModel we need this header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 14:40:01 +00:00
Martin Vermeer
e2a7735e0f Move (de)activate out of harms way
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 10:19:36 +00:00
Abdelrazak Younes
19028adf55 gcc compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:44:31 +00:00
Jürgen Spitzmüller
7bf20758b5 fix bug 4837.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24682 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:43:27 +00:00
Abdelrazak Younes
73360489e9 sort the languages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24681 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:31:00 +00:00
Abdelrazak Younes
59124528ac use GuiApplication::languageModel() in GuiDocument.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:18:45 +00:00
Abdelrazak Younes
207470d385 Introduce GuiApplication::languageModel() and use it in GuiPrefs.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:03:38 +00:00
Abdelrazak Younes
acb78e35f1 Automatically update the dialog when the autoApply checkbox is toggled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24676 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 23:56:48 +00:00
Pavel Sanda
01ceec9cfe Codingstyle.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 23:40:59 +00:00
Abdelrazak Younes
63897c2959 Fix part of bug 4836
http://bugzilla.lyx.org/show_bug.cgi?id=4836

reset_language was not correctly handled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 23:33:56 +00:00
Uwe Stöhr
2b69b18cdd tex2lyx/text.cpp: fix bug 20
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 22:52:56 +00:00
Abdelrazak Younes
fbb8c063ec move languageData() out of qt_helpers.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 22:42:44 +00:00
Jürgen Spitzmüller
9db0f4a83c gcc compile fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 21:05:04 +00:00
Richard Heck
b90b295e22 Partially fix an annoying hover problem, viz: InsetCollapsable buttons don't get unhovered' if you collapse them (via Ctrl-I) when the mouse is inside the inset. I often seem to end up with several hovered' buttons.
There is probably a better solution somewhere, but it's not obvious what it is, and this solution doesn't do anything terrible. It leaves unaddressed the fact that the button does not get `hovered' if you open an inset via Ctrl-I, and then the mouse ends up inside it, and now the button will get `unhovered' whenver you collapse it, even if the mouse ends up over the button. But (i) my attempts to deal with these cases failed, (ii) they're not very annoying, (iii) they get `fixed' as soon as you move the mouse, and (iv) I'm not sure how complicated it's worth making this.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24662 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 19:20:01 +00:00
Abdelrazak Younes
9d23d76c8e Revamp of the character dialog:
- many simplification all over the place.
- improvement to the "Immediate apply" feature.

AFAICS all functionality is restored but please test and report.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 18:53:48 +00:00
Abdelrazak Younes
281487872f fix http://bugzilla.lyx.org/show_bug.cgi?id=4811
wrong default language in character dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 15:41:12 +00:00
Abdelrazak Younes
f89b05ebc2 header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24658 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 14:45:49 +00:00
Pavel Sanda
c32f7c377e Move code to more appropriate place, cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24657 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 14:44:58 +00:00
Jean-Marc Lasgouttes
4b07e1ea92 Fix bug 4806
* Context.cpp (begin_layout): make it a (private) method, and output
	the extra stuff here.
	(add_par_extra_stuff): this is used for stuff that is only for next 
	paragraph (like extra_stuff used to be); add_extra_stuff is now for 
	code that is output for all paragraphs in the context.

	* text.cpp: update to new Context methods. Every user of add_extra_stuff
	uses add_par_extra_stuff, except alignment (which has to be repeated
	to fix bug 4806).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 13:55:03 +00:00
Abdelrazak Younes
61507ecf01 fix Bug 4119: LFUN accent-special-caron is obsolete
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 11:17:43 +00:00
Edwin Leuven
401ec4b50b no vertical lines with booktabs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24654 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 09:37:22 +00:00
Abdelrazak Younes
f7feff9fb3 english_language was not used at all.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24653 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 08:55:25 +00:00
Uwe Stöhr
d50354fc5b tex2lyx/box-color-size-space-align.tex: 2 small changes for better output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24649 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 00:29:44 +00:00
Pavel Sanda
13e42a8c73 Introduce groups for graphics insets. That includes:
- GuiGraphics dialog field for setup new groups.
- Graphics context menu for assigning to certain group.
- Fileformat change for groupId field in Graphics inset.
- Undo mechanism added to inset-apply, for catching changes
  in preference dialog.
- Qt designer 4.4 used now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 21:13:09 +00:00
Abdelrazak Younes
99b12faae4 Fix 4603 for GuiGraphics. I guess most GuiDialog based dialog need fixing...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24643 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 15:18:50 +00:00
Abdelrazak Younes
c14295fbe3 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4603
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 14:53:54 +00:00
Abdelrazak Younes
44c3b0e07f Some more house cleaning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24641 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 14:33:38 +00:00
José Matox
1797f5218b endl is defined in ostream, iomanip is not enough (it matters for gcc 4.3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 14:29:06 +00:00
Jean-Marc Lasgouttes
048ae6f2b8 silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 14:11:20 +00:00
Abdelrazak Younes
39276a1254 A bit of house cleaning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 13:50:37 +00:00
Pavel Sanda
2e7c94ee0f Change naming upon the user request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 13:47:20 +00:00
Edwin Leuven
cf5b793f18 fix http://bugzilla.lyx.org/show_bug.cgi?id=4778
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 11:24:54 +00:00
Jean-Marc Lasgouttes
d954056cc2 unbreak compilation (part 4)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 10:42:26 +00:00
Jean-Marc Lasgouttes
e5d9a230db unbreak compilation (part 3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 10:37:25 +00:00
Jean-Marc Lasgouttes
ecb715d682 unbreak compilation (part 2)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 10:36:32 +00:00
Jean-Marc Lasgouttes
265e047484 a bit of compilation unbreaking
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 10:22:25 +00:00
Pavel Sanda
14257be476 Squelch annoying debug dump.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 09:55:12 +00:00
Abdelrazak Younes
b90ec7288d remove unneeded includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 06:53:44 +00:00
Abdelrazak Younes
45bc27809b remove unneeded includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24628 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 06:48:38 +00:00
Jürgen Spitzmüller
b64a7173bc * InsetMathHull:
- fix rest of bug 518.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24627 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 06:41:08 +00:00
Uwe Stöhr
35b677045e tex2lyx/test-structure.tex: add an appendix
tex2lyx/test-insets.tex: add an unindented paragraph

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 22:45:22 +00:00
Jürgen Spitzmüller
2e60364941 * InsetSpace drawing cosmetics, from Helge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 17:58:16 +00:00
Pavel Sanda
e8b84b9cfb from_utf8(fromqstr -> qstring_to_ucs4 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 17:04:02 +00:00
Abdelrazak Younes
3a62e23018 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4821
Allow LFUN_INSET_SETTINGS with enclosing inset if this particular dialog has been explicitely requested.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 15:34:10 +00:00
Pavel Sanda
f39515acac * Comment ( http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg139671.html ).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 15:22:59 +00:00
Jürgen Spitzmüller
adc9429855 Correctly handle quotation marks in command preferences (bug 2016):
* src/LyXRC.cpp:
	- new helper function to escape commands
	- parse escaped commands

* src/Lexer.{cpp,h}:
	- whitespace/typos.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24613 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 13:53:28 +00:00
Pavel Sanda
6ecf29ff1c * Doxy ( http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg139645.html ).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 13:28:16 +00:00
Abdelrazak Younes
592d53e065 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4771
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 06:56:43 +00:00
Pavel Sanda
4fa442d76b Fix monolithic builds for tarballs.
(make dist generated empty qt4 mono file).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24605 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 22:43:32 +00:00
Dov Feldstern
553d896bb6 visual mode for bidi cursor movement --- at the word-at-a-time level
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24602 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 20:22:19 +00:00
Dov Feldstern
ffda0d89b4 refactoring visual cursor movement functions
Specifically, moved the functions which actually move left or right from Text
into Cursor, and changed the semantics so that they now return whether or not
the cursor has moved. The functions in Text now use the new functions in Cursor.

This change is being made in preparation of the Word-level visual movement.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 20:17:59 +00:00
Edwin Leuven
832bbc4329 fix: http://bugzilla.lyx.org/show_bug.cgi?id=4688
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 07:51:50 +00:00
Abdelrazak Younes
fc12716a97 We don't want the document dialog to be reset for each new paragraph.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24597 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 07:50:00 +00:00
Abdelrazak Younes
a04284c2b8 Fix http://bugzilla.lyx.org/show_bug.cgi?id=4816
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-03 08:24:05 +00:00
Abdelrazak Younes
d8a3f71d4c fix http://bugzilla.lyx.org/show_bug.cgi?id=4815
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-03 07:56:07 +00:00
Abdelrazak Younes
7c8a7ef67c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24590 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 22:07:51 +00:00
Abdelrazak Younes
b9c526aaa2 * Delegates.h: clarify some comments.
* Dialog: get rid of updateData()


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 21:38:23 +00:00
Abdelrazak Younes
32fac28acf Simplify dialogs updating.
* GuiView::updateDialogs(): merge with GuiView::checkStatus()

* LyXFunc::processKeySym(): remove call to GuiView::restartCursor(), this has already been called in the call to dispatch() at the end of the methof.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 20:58:25 +00:00
Abdelrazak Younes
3f2d9a381d get rid of a superfluous Dialog::updateView().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24587 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 17:31:58 +00:00
Abdelrazak Younes
51fa58f188 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24586 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 16:59:39 +00:00
Jürgen Spitzmüller
c149fb72e0 * Color.cpp:
- use hex names for color_addedtext and color_deletedtext to prevent an assertion (bug 4814).

This has already been done for other colors. However, maybe we should rather separate x11 color names and hex names.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24585 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 16:24:50 +00:00
Jürgen Spitzmüller
f89c7710b7 * TocModel.h: compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24584 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 15:54:41 +00:00
Abdelrazak Younes
ffa722e0b7 Cleanup Toc dialog and GuiView interaction. The toc models are now part of GuiView. The TocWidget is just a view of this model.
* GuiView::tocModel(): new method to access the toc models.
* TocModels: new class with code transferred from GuiToc.
* TocWidget: only needs a TocModels reference.

Thoughts:
- We should find a way to get rid of GuiToc.{c,h}
- tocModels() should perhaps be transferred to GuiWorkArea instead of GuiView in order to have Buffer dependent navigators.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-02 12:09:51 +00:00
Richard Heck
4a22588963 Corrections, thanks to Bernhard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24570 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 21:04:49 +00:00
Jürgen Spitzmüller
9ea014431e formatting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24569 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 20:22:48 +00:00
Jürgen Spitzmüller
95767b840b support for rightarrowfill, leftarrowfill, upbracefill, downbracefill, by Helge Hafting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24567 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 20:11:57 +00:00
Enrico Forestieri
1fa1e7c66b Avoid a crash on exit (Mac and Windows).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24566 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 18:23:46 +00:00
Richard Heck
62288ff923 That one isn't unexpected.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24563 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 16:02:20 +00:00
Richard Heck
57008aa865 Cosmetics, and some error messages from the BibTeX parser.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 15:57:53 +00:00
Jean-Marc Lasgouttes
66837f5af5 * BufferView.cpp (getStatus): fix NEXT_INSET(TOGGLE|MODIFY) in order
to make context menus work.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 13:03:19 +00:00
Jean-Marc Lasgouttes
9b4a26a252 rename assert.h to lassert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
Jürgen Spitzmüller
93cc3b9416 revert some new features so that tex2lyx outputs format 247 proper again.
The reverted features could (and should) be reapplied as soon as tex2lyx can output unicode (bug 4379).

The patch of this change can be found here:
http://bugzilla.lyx.org/show_bug.cgi?id=4379

and can be applied with -R in this case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 18:11:46 +00:00
Stefan Schimanski
06f9763b45 * only use path to decide whether a path segment "helped" to make the
string unique in the tabbar. Otherwise the "..." give strange
  behaviour because foo/.../bla.lyx is different from foo/bla.lyx.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 15:45:06 +00:00
Stefan Schimanski
48999ee671 * Some more clever elide mode for the LyX buffer tabs. In trunk
currently the whole path is (possibly with some unmotivated ... in
  the middle) used which is usually far too long.

  The algorithm implemented here will start with absolute paths. From
  left to right path segments are added to the display string if they
  help to make the display strings more unique. Otherwise nothing is
  added, or if some middle path segments are omitted otherwise, three
  dots ... are used.

  The result is that we get just the base filename without extension if
  they are unique in the tabbar.

  The patch is open for discussion. If there is demand we can create
  yet another preference option to get back the old behaviour.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 15:44:07 +00:00
Stefan Schimanski
2090c47bfa * in the very uncommon case the header is inserted into plain C code... The cleaner solution maybe would be to rename assert to lassert.h to avoid the clash with the system assert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 14:56:27 +00:00
Edwin Leuven
6226f89571 fix leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 13:57:07 +00:00
Enrico Forestieri
8b474deb39 Don't try to build the client on platforms where it is not supported.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 09:56:55 +00:00
Uwe Stöhr
b84e0c158d tex2lyx/text.cpp: cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 00:12:56 +00:00
Uwe Stöhr
455d441029 - tex2lyx/text.cpp: correct font size handling because font size switches don't affect section headings, fixes bug 4807
- box-color-size-space-align.tex: add testcase for the above fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24550 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 00:03:55 +00:00
Uwe Stöhr
43ef7962bb box-color-sizes-space-align.tex: add testcases for defined horizontal spaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24549 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 22:59:43 +00:00
Uwe Stöhr
f0e4582a0b tex2lyx/text.cpp: support for \hspace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 22:49:10 +00:00
Uwe Stöhr
6363e27250 tex2lyx/text.cpp: \InsetSpace has no begin and end (LyX 1.5 was tolerant to the missing end, LyX 1.6 is correctly not tolerant)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24547 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 22:47:47 +00:00
Richard Heck
38b462fd75 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24546 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 22:30:59 +00:00
Jürgen Spitzmüller
d341c4f446 * src/insets/InsetCollapsable.h:
- exclude insets with latex_language from spell checking (bug 4810).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24543 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 18:49:23 +00:00
Jürgen Spitzmüller
764b5cf859 support for default master document.
file format change.

This is the last feature for today. Promised.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 16:38:56 +00:00
Jürgen Spitzmüller
4f81d0eff7 * Menus.cpp:
- make it work with multiple keys.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24539 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 16:25:54 +00:00
Jürgen Spitzmüller
99f2abf59f dynamic context menu for InsetCitation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:21:55 +00:00
Jürgen Spitzmüller
a585806b3c Implement inset-edit in InsetBibtex and add a context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 15:14:18 +00:00
Jürgen Spitzmüller
951dfe70a7 * InsetBibtex.cpp:
- some more tooltip information.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 13:13:42 +00:00
Jürgen Spitzmüller
b66a83ca8e * GuiBibtex.cpp:
- fix problem with preceeding comma in bibtotoc mode that broke LaTeX output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24534 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 12:57:41 +00:00
Jürgen Spitzmüller
ebf295a245 * InsetBibtex.{cpp,h}:
- add tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 12:48:04 +00:00
Jürgen Spitzmüller
7578832919 Improvements to the External dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 06:19:25 +00:00
Jürgen Spitzmüller
c778f093ea basic context menu for InsetExternal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 05:12:28 +00:00
Jürgen Spitzmüller
74d1f2cb2f * GuiView.{cpp, h}:
- fix compilation (gcc didn't like the string arguments in the header file)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 04:57:31 +00:00
Abdelrazak Younes
bf27334cfa Some dialog consistency work:
* Dialog::updateData(): try to reset the dialog even if there's no Buffer.
* GuiView::updateBufferDependent():
- renamed to updateDialogs()
- don't hide when there's no current work area, try to disable instead.
- now also take care of toolbars and other elements. 
* TocWidget: delay item selection to avoid unwanted node collapsing after setting a new model.

Expect crash and/or assertions for dialogs that are not ready for this non-hiding change. I will fix them iteratively.
There are still too many dialogs updates going on...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 22:24:20 +00:00
Jürgen Spitzmüller
1458cd52b7 * implement "inset-edit" in InsetInclude.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 18:03:21 +00:00
Jürgen Spitzmüller
fa2f8d159b * merge LFUN_EDIT_EXTERNAL and LFUN_EDIT_GRAPHICS to one LFUN_EDIT_INSET (bug 3975)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24526 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 16:20:12 +00:00
Jürgen Spitzmüller
878b3ce315 Implement basic context menu for include insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 15:49:15 +00:00
Jürgen Spitzmüller
fa568e12f0 * move extended tooltips support to InsetCollapsable (fixes bug 3778).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 14:47:07 +00:00
Uwe Stöhr
0d7fe3346f - tex2lyx/test-insets.tex: make it compilable, update the document, and add some testcases
- tex2lyx/box-color-sizes-spacings-alignments.tex: update the document
- tex2lyx/text.cpp: correct some typos

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 13:32:20 +00:00