Commit Graph

11840 Commits

Author SHA1 Message Date
Enrico Forestieri
6820b61afa Fix some other thinkos in r21048
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21757 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 01:34:46 +00:00
André Pönitz
2e79520f6b merge LoaderQueue into Loader
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21755 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 00:02:58 +00:00
André Pönitz
502125671a only called once
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21754 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 23:57:11 +00:00
André Pönitz
7df235d649 missed that part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21753 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 23:08:40 +00:00
André Pönitz
b89d0e2eb7 simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21752 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 22:57:11 +00:00
André Pönitz
d971afe2aa remove spurious include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21751 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 22:41:07 +00:00
André Pönitz
c610af7ccd cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21749 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 22:15:17 +00:00
André Pönitz
f0230e1d9a remove unneeded default argument value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21748 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 21:49:58 +00:00
André Pönitz
adcb084ea2 merge frontend::Painter into GuiPainter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21747 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 21:39:51 +00:00
André Pönitz
7bf3b204fa remove line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21746 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 20:31:52 +00:00
Jürgen Spitzmüller
04574322f6 * src/output_latex.cpp:
- prevent wrong whitespace by trailing '%' on line endings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21742 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 14:59:35 +00:00
Abdelrazak Younes
b8cd772329 some more LFUN transfer from LyXFunc to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21741 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 12:37:09 +00:00
Abdelrazak Younes
47f54dd68b get rid of LyXView::errors(). This was redundant with GuiBufferDelegate::errors().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21740 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:53:10 +00:00
Abdelrazak Younes
f745a9c3c5 Take care of cursor update flags correctly and redraw if needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21739 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:45:20 +00:00
Abdelrazak Younes
3eb9c09679 Fix crash on exit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21738 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 11:19:42 +00:00
Pavel Sanda
cf5ff50617 Fix dialog handling of Insert Plain Text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21737 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 10:54:19 +00:00
Abdelrazak Younes
10cc0a8842 Simplify Dialog::name() handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21736 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 10:45:14 +00:00
Abdelrazak Younes
d4b02ad711 simplify window creation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21735 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 09:56:33 +00:00
Abdelrazak Younes
42015a8ebd Transfer some more dialog related code from core to frontend:
- LFUN_INSET_APPLY handling goes to GuiView.
- Dialog needs a GuiView instead of a LyXView.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21734 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 09:44:02 +00:00
Uwe Stöhr
97aa558cac support for \pagebreak:
- rename former "pagebreak" to "newpage" since it produces a \newpage
- new LFUN
- menu entry
- tex2lyx support
- fileformat change


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 02:10:00 +00:00
André Pönitz
95b1b94e32 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21721 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:47:13 +00:00
André Pönitz
b43ce80676 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21720 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:34:57 +00:00
André Pönitz
dcac6d3375 small simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21719 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 23:29:53 +00:00
Abdelrazak Younes
573722b8de compile fix. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21718 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 22:49:11 +00:00
Abdelrazak Younes
baa9153134 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 22:20:51 +00:00
Jürgen Spitzmüller
74dfd86649 * src/insets/InsetTabular.cpp (doDispatch):
- add missing recordUndo to LFUN_CLIPBOARD_PASTE /
	  LFUN_PRIMARY_SELECTION_PASTE (bug 4371)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21715 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 09:09:39 +00:00
