Commit Graph

12311 Commits

Author SHA1 Message Date
Pavel Sanda
54352badaf * Doxy add.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 19:23:08 +00:00
Pavel Sanda
c2e397cdee Add LFUN_MENUBAR_TOGGLE and LFUN_STATUSBAR_TOGGLE.
This partly solves the bug http://bugzilla.lyx.org/show_bug.cgi?id=4146 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 17:54:04 +00:00
Stefan Schimanski
fae0a30802 * first check if empty, then set the pit. Otherwise we have a segfault before the assert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:26:46 +00:00
Stefan Schimanski
08d9375572 * There are cases where updateLabels is not called because no
paragraph relayout happens (e.g. when inserting a InsetBranch, the
InsetText inside was not processed by any updateLabels call), and
hence the macrocontext is not always set. This should not happen often
in fact. So we update the labels in that case explicitely when we see
an empty macrocontext.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22807 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 11:21:42 +00:00
Abdelrazak Younes
270ca445e5 Tex2lyx Compile fix: use Exception Message instead of frontend::Alert. Richard, please verify that the thrown exceptions are correctly caught by the caller in tex2lyx and in lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22806 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 09:46:48 +00:00
Abdelrazak Younes
27edbfb4c8 shutup warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22805 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-06 09:37:37 +00:00
Richard Heck
a3b3115915 Make right click open minimalistic insets. See bug 4400.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22804 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 23:29:15 +00:00
Richard Heck
8fec5f512d Partially fix bug 4532: http://bugzilla.lyx.org/show_bug.cgi?id=4532.
See in particular comment 6.

We forcibly load stdinsets.inc unless the TextClass declares:
  Provides stdinsets 1
There isn't really any such package, of course. We're just using this
(per a suggestion by JMarc) to say we've loaded relevant info about the
standard insets.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22802 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 22:57:33 +00:00
Richard Heck
2e82ca7198 Tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22793 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 16:20:18 +00:00
Jean-Marc Lasgouttes
049dea1eb1 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:49 +00:00
Jean-Marc Lasgouttes
98104d0e69 silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22791 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 15:16:20 +00:00
Stefan Schimanski
bfd3a964b3 * show anchor paragraph completely if the whole buffer is visible.
We need some better handling of the case when the cursor is in the
very first line, but the line is not completely visible. If the line
is not heigher than the BufferView we should scroll up to show it
completely.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22790 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 14:23:59 +00:00
Abdelrazak Younes
c7a9ddab7a Move debug output to SCROLLING.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22789 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:26:22 +00:00
Stefan Schimanski
4a6a7fbe55 * GCC: "QString is an incomplete type"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22788 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:22:50 +00:00
Stefan Schimanski
ec88eb82f6 * The BufferView sets up its scrollbar data when it first gets its
actual size via a resize event. So make sure the GuiWorkArea also
  updates the GUI scrollbars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22787 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:17:05 +00:00
Stefan Schimanski
0364c6c3cb * Make sure the cursor is completely visible when the BufferView get's its initial size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22786 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:14:53 +00:00
Abdelrazak Younes
3941b00ec7 Transfer forked process checking from GuiWorkArea to GuiApplication. I got rid of the general timer starting/stopping too. Looking a bit deeper I don't think it was necessary. We'll put them again in case it is needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22785 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 13:10:42 +00:00
Abdelrazak Younes
6bb94129d8 Factorize out the way window titles are handled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22784 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 12:43:19 +00:00
Abdelrazak Younes
8c27d557b9 * Dialog.cpp: whitespace
* DialogView: remove cruft.

* GuiDialog: add cruft and don't depend on DialogView as GuiDialog is meant for extinction eventually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:53:31 +00:00
Stefan Schimanski
2f1699747a * Do not keep pointers to data structures around if you don't know
whether the data structure outlives the pointer:

  InsetLayouts are really owned by the corresponding TextClass. So
  keep the TextClass alive by keeping a TextClassPtr around for the
  pointers lifetime. This fixes Bug #4538.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22782 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:34:01 +00:00
