]> git.lyx.org Git - lyx.git/log
lyx.git
8 years agoLook for svgz images as well
Georg Baum [Sun, 5 Jun 2016 10:25:48 +0000 (12:25 +0200)]
Look for svgz images as well

Almost all toolbar images are now in svgz format, bu thos were not found by
the scripts.

8 years agoconfigure: Add export format for 2.2.x
Scott Kostyshak [Sun, 5 Jun 2016 07:52:28 +0000 (03:52 -0400)]
configure: Add export format for 2.2.x

8 years agoAdjust generate_symbols* to db363ab1
Georg Baum [Sat, 4 Jun 2016 18:13:37 +0000 (20:13 +0200)]
Adjust generate_symbols* to db363ab1

The image map was renamed, so it was not found anymore.

8 years agoMake unicodesymbols.py python3 compatible
Georg Baum [Sat, 4 Jun 2016 17:58:42 +0000 (19:58 +0200)]
Make unicodesymbols.py python3 compatible

8 years agoUpdate gen_lfuns.py to current format
Georg Baum [Sat, 4 Jun 2016 17:46:40 +0000 (19:46 +0200)]
Update gen_lfuns.py to current format

And run it to update LFUNs.lyx. This overtakes the  syntax fix from b356df7fc
as well.

8 years agoMake gen_lfuns.py python3 compatible
Georg Baum [Sat, 4 Jun 2016 17:40:53 +0000 (19:40 +0200)]
Make gen_lfuns.py python3 compatible

Also read files with universal line endings and write files using native line
endings, so the script can also be used on windows without changing the line
endings.

8 years agoRemove convert_kmap.py
Georg Baum [Sat, 4 Jun 2016 17:09:44 +0000 (19:09 +0200)]
Remove convert_kmap.py

This was used to convert LaTeX symbols in kmap files in 2007, we do not
need it anymore.

8 years agoGet rid of pseudo diffs when remerging strings
Georg Baum [Sat, 4 Jun 2016 15:33:19 +0000 (17:33 +0200)]
Get rid of pseudo diffs when remerging strings

cmake sorts the input files for lyx_pot.py internally, but autotools use a
shell pattern like *.ui on the command line, so the order may be different
on different machines. It is more robust not to require any sorting from the
caller, so lyx_pot.py sorts now internally.

8 years agoupdate test references for ba2b86fa
Georg Baum [Sat, 4 Jun 2016 15:00:17 +0000 (17:00 +0200)]
update test references for ba2b86fa