Abdelrazak Younes
b9d2666b98 Move Dialog.{h,cpp} and ButtonPolicy.{h,cpp} to frontends/qt4/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21714 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 08:01:09 +00:00
Abdelrazak Younes
d3887a2ce0 fix MSVC warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21713 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 07:49:25 +00:00
Abdelrazak Younes
b42e2d61d8 Updates controls after reinitialization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21712 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 07:33:18 +00:00
André Pönitz
e5fe3a68c7 forgot those
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21708 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 00:04:19 +00:00
André Pönitz
4c3e546375 remove one <boost/shared_ptr.hpp>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21707 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 00:03:18 +00:00
André Pönitz
5d16f8030d use strfwd.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21706 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 23:55:42 +00:00
André Pönitz
98ddc514da remove a few uses of boost::scoped_ptr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21705 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 23:47:47 +00:00
André Pönitz
d33cedef34 replace boost::noncopyable by plain C++ idiom
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21704 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 23:31:12 +00:00
André Pönitz
974924a5d5 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21703 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:54:10 +00:00
Abdelrazak Younes
a3315920a2 Some more cleanup of LyXView:
- transfer GuiBufferDelegate and GuiBufferViewDelegate to GuiView
- delete showDialog() and use LFUN_DIALOG_SHOW in LyXFunc::dispatch().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:48:13 +00:00
André Pönitz
24ec082d8e cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21699 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 22:04:50 +00:00
Abdelrazak Younes
4b1812a791 set eol-style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21696 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:18:04 +00:00
André Pönitz
02a7584d5a get rid of a boost::signals::connection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21695 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:15:23 +00:00
Abdelrazak Younes
a37a73e3c9 Introducing GuiMenubar::init() to avoid destructing the object in order to re-initialize it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21694 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 21:14:34 +00:00
André Pönitz
77a89e1486 remove unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21693 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 20:32:17 +00:00
Abdelrazak Younes
8460c9a072 Introducing Application::resetGui() that will reset all dialogs in all lyx windows (including toolbars and menubars).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-21 15:12:47 +00:00
Abdelrazak Younes
0f56650139 Fix initial disabling of the layout combo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21686 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:29:17 +00:00
Abdelrazak Younes
e615380e42 Fix crash when closing a buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21685 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:23:06 +00:00
Abdelrazak Younes
ba3fa9bd03 - Cleanup and simplify the layout list GUI handling.
- Transfer toolbar, statusbar and layoutlist handling to the frontend.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21684 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-20 22:03:56 +00:00
Abdelrazak Younes
359ced5e65 Transfer some LFUNs from LyXFunc to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21681 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 20:56:05 +00:00
Abdelrazak Younes
14dbb6ca3d correct comment. Thanks Martin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21678 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 14:13:06 +00:00
Abdelrazak Younes
37a5647be1 Transfer LyXView::loadLyXFile() to lyxFunc::loadAndViewFile(). This enables to get rid of the flashing tabbar bug and is more correct anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21677 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 12:03:38 +00:00
Abdelrazak Younes
7e9cf3cec1 Resize bug correction. The tabbar hiding trick did not interact correctly with resize events :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21676 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 11:21:45 +00:00
Abdelrazak Younes
c0a9d2587c Painting tweaks:
- avoid one redraw on file loading due to a resize event.
- fix the initial offset_ref_ value of BufferView.
- add new TabWorkArea::addWorkArea() method.
- avoid tab bar flashing when only one file is opened.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21674 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 10:04:14 +00:00
Abdelrazak Younes
dba4159cc2 Remove some methods from GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21672 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 23:49:52 +00:00
Abdelrazak Younes
6feb6a8947 use sizeof instead of hardcoded value.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21671 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 23:46:15 +00:00
Abdelrazak Younes
c61ff2e0b8 cleanup and reorder initialisation code of GuiView and GuiToolbars. Move some things to GuiView::Private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21670 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 23:30:41 +00:00
Abdelrazak Younes
7d209e5c32 Fix long standing initialisation FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21669 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:51:58 +00:00
Abdelrazak Younes
9f26cdda31 rev 21667: Forgot this!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21668 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:29:58 +00:00
Abdelrazak Younes
01470ddcb7 Remove unused methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21667 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 22:27:04 +00:00
Abdelrazak Younes
b3ae9f9b71 ParagraphMetrics::computeRowSignature(): Fix crc computing; char_type is 4 bytes!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21666 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 21:47:46 +00:00
Abdelrazak Younes
1b147f12b0 Spoiling some fun from Andre': put Application on a diet and remove unnecessary string conversions and method indirections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21665 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 20:36:52 +00:00
André Pönitz
7bd8477a60 less string conversions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 10:14:43 +00:00
André Pönitz
d5fc2425a9 consolidate showDialog() incarnations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21662 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 00:39:15 +00:00
André Pönitz
55b4fbcf21 merge GuiView/Dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21661 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-18 00:01:14 +00:00
Pavel Sanda
ae4535adb3 Fix initialization warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21660 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:55:30 +00:00
André Pönitz
719a7beb48 make Application slimmer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21659 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:37:33 +00:00
André Pönitz
12f435035a move view_ids from Application to GuiApplication
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21658 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:25:42 +00:00
André Pönitz
d837643c95 make frontend::Application a bit slimmer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21657 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 22:11:11 +00:00
André Pönitz
1005c166c2 merge frontend::Gui and frontend::Application
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21656 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 20:47:50 +00:00
Abdelrazak Younes
bdf33a2a32 Fix mouse selection drawing by brute force.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21655 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 18:17:19 +00:00
Pavel Sanda
49094adfa2 Implement --enable-monolithic-{insets,mathed,core}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21654 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 15:37:29 +00:00
André Pönitz
dac06728cb shuffle code around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21653 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 15:32:12 +00:00
Jürgen Spitzmüller
fa07bad49c * LaTeXFeatures.cpp (useLanguage):
- require the CJK package for CJK languages.
* BufferParams.cpp (writeEncodingPreamble):
	- load CJK package if required.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21652 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 12:37:18 +00:00
