Commit Graph

16340 Commits

Author SHA1 Message Date
Abdelrazak Younes
d5d3ccc0fa Introduce a new LyXAction property 'NoInternal' to take care of LFUNs that should not be applied to internal Buffers and use that in BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31433 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 12:36:22 +00:00
Abdelrazak Younes
0edc2c8637 Fix crash with LFUN_PARAGRAPH_GOTO in embedded work area.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 08:21:37 +00:00
Abdelrazak Younes
57a531e970 Fix gcc warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 08:20:02 +00:00
Uwe Stöhr
cb71b8a8de GuiPrefs:
- implement an UI to specify the size of InstantPreview images
- change the default size to 1.0 because we've got many complaints that the former default size of 0.9 was too low

Both changes fix #6176.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-21 00:44:43 +00:00
Enrico Forestieri
3f5c1bb73a Correctly reinitialize ind when successive lines are to be indented.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 22:58:55 +00:00
Abdelrazak Younes
1e0f34182e Stupid cut&paste error in previous revision. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31420 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 21:58:35 +00:00
Abdelrazak Younes
53797b653a Try to dispatch to document BufferView in case dispatch to current BufferView fails. This is needed for the LFUNs introduced in r31412
URL: http://www.lyx.org/trac/changeset/31412




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 21:41:21 +00:00
Abdelrazak Younes
f10a5043a9 Kornel's gcc compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31418 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 19:37:26 +00:00
Abdelrazak Younes
16a82d6f97 * Move LFUN_TEXTCLASS_* and LFUN_TEXTCLASS_* to BufferView. This is a bit problematic because we don't check is this is a document BufferView or not for these LFUNs. We probably have to dispatch both to currentBufferView() and, if that fails, to documentBufferView(); same as we do know for current Buffer and document Buffer. Ideally those LFUN should go to Buffer as they operate on the full Buffer and the cursor is only needed either for an Undo record or to restore a cursor position. But we don't know how to do that inside Buffer of course.
* I transferred local function loadLayoutFile() in LyXFunc.cpp to a LayoutFileList::load().