8 years agoWork around limited SVG support (bug #9778)
Georg Baum [Sat, 4 Jun 2016 07:09:33 +0000 (09:09 +0200)]
Work around limited SVG support (bug #9778)

Qt only supports SVG 1.2 tiny, so we prefer to convert on our own if an
explicit converter is defined and the converter cache is used (otherwise
the conversion would be too expensive).

8 years agoUpdate sk.po
Kornel Benko [Fri, 3 Jun 2016 19:41:38 +0000 (21:41 +0200)]
Update sk.po

8 years agotypo
Pavel Sanda [Fri, 3 Jun 2016 18:19:02 +0000 (11:19 -0700)]
typo

8 years agoTake inset dimension into account in row signature
Jean-Marc Lasgouttes [Fri, 3 Jun 2016 09:21:09 +0000 (11:21 +0200)]
Take inset dimension into account in row signature

In some cases, the insets may change height or width without changing
the other apsects of the row.

Fixes bug #6991 and #10182.

8 years agoComment only
Pavel Sanda [Fri, 3 Jun 2016 05:48:34 +0000 (22:48 -0700)]
Comment only

8 years agoIntroduce basic support for microtype.sty.
Pavel Sanda [Fri, 3 Jun 2016 05:40:21 +0000 (22:40 -0700)]
Introduce basic support for microtype.sty.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg192743.html

8 years agoSupport a changed log message in newest LuaTeX
Scott Kostyshak [Fri, 3 Jun 2016 02:54:26 +0000 (22:54 -0400)]
Support a changed log message in newest LuaTeX

The version of LuaTeX that ships with TeX Live 2016 now gives the
following message after processing a document that yields no pages
of output:

"warning  (pdf backend): no pages of output."

The lowercase "n" in "no" is a change that caused our parser not to
pick up the message.

8 years agoOutput file from (xe|lua)latex is PDF, not DVI
Scott Kostyshak [Wed, 25 May 2016 22:02:26 +0000 (18:02 -0400)]
Output file from (xe|lua)latex is PDF, not DVI

A few parts of our code depend on correctly identifying the output
format of LaTeX commands. One specific bug is that because the
output file was not correctly set, it was not removed after an
error. For example, this commit fixes the following bug:

1. Create a new document that contains "hello\blah" where \blah is
in an ERT box.
2. Compile with PDF (LuaTeX). You'll get an error because of \blah.
3. Close the error dialog.
4. Remove the text "hello" and compile again with PDF (LuaTeX).

The error dialog is shown and the "Show Output Anyway" button is
enabled. If you click it, it shows the previously compiled PDF (with
the text "hello"). With this commit, the button is correctly
disabled (and the output file is deleted).

8 years agoGeneralize a comment
Scott Kostyshak [Wed, 25 May 2016 22:01:00 +0000 (18:01 -0400)]
Generalize a comment

An output file does not have to be a DVI.

8 years agoWin installer: port last change
Uwe Stöhr [Thu, 2 Jun 2016 23:30:29 +0000 (01:30 +0200)]
Win installer: port last change

8 years agoTutorial.lyx: port last change
Uwe Stöhr [Thu, 2 Jun 2016 23:29:59 +0000 (01:29 +0200)]
Tutorial.lyx: port last change

8 years agoExport svg in xhtml, not svgz (bug 10160)
Georg Baum [Thu, 2 Jun 2016 20:34:28 +0000 (22:34 +0200)]
Export svg in xhtml, not svgz (bug 10160)

LyX did not distinguish compressed and uncompressed svg files previously.
Therefore XHTML export of vector graphics did use svgz images directly, which
is not supported by browsers. If svg and svgz are treated as two formats then
all works fine. This is also consistent with the loadable image formats
reported by qt: It reports both svg and svgz.
The gunzip dependency in converters is not new (it is already used internally),
but the gzip dependency is new, so it might not be available on windows.
This is not important at the moment, since we do not yet need to convert svg
to svgz, I only added the converter for completeness.

8 years agoDo not duplicate jpg format
Georg Baum [Thu, 2 Jun 2016 20:31:27 +0000 (22:31 +0200)]
Do not duplicate jpg format

Some qt versions report both "jpeg" and "jpg" as loadable file extensions.
In this case the jpg format was added twice previously. This does not happen
anymore with the new code, and it works as well if only "jpg" or only "jpeg"
is reported.

8 years agoImprove debug output
Georg Baum [Thu, 2 Jun 2016 20:17:19 +0000 (22:17 +0200)]
Improve debug output

Now we have only one line per format, not two. The output looks the same now
as in GuiApplication.cpp for the qt formats.

8 years agoWin installer: security issues in ImageMagick require new installer
Uwe Stöhr [Wed, 1 Jun 2016 22:46:16 +0000 (00:46 +0200)]
Win installer: security issues in ImageMagick require new installer

8 years agoUpdate imported gettext code from gettext 0.19.7
Georg Baum [Wed, 1 Jun 2016 19:45:38 +0000 (21:45 +0200)]
Update imported gettext code from gettext 0.19.7

This might help with the spurious .pot file update error in 'make distcheck'.
At least it does not break anything.

8 years agoglitch in lfundoc
Pavel Sanda [Wed, 1 Jun 2016 07:20:50 +0000 (00:20 -0700)]
glitch in lfundoc

8 years agode.po: some translations
Uwe Stöhr [Tue, 31 May 2016 21:15:56 +0000 (23:15 +0200)]
de.po: some translations

8 years agoErrorListUi.ui: correct an expression
Uwe Stöhr [Tue, 31 May 2016 21:15:07 +0000 (23:15 +0200)]
ErrorListUi.ui: correct an expression

8 years agoForce native line endings for .po files
Georg Baum [Tue, 31 May 2016 20:43:09 +0000 (22:43 +0200)]
Force native line endings for .po files

As discussed on the list some time ago. cmake produces .po files already in
native line endings. Only autotools on mingw might produce wrong line endings
now, but I am pretty sure that nobody updates .po files using autotools on mingw.

8 years agoAllow automatic text direction in Painter::text()
Jean-Marc Lasgouttes [Tue, 31 May 2016 07:13:18 +0000 (09:13 +0200)]
Allow automatic text direction in Painter::text()

It is wrong to assume that direction is left-to-right when no indication exist.

Add a new enum with values LtR, RtL and Auto to be used as argument of
the private text() methods. When direction is Auto, let Qt decide how
the string shall be layed out.

Fixes bug #10169.

8 years agoUpdate sk.po
Kornel Benko [Tue, 31 May 2016 07:18:29 +0000 (09:18 +0200)]
Update sk.po

8 years agoCmake export tests: Added testcases for erroneous xhtml exports
Kornel Benko [Tue, 31 May 2016 07:13:35 +0000 (09:13 +0200)]
Cmake export tests: Added testcases for erroneous xhtml exports

8 years agoWin installer: 2 bugfixes
Uwe Stöhr [Mon, 30 May 2016 23:25:07 +0000 (01:25 +0200)]
Win installer: 2 bugfixes

8 years agoTocWidget: fix an erroneous collapse and optimise updates based on profiling
Guillaume Munch [Mon, 30 May 2016 20:42:08 +0000 (21:42 +0100)]
TocWidget: fix an erroneous collapse and optimise updates based on profiling

TocModels::reset() in GuiView::structureChanged() collapses the TocWidget, and
therefore requires an update right after, which was missing.

In fact, profiling TocWidget::updateView() shows that delaying the update is
good only for fast keypresses (essentially movement). It costs 5% of a
char-forward operation in a document with approx. 100 table of contents
items. The update optimisation has been rewritten to take this data into
account.

8 years agoTocWidget: fix part of #9825
Guillaume Munch [Mon, 30 May 2016 21:11:27 +0000 (22:11 +0100)]
TocWidget: fix part of #9825

8 years agoTocModel: clean-up
Guillaume Munch [Mon, 30 May 2016 21:11:00 +0000 (22:11 +0100)]
TocModel: clean-up

8 years agoGuiDelimiters: display at least (and at most?) 4 columns
Guillaume Munch [Tue, 10 May 2016 17:47:27 +0000 (18:47 +0100)]
GuiDelimiters: display at least (and at most?) 4 columns

8 years agoGuiDelimiter: Synchronise the vertical scrollbars
Guillaume Munch [Tue, 10 May 2016 17:34:39 +0000 (18:34 +0100)]
GuiDelimiter: Synchronise the vertical scrollbars

8 years agoShortcutPrefs: hide empty lfuns for which there is already a binding
Guillaume Munch [Tue, 23 Feb 2016 22:02:02 +0000 (22:02 +0000)]
ShortcutPrefs: hide empty lfuns for which there is already a binding

8 years agoShortcutPrefs: clean-up
Guillaume Munch [Sun, 29 May 2016 19:58:33 +0000 (20:58 +0100)]
ShortcutPrefs: clean-up

8 years agoShow names of debug modes in the debug panel
Guillaume Munch [Sun, 29 May 2016 22:33:12 +0000 (23:33 +0100)]
Show names of debug modes in the debug panel

Sometimes it's hard to know which is which from a translation of the description
alone.

8 years agoUserGuide.lyx: update 2 images
Uwe Stöhr [Mon, 30 May 2016 21:20:49 +0000 (23:20 +0200)]
UserGuide.lyx: update 2 images

8 years agoUpdate PAINTING_ANALYSIS
Jean-Marc Lasgouttes [Mon, 30 May 2016 12:54:20 +0000 (14:54 +0200)]
Update PAINTING_ANALYSIS

Remove all the tasks that have been performed.

8 years agoSplit TextMetrics::setRowHeight in three parts
Jean-Marc Lasgouttes [Fri, 20 May 2016 15:14:54 +0000 (17:14 +0200)]
Split TextMetrics::setRowHeight in three parts

The new functions parBottomSpaging and parTopSapcing return below/above each paragraph.

This allows to remove the TopBottomSpace argument and makes the code a
bit clearer.

8 years agoDo not require an extra pit parameter when a row is available
Jean-Marc Lasgouttes [Wed, 18 May 2016 07:39:47 +0000 (09:39 +0200)]
Do not require an extra pit parameter when a row is available

Now that Row has a pit() member, it is possible to use it instead of passing an extra pit_type parameter to a function which already has access to a Row.

8 years agoRowPainter const cleanup
Jean-Marc Lasgouttes [Tue, 17 May 2016 13:00:09 +0000 (15:00 +0200)]
RowPainter const cleanup

Change the various paint* helpers to take a single row element as argument.

Do not update x_ in the various paint* helpers. Constify them. Update x_ in paintText and paintOnlyInsets instead.

Remove an empty call to paintForeignMark in paintInset (the call did nothing since orig_x == x_ at this point).

8 years agoUpdate PAINTING_ANALYSIS and add a new task
Jean-Marc Lasgouttes [Wed, 11 May 2016 12:16:08 +0000 (14:16 +0200)]
Update PAINTING_ANALYSIS and add a new task

8 years agoSet vertical margins in redoParagraph, not setRowHeight
Jean-Marc Lasgouttes [Fri, 8 Apr 2016 14:34:46 +0000 (16:34 +0200)]
Set vertical margins in redoParagraph, not setRowHeight

It is actually easier to set the 20 pixels margin in redoParagraph, since it is not necessary to take newlines in account when deciding what is the real last row of the paragraph.

Moreover this solves the following bug (present in 2.1.x too): when the document ends with a newling, the bottom margin disappears.

Update PAINTING_ANALYSIS with new tasks.

8 years agoCleanup Painter text() API
Jean-Marc Lasgouttes [Sun, 20 Mar 2016 19:02:05 +0000 (20:02 +0100)]
Cleanup Painter text() API

* remove optional arguments to the helpers that use a FontInfo
* add a textwidth argument to the text() methods that are used by rowpainter.

Now textwidth is only computed if a null value was passed to the
text() method. This means that in the use case of rowpainter, no
textwidth needs to be computed.

8 years agoMake the different Painter::text void methods
Jean-Marc Lasgouttes [Sat, 19 Mar 2016 16:52:07 +0000 (17:52 +0100)]
Make the different Painter::text void methods

The textwidth value that was returned is not used anymore. Now in some
cases we can avoid to compute it at all.

8 years agoDo not use the return value of Painter::text for logos
Jean-Marc Lasgouttes [Sat, 19 Mar 2016 16:26:25 +0000 (17:26 +0100)]
Do not use the return value of Painter::text for logos

This will allow to get rid of this return value (and avoid computing it).

8 years agoRewrite setRowHeight using row information
Jean-Marc Lasgouttes [Sun, 6 Mar 2016 15:22:53 +0000 (16:22 +0100)]
Rewrite setRowHeight using row information

The initial values for maxasc and maxdes (renamed from maxdesc) is obtained as a maximum of max ascents/descents of all row elements.

This allows to get rid of Paragraph::highestFontInRange and FontList::highestInRange.

Some auxilliary variables declarations are also moved to where they are needed.

8 years agoSimplify redoParagraph by merging duplicate code
Jean-Marc Lasgouttes [Sat, 5 Mar 2016 22:11:45 +0000 (23:11 +0100)]
Simplify redoParagraph by merging duplicate code

Let breakRow return a boolean indicating whether an additional row is
required (after a newline) and use that to replace the code that added
an extra row when a paragraph ends with a newline.

8 years agoUpdate PAINTING_ANALYSIS
Jean-Marc Lasgouttes [Fri, 4 Mar 2016 23:09:34 +0000 (00:09 +0100)]
Update PAINTING_ANALYSIS

Some things were wrong, and some new ideas are added (some are done in
this branch already).

8 years agoMake the non-drawing cases faster in TextMetrics::drawParagraph
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 15:07:35 +0000 (16:07 +0100)]
Make the non-drawing cases faster in TextMetrics::drawParagraph

There are two main cases:
* when drawing is disabled from the start, use a simplified code that only paints insets (in order to cache positions).
* when the row is not visible, do the same.

The goal of this optimization is to be able to always run a no-drawing draw after the metrics have been computed.

8 years agoMove some horizontal scrolling code from TextMetrics to BufferView
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 15:05:06 +0000 (16:05 +0100)]
Move some horizontal scrolling code from TextMetrics to BufferView

