Commit Graph

12997 Commits

Author SHA1 Message Date
Richard Heck
72ca0c5b7b Fix Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 03:51:35 +00:00
Bo Peng
1d900def57 Remove another 'Create directory' message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 03:46:49 +00:00
Pavel Sanda
adaa376fd5 one more doxy move.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23678 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:38:58 +00:00
Pavel Sanda
aa7c0aee4b Doxy: reorganize structure.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:35:13 +00:00
Pavel Sanda
f93258707c Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23676 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 01:27:53 +00:00
Stefan Schimanski
e01f7e7105 * fix a serious data loss problem: undo did not save the whole
selection in mathed if more than one cell was selected.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23675 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:59:29 +00:00
Pavel Sanda
69474d4a2b * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23674 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:26:31 +00:00
Stefan Schimanski
40c4d50c82 * fix for http://bugzilla.lyx.org/show_bug.cgi?id=4566
"Eqnarray multiple cells size change erases what they contain"

  We now loop over the selected cells and change the font in each of them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23673 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:31 +00:00
Stefan Schimanski
6767da2c65 * or does anybody have this in mind for 1.6?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23672 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:18 +00:00
Stefan Schimanski
10c974461d * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:19:07 +00:00
Stefan Schimanski
b2e8d557cc * only use selection of current cell when starting a macro (fixes http://bugzilla.lyx.org/show_bug.cgi?id=4566 for macros)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-12 00:18:39 +00:00
Bo Peng
4461cc2fda fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 19:29:16 +00:00
Bo Peng
d3f33c2106 Embed: fix a bug in initialize embedded file in InsetInclude
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 19:21:34 +00:00
Bo Peng
48f9225e27 Embed: allow the use of embedded layout and class (.cls, .sty) files.
* src/EmbeddedFiles.h|cpp: add validate() function to validate loaded .lyx file.
	* src/LayoutFile.h|cpp: add Layout_Type parameter to addLayoutFile to load an embedded layout.
	* src/BufferParams.h|cpp: read layout from temp directory, then local directory.
	* src/frontends/qt4/GuiDocument.cpp: handle embedded layout type
	* src/LyXFunc.cpp: handle embedded layout when a layout is re-read.
	* src/Buffer.cpp: validate after a buffer is read. handle exceptions properly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 18:31:38 +00:00
Bo Peng
be73bdd410 suppress unneeded output in minizip/zipunzip.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 18:24:32 +00:00
Stefan Schimanski
ed4919cd1a * fix for http://bugzilla.lyx.org/show_bug.cgi?id=518
"wrong numbering of multline environment inside LyX"


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 17:54:05 +00:00
Stefan Schimanski
5354a5d592 * fix http://bugzilla.lyx.org/show_bug.cgi?id=4622
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23663 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 17:23:14 +00:00
Richard Heck
7a5576c13b Try again to fix bug 2178.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23662 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 15:16:58 +00:00
Abdelrazak Younes
94ff60ec7e Navigator: default to table of contents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23661 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:34:20 +00:00
Stefan Schimanski
c81e3a0203 * use base color for layout list background. Qt docs say:
QPalette::Base:	Used mostly as the background color for text
entry widgets, but can also be used for other painting - such as the
background of combobox drop down lists and toolbar handles. It is
usually white or another light color.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:29:14 +00:00
Abdelrazak Younes
04e46436ad * add "List of Graphics"
* don't append "(embedded)" to embedded list items.
* limit the number of entry to 30 items and offer to open the Navigator if above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23659 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 10:27:33 +00:00
Abdelrazak Younes
f53467871f add "Embedded Files" to Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23658 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 09:04:09 +00:00
Abdelrazak Younes
b1742b5736 * InsetInclude::addToToc(): show embedded status if any in Navigator.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23657 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 08:37:30 +00:00
Abdelrazak Younes
4f1d3f2162 * add "Child Documents" navigate submenu.
* move secondary lists to "Other Lists" navigate submenu as the menu started to be crowded.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 08:25:13 +00:00
Bo Peng
99a5b638c3 refine browseRelFile in function addExtraEmbeddedFile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-11 02:26:20 +00:00
Stefan Schimanski
361d4d9a16 * simplified layout list a lot by subclassing QItemDelegate instead of
trying to simulate a menu with a QListView (that's what QComboBox does
on some platforms, but not on all).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23654 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 23:00:53 +00:00
André Pönitz
46c83df1cd less pointers...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23653 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 22:23:16 +00:00
Bo Peng
14eeac2e1c Allow selection of a local layout file from the document->settings dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23652 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 21:31:22 +00:00
Pavel Sanda
297f68bc52 uhrrm.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23651 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 20:27:50 +00:00
Pavel Sanda
6f67ac73fe * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23650 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 20:24:28 +00:00
Stefan Schimanski
9d2654311a * restart cursor not only after mouse- and keyboard events, but also after those from the toolbar, menus, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23648 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 19:08:03 +00:00
Stefan Schimanski
e627e6fb53 * remove style, left from debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23646 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 18:44:28 +00:00
Stefan Schimanski
c6fff07103 * patch by Pavel to make the layout list look like it used to be in 1.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 17:11:14 +00:00
Stefan Schimanski
b1ac3c3e83 * also forward delete numbering in math hull
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23643 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 17:09:02 +00:00
Stefan Schimanski
ae89d2a6b4 * made compatible with Qt 4.2 again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 16:20:33 +00:00
Stefan Schimanski
3be96448d5 * use small font for the header metrics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:43:47 +00:00
Stefan Schimanski
3e8e012355 * compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23639 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:42:35 +00:00
Stefan Schimanski
06a5803eab * reduce spacing in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23638 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:41:30 +00:00
Abdelrazak Younes
2ab77c16f6 Introduce Inset::isLabeled() in order to avoid reimplementing Inset::initView() everywhere we need a labels update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:30:32 +00:00
Abdelrazak Younes
346839b59f fix http://bugzilla.lyx.org/show_bug.cgi?id=4608
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 15:01:57 +00:00
Stefan Schimanski
edf9667025 * center RTF text vertically correctly in layout list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:44:40 +00:00
Abdelrazak Younes
a723380e3a add missing ctor
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:21:49 +00:00
Stefan Schimanski
0e20c40ad2 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 14:20:27 +00:00
Stefan Schimanski
5e6ffc2549 * split different macro cases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:43:42 +00:00
Abdelrazak Younes
47076b9dbb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4621
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:42:16 +00:00
Abdelrazak Younes
ac5c584bc2 MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:38:37 +00:00
Stefan Schimanski
286e3a0070 * require at least xargs 1.09.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23628 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:26:20 +00:00
Stefan Schimanski
feb96b01aa * draw full line for empty categories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23627 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:10:10 +00:00
Stefan Schimanski
473091fb82 * center the line in the layout category headers in the middle of the lowercase chars
* some messages for the statusbar
    * configuration option for grouping of the layouts
    * put category headers above the first item of each category in the
      layout list.
      To avoid scrolling we have to sneak in space for the headers.
      So we tweak this value accordingly. It's not nice, but the
      only possible way it seems.

    Note 1: Because QComboBox uses the "first row's height * rowCount" to
    estimate the height of the popup, we have to fake some extra pixel
    lines to avoid scrolling because of the extra space taken by the
    headers. This is a hack, but I don't see a better way to establish that.

    Note 2: An alternative implementation is to insert headers as real list
    items. But it seems that QListView cannot skip them in cursor
    navigation then. So we stick to the upper approach.

    * remove checkbox in layout menu


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 13:02:57 +00:00
Stefan Schimanski
29dca708f7 * comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23625 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:57:45 +00:00
Stefan Schimanski
c17df2980b * cosmetic and comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:54:00 +00:00
Stefan Schimanski
97a1fcc721 * \newcommandx parsing for tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23623 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:52:37 +00:00
Stefan Schimanski
ed1bd828f0 * remove newlyxcommand
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23622 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:51:50 +00:00
Stefan Schimanski
21eddc8fe2 * math macro definition context menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23621 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:51:14 +00:00
Stefan Schimanski
5d48c7ef6a * \newcommandx support for the math parser
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23619 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:50:10 +00:00
Stefan Schimanski
ec1f626284 * small fixes of the temporary change display of macro templates
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23618 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:50 +00:00
Stefan Schimanski
95f621f000 * comments for macro tables in Buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23617 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:18 +00:00
Stefan Schimanski
76dc2c0d30 * make macros global. This is conceptionally much easier for the user,
and moreover simplifies the code a lot.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:49:02 +00:00
Stefan Schimanski
c8c5fc65d0 * xargs export support. No parser support yet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23615 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 12:48:46 +00:00
Jürgen Spitzmüller
d589af0c1a restore Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23612 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 06:40:55 +00:00
Stefan Schimanski
9a9e94bca2 * fix for http://bugzilla.lyx.org/show_bug.cgi?id=2556
"not possible to delete a label of a formula":

  Press forward delete at the end of a row and the label is deleted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23610 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:43:05 +00:00
Pavel Sanda
635b2c1cc3 Start some context-edit menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:30:02 +00:00
Uwe Stöhr
8151dd5852 InsetMathNest.cpp: Ctrl-b uses now \boldsymbol (fixes http://bugzilla.lyx.org/show_bug.cgi?id=499)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23608 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:23:50 +00:00
Pavel Sanda
ada0cddd58 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23607 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:08:57 +00:00
Bo Peng
932998494b Embedding: add option \extra_embedded_files to buffer params. This increase
LyX file format to 318. The Embedded files panel of document settings has
been simplied, with working add and remove buttons. Note that bease BufferParams
lacks buffer path information, extraEmbeddedFiles are vector<string>, instead
of EmbeddedFileList (as previously planned).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:04:14 +00:00
Pavel Sanda
63e712c8a4 LFUN_TOGGLE_CURSOR_FOLLOWS_SCROLLBAR -> LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23605 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 21:23:37 +00:00
Abdelrazak Younes
4c5f5c6633 Small Menu code reorg:
Menu -> MenuDefinition
GuiPopupMenu -> Menu (definition now in header because of moc).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23604 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 20:38:03 +00:00
Jürgen Spitzmüller
3f7d2a66f5 * src/insets/InsetNote.h:
- implement missing noFontChange.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23601 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 17:43:16 +00:00
Pavel Sanda
30fdb68ea1 * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:39:34 +00:00
Uwe Stöhr
43d576447d GuiDocument.cpp: fix linebreak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23596 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:29:01 +00:00
Jürgen Spitzmüller
74f5f2a27d fix encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23595 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 16:16:39 +00:00
Edwin Leuven
7a14dd740b compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:14:59 +00:00
Pavel Sanda
5e79b2ca4f Add math context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23591 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 15:07:27 +00:00
Stefan Schimanski
7a924b3771 * mac menus do not handle showEvent, only the aboutToShow signal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 14:20:16 +00:00
Abdelrazak Younes
0ac93cb524 Add dummy context menu when there is non defined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23581 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:39:00 +00:00
Abdelrazak Younes
51a5db7110 General support for InsetCommand context menu. For this to work properly I had to disable all actions triggered by mouse right-clicking. This was bad ui in any case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23579 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 11:22:39 +00:00
Bo Peng
6dc7cbe1e7 Continue working on the embedding feature. An additional parameter updateFile is passed to
EmbeddedFile::enable() and EmbeddedFiles::enable() to differentiate different usages.
A member variable bibfiles_ is added to InsetBibtex because it is not efficient to obtain
EmbeddedFileList each time from params()['bibfiles'] and params()['embed'].


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23576 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 06:05:22 +00:00
Stefan Schimanski
db0637f026 * compile fix for mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 23:45:25 +00:00
Abdelrazak Younes
22aa0137d3 Transfer general edit context menu from BufferView to InsetText.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 22:57:22 +00:00
Edwin Leuven
a4eba52f9b ...and clean up headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23573 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 21:55:03 +00:00
Edwin Leuven
ad19114709 fix view file when path is not shown
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 20:18:22 +00:00
Abdelrazak Younes
c57ca0a9f4 restore comment about boost::shared_ptr and dtor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23571 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 17:37:10 +00:00
Abdelrazak Younes
9991539819 * MenuItem::submenu_: it seems that boost::shared_ptr() was necessary for std::vector purpose
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23570 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 17:34:54 +00:00
Abdelrazak Younes
fe4b7f4b12 some more cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23567 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:45:51 +00:00
Abdelrazak Younes
84622bc642 various cleanup and simplifications
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23565 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:15:34 +00:00
André Pönitz
69bfaf01a2 make Ctrl+mousewheel change the display font sizes (pretty similar to
what firefox does)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23564 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 16:15:10 +00:00
André Pönitz
ff91347e1f seems the temporary copy is needed neverthelesse. it's a 'shallow' one,
though...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23561 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:36:29 +00:00
Abdelrazak Younes
f7f67fa95e Encapsulate all menu related stuff inside Menu.cpp and simplify a few things.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23560 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 15:33:52 +00:00
André Pönitz
621e1b50a9 shorter code..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23558 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 13:02:52 +00:00
Abdelrazak Younes
6e807d67ec * Inset::buffer(): assert when buffer_ is not set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 11:56:20 +00:00
Abdelrazak Younes
9398a1495a * Menu:
* general cleanup.
* convert free standing function to private methods.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23556 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 10:08:10 +00:00
Edwin Leuven
d1aff33dd5 more fixes (correct filename, and repair view file)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 09:54:48 +00:00
Abdelrazak Younes
8675175492 declaration cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 09:01:41 +00:00
André Pönitz
8be59017cf cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 08:20:36 +00:00
André Pönitz
be624b3de0 less string conversions as long as we stay in the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 07:59:47 +00:00
Richard Heck
9337d73f1f Comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23551 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 03:00:13 +00:00
Pavel Sanda
6a3cdc8420 Add doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23550 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 02:34:00 +00:00
Richard Heck
c7a0329a87 Fix crash.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23549 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 00:08:03 +00:00
Edwin Leuven
ac20e8e694 fix broken dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23548 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 23:37:55 +00:00
André Pönitz
1847d3f3e5 add a convienient foreach implementation
code is stolen from Qt, slightly adapted to
avoid a container copy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23547 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 23:05:33 +00:00
Abdelrazak Younes
49c45006ae cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23543 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 20:51:56 +00:00
Abdelrazak Younes
095fc3a2a1 Buffer::getLabelList(): Bug fix; only level 0 items are labels.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23542 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:52:44 +00:00
Abdelrazak Younes
5da55588f2 * Buffer::getLabelList(): Speed up and simplify by using the tocBackend.
* Inset and derived class: get rid of getLabelList()
* BufferView::gotoLabel(): Speed up and simplify by using the tocBackend.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:46:04 +00:00
Abdelrazak Younes
f0771cecc2 MSVC Compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 19:43:17 +00:00
Abdelrazak Younes
01d218fd0f * Buffer::changeRefsIfUnique(): Only used for CITE_CODE now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:45:48 +00:00
Abdelrazak Younes
af3852b12c fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23537 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:36:39 +00:00
Abdelrazak Younes
8998dac1a7 InsetInclude: use InsetLabel instead of handling "label" parameter manually.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23536 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:33:33 +00:00
Abdelrazak Younes
fd16c64b35 add comment about std::vector<bool>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23535 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 13:05:04 +00:00
Abdelrazak Younes
cab2fe4cce MSVC compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23533 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 07:21:13 +00:00
Richard Heck
6edb3984bf BaseClassList --> LayoutFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23532 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:53:21 +00:00
Richard Heck
6fee306f2f Remove comment. This issue no longer seems to exist.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:42:39 +00:00
Richard Heck
ac6e5b871c Get rid of the boost::shared_ptr's in TextClass.{h,cpp}. It's not clear what these were really doing here now, and they will cause bugs now that DocumentClass objects are more dynamic.
Abdel suggested it might be worth pimpl'ing the FloatList and Counter objects, to get the header dependencies back down.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 03:41:12 +00:00
Richard Heck
2222b3f367 Did not need to change this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23529 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 01:21:03 +00:00
André Pönitz
6e9980f149 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23528 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 00:29:12 +00:00
André Pönitz
4b12782854 merge MenuBackend into frontend/Menus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-07 00:21:23 +00:00
Richard Heck
6f1cb456cf Improve performance of TextClass type objects by making BaseClassList and DocumentClassBundle containers of pointers rather than of objects, thus reducing the need to copy. Since these classes are singletons that live the life of the process, there's not much need to worry about memory leaks.
We take the opportunity to make TextClass objects noncopyable, nonassignable, etc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23526 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 23:31:40 +00:00
Richard Heck
5166d49d2d Abdel is right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23525 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 22:06:24 +00:00
Richard Heck
926ad3d183 Get rid of LayoutPtr.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:55:33 +00:00
André Pönitz
e13cc7e90d start moving MenuBackend to the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23523 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:50:27 +00:00
Richard Heck
a01cb111a0 Change the interface to a paragraph's layout. We still store a LayoutPtr, but now privately, and make a Layout const & available to clients.
The need for a LayoutPtr arises from the fact that (a) we do not want to give our clients a Layout &, since we do not want them to be able to change our Layout; but (b) we also need to be able to change which layout is ours. So we cannot store a Layout const &. Or so it seems to the compiler.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23522 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 21:31:27 +00:00
Abdelrazak Younes
258cca4b3b Delete child buffer at InsetInclude destruction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:58:59 +00:00
Bernhard Roider
a99c5828f8 Add support for \bm from bm.sty
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23520 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:49:59 +00:00
Richard Heck
f401ce5d29 Changes LayoutList from a vector<LayoutPtr> to a vector<Layout>.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23519 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 20:01:30 +00:00
Richard Heck
e7d3e98546 As noted by Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23518 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:59:05 +00:00
André Pönitz
56dec68703 more of that...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23517 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:51:15 +00:00
André Pönitz
e8f16a9bcb frontend cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:39:52 +00:00
Abdelrazak Younes
1e4f5ba47c Per Andre' advice: No need to check for pointer nullity for delete.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23515 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 19:31:14 +00:00
Richard Heck
89d82d37f4 Do a little better here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23514 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 18:21:08 +00:00
Abdelrazak Younes
af6e88250a Load child documents unconditionally at updateLabels() time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23513 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 18:13:04 +00:00
Abdelrazak Younes
a4d5b78430 Transfer and bug fix LFUN_BUFFER_BEGIN/END_SELECT to BufferView.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 15:39:30 +00:00
Abdelrazak Younes
5a9653203f Fix PageUp/Down select when at the top/bottom of a document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 12:41:38 +00:00
Abdelrazak Younes
3ba3389ede Fix http://bugzilla.lyx.org/show_bug.cgi?id=4494
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23509 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 10:14:36 +00:00
Abdelrazak Younes
a56dec8330 fix the bug fix in 23507
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23508 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:47:14 +00:00
Abdelrazak Younes
682f4efd13 compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23507 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:15:53 +00:00
Abdelrazak Younes
902b41c919 compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23506 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 09:07:41 +00:00
Richard Heck
592f951ba0 Kill indexing into the list of layouts.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23505 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:59:21 +00:00
Richard Heck
ac89b178de Simplify the logic a bit here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23504 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:10:04 +00:00
Richard Heck
61e10d5c85 No need to lowercase here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23503 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:04:59 +00:00
Richard Heck
a307f3b9ae Backend support for layout categorization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23501 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 05:01:44 +00:00
Richard Heck
051d887f33 Fix Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 04:29:02 +00:00
André Pönitz
990df4924a more of that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23497 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 00:07:19 +00:00
André Pönitz
88293cbcfb a few more docstring<->QString conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23493 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 23:10:53 +00:00
Uwe Stöhr
32a3ce2546 GuiToolbar.cpp: compile fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 22:41:56 +00:00
André Pönitz
2b7ad27227 extend the idea of the previous patch a bit...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:48:19 +00:00
Stefan Schimanski
e636df4610 * preparation for the layout categories. Now the separator is just
drawn above the "-- Separator --" line. As soon as the category
  information is available the same code will draw the separator at
  every category change in the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23489 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:43:55 +00:00
Stefan Schimanski
3225232f86 * fix wrong slot name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23488 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:34:09 +00:00
André Pönitz
92900af75d merge qlkey.h into the only .cpp file #including it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:31:49 +00:00
André Pönitz
a500e62902 do what the FIXME suggested
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:11:47 +00:00
Stefan Schimanski
cdf8979160 * cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23485 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:26 +00:00
Stefan Schimanski
bf96153185 * is.at is const, is[] is a deep non-const copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23484 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 19:00:11 +00:00