]>
git.lyx.org Git - lyx.git/log
Vincent van Ravesteijn [Wed, 15 May 2013 06:08:33 +0000 (08:08 +0200)]
check_layout: Add more libraries
Vincent van Ravesteijn [Wed, 15 May 2013 05:47:02 +0000 (07:47 +0200)]
GuiAbout: Add missing include
Georg Baum [Wed, 15 May 2013 05:19:49 +0000 (07:19 +0200)]
Implement forced local layouts
These should be used if any new style needs to be introduced in the stable
2.1 series: If the ForceLocal flag of the style is set, it will always be
written to the document header, so that even older 2.1 versions can read
and correctly output the document.
Uwe Stöhr [Tue, 14 May 2013 22:03:46 +0000 (00:03 +0200)]
InsetBox.cpp: remove unnecessary non-ASCII char
- this char made problems when storing the file in Unicode
Uwe Stöhr [Tue, 14 May 2013 21:57:33 +0000 (23:57 +0200)]
UserGuide.lyx: next revision step
sec. 6.13 - 6.18
Vincent van Ravesteijn [Tue, 14 May 2013 16:41:33 +0000 (18:41 +0200)]
Fix check_layout and adhere casing to other tests
- Fixes cases such that it is the same as check_convert, check_filetools, check_listrings,
- Makes the compilation work on MSVC
Vincent van Ravesteijn [Tue, 14 May 2013 15:44:19 +0000 (17:44 +0200)]
Only show the configuration of theme icons on X11
Also hide the ui items in the constructor to prevent flickering.
Vincent van Ravesteijn [Tue, 14 May 2013 15:13:59 +0000 (17:13 +0200)]
qt5: Fix use of zlib using config.h
Vincent van Ravesteijn [Tue, 14 May 2013 15:13:15 +0000 (17:13 +0200)]
Revert "qt5: Fix use of zlib"
This reverts commits
ba3332c6 and
f96583e8 .
Vincent van Ravesteijn [Tue, 8 May 2012 15:55:59 +0000 (17:55 +0200)]
Make the use of system's theme icons configurable
A lyxrc variable is added and a checkbox is added to the LyX->preferences
dialog.
Vincent van Ravesteijn [Wed, 9 May 2012 09:14:08 +0000 (11:14 +0200)]
Use system's theme icons
On X11 Qt offers the possibility to use the system's icons. To this end,
we must link the "lyx command" to a standard action icon as specified in:
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
Kornel Benko [Tue, 14 May 2013 14:23:24 +0000 (16:23 +0200)]
Fix compilation
Kornel Benko [Tue, 14 May 2013 13:34:15 +0000 (15:34 +0200)]
cmake: Try to make layout-tests available for MSVC too
Vincent van Ravesteijn [Sat, 29 Dec 2012 16:29:15 +0000 (17:29 +0100)]
qt5: Fix use of zlib
As Qt5 includes zlib as well, we have to use the same naming convention.
Vincent van Ravesteijn [Sun, 12 May 2013 10:26:44 +0000 (12:26 +0200)]
qt5: Treat wchar_t as a builtin type
Qt5 is compiled treating wchar_t as a builtin type, while Qt4 did not. So,
we have to do the same.
Vincent van Ravesteijn [Sun, 12 May 2013 10:27:16 +0000 (12:27 +0200)]
qt5: Only include a single header to fix compilation
Vincent van Ravesteijn [Tue, 14 May 2013 11:56:31 +0000 (13:56 +0200)]
Fix MSVC warnings
Julien Rioux [Tue, 14 May 2013 09:09:55 +0000 (11:09 +0200)]
Finally also fix #6986 for autotools out-of-source builds.
Julien Rioux [Mon, 4 Feb 2013 14:45:14 +0000 (15:45 +0100)]
configure.py: Check path accessibility before call to os.path.isfile.
If you have an unmounted dir, ac_dir, in your PATH, the call to
os.path.isfile( os.path.join(ac_dir, ac_word + ext) )
hangs. This is probably a python bug, but the result of configure.py
hanging and LyX freezing is really bad, hence this workaround.
According to the python docs, MacOS doesn't provide os.access();
the hasattr protection is used for this reason.
Kornel Benko [Tue, 14 May 2013 09:17:50 +0000 (11:17 +0200)]
Add test for Layout::write() on cmake too
(For now runns only on unix platforms using gcc)
Uwe Stöhr [Tue, 14 May 2013 00:26:22 +0000 (02:26 +0200)]
GuiMathMatrix.cpp: remove an unused header
- sorry, I accidentally added it in the last commit
Uwe Stöhr [Tue, 14 May 2013 00:19:43 +0000 (02:19 +0200)]
GuiMathMatrix.cpp: fix bug #7049
- we should not fill the dialog comboBoxes in the .ui-files
Vincent van Ravesteijn [Mon, 13 May 2013 10:47:22 +0000 (12:47 +0200)]
Use [[Context]] for the msgid of some strings
Vincent van Ravesteijn [Mon, 13 May 2013 10:46:33 +0000 (12:46 +0200)]
Implement the use of [[Context]] for placeholders
When placeholders are used, the context can indicate what will be
substituted for the placeholder (e.g. "%1$s[[date]], %1$s[[time]]).
Georg Baum [Mon, 13 May 2013 19:53:28 +0000 (21:53 +0200)]
Add test for Layout::write()
When running the test, you'll get the following messages:
Testing ../../src/../lib/layouts/siamltex.layout...
Layout.cpp (268): Cannot copy unknown style `Enumerate'
Testing ../../src/../lib/layouts/svglobal.layout...
Cannot delete style `Dedication'
Testing ../../src/../lib/layouts/svjog.layout...
Cannot delete style `Dedication'
Testing ../../src/../lib/layouts/svprobth.layout...
Cannot delete style `Dedication'
These are no errors of Layout::write(), but they indicate problems in the
definition of the layout files.
Kornel, it would be nice if you could do the cmake part.
Julien Rioux [Mon, 13 May 2013 19:07:04 +0000 (21:07 +0200)]
Add missing space in front of edition in generated bibentry.
Julien Rioux [Mon, 13 May 2013 18:58:12 +0000 (20:58 +0200)]
Add modifier to jurabib and natbib (author-year) modules.
Julien Rioux [Mon, 13 May 2013 18:29:49 +0000 (20:29 +0200)]
Natbib authoryear uses (Ref1; Ref2) by default.
I was confused when I checked this. It looks like plainnat.bst
overwrites this default to use [Ref1, Ref2] style instead, but
when using natbib's defaults you get the (Ref1; Ref2) style.
Julien Rioux [Mon, 13 May 2013 18:26:46 +0000 (20:26 +0200)]
Initialize BibTeXInfo modifier to zero, always.
Richard Heck [Mon, 13 May 2013 16:22:41 +0000 (12:22 -0400)]
Get font sizes working for XHTML.
Richard Heck [Mon, 13 May 2013 15:58:52 +0000 (11:58 -0400)]
Get font families working for XHTML.
Richard Heck [Fri, 10 May 2013 20:58:38 +0000 (16:58 -0400)]
XHTML support for font shapes.
Richard Heck [Tue, 7 May 2013 06:34:15 +0000 (02:34 -0400)]
Rework that way that font tags are handled in XHTML output. We need
to do this in order to handle span tags properly, when they act as
font tags.
Richard Heck [Tue, 7 May 2013 06:30:26 +0000 (02:30 -0400)]
Rework the way the parsep tag is handled, and introduce comparison
operators for these tags.
Richard Heck [Tue, 7 May 2013 05:16:14 +0000 (01:16 -0400)]
Rework how paragraph ids are handled.
Previously, an empty paragraph would always yield something like:
<div><a id='magicparid-35' /></div>
because we had no way to "defer" the anchor tag. Now this is wrapped
into the div, in effect, and we abandon it all if there's no content.
Richard Heck [Tue, 7 May 2013 04:19:34 +0000 (00:19 -0400)]
Reorganize the TagStack objects.
Kornel Benko [Mon, 13 May 2013 12:51:03 +0000 (14:51 +0200)]
* sk.po
Vincent van Ravesteijn [Mon, 13 May 2013 10:45:59 +0000 (12:45 +0200)]
Translate build version strings
Vincent van Ravesteijn [Mon, 13 May 2013 09:21:53 +0000 (11:21 +0200)]
Remove the 'running' booleans quit and optional
Reason for this 'cleanup' is the strange "optional = false" lines at the
end of the "case md_item" and "case md_subitem". Then, it is nicer to
directly use the value of the switch to be the running variable and to use
this to determine whether an item is optional and whether we should quit.
Vincent van Ravesteijn [Sun, 12 May 2013 16:30:59 +0000 (18:30 +0200)]
Fix assert: Do not use translated names as keys
The panels in GuiDocument and GuiPrefs are stored in a map. The keys are
the translated descriptions of these panels. Whenever someone changes the
gui language and reopens the Document Settings pane, LyX asserted because
it could not find the "Child Documents" pane.
Vincent van Ravesteijn [Sun, 12 May 2013 16:30:40 +0000 (18:30 +0200)]
Add a function to translate QStrings
Vincent van Ravesteijn [Fri, 10 May 2013 14:20:14 +0000 (16:20 +0200)]
Fix crash with FindAndReplaceUi
In commit
bd9e8fecd the currentIndex of the FindAndReplaceAdv Pane was
changed from 0 to 1. Since then LyX crashed when requesting the pane or
when changing LyX preferences.
This patch reverts this, although it is not clear why it would crash
otherwise. It is still committed like this, because LyX is unusable
without.
Lars Gullik Bjønnes [Sun, 12 May 2013 11:00:02 +0000 (13:00 +0200)]
Remove ; from end of function definitions
Uwe Stöhr [Sun, 12 May 2013 10:57:14 +0000 (12:57 +0200)]
UserGuide.lyx: next revision step
- sec. 6.7 - 6.13
Georg Baum [Sat, 11 May 2013 07:39:06 +0000 (09:39 +0200)]
Make the different paste menu items optional
This was suggested by Jean-Marc some time ago, and I simply forgot to apply.
With this change you do not see unusable menu entries like linkback on linux
anymore. I also added an entry for emf, since this will be quite useful on
windows.
Richard Heck [Fri, 10 May 2013 17:47:03 +0000 (13:47 -0400)]
This probably doesn't matter, but the reason for bug #8666 traces,
ultimately, to the layout conversion for format 2.
Richard Heck [Fri, 10 May 2013 17:17:47 +0000 (13:17 -0400)]
Fix bug #8666. Parts should have toclevel -1.
A lot of this involves removing toclevel tags. They got introduced
by the automatic update of some layout files to format 19.
Uwe Stöhr [Fri, 10 May 2013 16:34:05 +0000 (18:34 +0200)]
PageLayoutUi.ui: use a more sensible option name
Uwe Stöhr [Fri, 10 May 2013 14:24:11 +0000 (16:24 +0200)]
Math.lyx: fix a typo
Uwe Stöhr [Fri, 10 May 2013 11:13:20 +0000 (13:13 +0200)]
GuiMathMatrix.cpp: fix a compiler warning
Jean-Marc Lasgouttes [Wed, 8 May 2013 13:12:42 +0000 (15:12 +0200)]
Remove cruft
Jean-Marc Lasgouttes [Mon, 6 May 2013 21:50:23 +0000 (23:50 +0200)]
Another try at making the source view dock arrange itself.
The idea is to minimize the size of the form that contains the buttons.
Since I do not really know what I am doing, I will revert if problems occur.
Jean-Marc Lasgouttes [Mon, 6 May 2013 20:50:26 +0000 (22:50 +0200)]
Small clanup (just move functions around)
Jean-Marc Lasgouttes [Mon, 6 May 2013 10:15:27 +0000 (12:15 +0200)]
Fix bug 6055: change-next does not work in tables
The problem was just the faulty use of CursorSlice::at_begin/end(), which does not look for end of cell, but end of inset.
Uwe Stöhr [Sun, 5 May 2013 23:54:17 +0000 (01:54 +0200)]
Revert "tex2lyx/text.cpp: fix a typo spotted by clang"
This reverts commit
055b425b646e748e0c35f0eef89e03e6126a143d .
This requires much more work and i don't have time to do this now
Uwe Stöhr [Sun, 5 May 2013 23:35:38 +0000 (01:35 +0200)]
tex2lyx/text.cpp: fix a typo spotted by clang
Uwe Stöhr [Sun, 5 May 2013 23:31:04 +0000 (01:31 +0200)]
GuiBox.cpp: fix a dialog initialization issue
thanks Jean-Marc for the hint
Tommaso Cucinotta [Sun, 5 May 2013 14:09:53 +0000 (15:09 +0100)]
Automatic horiz/vert switch also for Advanced Tab (completing
e3677975 ).
Tommaso Cucinotta [Sun, 5 May 2013 13:05:50 +0000 (14:05 +0100)]
Automatic horiz/vert switch of layout when docking Advanced F&R pane top-bottom/left-right (copying
49c2450f ).
Pavel Sanda [Sun, 5 May 2013 06:05:51 +0000 (23:05 -0700)]
Add layout intelligence to View Source pane (bug #8653).
View Source pane layout now automatically switches between horizontal
and vertical design when docked in vertical or horizontal way.
Original idea and patch from Edwin.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg178801.html
Note: the long standing-fight with too bulky minimal QTextEdit size
is now solved via ViewSourceUi.sizePolicy=Ignored.
Richard Heck [Sat, 4 May 2013 12:25:21 +0000 (08:25 -0400)]
Set "dryrun" to true for XHTML copying routine. This suppresses
the production of images, etc, making copying even the entire
User's Guide and almost instantaneous operation.
Pavel Sanda [Sat, 4 May 2013 08:09:07 +0000 (01:09 -0700)]
ViewSourceUi.ui layout was broken
Pavel Sanda [Sat, 4 May 2013 04:45:59 +0000 (21:45 -0700)]
Comment.
Uwe Stöhr [Sat, 4 May 2013 00:48:54 +0000 (02:48 +0200)]
UserGuide.lyx: next revision step
- revised sec. 6 - 6.6
- describe longest label feature for bibliography environment
Richard Heck [Fri, 3 May 2013 21:48:48 +0000 (17:48 -0400)]
Don't consider unnumbered sections for tocdepth.
Scott Kostyshak [Fri, 3 May 2013 05:41:43 +0000 (01:41 -0400)]
header_check.sh: allow exclusion of common headers
Continuing to address #6305
Richard Heck [Fri, 3 May 2013 01:23:11 +0000 (21:23 -0400)]
Minor cleanup.
Richard Heck [Fri, 3 May 2013 01:20:43 +0000 (21:20 -0400)]
The update here needs doing no matter what.
This fixes a bug introduced in
db358a4315 .
Uwe Stöhr [Thu, 2 May 2013 23:11:32 +0000 (01:11 +0200)]
installer: fix an issue
- also take care of emergency releases when updating LyX
- add some prerequisites for a new feature
Richard Heck [Thu, 2 May 2013 19:20:50 +0000 (15:20 -0400)]
Re-rename. The last renaming broke monolithic compilation.
Richard Heck [Sun, 28 Apr 2013 17:06:21 +0000 (13:06 -0400)]
Make strings used in various assertions non-static.
Jean-Marc Lasgouttes [Thu, 2 May 2013 17:22:10 +0000 (19:22 +0200)]
Even more llvm/clang warnings
Remove lyxview_ member of lyx::Action, fix a prototype in TexStream and comment out a Cursor function.
Jean-Marc Lasgouttes [Thu, 2 May 2013 16:27:32 +0000 (18:27 +0200)]
More llvm/clang warnings
This is mostly unused private class members.
There are also a few unused functions that got #if'ed out. I never know in this case whether the code should be nuked.
Jean-Marc Lasgouttes [Thu, 2 May 2013 14:38:25 +0000 (16:38 +0200)]
A first batch of potential bugs spotted by llvm/clang
There are more warnings left, but these are the easiest to fix. And some of them are real bugs (assignments with == instead of =).
Pavel Sanda [Thu, 2 May 2013 07:25:17 +0000 (00:25 -0700)]
Remove some header leftovers based on Scott's script hints.
False positive rate of hints is quite high. Although the includes can be
technically removed (due to other includes) they logically belong to the
header.
Scott Kostyshak [Thu, 2 May 2013 06:40:48 +0000 (02:40 -0400)]
Script for finding unneeded headers
The script does the following:
All .cpp and .h files in the current directory and subdirectories
are checked to see which include statements could be omitted without
causing a build error.
Many of these omissions would not be desired. For example, currently
if you don't include Undo.h in Undo.cpp, there is no error because
Undo.h is included in Cursor.h which is included in Undo.cpp. But
clearly we do want to include Undo.h in Undo.cpp.
See #6305.
Uwe Stöhr [Wed, 1 May 2013 22:59:44 +0000 (00:59 +0200)]
installer: fix a typo
Georg Baum [Wed, 1 May 2013 11:51:39 +0000 (13:51 +0200)]
Don't ask for creating branches on copying
As discussed on the list. This gets rid of the unwanted message boxes when
copying the complete Userguide.
Jean-Marc Lasgouttes [Tue, 30 Apr 2013 14:43:29 +0000 (16:43 +0200)]
Small changes to Poor man's profiler
* report results in milliseconds instead of microseconds
* report total time spent in block, additionally to mean time
* cause compilation error with --enable-stdlib-debug
Jean-Marc Lasgouttes [Tue, 16 Apr 2013 14:22:10 +0000 (16:22 +0200)]
Fix bug #8627: Command line switches to change branch do not appear to work
Move the handling of branch-(de)activate(master) to Buffer. This code was moved to Bufferview in [
3a03e71c /lyxgit] because a cursor was necessary to call Undo::recordUndoFullDocument(). However, it turns out that the undo code is already prepared to handle an empty cursor (and do nothing in this case).
Therefore we do that and move the branch code to Buffer where it belongs.
Note that there was a bug in the previous code that broke undo support: recordUndo should always be called _before_ doing any change.
Tommaso Cucinotta [Sun, 28 Apr 2013 23:48:43 +0000 (00:48 +0100)]
Added regression test for simple use-case documented in Advanced F&R manual.
findadv-re-05 with ignore format fails, whilst findadv-re-06 not ignoring format succeeds, as of now.
Uwe Stöhr [Sun, 28 Apr 2013 22:52:45 +0000 (00:52 +0200)]
UserGuide.lyx: fix an issue reported on the docs list
Uwe Stöhr [Sun, 28 Apr 2013 22:42:02 +0000 (00:42 +0200)]
UserGuide.lyx: next revision step (chap. C) for master
Vincent van Ravesteijn [Sun, 28 Apr 2013 19:47:37 +0000 (21:47 +0200)]
Fix assertion for InsetInfos of icon types
InsetInfo inserted insets in its text without specifying a font. This
caused the fonlist to be incomplete and firing the assertion.
Vincent van Ravesteijn [Sun, 28 Apr 2013 12:44:08 +0000 (14:44 +0200)]
Fix FontIterator to not access pos >= par.size()
An iterator is typicall incremented passed the valid data into the 'end'
state. However, if this means that other functions are called with invalid
parameter, we should fix this.
This explains why fontSpan was called with pos==size() while this was not
expected to happen.
This patch reverts partly
f5ad0c128aec (Jean-Marc Lasgouttes; Get rid of
annoying warning message).
Vincent van Ravesteijn [Sun, 28 Apr 2013 16:47:11 +0000 (18:47 +0200)]
Make sure MarkAsExporting is deleted before buffer
This fixes a crash when cutting something.
Vincent van Ravesteijn [Sun, 28 Apr 2013 16:45:51 +0000 (18:45 +0200)]
Make staticbuffer static again
Otherwise the number of internal buffers in incremented on each cut
action.
Richard Heck [Sun, 28 Apr 2013 16:08:30 +0000 (12:08 -0400)]
Clean up comments a bit.
Uwe Stöhr [Sun, 28 Apr 2013 04:03:13 +0000 (06:03 +0200)]
installer: updated for dictionaries
- support thesaurus for Icelandic and Ukrainian
- update for other dictionaries
Uwe Stöhr [Sun, 28 Apr 2013 03:45:21 +0000 (05:45 +0200)]
UserGuide.lyx: port recent changes from branch
Richard Heck [Sat, 27 Apr 2013 22:12:27 +0000 (18:12 -0400)]
Another assertion that got changed wrongly.
I've read back through that patch, and everything else looks good.
Richard Heck [Sat, 27 Apr 2013 21:52:55 +0000 (17:52 -0400)]
Remove all messages to user related to assertions. We'll just use
a basic message which is defined in lassert.cpp now.
Kornel Benko [Sat, 27 Apr 2013 19:38:01 +0000 (21:38 +0200)]
Use doctring as LBUFFER() etc parameters
Kornel Benko [Sat, 27 Apr 2013 19:13:32 +0000 (21:13 +0200)]
Strings as parameters to LASSERT should not be translatable.
But empty strings are even worse.
Jean-Marc Lasgouttes [Sat, 27 Apr 2013 18:14:43 +0000 (20:14 +0200)]
Another assertion that got transformed in
1b1f8dd2
Jean-Marc Lasgouttes [Sat, 27 Apr 2013 18:00:15 +0000 (20:00 +0200)]
Get rid of annoying warning message
Uwe Stöhr [Sat, 27 Apr 2013 17:40:02 +0000 (19:40 +0200)]
French UserGuide.lyx: translations by Jean-Pierre
Kornel Benko [Sat, 27 Apr 2013 15:23:58 +0000 (17:23 +0200)]
po: Modularisation of the diff_po.pl script
Jean-Marc Lasgouttes [Sat, 27 Apr 2013 09:19:19 +0000 (11:19 +0200)]
Fix assertion related to cursor anchor.
Richard Heck [Fri, 26 Apr 2013 14:42:45 +0000 (10:42 -0400)]
Remove assertion accidentally added during the audit.