It is better to have all the code in the same place, and it will avoid code duplication later.

8 years agoOnly add inset postion to cache in paintInset
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 13:34:55 +0000 (14:34 +0100)]
Only add inset postion to cache in paintInset

It was also added in paintText and paintOnlyInsets.

8 years agoCmake xhtml export tests: Missing script for commit 416242476289d423eb392345555f3dad9...
Kornel Benko [Mon, 30 May 2016 08:22:59 +0000 (10:22 +0200)]
Cmake xhtml export tests: Missing script for commit 416242476289d423eb392345555f3dad941df544

8 years agoCmake xhtml export tests: Use command xmllint to test the export result
Kornel Benko [Mon, 30 May 2016 07:50:22 +0000 (09:50 +0200)]
Cmake xhtml export tests: Use command xmllint to test the export result

8 years agoDont use invalid tag '<pre></pre>' in xhtml export
Kornel Benko [Mon, 30 May 2016 07:48:06 +0000 (09:48 +0200)]
Dont use invalid tag '<pre></pre>' in xhtml export

8 years agoCmake tests: Allow test of LongestLabelWithUnderscore_xhtml
Kornel Benko [Mon, 30 May 2016 07:46:01 +0000 (09:46 +0200)]
Cmake tests: Allow test of LongestLabelWithUnderscore_xhtml

