]> git.lyx.org Git - lyx.git/log
lyx.git
10 years agoFix reversion of beamer overprint when a nested paragraph has an argument
Juergen Spitzmueller [Wed, 21 May 2014 09:36:47 +0000 (11:36 +0200)]
Fix reversion of beamer overprint when a nested paragraph has an argument

10 years agoSmall reorganization.
Enrico Forestieri [Tue, 20 May 2014 22:59:36 +0000 (00:59 +0200)]
Small reorganization.

I am not sure I fully understand the pending_newline/unskip_newline
logic (which seems mainly related to rtl writing), so I prefer to
leave it alone, in the sense that now things go again as in 2.1
until the point where those booleans are used for producing output.
If it turns out that a spurious (and unwanted) empty line comes
from the previous code, it can be easily corrected later.

I am also reintroducing the check about a separator inset at the end
of the paragraph, because that is necessary for the plain version.

10 years agoGeneralize control on double blank lines.
Enrico Forestieri [Tue, 20 May 2014 19:52:29 +0000 (21:52 +0200)]
Generalize control on double blank lines.

We can now tell whether a blank line was just output and so can
avoid outputting another one.

10 years agoFix a GCC warning: comparing signed vs. unsigned
Scott Kostyshak [Tue, 20 May 2014 11:46:22 +0000 (07:46 -0400)]
Fix a GCC warning: comparing signed vs. unsigned

This also changes the type of an int to an ssize_t.

nRead is initialized as an ssize_t because it could
be negative. It is cast to a size_t for comparison
to the size of a vector, but only after we check
that nRead is not negative.

10 years agoCode cleanup: get rid of RenderPreview::status()
Jean-Marc Lasgouttes [Tue, 20 May 2014 10:19:26 +0000 (12:19 +0200)]
Code cleanup: get rid of RenderPreview::status()

This method is a proxy for LyXRC::preview that forces to forward
declare some wrapper around an enum...

Instead, two simple static methods previewMath() and previewText() are
introduced, that make the code much easier to follow.

10 years agoFix crash due to invalid pos
Juergen Spitzmueller [Tue, 20 May 2014 09:14:13 +0000 (11:14 +0200)]
Fix crash due to invalid pos

10 years agoFix compilation after afc34c7a
Enrico Forestieri [Mon, 19 May 2014 22:43:46 +0000 (00:43 +0200)]
Fix compilation after afc34c7a

10 years agoInitialize all members
Georg Baum [Mon, 19 May 2014 20:41:51 +0000 (22:41 +0200)]
Initialize all members

10 years agoFix bug 9030 except for windows
Georg Baum [Mon, 19 May 2014 20:37:14 +0000 (22:37 +0200)]
Fix bug 9030 except for windows

The format entries should be sorted according to the culture selected for the
UI. This was not the case previously, resulting in unexpected sorting of small
and capital letters. This is now fixed by using the standard C function
strcoll(). Qt does only offer similar functionality in Qt5, and this is not
mature enough yet to depend on it.
Unfortunately we have a report that strcoll() does not work on MSVC, however
this partial fix is better than nothing. The MSVC issue might also be a
configuration problem, since MS claims that strcoll() is supported. This
still needs to be checked.

10 years agoRemove unneeded slash
Georg Baum [Mon, 19 May 2014 20:09:12 +0000 (22:09 +0200)]
Remove unneeded slash

addPath() always adds a slash at the end, os got a double one before.
Qt and the OS are clever enough to understand that, but a single slash
looks more nice.

10 years agoMove code where it belongs
Georg Baum [Mon, 19 May 2014 20:07:04 +0000 (22:07 +0200)]
Move code where it belongs

It is declared in Dimension.h, so the implementation should be in
Dimension.cpp.

10 years agoUgly fix for bug #9102
Georg Baum [Mon, 19 May 2014 19:40:11 +0000 (21:40 +0200)]
Ugly fix for bug #9102

