Commit Graph

74 Commits

Author SHA1 Message Date
Richard Heck
1493191f77 Fix bug #7500: There is presently no way in the GUI to update local
layout to the current format.

This probably isn't needed for branch, since local layout was a
"hidden feature" prior to 2.0, and one can update local layout by:
  (a) copying to a file
  (b) running layout2layout on that file
  (c) pasting back into LyX
So we should probably just leave this in trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38622 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-08 00:54:17 +00:00
Jürgen Spitzmüller
f27d5aa9ae * Allow to set language package on a per-document basis (fixes bug 2909).
File format change. Commit approved by Pavel on trac.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37457 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-03 14:17:31 +00:00
Richard Heck
fc3b06eac8 Rename a bunch of BufferParams to conform to our usual style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36524 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 18:32:29 +00:00
Jürgen Spitzmüller
2dc2e4770b Implement GUI for LuaTeX. File format change due to the renaming of the \use_xetex buffer param.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-26 09:42:03 +00:00
Richard Heck
64f979cb06 A UI for document-local layout information. LyX has supported this for a
while, but without any UI for it. (There has been local layout in the
Customization manual for a long time, in fact.)

Yes, this is an advanced feature. But, absent a layout editor, it is the
one thing that will make it easier, and possible, for "normal users" to
experiment with layout without having to go through reconfiguration,
etc, etc. To keep too many people from shooting themselves, we validate
the layout information before allowing the user to apply it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35061 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 22:47:42 +00:00
Uwe Stöhr
0600e656f8 * GuiDocument:
- fix #6699; use_geometry now only means that the user don't want to have custom margins; that geometry also needs to be loaded for some paper formats is already done in BufferParams.cpp
- remove portraitChanged() because this was useless - A4 landscape is still A4 and still uses the default margins

* BufferParams.cpp: only output the margins if the option "Default margins" is not checked - this was a bug in the margins UI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34429 a592a061-630c-0410-9148-cb99ea01b6c8
2010-05-18 02:56:36 +00:00
Richard Heck
d01dec6dfe UI for XHTML options. I removed the xml line from OutputUi.ui
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34251 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-21 15:20:31 +00:00
Uwe Stöhr
84a2af2edb fileformat change: support to specify the background color of shaded boxes
- new buffer parameter \boxbgcolor