8 years agoCmake: Allow test for X11 with QT5.6
Kornel Benko [Mon, 30 May 2016 06:22:15 +0000 (08:22 +0200)]
Cmake: Allow test for X11 with QT5.6

Used for key-test tests.

8 years agoUserGuide.lyx: update 2 images
Uwe Stöhr [Mon, 30 May 2016 02:27:36 +0000 (04:27 +0200)]
UserGuide.lyx: update 2 images

8 years agoCMake: add 2 build scripts to compile LyX with Qt 5 and MSVC 2015
Uwe Stöhr [Mon, 30 May 2016 00:03:16 +0000 (02:03 +0200)]
CMake: add 2 build scripts to compile LyX with Qt 5 and MSVC 2015

8 years agotufte-handout.lyx: add the lost \origon tag
Uwe Stöhr [Sun, 29 May 2016 23:46:16 +0000 (01:46 +0200)]
tufte-handout.lyx: add the lost \origon tag

That the origin tag is automatically removed sucks. It consumes a lot of time to re-add it again and again.

8 years agotufte-handout.lyx: remove some unnecessary TeX code
Uwe Stöhr [Sun, 29 May 2016 23:42:00 +0000 (01:42 +0200)]
tufte-handout.lyx: remove some unnecessary TeX code

8 years agoMerge branch 'master' of git.lyx.org:lyx
Uwe Stöhr [Sun, 29 May 2016 21:58:10 +0000 (23:58 +0200)]
Merge branch 'master' of git.lyx.org:lyx