Richard, as I am not into this layout thing, please check that these LFUNs still operate correctly (except from an embedded work area of course).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31412 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 20:56:12 +00:00
Abdelrazak Younes
4d7ed2056b move LFUN_BUFFER_PARAMS_APPLY to BufferView. I needed to make LyXFunc::updateLayout() public but this method is misplaced there.
LFUN_BUFFER_PARAMS_APPLY has now a status (disabled if read-only).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31411 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 17:56:53 +00:00
Abdelrazak Younes
1d5345289c Move LFUN_KEYMAP_* to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31410 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:59:36 +00:00
Abdelrazak Younes
c1696ccae3 * Move LFUN_BUFFER_CHILD_OPEN to GuiView.
* GuiView:openChildDocument(): New helper method, I removed the comment about bug 3970 because it doesn't apply anymore with this change.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:49:31 +00:00
Enrico Forestieri
a55a0b8f2d Fix bug #6215 (spotted by Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31408 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:15:09 +00:00
Abdelrazak Younes
3f15969746 LyXView: remove closeBuffer() and closeBufferAll() pure virtual interfaces
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31407 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:14:03 +00:00
Abdelrazak Younes
898dbc2699 Fix gcc compile bug... weird...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31401 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:42:07 +00:00
Abdelrazak Younes
37f71fba12 * Move LFUN_BUFFER_CLOSE and LFUN_BUFFER_CLOSE_ALL to GuiView.
* Create a status for LFUN_BUFFER_CLOSE

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31400 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:34:46 +00:00
Abdelrazak Younes
1be79d02e5 Move LFUN_BUFFER_LANGUAGE to Buffer and enables it only when the document is not read-only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31399 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:20:05 +00:00
Abdelrazak Younes
93998bb239 * Move Buffer specific LFUNs to Buffer::dispatch() and Buffer::getStatus().
There is a FIXME in there that says that if some LFUN need to be dispatched even if the Buffer is internal then we should add some code. But I couldn't find any for now.
* Move LFUN_BUFFER_IMPORT status to GuiView where it belongs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31398 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 14:05:52 +00:00
Abdelrazak Younes
226ebea2bf Transfer LFUN_BUFFER_TOGGLE_READ_ONLY to Buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 11:59:39 +00:00
Abdelrazak Younes
416caba0ec Transfer completely LFUN_COMMAND_EXECUTE and LFUN_MESSAGE to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31396 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 11:54:23 +00:00
Richard Heck
0dc39929a4 It appears that somewhere along the way, backing up originals when saving
got conflated with autosaving, with the result that it became impossible to
disable autosaving, as reported on the user list. This patch disentangles 
the two again.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31395 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-18 16:44:20 +00:00
Enrico Forestieri
2245f82f96 Properly reset the stream encoding after an environment. Fixes bug #6216.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-16 20:50:40 +00:00
Enrico Forestieri
74f6083a33 Constify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31388 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 18:12:11 +00:00
Enrico Forestieri
b43aa05ff1 Fix display of toolbar icons after r31255.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31387 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-13 18:09:40 +00:00
Vincent van Ravesteijn
6494fc15c1 Fix bug #6188: Assertion with multiple views of same document.
We have to prevent that two views share the same ID, also when an id was supplied (because we can open the same document twice).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31381 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 23:50:03 +00:00
Enrico Forestieri
21fcdfb479 Fix a crash when the modified uncompleted macro is a font changing command.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31379 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 21:20:51 +00:00
Abdelrazak Younes
1d7d54a4a7 Move LFUN status check to where they belong.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31378 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 21:12:24 +00:00
Abdelrazak Younes
6854d67067 some more buffer -> document buffer fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 20:55:35 +00:00
Abdelrazak Younes
91bfdfe57c Move LFUN_BUFFER_RELOAD and LFUN_VC_* to GuiView. Try to use the document buffer correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-12 20:41:24 +00:00
Enrico Forestieri
68809af49b Properly reinitialise the OVERLAPPED structure (thanks Vincent!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31371 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-11 18:19:59 +00:00
Tommaso Cucinotta
df3df64b8a Added scrollbar that shows up when dialog too small, so all buttons are accessible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31370 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-11 17:54:21 +00:00
Jürgen Spitzmüller
71001a8087 Fix bug 6179 ("|" in index entries not embraced in ERT by lyx2lyx).
* OutputParams.{cpp,h}:
	- new param inIndexEntry
* InsetIndex.cpp (latex):
	- set param.
* InsetErt.cpp (plainText):
	- output active chars in IndexInsets

* lib/lyx2lyx/lyx_1_6.py:
	- embrace "|" in ERT when converting old index entries to collapsables.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31360 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-10 12:07:42 +00:00
Vincent van Ravesteijn
3be8389d61 Move LFUN_BUFFER_SWITCH from LyXFunc::getStatus to GuiView::getStatus.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31359 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-09 05:49:51 +00:00
Vincent van Ravesteijn
d4d8d03153 Move LFUN_WORD_FIND_FORWARD and LFUN_WORD_FIND_BACKWARD to their friends in BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31358 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-09 05:20:30 +00:00
Vincent van Ravesteijn
b53b9b9941 buffer_pimpl.C doesn't even exist.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31357 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-09 05:03:38 +00:00
Vincent van Ravesteijn
b67bf24d18 Remove other explicit tests for an internal buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31356 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-09 04:58:48 +00:00
Vincent van Ravesteijn
ffb8c7ca09 Revert r31219.
This is wrong and should have been reverted long ago and since r31340 it even doesn't have any function because addToToc isn't called for an internal buffer anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31355 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-09 04:46:32 +00:00
Tommaso Cucinotta
f3b3f62d5b Added isInternal() method, mapped temporarily on check about ".internal" filename extension (minimum impact on current code).
Replaced various replica of such check with the invocation of the new method.
TocBackend now does not call addToToc() for internal buffers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31340 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-08 01:29:07 +00:00
Tommaso Cucinotta
9673d23f08 Fix crash when positioning cursor under some conditions, e.g., when finding in the sample documents attached to #6112.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31339 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 23:58:56 +00:00
Jürgen Spitzmüller
3022189344 * GuiRef.cpp:
- use itemDoubleClicked() instead of itemActivated(). The latter is traditionally defined as single click
	  on UNIX, which is not desired here (bug 6204)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31319 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 09:04:27 +00:00
Jürgen Spitzmüller
cda4fe9dca * PrefFileformatsUi.ui:
- comboboxes adjust to contents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 06:04:17 +00:00
Jürgen Spitzmüller
3ad2817292 * Menus.cpp: Spelling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31316 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-07 05:54:51 +00:00
Jürgen Spitzmüller
b21794071f * LyXRC.cpp:
- support blanks in viewer_alternatives command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31315 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 16:06:50 +00:00
Jürgen Spitzmüller
37429e5e60 * Menus.cpp:
- re-add accelerators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31314 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 14:35:08 +00:00
Jürgen Spitzmüller
009cb16a41 * Menus.cpp:
- show name of default format.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31313 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 14:28:17 +00:00
Enrico Forestieri
2c679d1481 The call to checkStopServer was only needed when we were asking Qt
to be notified on quit. Now it is superfluous.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31312 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 14:26:59 +00:00
Enrico Forestieri
50423d0e7c Interrupt the wait if the stopserver event is triggered.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31311 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 13:49:34 +00:00
Vincent van Ravesteijn
067e770bfe Disable the TOC when no document is open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31308 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 13:07:24 +00:00
Jürgen Spitzmüller
9fd1c45578 * PrefFileformatsUi.ui: tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31307 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:53:50 +00:00
Jürgen Spitzmüller
463b056463 * GuiPrefs.cpp: cut and paste issue.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31306 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:42:31 +00:00