(I'm still working on the remaining issue #6626 as this affect not only this feature.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34083 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-08 00:14:08 +00:00
Uwe Stöhr
4e2cd30657 fileformat change: support to specify a document-wide font color
- new buffer parameter \fontcolor
- the default color is internally black because we have to set a color
- the font color is only used when the user explicitly specified a color

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34042 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 23:39:36 +00:00
Uwe Stöhr
729c0655aa introduce a new color module to GuiDocument as suggested:
- move the background color settings from PageLayoutUi.ui to ColorUi.ui

- move the greyed-out font color from FontUi.ui to ColorUi.ui

- some sorting and whitespace unification

- the group boxes will get the next days each a further entry
 (one for the document-wide text color and one for the shaded box background)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34040 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-02 22:11:50 +00:00
Pavel Sanda
8fcccc7b6b Next header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33980 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 20:06:00 +00:00
Uwe Stöhr
33978c0b1b fileformat change:
- support to change the greyed-out note font color (fixes #3865)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-31 00:46:50 +00:00
Abdelrazak Younes
bbda43a400 Attempt to simplify as much as possible Inset parameter dialog creation. We now just need an ui file and a class that inherits InsetParamsWidget and implement 4 methods. Then InsetParamsDialog will take care of the rest. InsetParamsDialog has 2 running mode: "immediate apply" and "Restore/OK/Close" which is the default; I hope this is enough to satisfy all users. The checkbox status might be saved later in session settings.
This new attempt replace the previous attempt with InsetDialog which was still too tight with the older framework.
Status:
float, ert, box, info: migrated
vspace: migrated but buggy. To be fixed later.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33480 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-15 23:17:45 +00:00
Jürgen Spitzmüller
1ccfe14914 * Add native support for \includeonly (bug 5360).
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32826 a592a061-630c-0410-9148-cb99ea01b6c8
2010-01-07 10:01:26 +00:00
Jürgen Spitzmüller
df329341aa * Add support for per-document fontenc setting (bug 5730)
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32228 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-29 14:43:00 +00:00
Jürgen Spitzmüller
fcc8201d2c Document Dialog: move the listings settings to its own pane.
This shrinks the dialog to a somewhat reasonable size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30706 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-20 08:09:32 +00:00
Uwe Stöhr
53e7a92494 support to specify the paragraph indentation in the document settings dialog; introduces the new class HSpace; - file format change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30694 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-19 21:13:27 +00:00
Vincent van Ravesteijn
5862b252db Fix the enabling of the custom page size field in GuiDocument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30624 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-16 08:39:22 +00:00
Jürgen Spitzmüller
5c4758357f * GuiDocument.{cpp,h}:
- do not rename branches in the document unless the dialog was applied.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-11 09:37:28 +00:00
Jürgen Spitzmüller
5fdd2daa9c * Add ability to rename branches (bug 4128).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30442 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-10 06:49:51 +00:00
Jürgen Spitzmüller
17986e7509 Ease the pain with unknown branches:
* on paste, ask if unknown branches shall be added to the branch list
	  (entails new LFUN_BRANCH_ADD)
	* add a list of undefined branches to the buffer and the GUI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-09 09:48:34 +00:00
Jürgen Spitzmüller
7ba2bfb81d * Per-document setting for bibtex and makeindex.
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29774 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 07:20:00 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Uwe Stöhr
4d30bc7579 support for \pagecolor, fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29220 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 21:40:11 +00:00
Jürgen Spitzmüller
60d2b3295a * new per-document default output format. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29181 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 11:06:53 +00:00
Jürgen Spitzmüller
737e9b2c20 start XeTeX support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 06:58:30 +00:00
Richard Heck
08d7f7885a Next step: LayoutModuleList is now a thin wrapper around a list<string>.
It'll get its own methods later.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28468 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 15:07:22 +00:00
Richard Heck
9dfac74265 This patch introduces ProvidesModule and ExcludesModule layout tags.
See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145129.html.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27041 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 00:27:03 +00:00
Richard Heck
72721655c5 Remove some indirection leftover from Andre's removal of controllers and such.
When we had GuiDocument and GuiDocumentDialog, there was a separation that required
this kind of thing, but now apply() is only ever called from applyView(), which is
private and only ever calls it with our local params.

This simplifies the forthcoming ProvidesModule, etc, patch a bit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 21:00:33 +00:00
Richard Heck
afcc0e0490 Code duplication is bad.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26998 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 20:38:40 +00:00
Richard Heck
ae339e3ca8 Remove now duplicated code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26996 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 19:53:15 +00:00
Richard Heck
67dfff2d37 Update GuiDocument when there are changes to loaded modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26994 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 19:31:05 +00:00
Pavel Sanda
9d82588e3e Create new Module panel in document settings and decrease vertical
size of the dialog.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145035.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 01:21:59 +00:00
Richard Heck
5e505119fa OK, I lied. A little more. Just trying to keep the cleanup separate from
the real stuff.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26925 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-16 17:29:01 +00:00
Richard Heck
c83ae83ebf Remove unnecessary argument to paramsToDialog(). This is again
cleanup prior to a forthcoming patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26902 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 16:59:28 +00:00
Richard Heck
a707ac75ac Change some vectors to lists. This is preparatory for a real patch later.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26899 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 14:04:21 +00:00
André Pönitz
fc86915b0c cosmetics. remoe strange dependency of GuiDocument.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 13:44:51 +00:00
André Pönitz
e7812d3e26 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26465 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 12:17:15 +00:00
André Pönitz
739f890e74 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26464 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-20 12:07:18 +00:00
Jürgen Spitzmüller
15676a062f proper fix for bug 4936.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25215 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 15:20:38 +00:00
Jürgen Spitzmüller
3b00c86b9d brute fix weird bug 4936.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25203 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 10:41:58 +00:00
Abdelrazak Younes
3dc6a5f43c rework a bit the document dialog so that it works more or less fine without any open document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-15 08:41:17 +00:00
Abdelrazak Younes
59124528ac use GuiApplication::languageModel() in GuiDocument.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24680 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-08 09:18:45 +00:00
Jürgen Spitzmüller
764b5cf859 support for default master document.
file format change.

This is the last feature for today. Promised.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24540 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 16:38:56 +00:00
Richard Heck
2208b5c264 Remove embedding stuff from Document>Settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24358 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 15:57:17 +00:00
Richard Heck
ffa42cb236 Give us some useful tooltips for modules.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-17 03:27:20 +00:00
Bo Peng
14eeac2e1c Allow selection of a local layout file from the document->settings dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23652 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-10 21:31:22 +00:00
Bo Peng
932998494b Embedding: add option \extra_embedded_files to buffer params. This increase
LyX file format to 318. The Embedded files panel of document settings has
been simplied, with working add and remove buttons. Note that bease BufferParams
lacks buffer path information, extraEmbeddedFiles are vector<string>, instead
of EmbeddedFileList (as previously planned).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23606 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-09 23:04:14 +00:00
André Pönitz
be624b3de0 less string conversions as long as we stay in the frontend
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-08 07:59:47 +00:00
Richard Heck
ea2c38bbcc Fix bug 4594.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 22:08:16 +00:00