Abdelrazak Younes
926abae753 Simplify single par drawing:
* ParagraphMetrics::computeRowSignature(): Integrate row's dimensions and selection status in the row signature.
* TextMetrics::drawParagraph(): compute the row signature here and rely on that to decide if a redraw is needed or not.
* BufferView::Private: get rid of the ViewMetricsInfo member. Just keep the ScreenUpdateStrategy.
* BufferView::draw(): full screen update even for singlePar case because the row signature will detect if something needs to be redrawn.
* Text3.cpp: get rid of hack following architecture update.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21650 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 11:27:03 +00:00
Abdelrazak Younes
fd34bd3914 Cosmetics and cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21649 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 23:00:57 +00:00
Abdelrazak Younes
7a4c9a258e row selection tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21648 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:52:15 +00:00
Abdelrazak Younes
92b4b75a8f add '-' between LyX and version.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21647 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:21:40 +00:00
Abdelrazak Younes
d9194a2fcf Add version to application name in session info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21646 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 22:10:35 +00:00
Abdelrazak Younes
ce46ca8653 Hopefully fix the ignored -geometry option under X11.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21645 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 21:52:04 +00:00
Abdelrazak Younes
e0a62da75a Change organization name to LyX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21644 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 17:28:50 +00:00
Abdelrazak Younes
ce84d0b6fc Work around X11 Windows manager limitations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21643 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 17:19:46 +00:00
Jean-Marc Lasgouttes
70a25df0ee remove properly [[context]] strings from translated messages
src/Messages.cpp: general cleanup.
	(cleanTranslation): remove [[context]] strings from a docstring. Use
	plain string manupulation instead of regular expressions.
	(get): use cleanTranslation also on strings that got translated.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21641 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 14:31:16 +00:00
Jean-Marc Lasgouttes
8b1cc5bfef * src/Text2.cpp (deleteEmptyParagraphMechanism): do not reset the
appendix marker if the deleted paragraph was the last one (bug 4352)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21639 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 13:33:21 +00:00
Martin Vermeer
3ea8ddf7f9 Fix font bug reported by Helge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21638 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 12:39:10 +00:00
Abdelrazak Younes
ded737b109 WIN32 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21637 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 11:26:05 +00:00
André Pönitz
72e3177e3d shuffle some code around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21636 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 22:30:16 +00:00
André Pönitz
bb5f33e4d9 merge the two parts of the implementation of frontends::Dialogs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21635 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 21:57:00 +00:00
André Pönitz
e1ce2f92db reduce line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 20:04:51 +00:00
Abdelrazak Younes
79e12182cb cosmetics and comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 19:46:30 +00:00
Abdelrazak Younes
f46454fb7a Avoid unnecessary redraw when selecting text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21629 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 18:01:04 +00:00
Abdelrazak Younes
8c1f803b83 simplify text selection drawing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21628 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 17:01:38 +00:00
Abdelrazak Younes
bba8891efb Add InsetOptArg to standard insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21627 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 15:40:01 +00:00
Abdelrazak Younes
e73f8040fe Use QSettings for session management of windows geometry. This commit also removes the possibility to fix the window dimensions in the RC file. Instead we have now a single check box for enabling/disabling geometry session management.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21625 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 12:58:44 +00:00
Abdelrazak Younes
55217e352c Remove support for Qt < 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21624 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 12:51:03 +00:00
Pavel Sanda
a5449f2b7d Add format hint for command line export
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21623 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 12:14:39 +00:00
Abdelrazak Younes
fa2693ae3d compile fix when ENABLE_NLS is not defined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21622 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 09:03:30 +00:00
Enrico Forestieri
067e21046f Fix bug that files with nonascii filenames are always reported
as externally modified.

	* src/Buffer.cpp (Buffer::readFile): filenames are always stored
	as UTF-8 in the FileName class.

	* src/support/FileName.h: correct comment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21620 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 23:30:13 +00:00