The real problem is the encoding of latex_language: It is hardcoded to latin1,
but InsetListig uses the currently active encoding. Therefore, we cannot tell
whether any given character wil be encodable or not, and we should not prevent
non-ACII characters.
In the future, we need to make the encoding of latex_language dynamic, so that
it always represents the currently active encoding. Then, we could do the
correct check both for listings and ERT. For now, I simply disabled the
encoding check for listings, which also means that bug 9012 might occur in
other cases for listings, but this is less important than bug 9102.

10 years agoFix reversion of beamer documents.
Enrico Forestieri [Mon, 19 May 2014 17:39:51 +0000 (19:39 +0200)]
Fix reversion of beamer documents.

Beamer documents do not have a "--Separator--" layout but a
"Separator" one. Also fix a thinko causing the deletion of
"\end_layout" tags in some cases.

10 years agoFix copy/paste error, and whitespace.
Richard Heck [Mon, 19 May 2014 13:25:16 +0000 (09:25 -0400)]
Fix copy/paste error, and whitespace.

10 years agoPrettify the output of InsetSeparator.
Enrico Forestieri [Sun, 18 May 2014 21:02:24 +0000 (23:02 +0200)]
Prettify the output of InsetSeparator.

If a separator inset is used after an environment with NextNoIndent
set to false, a blank line was already output. So, avoid outputting
another blank line or an odd looking line with only a '%' character
(as the previous blank line provides already a visual separation).

10 years agoExtend the otexstream class to also report about paragraph breaks.
Enrico Forestieri [Sun, 18 May 2014 20:46:33 +0000 (22:46 +0200)]
Extend the otexstream class to also report about paragraph breaks.

The new method afterParbreak() returns true if a blank line was just
output and we are at the beginning of the next line, false otherwise.

10 years agoDon't allow inserting two consecutive separators.
Enrico Forestieri [Sun, 18 May 2014 16:02:25 +0000 (18:02 +0200)]
Don't allow inserting two consecutive separators.

10 years agoFix crash when right-clicking into an inset with more paragraphs than the main text.
Juergen Spitzmueller [Sun, 18 May 2014 16:03:06 +0000 (18:03 +0200)]
Fix crash when right-clicking into an inset with more paragraphs than the main text.

Fixes: #9123.
10 years agoDisregard font properties changes when inserting a separator.
Enrico Forestieri [Sun, 18 May 2014 15:34:11 +0000 (17:34 +0200)]
Disregard font properties changes when inserting a separator.

This allows to output a simple blank line instead of strange constructs.

10 years agoTake into account that a blank line is always output before a command.
Enrico Forestieri [Sun, 18 May 2014 15:30:01 +0000 (17:30 +0200)]
Take into account that a blank line is always output before a command.

10 years agoWhitespace.
Richard Heck [Sun, 18 May 2014 15:27:54 +0000 (11:27 -0400)]
Whitespace.

10 years agoAdd limits to searches in convert_TeX_brace_to_Argument.
Richard Heck [Thu, 15 May 2014 13:35:05 +0000 (09:35 -0400)]
Add limits to searches in convert_TeX_brace_to_Argument.

10 years agoCorrect my previous comment (thanks Kornel)
Scott Kostyshak [Sun, 18 May 2014 09:11:38 +0000 (05:11 -0400)]
Correct my previous comment (thanks Kornel)

10 years ago#8849 catch exception in enchant speller backend and avoid multiple speller lookups...
Stephan Witt [Sun, 18 May 2014 08:43:32 +0000 (10:43 +0200)]
#8849 catch exception in enchant speller backend and avoid multiple speller lookups for missing dictionaries

10 years agoAdd comment
Scott Kostyshak [Sun, 18 May 2014 08:29:59 +0000 (04:29 -0400)]
Add comment