8 years agoWin installer: push the changes that are already part of the 2.2.0 installer
Uwe Stöhr [Sun, 29 May 2016 21:57:37 +0000 (23:57 +0200)]
Win installer: push the changes that are already part of the 2.2.0 installer

8 years agoCorrect wrong path for included lyx-file
Kornel Benko [Thu, 26 May 2016 20:36:35 +0000 (22:36 +0200)]
Correct wrong path for included lyx-file

Although the fix affects only a content of a LyX note, it is
still surprising to get a dialog-window demanding creation
a new document if trying to edit the subdocument.

8 years agoFixup 1b2aad9 : Cleanup of spacing in mathed
Jean-Marc Lasgouttes [Wed, 25 May 2016 13:14:18 +0000 (15:14 +0200)]
Fixup 1b2aad9 : Cleanup of spacing in mathed

Now that 5mu are added on each side of : (because it is a relation), there is no need to do the same in the definition of \vcentcolon.

This is closer to what is done in mathtools.sty.

8 years agoCleanup of spacing in mathed
Jean-Marc Lasgouttes [Tue, 24 May 2016 10:08:24 +0000 (12:08 +0200)]
Cleanup of spacing in mathed

This is a first cleanup step. More complex rules have to be
implemented on top of this.

Use proper spacing \thinmuskip, \medmuskip and \thickmuskip instead of
ad-hoc values.

Rename isRelOp to isMathRel and introduce isMathBin and isMathPunct
(for InsetMathChar and InsetMathSymbol). Update the categories of
characters in InsetMathChar according to LaTeX source (fontmath.ltx).

Set correctly the spacing around mathrel, mathbin and mathpunct
elements. Use \thinmuskip around MathDelim instead of a hardcoded 4.

This is related to bug #8883.

8 years agoImprove documentation of LyX' "smart quotes" feature.
Günter Milde [Mon, 23 May 2016 19:14:28 +0000 (21:14 +0200)]
Improve documentation of LyX' "smart quotes" feature.

8 years agoRemove extra spacing around InsetCommand buttons
Jean-Marc Lasgouttes [Mon, 23 May 2016 14:16:05 +0000 (16:16 +0200)]
Remove extra spacing around InsetCommand buttons