André Pönitz
a3393e63b8 unneeded stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21619 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 22:29:20 +00:00
André Pönitz
f0fee538c2 more strfwd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21618 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 21:57:43 +00:00
André Pönitz
f4292fcec7 usr strfwd
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21617 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 21:36:01 +00:00
André Pönitz
e6042e15f3 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21616 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 21:24:18 +00:00
Stefan Schimanski
41ebe5e752 * added forgotton undo call for LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21614 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:59:58 +00:00
Abdelrazak Younes
b716616322 cleanups and cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21612 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:39:16 +00:00
Stefan Schimanski
240e59ae0d * fixed bug #4357 when pasting a macro with script index
* fixed some other unreported bug when the cursor is not inside or near the macro during fold/unfold
 * fixed the bug that the cursor jumped into the first parameter when pasting a macro. This should only happen when the macro was entered interactively


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21611 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 17:33:49 +00:00
Abdelrazak Younes
3ab1031f97 Fix wrong setting of language when only font change is requested.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21610 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 15:07:08 +00:00
Abdelrazak Younes
a97fcadb9d fix drawing issues following removal of WorkArea::width() and height().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21608 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 14:34:55 +00:00
Abdelrazak Younes
1f4e5c926a Bump the Qt requirement to version 4.0.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21607 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 14:24:59 +00:00
Abdelrazak Younes
e5eabfe067 Transfer geometry related session code from LyX::newLyXView() to GuiView::setGeometry().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21606 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 13:56:13 +00:00
Abdelrazak Younes
9c928fba07 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21602 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 12:31:31 +00:00
Abdelrazak Younes
e4fff1a3df Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21601 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 12:29:42 +00:00
Abdelrazak Younes
0c6306060e Fix the disappearing minibuffer by don't pretending we are flexible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21600 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 11:14:06 +00:00
Abdelrazak Younes
dd0ff2d0f7 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21599 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 08:17:55 +00:00
Pavel Sanda
1098ca796f Fix bug 2738: Wrong sorting of languages in Document dialog
http://bugzilla.lyx.org/show_bug.cgi?id=2738



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 02:01:50 +00:00
André Pönitz
d93679c1db cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21596 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:21:31 +00:00
André Pönitz
5609f23db4 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21595 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:09:52 +00:00
André Pönitz
cc7b2d438f compile fix;
cosmetics;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21594 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 00:04:00 +00:00
André Pönitz
f625dd7ea0 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21593 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:50:28 +00:00
André Pönitz
cf9d42c670 shuffle stuff around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21591 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:21:29 +00:00
Enrico Forestieri
a53e2ac8dc Fix thinko in r21048
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21590 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:06:40 +00:00
Enrico Forestieri
12aa33ff01 Fix thinko in r21047
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21589 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:05:02 +00:00
André Pönitz
0ee7c6e283 remove #includes; cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21588 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 23:00:36 +00:00
Abdelrazak Younes
12ecafd76e Transfer createView() from Application to GuiApplication and get rid of LyXView::setGeometry() pure virtual interface. The goal is to switch to Qt session handling for geometry instead of our own house made one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21585 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 15:29:15 +00:00
Abdelrazak Younes
f8490161bd Transfer some LFUNs from LyXFunc to GuiView and get rid of GuiView methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21583 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 14:49:50 +00:00
Abdelrazak Younes
fcdc4f8a6b Some more cosmetics and removal of unused methods in GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21582 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 14:04:32 +00:00
Abdelrazak Younes
f111a8e322 Some cosmetics and a gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21581 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 13:23:44 +00:00
Abdelrazak Younes
37d4a67e0d brown paper bag...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21580 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:47:40 +00:00
Abdelrazak Younes
e2aba1b550 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21579 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:31:37 +00:00
Abdelrazak Younes
4fc7593ab6 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21578 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:24:34 +00:00
Abdelrazak Younes
4eb2740a0d Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21577 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:20:55 +00:00
Martin Vermeer
979239a248 Make URL a standard inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21576 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 10:03:16 +00:00
Abdelrazak Younes
c4db1d0f5a Push latest Andre's changes toward their true direction:
* WorkArea.h and LyXView.h: remove unneeded pure virtual interface.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21575 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 09:52:28 +00:00
Stefan Schimanski
066de606d2 cosmetic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21574 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 07:58:52 +00:00
Richard Heck
038d2b494e Stupid mistake. Thanks TC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21572 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 01:06:49 +00:00
Enrico Forestieri
7bfa3826d2 Fix slot connections
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21571 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-13 00:38:21 +00:00
André Pönitz
107568e9fe remove unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21570 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:45:02 +00:00
André Pönitz
ffd3c159bf cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21569 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:41:13 +00:00
André Pönitz
c256661047 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21568 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:37:34 +00:00
André Pönitz
600db8e21d small refactoring
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21567 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:26:51 +00:00
André Pönitz
309232d26b make LyXView almost pure virtual. Merge implementation with GuiView
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21566 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 23:23:19 +00:00
André Pönitz
36136efb78 de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21561 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:35:43 +00:00
André Pönitz
bc20c9f382 remove unneeded functions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21558 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:23:45 +00:00
André Pönitz
34859c9a4f make WorkArea a pure interface, move all implementation to GuiWorkArea
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21557 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:15:51 +00:00
Stefan Schimanski
963470c60e * fix crash due to a missing test whether thisSlice is -1 or a valid slice number
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21556 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 22:12:39 +00:00
André Pönitz
adaad6e2e5 simplify class structure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21554 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 20:18:19 +00:00
Abdelrazak Younes
fe8bce6676 Transfer readOnly() and updateWindowTitle() from Delegates to WorkArea/WorkAreaManager. This permits to automatically update Windows and Tabs titles (thanks to Qt signal/slot connections).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21551 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 22:30:21 +00:00
André Pönitz
656724ffd0 undef unwanted X11 macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21547 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 12:14:06 +00:00
Abdelrazak Younes
2480fa573c * GuiView:
- addTabWorkArea(): Implement split view.
- maintain current_work_area_ pointer for the need of future embedded workAreas.
- transfer and some code to GuiView::Private and simplify some other things.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21546 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-11 10:09:48 +00:00
Uwe Stöhr
565e446e26 FileName.cpp: MSVC compile fix for r21492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21545 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 20:36:22 +00:00
André Pönitz
8d06b3049b cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21544 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 13:44:50 +00:00
Jürgen Spitzmüller
873ee23697 * src/LyXRC.cpp (lyxrcTags[]):
- fix ordering (broken in r21536).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21543 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 11:39:49 +00:00
Jürgen Spitzmüller
c159b9ece9 * src/LyXFunc.cpp (actOnUpdatedPrefs):
- add missing case LyXRC::RC_DEFFILE (and shut up compiler)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21542 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 11:22:19 +00:00
Jürgen Spitzmüller
208feabc07 * src/Text.cpp:
- safer (but slightly less nice) fix for bug 4334. Fixes bug 4347 that was introduced in r21489.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21541 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 11:05:38 +00:00
Pavel Sanda
87bd0e79ad Fix bug 2739: Option for alphabetical sorting of environments in the toolbar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21536 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 00:21:42 +00:00
Enrico Forestieri
2a03009a75 Much ado about nothing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21530 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-09 10:54:45 +00:00
Abdelrazak Younes
5d906055af revert 21523.
Sorry Uwe but if this does not compile it is a problem on your system.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21529 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-09 10:36:56 +00:00
Uwe Stöhr
5cd5bf695e GuiFloat.cpp: fix the regression that float placement dialog has no title
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21525 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 23:05:48 +00:00
Uwe Stöhr
803a4be927 FileName.cpp: compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21523 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 22:48:23 +00:00
André Pönitz
f4e883c475 use strfwd when appropriate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21520 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 21:52:09 +00:00
André Pönitz
fdd5134a24 #undef I_AM_NOT_AFRAID_OF_HEADER_LIBRARIES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21519 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 21:38:10 +00:00
Enrico Forestieri
edb6c9ede4 Always forward declare string as it is not guaranteed that the
iosfwd header already does it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21518 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 13:32:56 +00:00
Stefan Schimanski
d51c3cd2f8 * added comment to describe why we are in monochrome mode at this point.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21517 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 10:14:18 +00:00
Abdelrazak Younes
b9eecfab8a optimizations (halves the number of multiplication).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21516 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 08:00:31 +00:00
Abdelrazak Younes
3a1290815e Fix compilation for MSVC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21514 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 07:47:31 +00:00
Enrico Forestieri
4a35906da7 Fix problems with odocstream on "exotic" systems caused by the strfwd gimmick.
* src/support/docstream.{cpp,h}:
	Move insertion operator for char types from docstream.h to
	docstream.cpp and compile it only when USE_WCHAR_T is not defined.

	* src/support/strfwd.h:
	Implement forward declarations in standard C++ way.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21513 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 06:05:19 +00:00
