Commit Graph

16382 Commits

Author SHA1 Message Date
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
Abdelrazak Younes
d99a821774 Small factorization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31304 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-06 09:31:05 +00:00
Vincent van Ravesteijn
26ae0f7eca Fix LyX.
In r31286, view() was changed in currentBufferView(), but in r31290 buffer() was changed in documentBufferView()->buffer().

Please be careful with this!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31300 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 23:40:56 +00:00
Vincent van Ravesteijn
99d1937bec Compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31299 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 23:06:24 +00:00
Uwe Stöhr
62af7d74fd FindAndReplaceUi.ui: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31297 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 20:57:24 +00:00
Enrico Forestieri
9919ec3625 On Windows, shutdown the pipe server when an unrecoverable error occurs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31296 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 16:39:33 +00:00
Abdelrazak Younes
d7e7780f02 get rid of LyXFunc::view() and try to use the correct BufferView where it makes sense.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31295 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:42:53 +00:00
Abdelrazak Younes
3eb99bf4cb signed/unsigned warning fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31294 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:40:31 +00:00
Abdelrazak Younes
475fb5e65b X11 compile fix, sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:40:07 +00:00
Abdelrazak Younes
9f4bd2eb42 * copy&paste fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:12:51 +00:00
Jürgen Spitzmüller
2ebb97758c * store all available viewers/editors and allow for an alternative selection in the GUI.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31291 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:11:43 +00:00
Abdelrazak Younes
184345e4e7 * GuiView: get rid of Buffer() and documentBuffer() access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 15:09:45 +00:00
Abdelrazak Younes
b4b19b59a3 * LyXView: get rid of two pure virtual methods.
* GuiView.h: link fix, sorry.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31287 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 14:48:36 +00:00
Abdelrazak Younes
722d8c757b * LyXView:
- view() -> currentBufferView()
  - add const access to bufferViews.
* GuiView.h: cleanups


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31286 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-05 14:29:11 +00:00
Richard Heck
74cd0fab48 Better message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31279 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:53:12 +00:00
Richard Heck
c47c34b1c8 Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31277 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:52:49 +00:00
Jürgen Spitzmüller
56fcb589ae stylistics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31274 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:08:09 +00:00
Jürgen Spitzmüller
2509ff8236 stylistics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31273 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-04 13:06:43 +00:00
Tommaso Cucinotta
14c27bcea6 OutputParams.linelen now controls line-width also for LaTeX exports, additionally to plaintext ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-02 23:46:04 +00:00
Enrico Forestieri
71b8b37ac3 On Windows, use the same number of output pipe instances as that of
the input ones. In this way, two (or more) concurrent readers can each
get a reply, which otherwise would be stealed by only one of them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31254 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-31 23:32:46 +00:00
Jürgen Spitzmüller
f562e05942 * InsetIndex.cpp: add some FIXMEs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-31 12:32:39 +00:00
Enrico Forestieri
c29028f94c During an emergency cleanup, better to not indefinitely wait for
the pipe server to finish.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31241 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-30 16:06:51 +00:00
Enrico Forestieri
2d09fff374 Quit notification from Qt is not needed anymore.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31240 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-30 15:31:22 +00:00
Enrico Forestieri
40620bd83f On Windows, use true asynchronous I/O for the pipe server.
Now, even the nasty JabRef works.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31239 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-29 23:42:06 +00:00
Vincent van Ravesteijn
f733221747 Fix bug #6160 and #6182: Assertion when viewing master document.
Set Buffer to Insets when reading a document. InsetSpecialChar and InsetLine are the only Insets that are instantiated in readParToken.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-29 23:14:38 +00:00
Uwe Stöhr
f37516f116 KeyMap.cpp: more consistent messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31234 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-29 19:44:56 +00:00
Uwe Stöhr
657563448d BiblioUi.ui: fix spelling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31232 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-29 19:25:43 +00:00
Jürgen Spitzmüller
9555ed3c22 * GuiIndices.cpp:
- do not issue error if renaming has been cancelled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31229 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-27 16:47:45 +00:00
Vincent van Ravesteijn
5a02843ab2 Another fix for r30560.
When setLayout() disappeared, also the call to setButtonLabel() disappeared. Now, when changing a Note into a Comment, the button label is no longer updated. This is because labelstring_ is not empty, so the line: 

return labelstring_.empty() ? getLayout().labelstring() : labelstring_; 