There is already a spacing of 2 pixels on each side of a button (e.g. collapsed inset). There is no need to add one extra pixel for command insets.

Fixes part of bug #10149.

8 years agoFix drawing of buttonText (enforce same left/right spacing)
Jean-Marc Lasgouttes [Mon, 23 May 2016 13:24:13 +0000 (15:24 +0200)]
Fix drawing of buttonText (enforce same left/right spacing)

The computation of the width of the button was wrong. If <--> stands for TEXT_TO_INSET_OFFSET/2 spacing, and if `[]' marks the button's limits, then the intent is
  <-->[<-->button text<-->]<-->

Therefore the physical grey rectangle width is
   width - Inset::TEXT_TO_INSET_OFFSET

With this change, the spacing on the right of the button is not larger than the  left one.

Fixes bug #10147.

8 years agoCleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus
Jean-Marc Lasgouttes [Thu, 12 May 2016 15:31:47 +0000 (17:31 +0200)]
Cleanup handling of LFUN_LAYOUT_PARAGRAPH in getStatus

The way it works is:
* the inset defines allowParagraphCustomization() correctly
* Text::getStatus acts on it.

Note that, in Text::getStatus, testing for cur.inset().allowParagraphCustomization() does not make much sense, since one should pass the cursor idx as parameter. Actually, for some reason the safest bet is to use the owner of the Text object as inset.

8 years agoCleanup handling of LFUN_LAYOUT in getStatus
Jean-Marc Lasgouttes [Thu, 12 May 2016 12:10:30 +0000 (14:10 +0200)]
Cleanup handling of LFUN_LAYOUT in getStatus

The way it works is:
* the inset defines forcePlainLayout() correctly
* Text::getStatus acts on it.

Note that, in Text::getStatus, testing for cur.inset().forcePlainLayout() does not make much sense, since one should pass the cursor idx as parameter.

There are many other lfuns that do not have to be handled directly by insets. InsetScript in particular has tests for way too many lfuns.

8 years agoRename badly named variable
Jean-Marc Lasgouttes [Tue, 5 Apr 2016 12:27:30 +0000 (14:27 +0200)]
Rename badly named variable

8 years agoRemove variables set but not used
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 13:27:51 +0000 (14:27 +0100)]
Remove variables set but not used

This was found by cppcheck.

8 years agoMove one Text::setCursor instance to CursorSlice
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 12:47:23 +0000 (13:47 +0100)]
Move one Text::setCursor instance to CursorSlice

This method did access more CursorSlice than Text. It is only a setter for
CursorSlice with some bound checking. The new signature is
setPitPos(pit_type, pos_type).

8 years agoVariables of type pit_type should be named pit, not par
Jean-Marc Lasgouttes [Mon, 29 Feb 2016 12:29:06 +0000 (13:29 +0100)]
Variables of type pit_type should be named pit, not par

It is easier to use always the same conventions for naming.

8 years agoRename Cursor::setSelection(bool) to selection(bool)
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 16:36:29 +0000 (17:36 +0100)]
Rename Cursor::setSelection(bool) to selection(bool)

The old name would be confusing wrt setSelection(), which does additional checks.
This one is a pure acessor, and the more complete methods are
* setSelection(), which avoids empty selections
* clearSelection(), which resets anchor, and sets word selection and mark more to false.

Most of the code should use these two instead of selection(bool), but this is for later.

8 years agoAvoid incorrect "Autocorrect Off" message
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 16:21:26 +0000 (17:21 +0100)]
Avoid incorrect "Autocorrect Off" message

8 years agoFindAndReplace: reorder includes
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 16:11:51 +0000 (17:11 +0100)]
FindAndReplace: reorder includes

8 years agoTextMetrics: Use shorter names for font metrics
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 16:01:01 +0000 (17:01 +0100)]
TextMetrics: Use shorter names for font metrics

This keeps code easier to read.

8 years agoCleanup bruteFind.
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:56:00 +0000 (16:56 +0100)]
Cleanup bruteFind.

8 years agoRemove unused bruteFind* functions
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:48:11 +0000 (16:48 +0100)]
Remove unused bruteFind* functions

And rename bruteFind2 to bruteFind.

8 years agoRemove unused CursorData::logicalpos_
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:44:00 +0000 (16:44 +0100)]
Remove unused CursorData::logicalpos_

This was introduced in 41ecabf5, probably by mistake.

8 years agoDirectly pass a Row::Element to RowPainter::paintInset
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:42:35 +0000 (16:42 +0100)]
Directly pass a Row::Element to RowPainter::paintInset

8 years agoRemove unused TextMetrics::maxWidth()
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:34:33 +0000 (16:34 +0100)]
Remove unused TextMetrics::maxWidth()

8 years agoUse isMainText() instead of doing explicit tests
Jean-Marc Lasgouttes [Sun, 28 Feb 2016 15:23:43 +0000 (16:23 +0100)]
Use isMainText() instead of doing explicit tests

8 years agoWe do not use <boost/scoped_array.hpp> anymore
Jean-Marc Lasgouttes [Fri, 20 May 2016 08:19:02 +0000 (10:19 +0200)]
We do not use <boost/scoped_array.hpp> anymore

The code using it  was removed at 81959251.

8 years agoRemove support/metahash.h
Jean-Marc Lasgouttes [Thu, 19 May 2016 15:13:07 +0000 (17:13 +0200)]
Remove support/metahash.h

It turns out that it did not take off since introduced in 2011. It is better to remove it and the associated boost headers (extract.sh was run against boost 1.60 to do the update).

Since we will move away from several boost classes when transitioning to C++11, it is good to start by removing lesser used ones.

8 years agoDo not use of boost::tokenizer
Jean-Marc Lasgouttes [Thu, 19 May 2016 13:28:39 +0000 (15:28 +0200)]
Do not use of boost::tokenizer

It is easier to use instead getVectorFromString for the use we have of this tokenizer. The two places are environment.cpp (path stuff) and qt_helpers (file fileters). The new code is much shorter.

This allow to remove boost/tokenizer.hpp and friends from our boost tree.

8 years agoRemove boost/format support
Jean-Marc Lasgouttes [Thu, 19 May 2016 10:01:08 +0000 (12:01 +0200)]
Remove boost/format support

Only ChkTex.cpp used it, whereas the rest of our code uses the simpler bformat.

8 years agoRemove declaration of classes that do not exist
Jean-Marc Lasgouttes [Thu, 19 May 2016 09:47:26 +0000 (11:47 +0200)]
Remove declaration of classes that do not exist

Some headers contain
  class Foo;
whereas there is no class Foo.

The list of class statements is given by
  classes=`git grep  '^\(class\|struct\) [a-zA-Z_:]*;' src | sed 's/^.* \(.*\);/\1/'|sort -u`

The ones that are useless are:
  for c in $classes ; do grep -r "\\<$c\\>" src| grep -vq '^[^:]*:\(class\|struct\) [a-zA-Z_:]*;' || echo "$c"; done

8 years ago\\pagebreak is a fragile command in general
Jean-Marc Lasgouttes [Fri, 22 Apr 2016 12:57:12 +0000 (14:57 +0200)]
\\pagebreak is a fragile command in general

As such, it shall be protected in moving arguments, such as sections.

Fixes bug #10092.

8 years agoFix getStatus for math-mutate and math-display
Jean-Marc Lasgouttes [Thu, 12 May 2016 07:24:55 +0000 (09:24 +0200)]
Fix getStatus for math-mutate and math-display

Those two functions used two different hackish and buggy
implementation to know when the function is disabled. Replace that by
asking the containing inset whether it accepts inserting display math
inset.

Fixes bug #10033.

8 years agoDo not use 'u' flag for ar
Jean-Marc Lasgouttes [Wed, 11 May 2016 15:09:34 +0000 (17:09 +0200)]
Do not use 'u' flag for ar

The Reproducible Builds effort (https://wiki.debian.org/ReproducibleBuilds) in Debian (at least) means that 'ar' is built in deterministic mode as default: all timestamps are set to 0.

This is not compatible with the use of the 'u' flag, and therefore ARFLAGS has to be changed from 'cru' to 'cr'.

This gets rid of the harmless but annoying warning
  ar: `u' modifier ignored since `D' is the default (see `U')

8 years agoRemove unused include file.
Stephan Witt [Tue, 10 May 2016 16:08:05 +0000 (18:08 +0200)]
Remove unused include file.

8 years agoCorrect path names were to look for RPM based dictionaries for hunspell on Linux.
Stephan Witt [Tue, 10 May 2016 16:06:48 +0000 (18:06 +0200)]
Correct path names were to look for RPM based dictionaries for hunspell on Linux.