André Pönitz
14f7e7fffe shuffle stuff around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21511 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 00:09:58 +00:00
Abdelrazak Younes
c1c5e5b50e compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21510 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:39:12 +00:00
Abdelrazak Younes
4bf0bed36a Adjust headers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21508 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:34:45 +00:00
Abdelrazak Younes
6904f34e48 adjust comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21507 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:27:17 +00:00
Abdelrazak Younes
cdf1378200 Introducing TextClassPtr.h to minimize header dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21506 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:25:08 +00:00
Abdelrazak Younes
b7cc721833 Move InsetLayout definition to insets/InsetLayout.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21502 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 22:31:07 +00:00
Abdelrazak Younes
dec166d5e3 compil fix. No guaranty that it works but at least it compiles with MSVC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21501 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 22:20:13 +00:00
André Pönitz
319f70b839 use support::FileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21500 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 22:04:02 +00:00
André Pönitz
9746bda072 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21499 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 21:59:19 +00:00
Abdelrazak Younes
4aa5f6cd2d cleanups
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21498 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 21:57:19 +00:00
André Pönitz
be85a6fcb5 --boost; style issues.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21497 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 21:52:11 +00:00
André Pönitz
a1eb7cac0e more of it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21496 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 21:25:22 +00:00
André Pönitz
5253f5f17d Abdel?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21495 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 20:44:36 +00:00
André Pönitz
a15472ecfe compile fix?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21494 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 20:22:46 +00:00
André Pönitz
b55a179d51 more de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21493 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 20:14:30 +00:00
André Pönitz
cf7b238479 more use of support::FileName.
Would be nice if people tested read/write, and Bo perhaps the 'embedded'
feature?



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21492 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 19:52:11 +00:00
Abdelrazak Younes
e61bae3dbb revert rev 21490.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21491 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 16:41:48 +00:00
Abdelrazak Younes
5a8a8b6b0c integrate lengthcommon.cpp into Length.cpp.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21490 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 15:55:59 +00:00
Jürgen Spitzmüller
cd4c58fb92 * src/Text.cpp (getPossibleLabel):
- remove line breaks from label proposals (fixes bug 4334)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21489 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 15:30:08 +00:00
André Pönitz
a88884aaa2 simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21483 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 22:20:05 +00:00
André Pönitz
688c186614 we assume (more or less) conforming compilers nowadays.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21482 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:45:24 +00:00
André Pönitz
a8ea5cc493 rmove unused file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21481 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:18:39 +00:00
André Pönitz
f6fd9f1172 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21480 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:00:00 +00:00
André Pönitz
8995e86584 some consolidation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21478 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 20:57:29 +00:00
André Pönitz
f09222007f cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21477 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 20:38:35 +00:00
Abdelrazak Younes
216775d3c7 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21476 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 19:24:05 +00:00
Jürgen Spitzmüller
ddbcee01ac * src/BufferView.cpp:
- move the LFUN_OUTLINE_*'s out of here ...
* src/Text3.cpp:
	- to this place. This fixes a crash (bug 4330).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21475 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 17:13:43 +00:00