introduced in r30570 has no effect.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31225 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-25 00:04:47 +00:00
Vincent van Ravesteijn
efc0435157 Fix bug #6175: Footnotes in title not translated.
see the bug for details.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31224 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-24 23:29:37 +00:00
Vincent van Ravesteijn
a6ff55e539 Fix a crash when copying flex insets to another document.
I know that Inset has a buffer, but we should be careful when handling Insets in CutAndPaste, these don't always have a buffer. Besides, we are in the function switchBetweenClasses(oldone, newone). Then it's pretty strange to ask the flex inset whether it is defined in its buffer->textclass, while we have an explicit new textclass defined.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31223 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-24 23:02:50 +00:00
Jean-Marc Lasgouttes
eef60e5197 fix part of ticket #6142: avoid a memory access error when an encoding is unkonwn
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31222 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-24 22:06:51 +00:00
Tommaso Cucinotta
e7673ebc4d Added shortcuts for Basic/Advanced panes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31220 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-24 11:42:41 +00:00
Tommaso Cucinotta
476fce263a This fix suppresses the "BROKEN:" tag on references to labels, when the reference is within an "internal" buffer, i.e., associated to an Embedded WorkArea (such as the Advanced Find&Replace Find... or Replace with... boxes).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31219 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-24 11:41:58 +00:00
Enrico Forestieri
3ab2267014 Don't start the pipe server if the pipe is already in use.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31213 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-23 14:40:26 +00:00
Enrico Forestieri
736d7f82a1 Properly stop the pipe server when LyX is quitting
but the answer to a client is still pending.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31212 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-23 13:27:08 +00:00
Vincent van Ravesteijn
c41a38d7d3 Revert the rtl-part of r30962.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31205 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 17:51:41 +00:00
Tommaso Cucinotta
57f1c58598 Added at the LyXView level distinction among currently selected WorkArea (and BufferView) and document WorkArea (and BufferView).
Fixes crash when opening both Toc Panel and Advanced Find and Replace Panel.
Fixes preview of document (as opposed of previewing the search/replace text) while search/replace WorkArea selected.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31203 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 16:16:56 +00:00
Tommaso Cucinotta
ab06049950 Advanced Find and Replace turned to a NoBuffer dialog (however, it keeps being disabled if no buffer is open, needs fix).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31202 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 16:09:44 +00:00
Tommaso Cucinotta
50c6ba17e5 Fix of issue when searching at paragraph boundaries when non-ignoring format.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31201 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 16:06:19 +00:00
Vincent van Ravesteijn
c11f031df6 Fix bug #5991: Select function in environments.
C-M-a now selects the contents of an inset, if the whole inset is already selected, it will jump out the inset and selects everything in that inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:44:08 +00:00
Vincent van Ravesteijn
9bb61acfd5 Fix inset-begin and inset-end. Now, if the cursor was at the beginning of a paragraph in the middle of the inset, inset-begin would jump out of the inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31199 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:34:50 +00:00
Enrico Forestieri
48568fef53 Now inverse dvi/pdf search is also possible on Win, so we should
care that no backslashes can slip in.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 14:04:23 +00:00
Enrico Forestieri
cd475bad39 Perform the clean up at the right place. Also put the event in the
nonsignaled state, otherwise after a shutdown the server would be
continually stopped...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31194 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 12:22:46 +00:00
Enrico Forestieri
96a8d85c7c Correct clean up on pipe server shutdown.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31192 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-22 11:23:11 +00:00
Enrico Forestieri
fc97861803 Implement the LyXServer on Windows.
Only for autotools, I don't know how to update cmake and scons, sorry.
For cmake and scons, you should make sure that moc is called on Server.h
using the -D_WIN32 option.

In order to enable the server, specify the LyXServer pipe in
Tools->Preferences->Paths. The path to be entered there must have the
form "\\.\pipe\nameofyourchoice" (without quotes). After that, you can
send commands to LyX. For example, if the pipe path is \\.\pipe\lyxpipe,
typing the following in a terminal:

echo LYXCMD:test:file-open > \\.\pipe\lyxpipe.in
type \\.\pipe\lyxpipe.out

brings up the file dialog and returns the acknowledgment from LyX.
Beware of spaces when using cmd.exe. For example, the following:
echo LYXCMD:test:file-open:foo.lyx> \\.\pipe\lyxpipe.in
will correctly load the document named foo.lyx, but
echo LYXCMD:test:file-open:foo.lyx > \\.\pipe\lyxpipe.in
(notice the space before the redirection) will try to load a
document whose name is "foo.lyx .lyx" because cmd.exe will also
pass the space (sigh).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31189 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 22:58:38 +00:00
Vincent van Ravesteijn
b93ce810f9 One more obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31183 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 20:31:32 +00:00
Vincent van Ravesteijn
bb09bdfc2b Some necessary cleanup, noticed by Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31182 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 20:29:40 +00:00
Vincent van Ravesteijn
e042119cbe * BufferView.cpp: style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31181 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 20:09:15 +00:00
Tommaso Cucinotta
1c2d2f8fa4 Does not allow to enter (trivially) regular expression insets in the document under edit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31180 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 18:40:37 +00:00
Tommaso Cucinotta
0029b4a217 Advanced Search GUI enhancements (tooltips, navigation, shorter labels)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31179 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 16:51:07 +00:00
Pavel Sanda
93d27a33fe Squash warning.
Maybe this parameter should be killed after last cleanup Vicent?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31177 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 16:46:53 +00:00
Vincent van Ravesteijn
e666039283 Only paint the paragraph end markers when a new paragraph follows. Otherwise, charstyle insets, for example, also get a paragraph end marker although they are just part of the paragraph.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31168 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 18:30:06 +00:00
Uwe Stöhr
91854df691 lyxfind.cpp: this was accidentally removed in r31163
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31164 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 00:36:52 +00:00
Uwe Stöhr
8a35204454 lyxfind.cpp/h: make LyX compilable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-20 00:28:34 +00:00
Tommaso Cucinotta
cf62c2d8e4 First implementation of feature in bug #3696
(missing files in commit, apologies).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31160 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:05:31 +00:00
Vincent van Ravesteijn
c6a9cd0613 Make the pilcrow slightly lighter.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31159 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:04:17 +00:00
Tommaso Cucinotta
7b8c8cfc94 First implementation of feature in bug #3696
(missing file in commit, apologies).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31158 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:03:13 +00:00
Pavel Sanda
7d186b0cd6 Squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31157 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-19 23:02:27 +00:00