Richard Heck
b4c37e82c1 Additional fixes related to disentangling the blinking cursor signal from other signals. Thanks to Abdel for pointing out the need for this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22779 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 00:37:30 +00:00
Abdelrazak Younes
dbfa1a6f46 cleanup DialogView based classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-04 17:06:34 +00:00
Pavel Sanda
1ccb7f1f8b * Doxy.
(I am not a nit-pick, but my scripts are.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22774 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 19:17:31 +00:00
Jürgen Spitzmüller
efaa509f8b * src/LaTeXFeatures.cpp:
- add tipx to simplefeatures. Tipx is a subpackage of tipa.
* lib/unicodesymbols:
	- correct some glyphs, which are included in tipx, not tipa.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22771 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 17:26:46 +00:00
Pavel Sanda
e417336bb2 * Doxy: polish html output #2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22769 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 14:00:18 +00:00
Pavel Sanda
6b651f2ad9 * Doxy: polish html output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22767 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 13:10:53 +00:00
Pavel Sanda
caaf430aec * Doxy tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22766 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 12:40:19 +00:00
Uwe Stöhr
886db92f82 enable the scrlttr 2 class for serial letters:
- file format change
- new example files and an example address database
- remove ugly hack from scrlttr2.layout and fix bug 4529

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22764 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 11:56:44 +00:00
Stefan Schimanski
cf333f5ab4 * Support for graphics pasting (with most code in the frontend's GuiClipboard)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22762 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:43:03 +00:00
Stefan Schimanski
dd714bfce8 * LinkBack support files, now in pure Objective-C (without any Objective-C++ which is not supported by automake)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 10:41:23 +00:00
Richard Heck
d4a87d0dce Some comments about a better way to do things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22760 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 08:51:58 +00:00
Richard Heck
f8e11caef7 Silly mistake.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22759 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 07:46:45 +00:00
Richard Heck
cee09578e6 Cosmetic.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22757 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 00:32:02 +00:00
Richard Heck
122bbf4122 Clarify meaning of argument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22756 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:50:42 +00:00
Richard Heck
86229bd788 Need to go ahead and start this guy....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22755 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:42:05 +00:00
Pavel Sanda
8830667e70 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 23:40:11 +00:00
Abdelrazak Younes
4b2c2f3578 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22750 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 15:48:58 +00:00
Pavel Sanda
65c0ff6e6b Let the cursor blink frequency depend on qt settings.
Move checking of forked processes into independent timer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22749 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-02 03:05:54 +00:00
Bo Peng
4f16565f2e Improve cursor movement around lines ending with break-lines
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22742 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:29:31 +00:00
Jean-Marc Lasgouttes
3f1285aa68 abdel likes short code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:04:59 +00:00
Pavel Sanda
65ba33308e * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:03:55 +00:00
Jean-Marc Lasgouttes
6154a90fba small code simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22736 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:54:40 +00:00
Jean-Marc Lasgouttes
9a7999746d Remove unused macros USE_INCLUDED_STRING and STD_STRING_IS_GOOD
Remove a few unused headers


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22735 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:36:53 +00:00
Jean-Marc Lasgouttes
11bea5a763 Use a set<string> instead of a vecctor<string> for list of features. This
allows to simplify the code to some extent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22734 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:12:04 +00:00
Pavel Sanda
18ee04ae44 * Doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22732 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 00:03:19 +00:00
Pavel Sanda
38a05d5ee3 * Doxy: Unify style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22731 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 23:41:19 +00:00
Dov Feldstern
32fe049333 rewrite comment explaining DocIterator's boundary_
All boundary-related code went through a major rehaul some months ago (mainly
Stefan's work), but this comment was never updated to reflect that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22730 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 22:50:16 +00:00
Dov Feldstern
796092635f Doxy for some cursor movement lfuns.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22729 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 22:42:24 +00:00
Pavel Sanda
997e6c6018 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22724 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 23:23:40 +00:00
Uwe Stöhr
c39dd88087 Makefile.am: adjust for r22717
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 22:25:25 +00:00
Stefan Schimanski
fe348eb8b7 * The gui change for the mouse wheel speed setting. This includes the
renaming of the keyboard preferences pane into a input preferences pane.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22718 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:56 +00:00
Stefan Schimanski
dd3842505b * a configuration value for the mouse wheel scrolling speed:
lyxrc.mouse_wheel_speed 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-30 21:20:29 +00:00
Abdelrazak Younes
ddec18ca01 * BufferView::scrollDocView(): take care of the general case before the particular top and bottom cases as those don't work very well when the document starts or ends with a big inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 13:34:18 +00:00
Abdelrazak Younes
e55019967f Simplify scrolling code. Instead of using the actionTriggered() signal we now use valueChanged(). This has the advantage that we can possibly disable scrollbar tracking for low graphical performance systems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22709 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 12:54:23 +00:00
Abdelrazak Younes
b78acb0b9d * BufferView::scrollDocView(): simplify by using showCursor() and add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 10:17:41 +00:00
Abdelrazak Younes
81e06f7bc9 Fix scrolling to top and bottom of the document.
* BufferView
- showCursor(DocIterator): new DocIterator argument.
- showCursor(): use above method.
- scrollDocView(): take care of top and bottom special cases early in the method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22707 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 09:51:12 +00:00
Abdelrazak Younes
1db3eb2113 GuiWorkArea::adjustViewWithScrollBar(): Fix slder to minimum and maximum. The problem was that when QAbstractSlider::actionTriggered() is emitted the scrollbar value is not changed, only its sliderPosition.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22706 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 09:37:02 +00:00
Abdelrazak Younes
091ff73403 RowPainter::paintLast(): microptimisation and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22705 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-29 07:31:24 +00:00
Pavel Sanda
bb84c5b38c * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 22:31:30 +00:00
Abdelrazak Younes
c9273f13e8 Adjustment to the end box drawing at the end of a proof layout environment (Theorem AMS). Ideas taken from Richard and JMarc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22702 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 21:22:29 +00:00
Jean-Marc Lasgouttes
17e1b2b59d revert erroneous commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 11:42:54 +00:00
Jean-Marc Lasgouttes
21ff30cc38 * src/Text.cpp (changeCase): do not set the selection if it was not
already set.

	* src/Paragraph.cpp (changeCase): make sure to update the selection 
	as needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22695 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 10:50:24 +00:00
Pavel Sanda
a0cf89394c * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22689 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:43:26 +00:00
Richard Heck
1a7b7f6541 Fix some problems in makeAbsPath():
i.  It didn't handle a leading "~"
ii. It wrongly handled a string of ../../etc when this took us back to the root directory.
Fix for (i) borrowed from expandPath(). The other is just logic.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:41:19 +00:00
Richard Heck
6751c8a72f Handle the case where a file exists but is not readable by the current user.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22686 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:37:54 +00:00
Richard Heck
5bef46157c Add some comments, and change enum terminology to reflect actual purpose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22685 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:25:25 +00:00
Richard Heck
20a5e94a86 Fix bug 4517.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22681 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:02:30 +00:00
Stefan Schimanski
21bf8063a0 * no box around the pixmap option anymore. So we disable the option directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 17:44:36 +00:00
Stefan Schimanski
4eaa564c95 * sort lyxrc tag table
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 17:44:15 +00:00
Stefan Schimanski
13a7bdf6b8 * readd the tooltip for the pixmap cache option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22678 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:19:11 +00:00
Stefan Schimanski
2d830ab23b * move the Pixmap Cache check box where it belongs: screen fonts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 01:14:37 +00:00
Stefan Schimanski
ce56adcf1e * Partly reverting r22619 by Bo which broke the loading of documents
with graphics like the user guide and the introduction text. I guess
  this is the intended behaviour. If not (and hence enable should do
  something even though the mode does not change), it is a bad design
  IMO. Without this patch some assert was triggered because extract()
  was called although nothing is embedded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22676 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:47:46 +00:00
Stefan Schimanski
ab1a045d10 * fix random jumps when scrolling very fast using a touchpad or mouse wheel.
The problem was this: The value in BufferView::scrollDocView(int value) is
relative to the d->scrollbarParameters_.min/max interval and _not_ absolute.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:47:22 +00:00
Pavel Sanda
8c9342ca29 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 00:43:49 +00:00
Stefan Schimanski
5b46cbef1a * On Mac it's common to have tool windows which are always in the
foreground and are hidden when the main window is not
  focused. Moreover they are normally "auto applying".

  This patch implements this for the character and the paragraph
  dialog. These text propertied are implemented in major application like Apple
  Pages, OmniGraffle and others via inspectors or toolbars. Our "auto
  apply"-mode resembles these very well. So why not activate it and
  make LyX a bit more Mac-like.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:31:33 +00:00
Stefan Schimanski
9f58157ffd * comment correction
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22672 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:07:35 +00:00
Stefan Schimanski
de4a5e3a51 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:05:41 +00:00
Stefan Schimanski
8e212b98b4 * optional old-style editing mode for macros with a parameter list.
* combobox in the preferences dialog to choose the macro editing mode of choice.

The reason for the three choices (inline box, inline without box,
list) is that it seems that there are at least these three groups of
people, and each of them is very strong about their opinion what that
the best mode is. So here there are all of them, pick your favourite.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 22:02:38 +00:00
Stefan Schimanski
7ac601f429 * corrected comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 21:59:53 +00:00
Jürgen Spitzmüller
cbf599b911 ** Fix language switch issue introduced by the CJK patch **
* src/output_latex.{cpp,h}:
	- (latexParagraphs, TeXEnvironment, TeXOnePar, TeXDeeper): pass Text element 
	   instead of ParagraphList. This is necessary to detect whether we are in the main text.
	- check if we are in the main text for language switches, if needed.
* src/Buffer.cpp:
* src/insets/InsetEnvironment.cpp:
* src/insets/InsetText.cpp:
* src/mathed/InsetMathMBox.cpp:
	- adapt to new latexParagraphs definition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 13:27:08 +00:00
Jürgen Spitzmüller
f62fbd05d2 * src/BufferParams.{cpp,h}:
- (paperSizeName): add missing paper sizes. Add an argument to the function
	  that returns context-sensitive information (depending on the purpose)
	- (paperSizeName): Do not hardcode "letter" for default paper size (bug 2098).
	- (dvips_options): pass purpose DVIPS to paperSizeName
* src/Converter.cpp:
	- (dvipdfm_options): pass purpose DVIPDFM to paperSizeName.
* src/Format.cpp:
	- (view): pass purpose XDVI to paperSizeName (fix bug 4432).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22664 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 12:54:25 +00:00
Stefan Schimanski
06295fef40 * the markers create a 1 pixel margin
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-24 08:39:23 +00:00
Pavel Sanda
2eb75da023 PDFoptions: improve the functionality in case the hyperrref is
already loaded by the textclass.

Some corner cases still missing (see fixme and link below).
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg134643.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-24 01:20:51 +00:00
Stefan Schimanski
76cbbc2fb4 * Fix latex output of child documents when rendered alone.
Problem: Before macro redefinitions in a child buffer did not see the
parent original definition because an Buffer::updateMacros() call had
updated the redefinition_ flag to "false" after the parent buffer had
temporarely been set to =0 for latex output of the child.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-23 00:26:48 +00:00
Stefan Schimanski
135fbe2c1b * add "auto" flag for toolbars
* make macro toolbar automatic

This reverts commit 7d48e270549aa04c34fae9ce9682162c78f57eda.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 22:56:10 +00:00
Stefan Schimanski
0a701fb254 * Option to make macro editing less "noisy" by hiding the grey box with the
macro name when the cursor is inside. The downside of the coin is that
you have to look into the statusbar to see which macro is used. But
some people prefer that than having the slight size change of macros
when the cursor enters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22650 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 21:23:41 +00:00
Stefan Schimanski
daeb335db3 * Support a script also around the ] of an optional parameter
Test case:
"\newcommand{\foo}[2][a]{(#1,#2)} \foo[A]^1b" should give (a,_)^1b

This is implemented for non-optional parameters for long time for
cases like \foo ab^2 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 17:26:54 +00:00
Jean-Marc Lasgouttes
0df54152bc Move spacing code around (and fix a bug)
* LaTeXFeatures.cpp (getPackages): remove some specific spacing code;
	move listings support to simplefeatures array.

	* src/Spacing.cpp (writeEnvirBegin, writeEnvirEnd): code factorization
	(writePreamble): new method containing former code from LaTeXFeatures;
	use \setSpacing instead of \setSingleSpacing.

	* src/BufferParams.cpp (validate, writeLaTeX): handle spacing here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 08:41:45 +00:00
Pavel Sanda
75a5c1c7a1 Correct toolbar environment sorting for other locales.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:46:03 +00:00
Pavel Sanda
c0414bef66 Environment toolbar is not updated after selection by mouse.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 23:36:03 +00:00
André Pönitz
c151549004 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 12:33:01 +00:00
Jürgen Spitzmüller
6415e84dc4 * src/LaTeXFeatures.cpp:
- tiny correction to rev. 22629

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 11:32:06 +00:00
Jürgen Spitzmüller
804e912910 Fix hyperref-soul conflict and sanitize hyperref management
* src/BufferParams.cpp:
	- always require hyperref if it's used.
	- only call PDFOptions::writeLaTeX if hyperref is required
	  (and not provided by textclass).
* src/PDFOptions.{cpp,h}:
	- (writeLaTeX): remove unneeded hyper_required argument
* src/LaTeXFeatures.cpp:
	- special definition for pdflatex ct markup when hyperref is used
	  (fix bug 4504).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 11:17:12 +00:00
Pavel Sanda
f0f485e40d Get rid of ugly strings in .po file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 22:50:19 +00:00
Abdelrazak Younes
33b1ab9a9a Fix buffer-next/previous when called with Ctrl-Tab.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 08:26:38 +00:00
Bo Peng
82dfa33276 Embedding: fix enable() logic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-18 06:46:06 +00:00
Jürgen Spitzmüller
7d16a9c7ea * src/frontends/GuiView.cpp:
- fix bug 4496 ("Retry" and "Cancel" buttons were swapped in the error dialog)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 19:01:01 +00:00
Abdelrazak Younes
29918a2292 Scrolling works:
* enable ScrollBarAsNeeded.
* small cleanups.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:47:01 +00:00
Abdelrazak Younes
ae0667c112 More scrolling work. Now the scrollbar parameters are normalized against the screen geometry and coordinates. This simplifies the logic and the code significantly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22614 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 17:06:55 +00:00
Jürgen Spitzmüller
3352fe5fc8 * src/LaTeX.cpp:
- do a second latex run before bibtex if package clefval requests it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 10:04:48 +00:00