Abdelrazak Younes
bac194f5db Revision 21471: Forgot that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21472 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:18:09 +00:00
Abdelrazak Younes
0b0c27ef59 * BufferView: Make use of ScreenUpdateStrategy::NoScreenUpdate, avoid a screen redraw when it is not really needed.
* Painter.h: move isDrawingEnabled() to public Area.

* TextMetrics::drawParagraph(): backup and restore original drawing state of the Painter.

* InsetTabular::draw(): ditto.

* InsetMathNest::drawSelection(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21471 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:07:49 +00:00
Jürgen Spitzmüller
f9dd4b000e * src/frontends/qt4/GuiSpellchecker.cpp:
- reanimate the spellchecker.
	- fix bug 2218 (spellchecher skips first word)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21469 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:40:31 +00:00
Abdelrazak Younes
d69115d9db Avoid unnecessary redraw.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21468 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:16:27 +00:00
Abdelrazak Younes
e660f44001 Current update architecture doesn't need multiParSel() special case anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21467 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 09:34:16 +00:00
Jürgen Spitzmüller
3c5ff007e0 * src/mathed/InsetMathBig.cpp:
- add missing include.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21466 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 09:30:33 +00:00
Abdelrazak Younes
52ee452334 some documentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21465 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 09:09:29 +00:00
Abdelrazak Younes
257117ac1e Oups...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21464 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 08:57:48 +00:00
Abdelrazak Younes
f84080f01c * Bufferview::updateMetrics(): Separate out the SinglePar optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21463 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 08:32:25 +00:00
Martin Vermeer
dd0c77d063 Fix bug 4329
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21460 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 07:07:15 +00:00
André Pönitz
9daf07588f #include cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21459 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:46:17 +00:00
Dov Feldstern
7bf4f48a4a Use forceLTR instead of inset codes in order to determine whether an inset
should be surrounded by external \L{} in bidi text.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21458 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:44:47 +00:00
André Pönitz
31617cf92a remove unneeded #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21457 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 23:01:18 +00:00
André Pönitz
9cca7a0c1a remove unneeded Cursor.h include;
use strfwd 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21456 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 22:54:53 +00:00
André Pönitz
77821e11c1 merge helper files;
remove duplicated lyx::frontend::setAutoTextCB(QCheckBox*, QLineEdit*, LengthCombo*)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21455 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 22:20:23 +00:00
André Pönitz
7ced3deb52 use forward declaration...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21454 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 21:42:08 +00:00
Martin Vermeer
1c05c37696 Revert 4323/2 fix addRow -> appendRow part
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21451 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 20:54:28 +00:00
André Pönitz
5216137bdb cosmetics as hinted by uncrustify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21450 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 20:33:20 +00:00
Dov Feldstern
cd95a4bae8 Getting rid of LTR bias --- part 4/4
This is the final patch (at least for now). This one deals with the idxFoo
methods in the math insets. The previous patches in the series are r21128, 
r21244 and r21448.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21449 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 19:44:03 +00:00
Dov Feldstern
ddd82f7aa4 Getting rid of LTR bias --- part 3/4
This is a continuation of r21128, r21244


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21448 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 19:41:16 +00:00
Bernhard Roider
e077f03643 more complete fix for bug 4318 and variants (see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg130765.html)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21444 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 16:52:34 +00:00
Jürgen Spitzmüller
ab8bbd9b88 * src/LyXFunc.cpp (actOnUpdatedPrefs):
- add missing LyXRC::RC_USE_PIXMAP_CACHE to switch,

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21441 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 15:50:00 +00:00
Abdelrazak Younes
ff189f6c70 Rename GuiViewBase to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21436 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 13:52:37 +00:00
Abdelrazak Younes
c1afc30a8a Fix bug 4317 and update comment WRT current situation of trunk.
http://bugzilla.lyx.org/show_bug.cgi?id=4317

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21435 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 12:04:47 +00:00
Jürgen Spitzmüller
33d8394fbb * src/mathed/InsetMathGrid.cpp:
- clear selection before deleting row/column (fix bug 4323/1).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21433 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 10:46:39 +00:00
Abdelrazak Younes
adfa69440d Get rid of InsetFlexParams
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21432 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 10:14:19 +00:00
Martin Vermeer
70c8d87745 Fix bug 4323/2, and more logical naming of addRow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21429 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 09:51:37 +00:00
Jürgen Spitzmüller
45399e1e7a * src/mathed/MathParser.cpp (getChar):
- return 0 instead of char_type(), which is unpredictable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21426 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:55:32 +00:00
Jürgen Spitzmüller
3cafb856d7 * src/mathed/MathParser.cpp (getChar):
- empty return if the char is not good() (fix bug 4318).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21425 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:15:57 +00:00
Jürgen Spitzmüller
30acdbebfa * src/LyXRC.cpp: shut up compiler.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21420 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 11:29:12 +00:00
Jürgen Spitzmüller
097d1d3215 * src/frontends/qt4/GuiPrefs.cpp: fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21418 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 11:12:59 +00:00
André Pönitz
48b2b1d329 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21417 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 09:51:26 +00:00
André Pönitz
7c41973d51 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21411 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 20:52:09 +00:00
André Pönitz
35ee849f2a ugly and not strictly needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21410 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 20:45:14 +00:00
André Pönitz
14918bf4b9 remove unneeded @includes from BufferView.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21409 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 18:50:54 +00:00
André Pönitz
437693005c *sigh*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21408 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 18:30:05 +00:00
Dov Feldstern
64b276b6fc Force latin-only InsetCollapsables into LTR environment if surroundings are RTL.
This fixes, for example, the URL inset, which used to be  included here 
explicitly when it was a standalone inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21407 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 18:12:52 +00:00
Dov Feldstern
c4d8c85a09 rename asTextInset -> asInsetText (to conform with asInsetCollapsable, asInsetMath)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21406 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 18:07:41 +00:00
André Pönitz
5b396fd149 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21405 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 17:56:29 +00:00
André Pönitz
09b7e6e60a some std::string -> filename changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21404 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 17:37:37 +00:00
Martin Vermeer
2fbc75b552 Apply \protect more selectively for special phrases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21403 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 17:07:37 +00:00
Abdelrazak Younes
041313e3b5 remove two FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21401 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 11:40:41 +00:00
Abdelrazak Younes
dc2a6f95ff Transfer some code from InsetFlex to InsetCollapsable. Add some safeguards and FIXMEs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21400 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 09:03:08 +00:00
Abdelrazak Younes
5b8c4888d7 Also give sane labelfont to modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21398 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 01:41:27 +00:00
Abdelrazak Younes
a3f8b0f171 Fix copy&paste of Insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21397 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 00:56:48 +00:00
Abdelrazak Younes
85f80979fc Further cleanup of InsetFlex, InsetCollapsable and InsetLayout:
- Getting rid of some unneeded init() methods.
- InsetCollapsable::layout_ is now a const pointer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21396 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 00:35:07 +00:00
André Pönitz
09df753df4 pimpl not needed here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21395 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 23:42:27 +00:00
Abdelrazak Younes
ebd2089bc2 Remremove unneeded init() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21394 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 23:12:43 +00:00
Abdelrazak Younes
fc0f77044d fix layout of InsetBox and remove unused InsetCollapsable methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21393 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 22:10:59 +00:00
Abdelrazak Younes
d45d7de8c3 Further cleanup of collapsable insets. The layouts are now properly read and applied.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21392 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 21:27:41 +00:00
André Pönitz
c08309a9e2 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21391 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 21:27:37 +00:00
André Pönitz
47cd08999c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21390 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 21:04:52 +00:00
André Pönitz
f8f78fe59d de-tuple-fication; cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21389 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 20:41:04 +00:00
André Pönitz
65ce182131 I wonder why boost::tuple is preferable over a simple struct.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21388 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 20:26:28 +00:00
André Pönitz
f370da4113 some de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21387 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 19:59:08 +00:00
Abdelrazak Younes
f038c80e33 Remove fontlabel initialisation bug work-around. We should fix the inset layout definition parsing instead.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21386 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 18:33:59 +00:00
Abdelrazak Younes
c5f981f34c Fix initial numbering of foot notes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21385 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 18:19:45 +00:00
André Pönitz
843bddd6cf no controllers directory anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21384 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 18:14:49 +00:00
Abdelrazak Younes
e33efb3c31 remove unneeded init() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21383 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 17:58:16 +00:00
Abdelrazak Younes
c51f1cffaa * InsetCollapsable:
- InsetCollapsable(): Move labelfont initialisation to InsetCollapsable::setLayout().
- read(): reset the inset layout.

All other insets: get rid of redundant setLayout() calls.

This commit fixes the multiple crashes in trunk but the color used for text and background are completely wrong...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21382 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 17:47:51 +00:00
Abdelrazak Younes
37af3d5a3d revert accidental commit (r21380)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21381 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 17:13:39 +00:00
Abdelrazak Younes
12a3c703d1 Remove redundant code and introduce InsetCollapsable::setLabelColor().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21380 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 16:46:48 +00:00