10 years agoGraphics only handle inset-modify graphics (#8262)
Scott Kostyshak [Wed, 5 Feb 2014 22:59:39 +0000 (17:59 -0500)]
Graphics only handle inset-modify graphics (#8262)

inset-modify tabular and others are now passed on.

10 years agoFix alignment rendering of multirow in LyX (#8976)
Scott Kostyshak [Fri, 14 Feb 2014 02:17:20 +0000 (21:17 -0500)]
Fix alignment rendering of multirow in LyX (#8976)

Multirow cells now have the same alignment rendering in LyX
as in the output. The alignment of a multirow can change as
long as the column is not of fixed width. If the column is
of fixed width, the multirow is left-aligned.

When setting a multirow, the alignment is copied from
the last cell in the selection.

10 years agoAdapt output to the on-screen representation.
Enrico Forestieri [Fri, 16 May 2014 13:39:33 +0000 (15:39 +0200)]
Adapt output to the on-screen representation.

LyX assumes that a standard paragraph following an aligned one or
a layout with NextNoIndent==false has to be indented on screen.
This means that in the latex output a blank line has to follow.
In this case there should be no problem as regards extra vertical
space and it simpler and more elegant to simply uncheck "Indent
Paragraph" in the Paragraph settings pane rather than changing
the current logic and allowing to insert a parbreak separator.

10 years agoFix an on-screen representation glitch.
Enrico Forestieri [Fri, 16 May 2014 13:11:08 +0000 (15:11 +0200)]
Fix an on-screen representation glitch.

If a layout has NextNoIndent set to true, the following paragraph
is not indented on screen. LyX checks the previous layout for that
style parameter to decide whether to indent or not. Of course,
what matters is the latex output and the on-screen representation
should match this output. Now, when a layout has NextNoIndent==true,
the latex output is correctly not indented, while the on-screen
representation may fail to match this output. This can occur when,
for example, a standard paragraph is nested in the previous layout,
because LyX would check the property of the nested layout instead
of the container layout. Thus, LyX should check the property of a
previous layout at the same depth for correctly deciding whether
a paragraph has to be indented or not.
See also http://www.lyx.org/trac/ticket/9055#comment:12 for an
example document where the previous scenario actually occurs.

10 years agoRemove unused parameter.
Jean-Marc Lasgouttes [Fri, 16 May 2014 13:25:17 +0000 (15:25 +0200)]
Remove unused parameter.

10 years agoDo not forget last word of paragraph in completion
Jean-Marc Lasgouttes [Fri, 16 May 2014 13:17:10 +0000 (15:17 +0200)]
Do not forget last word of paragraph in completion

With the old code, the last word of a paragraph would not be added in
the completion list. The key difference is to pass `from' instead of `pos'
to FontList::fontiterator.

Slight cleanup of the code.

10 years agoMake use of otexstream also in external::writeExternal
Enrico Forestieri [Fri, 16 May 2014 12:21:48 +0000 (14:21 +0200)]
Make use of otexstream also in external::writeExternal

This was not necessary when LyX was generously outputting newlines.
As it may happen that the output produced by writeExternal (the
result of an external inset) starts right at the beginning of a
line, if otexstream does not know that something is already on
the line, the iomanip-like variable 'breakln' fails to actually
break the line.

10 years agoCmake build: Show the found flag for use of c++11 features
Kornel Benko [Fri, 16 May 2014 11:40:34 +0000 (13:40 +0200)]
Cmake build: Show the found flag for use of c++11 features

10 years agoOutput a parbreak after a command.
Enrico Forestieri [Wed, 14 May 2014 20:25:15 +0000 (22:25 +0200)]
Output a parbreak after a command.

This is what LyX was previously doing. It has no effect on vertical
spacing but, for example, sectioning commands stand out on the output.
The parbreak is not output if an environment follows or the alignment
of the current or next paragraph is changed.
Also remove some superfluous code.

10 years agoCentralize substitution of python commands
Scott Kostyshak [Mon, 3 Feb 2014 15:57:52 +0000 (10:57 -0500)]
Centralize substitution of python commands

The code for detecting python commands and substituting in the
correct prefix is now merged with what used to be libScriptSearch()
and is now renamed to commandPrep(). This commit does not change
any functionality and just improves organization to reduce the
chance of bugs in the future.

10 years agoCentralize replacement of "$$s"
Scott Kostyshak [Fri, 31 Jan 2014 03:59:33 +0000 (22:59 -0500)]
Centralize replacement of "$$s"

Now the replacement is done in startScript(). In addition to making
the code cleaner and more consistent, this commit fixes a bug where
"$$s" was not replaced when "latex=" was specified in the extra flags
of a converter.

Note that the temporary fix at 731b8610 is reverted with this commit.

10 years agoRename misleading parameter.
Jean-Marc Lasgouttes [Wed, 14 May 2014 16:03:37 +0000 (18:03 +0200)]
Rename misleading parameter.

... and a typo and some whitespace.

10 years ago* sk.po
Kornel Benko [Wed, 14 May 2014 07:52:07 +0000 (09:52 +0200)]
* sk.po

10 years agoCmake build: Unify defines for spellchecker in config.h
Kornel Benko [Tue, 13 May 2014 12:52:11 +0000 (14:52 +0200)]
Cmake build: Unify defines for spellchecker in config.h

10 years agoCmake build: Search for spell checking libraries unconditionally
Kornel Benko [Tue, 13 May 2014 10:31:37 +0000 (12:31 +0200)]
Cmake build: Search for spell checking libraries unconditionally

New option: LYX_REQUIRE_SPELLCHECK. If set and no spellchecker found
  stop the compilation
  if not set, compile in many speckeckers as possible from the set
  of 'ASPELL', 'Hunspell', 'Enchant'

10 years agoCmake build: Use find_package_handle_standard_args() consistently
Kornel Benko [Tue, 13 May 2014 10:30:20 +0000 (12:30 +0200)]
Cmake build: Use find_package_handle_standard_args() consistently

10 years agoUpdate documented command for running tex2lyx tests.
Enrico Forestieri [Mon, 12 May 2014 21:54:50 +0000 (23:54 +0200)]
Update documented command for running tex2lyx tests.

10 years agoFix lyx2lyx warning for tex2lyx files
Georg Baum [Mon, 12 May 2014 20:06:24 +0000 (22:06 +0200)]
Fix lyx2lyx warning for tex2lyx files

I would not have thought that reLyX was considered, but not tex2lyx!

10 years agoUpdate version
Georg Baum [Mon, 12 May 2014 19:53:27 +0000 (21:53 +0200)]
Update version

10 years agoUpdate tex2lyx test references
Georg Baum [Mon, 12 May 2014 19:23:47 +0000 (21:23 +0200)]
Update tex2lyx test references

This is needed after c668ebf61. tex2lyx itself was already updated, and I
verified that the new output is correct.

10 years agoInstall lyx2lyx/lyx_2_2.py.
Richard Heck [Mon, 12 May 2014 13:16:31 +0000 (09:16 -0400)]
Install lyx2lyx/lyx_2_2.py.

10 years agoctests: reinvert a test
Scott Kostyshak [Sun, 11 May 2014 02:23:36 +0000 (22:23 -0400)]
ctests: reinvert a test

This test was inverted before but got lost
in the transition to regular expressions.

10 years agoFix bugs #8546 and #9055, and introduce new separator inset.
Enrico Forestieri [Sat, 10 May 2014 21:25:11 +0000 (23:25 +0200)]
Fix bugs #8546 and #9055, and introduce new separator inset.

The algorithm used for breaking a paragraph in LaTeX export is changed
for avoiding spurious blank lines causing too much vertical space.
This change is tied to the introduction of a new inset (with two
different specializations) helping in either outputing LaTeX paragraph
breaks or separating environments in LyX. Both of the above goals were
previously achieved by the ---Separator--- layout and can now be
accomplished by the new inset in a more natural way. As an example,
after leaving an environment by hitting the Return key for two times,
a third return automatically inserts a parbreak inset, which is
equivalent to the old separator layout, i.e., it also introduces a
blank line in the output. If this blank line is not wanted, the
parbreak separator can be changed to a plain separator by a right
click of the mouse. Of course, an environment can still be separated
by the following one by using the Alt+P+Return shortcut (or the
corresponding menu key), but now the plain separator inset is used
instead of the old separator layout, such that no blank line occurs in
the LaTeX output.

Old documents are converted such that the LaTeX output remains unchanged.
As a result of this conversion, the old separator layout is replaced by
the new parbreak inset, which may also appear in places where the old
algorithm was introducing blank lines while the new one is not.
Note that not all blank lines were actually affecting the LaTeX output,
because a blank line is simply ignored by the TeX engine when it occurs
in the so called "vertical mode" (e.g., after an alignment environment).
The old ---Separator--- layout is now gone and old layout files using it
are also automatically converted.

Round trip conversions between old and new format should leave a document
unchanged. This means that the new behavior about paragraph breaking is
not "carried back" to the old format. Indeed, this would need introducing
special LaTeX commands in ERT that would accumulate in roundtrip
conversions, horribly cluttering the document. So, when converting a
modified document to old formats, the LaTeX output may slightly differ in
vertical spacing if the document is processed by an old version of LyX.
In other words, forward compatibility is guaranteed, but not backwards.

10 years agoCmake build: Install lyx*.desktop and lyx*.svg files in appropriate locations for...
Kornel Benko [Fri, 9 May 2014 08:04:42 +0000 (10:04 +0200)]
Cmake build: Install lyx*.desktop and lyx*.svg files in appropriate locations for unix

10 years agoFix bug #9112: There is a test here that seems intended to catch the
Richard Heck [Thu, 8 May 2014 22:19:55 +0000 (18:19 -0400)]
Fix bug #9112: There is a test here that seems intended to catch the
case where there are unbalanced braces, but it comes too late. In that
case, we try to check cmd[docstring::npos] and crash.

10 years agoBeamer block conversion: consider ERT arguments with leading/trailing blanks
Juergen Spitzmueller [Thu, 8 May 2014 13:14:44 +0000 (15:14 +0200)]
Beamer block conversion: consider ERT arguments with leading/trailing blanks

Should also go to branch.

10 years agoMonolingualization
Juergen Spitzmueller [Thu, 8 May 2014 06:37:12 +0000 (08:37 +0200)]
Monolingualization

10 years agoFix problem with drawing of math backround with selections.
Enrico Forestieri [Wed, 7 May 2014 18:18:14 +0000 (14:18 -0400)]
Fix problem with drawing of math backround with selections.

10 years agoListings: Validate skip amounts correctly.
Juergen Spitzmueller [Wed, 7 May 2014 10:33:39 +0000 (12:33 +0200)]
Listings: Validate skip amounts correctly.

Fixes: #7373.
10 years agoRely on Qt to handle small caps text
Jean-Marc Lasgouttes [Wed, 7 May 2014 10:06:56 +0000 (12:06 +0200)]
Rely on Qt to handle small caps text

This has the advantage of simplifying our code and to produce the
correct output: the small capitals should have the exact same width as
the lower case letters.

The slanted fonts are also translated to oblique on Qt side, but this
does not seems to have an effect in my testing. It may be that proper
oblique fonts need to be installed.

10 years agoSimplification
Juergen Spitzmueller [Wed, 7 May 2014 06:09:04 +0000 (08:09 +0200)]
Simplification

10 years agoStore InsetListingsParams in a vector of pairs, not a map, since order of insertion...
Juergen Spitzmueller [Tue, 6 May 2014 18:22:25 +0000 (20:22 +0200)]
Store InsetListingsParams in a vector of pairs, not a map, since order of insertion matters.

Fixes: #8144, #5203.
10 years agoFix typos in InsetListingsParams validator
Juergen Spitzmueller [Tue, 6 May 2014 18:17:03 +0000 (20:17 +0200)]
Fix typos in InsetListingsParams validator

10 years agomake build: Versioning of lyx.svg (missed in previous commit)
Kornel Benko [Tue, 6 May 2014 15:24:00 +0000 (17:24 +0200)]
make build: Versioning of lyx.svg (missed in previous commit)

10 years agoCmake build: Add also reference to versioned lyx.svg to the resources file
Kornel Benko [Tue, 6 May 2014 15:21:13 +0000 (17:21 +0200)]
Cmake build: Add also reference to versioned lyx.svg to the resources file

10 years agoTurn an error message into a Debug::LOCALE warning
Jean-Marc Lasgouttes [Tue, 6 May 2014 12:29:42 +0000 (14:29 +0200)]
Turn an error message into a Debug::LOCALE warning

10 years agoCleanup the code for boost configuration
Jean-Marc Lasgouttes [Mon, 21 Apr 2014 14:10:49 +0000 (16:10 +0200)]
Cleanup the code for boost configuration

10 years agoFix View Source size
Juergen Spitzmueller [Thu, 1 May 2014 16:00:37 +0000 (18:00 +0200)]
Fix View Source size

Fixes: #9084.
10 years agoimprove language flag for Objective-C compiler call
Stephan Witt [Wed, 30 Apr 2014 21:14:30 +0000 (23:14 +0200)]
improve language flag for Objective-C compiler call

10 years agostruct with virtual functions should have virtual destructor
Stephan Witt [Wed, 30 Apr 2014 21:12:41 +0000 (23:12 +0200)]
struct with virtual functions should have virtual destructor

10 years agoWhitespace fixes
Georg Baum [Tue, 29 Apr 2014 20:05:27 +0000 (22:05 +0200)]
Whitespace fixes

10 years agoUntil there is some more general solution… prepare 2.1 prefs migration manually.
Stephan Witt [Tue, 29 Apr 2014 19:43:41 +0000 (21:43 +0200)]
Until there is some more general solution… prepare 2.1 prefs migration manually.

10 years agoFix C++11 test
Georg Baum [Tue, 29 Apr 2014 19:00:02 +0000 (21:00 +0200)]
Fix C++11 test

Thanks Vincent for noticing. The old test was slightly off, the C++98 standard
guarantees that __cplusplus is defined as 199711L, not 19971L.

10 years agoboost, cmake: Turn off warning that signals are deprecated
Kornel Benko [Tue, 29 Apr 2014 16:01:50 +0000 (18:01 +0200)]
boost, cmake: Turn off warning that signals are deprecated

10 years agoboost: Turn off warning that signals are deprecated
Vincent van Ravesteijn [Tue, 29 Apr 2014 14:56:23 +0000 (16:56 +0200)]
boost: Turn off warning that signals are deprecated

10 years agoboost: Update to 1.55.0
Vincent van Ravesteijn [Tue, 29 Apr 2014 14:12:31 +0000 (16:12 +0200)]
boost: Update to 1.55.0

10 years agolyx2lyx: Update the emergency value
Vincent van Ravesteijn [Sun, 23 Mar 2014 12:32:37 +0000 (13:32 +0100)]
lyx2lyx: Update the emergency value

Actually, this should not be hardcoded.

10 years agoGuiLog: Use GuiClipboard to put the log on the clipboard
Vincent van Ravesteijn [Tue, 29 Apr 2014 13:28:21 +0000 (15:28 +0200)]
GuiLog: Use GuiClipboard to put the log on the clipboard

All direct interaction with the Qt clipboard is now done in either GuiClipboard or GuiSelection.

10 years agoUse the cached value GuiSelection::selection_supported_
Vincent van Ravesteijn [Tue, 29 Apr 2014 13:17:07 +0000 (15:17 +0200)]
Use the cached value GuiSelection::selection_supported_

That's where it is for.

10 years agoCapitalize layout tag
Vincent van Ravesteijn [Tue, 29 Apr 2014 09:16:41 +0000 (11:16 +0200)]
Capitalize layout tag

10 years agozh_CN.po: port today's change
Uwe Stöhr [Mon, 28 Apr 2014 20:58:20 +0000 (22:58 +0200)]
zh_CN.po: port today's change

10 years agoFrench doc files: backport recent changes
Uwe Stöhr [Mon, 28 Apr 2014 20:57:53 +0000 (22:57 +0200)]
French doc files: backport recent changes

10 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Mon, 28 Apr 2014 20:57:23 +0000 (22:57 +0200)]
Merge branch 'master' of git.lyx.org:lyx

10 years agoCREDITS: add Min Ding and Roy Xia
Uwe Stöhr [Mon, 28 Apr 2014 20:57:03 +0000 (22:57 +0200)]
CREDITS: add Min Ding and Roy Xia

10 years agoDo not write an empty default_otf_view_format.
Juergen Spitzmueller [Mon, 28 Apr 2014 12:59:03 +0000 (14:59 +0200)]
Do not write an empty default_otf_view_format.

Fixes: #9100.
10 years agoFix table rotate conversion to 2.0 format
Georg Baum [Sun, 27 Apr 2014 18:58:53 +0000 (20:58 +0200)]
Fix table rotate conversion to 2.0 format

The old code did create invalid documents, since the space between the rotate
flag dn the previous flag was removed.

10 years agoREADME.localization: a precision
Uwe Stöhr [Sun, 27 Apr 2014 14:02:47 +0000 (16:02 +0200)]
README.localization: a precision

10 years agoinstaller: fine-tuning
Uwe Stöhr [Sun, 27 Apr 2014 13:14:01 +0000 (15:14 +0200)]
installer: fine-tuning

don't bother the user with questions if the uninstaller was accidentally deleted

10 years agoFix conversion of beamer block titles that end with a non-ERT inset.
Juergen Spitzmueller [Sat, 26 Apr 2014 15:39:56 +0000 (17:39 +0200)]
Fix conversion of beamer block titles that end with a non-ERT inset.

Should also go to branch!

10 years agoFix failure to detect quoted flex insets in conversion to layout
Richard Heck [Fri, 25 Apr 2014 21:17:10 +0000 (17:17 -0400)]
Fix failure to detect quoted flex insets in conversion to layout
48. Also, simplify this code.

10 years agoFix lyx2lyx math package defaults (bug #9069)
Georg Baum [Fri, 25 Apr 2014 20:39:22 +0000 (22:39 +0200)]
Fix lyx2lyx math package defaults (bug #9069)

lyx2lyx sets all new math packages to off when converting from old formats.
This is correct if any command which would cause an automatic package loading
exists in the document. However, it is wrong if no command exists: This leads
to problems if later a command is added (bug #9069), which is especially
annoying for templates.
The fix consists of two parts:
1) convert_use_package() considers now the used commands like
   revert_use_package(), and uses them to decide whether to set the package to
   auto or off.
2) convert_undertilde() and revert_undertilde() use a slightly adjusted copy of
   convert_use_package() and revert_use_package(), so that the bug is also
   fixed for undertilde. We cannot use the latter functions directly, because
   of "\usepackage undertilde" vs. "\use_undertilde".

10 years agoFix math package conversion to 2.0 format
Georg Baum [Fri, 25 Apr 2014 20:12:04 +0000 (22:12 +0200)]
Fix math package conversion to 2.0 format

When doing the lyx2lyx round trip of the 2.0.8 user guide from format
413 -> 474 -> 413 you get an invalid document, because the math packages
mhchem and undertilde are incorrectly converted.
It turned out that the old reversion code did only work for particular
package oderings. The new one works for abitrary sorted packages.

10 years agoFix data loss in user guide conversion to 2.0.x
Georg Baum [Fri, 25 Apr 2014 19:35:51 +0000 (21:35 +0200)]
Fix data loss in user guide conversion to 2.0.x

When doing the lyx2lyx round trip of the 2.0.8 user guide from format
413 -> 474 -> 413 you do not get a zero diff. The most important problem is
caused by the conversion of the argument insets to the old syntax: This
conversion adds an additional empty line (harmless), and it destroys the
document structure if the first inset in e.g. a subsection is not an argument
inset, but e.g. an index or label inset.
The fix is quite easy: Ensure that the paragraph begin is set to the first
argument inset.

10 years agoCmake tests: Added more regular expressions 2
Kornel Benko [Fri, 25 Apr 2014 11:53:29 +0000 (13:53 +0200)]
Cmake tests: Added more regular expressions 2

10 years agoFix warning in lyx2lyx 2.0<->2.1 round trip
Georg Baum [Thu, 24 Apr 2014 19:52:32 +0000 (21:52 +0200)]
Fix warning in lyx2lyx 2.0<->2.1 round trip

revert_justification() issues a warning if the \justification parameter does
not exist, and LyX itself always writes it unconditionally as well, so add it
also in lyx2lyx when converting old documents.
Currently this does not have any user visible effect, but it decouples the
default value of BufferParams::justification from the conversion of old
documents: Now it is possible to set the default to false in LyX, and old
documents will still be converted correctly.

10 years agoFix for clang detection in cmake
Benjamin Piwowarski [Thu, 24 Apr 2014 15:16:43 +0000 (17:16 +0200)]
Fix for clang detection in cmake

10 years agoctests: regex to revert two instant_preview tests
Scott Kostyshak [Thu, 24 Apr 2014 14:00:36 +0000 (10:00 -0400)]
ctests: regex to revert two instant_preview tests

These effectively revert the following:

    export/examples/instant_preview_dvi3_systemF
    export/examples/instant_preview_pdf2

10 years agoUpdate it.po
Enrico Forestieri [Wed, 23 Apr 2014 22:49:06 +0000 (00:49 +0200)]
Update it.po

10 years agoCmake tests: Added more regular expressions
Kornel Benko [Wed, 23 Apr 2014 11:04:37 +0000 (13:04 +0200)]
Cmake tests: Added more regular expressions

10 years agoMake iparserdocstream more like std::istream
Georg Baum [Tue, 22 Apr 2014 20:03:31 +0000 (22:03 +0200)]
Make iparserdocstream more like std::istream

In C++98 std::istream does not use an operator bool(), but an operator
void*() instead, which prevents some unwanted conversions (this is one
possible implementation of the safe bool idiom).
In C++11 std::istream uses explicit operator bool, which prevents the unwanted
conversions using a new language feature.

This change does not have any effect on correct code, but prevents some
mistakes.

10 years agoDo not spellcheck "code" in logical markup module
Scott Kostyshak [Tue, 22 Apr 2014 07:28:49 +0000 (03:28 -0400)]
Do not spellcheck "code" in logical markup module

10 years agolyx_pot.py: Do not strip blanks in HelpText.
Juergen Spitzmueller [Tue, 22 Apr 2014 08:35:20 +0000 (10:35 +0200)]
lyx_pot.py: Do not strip blanks in HelpText.

This fixes a thinko introduced in [c5ef7cfc/lyxgit]

Fixes: #9054.
10 years agocmake: Objective-C compilation support with clang and C++11
Vincent van Ravesteijn [Fri, 18 Apr 2014 13:59:56 +0000 (15:59 +0200)]
cmake: Objective-C compilation support with clang and C++11

This fixes an issue when compiling with C++11 flags on: the
objective-C clang compiler produces an error. This patch set
the -std option to ansi for the Objective-C sources.

10 years agoRevert "Objective-C compililation support with cmake and C++11"
Benjamin Piwowarski [Tue, 22 Apr 2014 07:36:17 +0000 (09:36 +0200)]
Revert "Objective-C compililation support with cmake and C++11"

This reverts commit c2e67a41ce4b3b281f6c8a805be5e821ce0aea0a.

10 years agoBibtopic requires styles files to be passed via argument
Juergen Spitzmueller [Tue, 22 Apr 2014 07:25:58 +0000 (09:25 +0200)]
Bibtopic requires styles files to be passed via argument

Fixes: #9060