Commit Graph

4749 Commits

Author SHA1 Message Date
Abdelrazak Younes
6c14a1c406 Add list of Indexes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-13 13:19:39 +00:00
Richard Heck
040f3431e7 Fix bug 4037 and related problems. The patch has been cleaned up a bit
from the one posted to the list.

The basic idea has two parts. First, we hard code an "empty layout"
(called PlainLayout, for want of a better name) in TextClass and read it
before doing anything else. It can therefore be customized by classes,
if they want---say, to make it left-aligned. Second, InsetText's are
divided into three types: (i) normal ones, that use the "default" layout
defined by the text class; (ii) highly restrictive ones, such as ERT and
(not quite an inset) table cells, which demand the empty layout; (iii)
middling ones, which default to an empty layout and use the empty layout
in place of the default. (This is so we don't get the same problem we
had with ERT in e.g. footnotes.) The type of inset is signaled by new
methods InsetText::forceEmptyLayout() and InsetText::useEmptyLayout().
(The latter might better be called: useEmptyLayoutInsteadOfDefault(),
but that's silly.) The old InsetText::forceDefaultParagraphs() has been
split into these, plus a new method InsetText::allowParagraphCustomization(). 
A lot of the changes just adapt to this change.

The other big change is in GuiToolbar: We want to show LyXDefault and
the "default" layout only when they're active.

There are a handful of places where I'm not entirely sure whether we
should be using forceEmptyLayout or !allowParagraphCustomization() or
both. The InsetCaption is one of these. These places, and some others,
are marked with FIXMEs, so I'd appreciate it if people would search
through the patch and let me know whether these need changing. If they
don't, the FIXMEs can be deleted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22966 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 17:31:07 +00:00
Abdelrazak Younes
0aa490a705 * GuiView::event(): ensure current workarea has the focus on window activation. This prevents document jumps when the outline panel previously had the focus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22964 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:44:45 +00:00
Abdelrazak Younes
6a877dfc1a Try to restore current selected type in case of a toc reset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22963 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 15:33:01 +00:00
Abdelrazak Younes
3256dbc78a GuiToc::initialiseParams(): Fix list type parsing
TocWidget::updateGui(): Fix for non existent list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 09:32:40 +00:00
Abdelrazak Younes
5c3f36a25e Support for list of Algorithms
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 08:58:32 +00:00
Abdelrazak Younes
8c73b3d2ce simplify GuiToc / TocWidget interaction. Much can still be simplified...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:47:16 +00:00
Abdelrazak Younes
a464490870 Fix crash with multiple window opening/closing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22952 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 07:23:44 +00:00
Pavel Sanda
a05f041470 ui-toggle lfun tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 23:52:25 +00:00
Abdelrazak Younes
7c38391754 Add list of notes and list of footnotes to the outline pane.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22942 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 13:06:01 +00:00
Abdelrazak Younes
f12126adbd headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 07:12:06 +00:00
Dov Feldstern
a9770a18cd Adding preference for visual mode for bidi cursor movement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 19:51:23 +00:00
Jürgen Spitzmüller
a35ddd3264 * src/frontends/qt4/LyXFileDialog.cpp:
- explicitely set ShowHidden for hidden UNIX directories
	  (workaround for Qt bug, bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 11:50:10 +00:00
Abdelrazak Younes
3e293bb692 Handle full screen mode for all work areas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22904 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:29:15 +00:00
Abdelrazak Younes
b409db5d1c Introduce GuiWorkArea::setFullScreen()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 18:03:53 +00:00
Abdelrazak Younes
1ff60667a6 Put LFUN_UI_TOGGLE in its own method and add FIXMEs WRT multple workareas.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22901 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:54:28 +00:00
Abdelrazak Younes
6cdf6bd6ab Support full screen in BufferView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 17:20:23 +00:00
André Pönitz
24fdfc7d5e start work on less-likely-to-misuse iterators.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 15:23:05 +00:00
Pavel Sanda
74632f681e Unneeded headers, doxy cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 12:20:05 +00:00
Pavel Sanda
b9cf09838f Improve fullscreen capabilities ( http://bugzilla.lyx.org/show_bug.cgi?id=4146 ).
- adding frames, adding fullscreen switch.
- LFUN_MENUBAR_TOGGLE, LFUN_STATUSBAR_TOGGLE -> LFUN_UI_TOGGLE.

There are still limitations wrt Outlining in MAC OS - someone could check, 
see http://www.nabble.com/Fullscreen-mode-to15314676.html#a15367830 .




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22893 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 11:58:01 +00:00
Abdelrazak Younes
5b2625fdfe Disable alignment doesn't mean it's not possible (egg. readonly mode).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22886 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:11:11 +00:00
Stefan Schimanski
357b4f8603 * show context menu at the right position
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 23:51:30 +00:00
Abdelrazak Younes
c37588d374 simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22871 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:55:43 +00:00
Abdelrazak Younes
cb5859929f update controls upon window activation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:47:32 +00:00
Abdelrazak Younes
a67e5ab02b * Dialog::showView(): call checkStatus() after updateView() as some dialogs may re-enable some controls in updateView() (egg the paragraph dialog).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:25:59 +00:00
Jürgen Spitzmüller
9cb6ce57da * GuiSymbols.cpp:
- disable "display all" checkbox for utf8.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22867 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 17:13:06 +00:00
Jürgen Spitzmüller
369f14fa8e * GuiSymbols.{cpp,h}:
- cache symbols list (speedup).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22866 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:43:02 +00:00
Abdelrazak Younes
348bc2c599 Fix typo and remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22862 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:14:24 +00:00
Abdelrazak Younes
722023c413 Implement GuiParagraph::enableView() for readonly documents. Does not fully work yet as the paragraph alignment are not updated with cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22861 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:08:45 +00:00
Jürgen Spitzmüller
faf2f10824 * GuiSymbols.cpp:
- fix crash due to invalid ListWidgetItem.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22860 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 13:06:44 +00:00
Jürgen Spitzmüller
92b41f3f98 * GuiSymbols.{cpp,h}:
- consider non-default document encodings.
	- only refresh categories when needed (speedup)
	- add tooltips.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 11:02:23 +00:00
Abdelrazak Younes
46e6cacfe0 Introduce toqstr(char_type) and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22857 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:49:22 +00:00
Abdelrazak Younes
e172898430 compil fix for Qt-4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22856 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 08:44:52 +00:00
Dov Feldstern
e4a1c73009 compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22854 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 22:46:47 +00:00
Jürgen Spitzmüller
8e6c6e6678 * GuiSymbols.cpp: add another missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22850 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 20:29:14 +00:00
Jürgen Spitzmüller
ea039d6496 * GuiSymbols.cpp:
- fix thinko and ensure visibility on filter toggling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22849 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 18:29:45 +00:00
Jürgen Spitzmüller
78760c719f * src/frontends/qt4/ui/SymbolsUi.ui:
* src/frontends/qt4/GuiSymbols.{cpp,h}:
	- add an option to only display the glyphs of the selected category (= default)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22848 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:42:00 +00:00
José Matox
03fb3b0aec Patch to please gcc 4.3. Less bloat in the include headers means that
we need to include explicitly some header files now.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22846 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 17:04:06 +00:00
Abdelrazak Younes
fadf8ba12e * GuiLayoutBox: fix initial readonly disabled state and small cleanups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22845 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:46:19 +00:00
Abdelrazak Younes
b0349fd8ed Add missing header.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22844 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:24:37 +00:00
Abdelrazak Younes
680480d699 Fix initial readonly enabling/disabling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22843 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 16:14:58 +00:00
Abdelrazak Younes
c43fc027bc * GuiSymbols: implement Dialog::getLfun()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22840 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:41:56 +00:00
Abdelrazak Younes
8fd83ab2dc Don't insert symbols in the edit box if the control is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22839 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 15:03:07 +00:00
Abdelrazak Younes
0d7c79db6d * some cleanups
* some compile fixes on Windows (char_type is not automatically casted to uint)
* take care of higher ucs4 characters.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22838 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:44:17 +00:00
Jürgen Spitzmüller
d25c1d1066 * GuiSymbols.cpp: add missing unicode block.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:23:43 +00:00
Abdelrazak Younes
c76df07c4d remove unused macro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22836 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 14:22:41 +00:00
Jean-Marc Lasgouttes
b21b3b346d * do not pass headers without Q_OBJECT through moc
* make sure Resource.* files are cleaned as needed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22834 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:45:40 +00:00
Abdelrazak Younes
6a082a6d89 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22833 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:40:31 +00:00
Jürgen Spitzmüller
9bdca85f26 *** New Symbols Dialog ***
* src/Encoding.{cpp,h}:
	- new public member getSymbolsList()

* src/frontends/qt4/GuiSymbols.cpp:
* src/frontends/qt4/GuiSymbols.h:
* src/frontends/qt4/ui/SymbolsUi.ui
	- new files

* src/frontends/qt4/GuiView.cpp:
* src/frontends/qt4/Makefile.am:
* development/scons/scons_manifest.py:
	- add new dialog

* lib/ui/classic.ui:
* lib/ui/stdmenus.ui:
	- menu item for symbols dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22832 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 13:18:07 +00:00
Abdelrazak Younes
c3890f1377 small code cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22830 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-07 09:51:49 +00:00