Commit Graph

397341 Commits

Author SHA1 Message Date
Michael Stahl
bb069fe7b8 sw: remove defensive programming bullshit in lcl_AssureFieldMarksSet
In CppunitTest_sw_ooxmlfieldexport testFdo81492 a TextFieldmark is
inserted at a position where already another TextFieldmark starts. The
defensively programmed lcl_AssureFieldMarksSet notices there is aleady a
dummy character at the start position, and does not insert another one,
but then the dummy character for the end position is inserted, moving
the start position index, which puts the start position behind another
bookmark.

So we end up with a field mark that has a end character but not a start
character and an un-sorted m_vAllMarks.

Change-Id: Icd15e83471e18f607eb41b2f7b0c2ce61c94ff9f
2016-09-28 11:04:19 +02:00
Michael Stahl
2bd8be10e2 sw: rStart variable isn't a reference
Change-Id: I48c402e3dcd9606d7f40ee2096fa8803d5499d73
2016-09-28 11:04:18 +02:00
Michael Stahl
bcc3509cdb sw: make the debug code in docbm.cxx usable
Change-Id: I45e412e107601947221d679992356b47d29ad4a7
2016-09-28 11:03:56 +02:00
Michael Stahl
39ac3aed06 sw: assert that IMarks are MarkBase
Change-Id: Id9e61dc624a34012dc7a53e262c76f8d25c4a455
2016-09-28 11:03:56 +02:00
Michael Stahl
6c673a2994 sw: fix sorting in MarkManager::correctMarksAbsolute()
The recently added tdf90697.rtf caused a libstdc++ assertion about
non-sorted m_vAllMarks.  This is because a SwXParagraph was disposed, a
bookmark on it was moved by correctMarksAbsolute onto the first
paragraph in a table, and there was a SwXTextRange with a UnoMark
pointing to the SwTableNode, so the sort order was not maintained.

So if at least one mark was moved, re-sort the array.

Change-Id: I0efc7827c826e696f29f8480bab1044b31ccfe39
2016-09-28 11:03:56 +02:00
David Tardon
bfbbbd87d3 sync build cond. for avmediaQuickTime with Module_avmedia
Change-Id: I7188f6b94ca8782fc9c5fb106cb08801fc5ef5c0
2016-09-28 10:02:11 +02:00
David Tardon
99d2240ab6 fix build on 32-bit ARM on latest Rawhide
Change-Id: If00c42235d6ec92634dc8c23fdcbb50e332ffa68
2016-09-28 09:11:13 +02:00
Noel Grandin
5af110e20b variable name and indentation improvement
Change-Id: Ia3a97b08e1280e3665a56cdbb25ad07687dc7040
2016-09-28 08:44:36 +02:00
Noel Grandin
678bdd064a extend dumpAsXml to EditDoc
Change-Id: I71464b20c5897a2af3b4069f7f0963ef55dcd8c4
2016-09-28 08:44:36 +02:00
Stephan Bergmann
62b2d8ff35 tdf#102630: [API CHANGE] Remove /org.openoffice.Office/Substitution tree
...from configuration (see issue for details).  Also, remove mention of that
configuration tree from the documentation of the css.util.PathSubstitution UNO
service.

Change-Id: Ia0373bc7d19e650b7954b7dbb934a578c96fcab5
2016-09-28 08:22:58 +02:00
Jaskaran Singh
43e9abd29c Add functionality to set parent cell style
Change-Id: I829a39f5b013f14a867c509052a5719a878a3a81
Reviewed-on: https://gerrit.libreoffice.org/29325
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jaskaran singh <jvsg1303@gmail.com>
2016-09-28 05:18:13 +00:00
Kohei Yoshida
3d9231dd49 Add a bit more checking on the internal pivot table states.
Change-Id: I8be8f510cecab8ec8aa07f2f81795bbfdf727a26
2016-09-27 22:13:17 -04:00
Kohei Yoshida
57d925dede Let's keep the naming style of test document consistent.
Change-Id: Ib832509bc4c4daa5eddb9a8e1a341a5892436455
2016-09-27 22:13:17 -04:00
Eike Rathke
b325f33240 sc-perf: remove one more unnecessary call to TrackFormulas()
... when leaving bulk broadcast.

Change-Id: I3d456094ecc7759ed3e58af7901d544126c30b27
2016-09-28 00:09:19 +02:00
Tamás Zolnai
049d2ffd32 Test the case for pivot tables sharing a group
Fixed with 3b64a19856

Change-Id: Ideea06ea95f6c565e1487f2b27ef249c38c5d4dd
2016-09-28 07:38:22 +02:00
Caolán McNamara
b466bd9292 Resolves: tdf#101475 adjacent cells text is still too wide
this still isn't brilliant I guess

Change-Id: I18b6647133329afa85826a8014f839986a9b68de
2016-09-27 21:30:37 +01:00
Adolfo Jayme Barrientos
b65c618f2d MediaWiki export help: “WikiMedia” → “MediaWiki”; minor copyediting
Why is “wiki” always capitalized? It’s not a proper name.

Change-Id: I55941f192e149dc93a6576e5ca21edac78299cb4
2016-09-27 15:05:45 -05:00
Caolán McNamara
f20996450e Resolves: tdf#101884 keyboard navigation in User defined border control
Change-Id: I92ea37754f057c560d19b41f814a1d649ea74876
2016-09-27 20:47:39 +01:00
Eike Rathke
5c841052ab sc-perf: avoid repeated TrackFormulas() during bulk broadcast, tdf#87101 rel.
Multiple callers involved. Most significantly ScDocument::Broadcast()
calls ScDocument::TrackFormulas() individually. Track/collect pending
formula cells at the end of the bulk broadcast instead, which gives an
instructions read speedup by factor 6 for the broadcast, and an overall
speedup in the scenario for inserting the rows by factor ~2 wall clock
time.

ScDocument::InsertRows()
Before, Ir Incl: 282,227,033,656
 After, Ir Incl:  66,307,994,805

With cycle detection:

ScDocument::TrackFormulas()
Before:
        Ir Incl          Ir Self
 66,981,644,959   11,913,444,899

After:
        Ir Incl          Ir Self
 10,819,556,073    1,973,232,494

Change-Id: I85fe8b03ecb52cffaa6fa14354b3cc3467ecc111
2016-09-27 20:48:45 +02:00
Markus Mohrhard
7cf444454c add test for tdf#101843
Change-Id: I90bd5e8042e3157286774c97d2ea3c109da2b658
2016-09-27 18:38:42 +02:00
Markus Mohrhard
7e7f6b0a05 tdf#101843, ensure repeated rows set the hidden/filtered flag correctly
Change-Id: I759107eeb074698d5e4987c76005788aee33287d
2016-09-27 18:38:41 +02:00
Stephan Bergmann
47f7e30f35 tdf#102630: [API CHANGE] Remove SharePoints support from PathSubstitution
...apparently unused and broken (see issue)

Change-Id: Ic20d287b59d3317fecdba03a3edf8f51611c91ba
2016-09-27 18:12:11 +02:00
Stephan Bergmann
0901c29d52 Adapt external/liblangtag/clang-cl.patch.0 to liblangtag 0.6.1
Change-Id: Idf75ffa042c4858ef9bea99d603adb691b295139
2016-09-27 17:30:23 +02:00
Caolán McNamara
1aaba02faf this should always be empty now
Change-Id: I5849ce78407675150ca1fd96388a4569bcd14f4a
2016-09-27 16:09:57 +01:00
Caolán McNamara
4da7971812 Resolves: tdf#102177 focus not restored from context menus
the problem being that the attempt to restore the focus in the document in the
floatingwindow tear down is blocked because the menus have set that window as
modal so the focus isn't set.

The attempt to set the focus in the floatingwindow teardown causes the
SavedFocus in the menufloatingwindow to be dropped, so the extra layer of code
to restore focus after modality is removed doesn't do anything

this is fallout from...

commit dd46727b99
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Tue Apr 5 15:27:38 2016 +0100

    Resolves: tdf#87120 no keyboard navigation inside floating windows

which allows the focus to "truly" enter the menus, triggering the
floatingwindow attempt, which fails but blocks the menufloatingwindow attempt

easiest thing seems to make the restoring modality, and then restore focus,
something that MenuFloatingWindow does before it finishes

Change-Id: I97a4ac71419dcb04709e4667586d8343e89ddbeb
2016-09-27 16:03:54 +01:00
Caolán McNamara
65fc486f7e ImplEndPopupModeHdl takes no argument
Change-Id: I2e4a498bb9c4d5e887f55d38cdae6c6aeef44a4d
2016-09-27 16:02:10 +01:00
Caolán McNamara
0d56cc1580 detangle code that now looks silly since...
commit 9b7dfb1064
Author: Caolán McNamara <caolanm@redhat.com>
Date:   Thu Jun 9 16:52:21 2016 +0100

    EndSaveFocus does nothing on the !bRestore case

removed the code that made it look like it made sense

Change-Id: I2e7280fd6643e86d65cba04c8302be099d6f3d0e
2016-09-27 15:18:28 +01:00
Caolán McNamara
95a6d24ed7 the only place the default xFocusId arg isn't used...
the argument is (effectively) equal to the default

Change-Id: I26fcd43d2bc8e37e6887c244f728e3231328e34e
2016-09-27 15:15:54 +01:00
Stephan Bergmann
120d8fc75c Use FixedVariable::bAbsPath to check for special path vars
Change-Id: I526c45ecf3c7e21b87c16eef5047707f74da7668
2016-09-27 15:47:57 +02:00
Stephan Bergmann
02f114096d Remove redundant FixedVariable::nEnumValue
Change-Id: I39a2a65e06cdf421786fbbfedecad604fcb3abd2
2016-09-27 15:47:57 +02:00
Stephan Bergmann
02c079fc4f Remove unnecessary typedefs
Change-Id: I0c65720a3db88242bdf36338864f6961478f547f
2016-09-27 15:47:57 +02:00
Stephan Bergmann
da2e1ea7d4 Use range-based for
Change-Id: If112967db4828f8570692af5dbbbd9e3c2a837aa
2016-09-27 15:47:57 +02:00
Stephan Bergmann
2c5934b1a1 Reduce var scope
Change-Id: I5b5ea9968c7648e38a5cacda5e1f6ba8bea78749
2016-09-27 15:47:57 +02:00
Szymon Kłos
9b8e77e293 tdf#101249 fixed crash after inserting OLE object 2
Change-Id: I1997e69e09cfae10b26a3b3e851583714ee9b3e9
Reviewed-on: https://gerrit.libreoffice.org/29318
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <eszkadev@gmail.com>
2016-09-27 12:29:05 +00:00
Noel Grandin
3468dab9ff clang plugins: do "dotdot" normalisation
which fixes some false positives

Change-Id: I555349180b5ca819f29695789f1545ba2177bd09
Reviewed-on: https://gerrit.libreoffice.org/29320
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-27 12:08:52 +00:00
Samuel Mehrbrodt
7c3cb23136 Revert "tdf#90697 unit test for rtf import"
b/c of crash in dbgutil build

This reverts commit 298571e2e1.

Change-Id: I41e6e9d17809e416813b4ee4032f38d3278b4103
Reviewed-on: https://gerrit.libreoffice.org/29319
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-27 11:54:33 +00:00
Miklos Vajna
45fa73f872 sw: avoid emitting invalid cursor pos during end text edit of comment
A comment text edit (provided by editeng) works with relative twip
coordinates, conversion of the cursor position to absolute twips happens
in ImpEditView::ShowCursor(), provided that the pOutWin member has a map
mode origin that respresents the offset correctly.

This is not true during SwSidebarWin::DeactivatePostIt(), the map mode
origin is already reset back to 0, so just don't emit callbacks during
shutdown, the sw body text cursor will be shown later anyway.

Change-Id: I02c15bb9fad99db8e43fd2f37df770dd165be788
2016-09-27 13:24:38 +02:00
Zdeněk Crhonek
d3ab1f8499 add BASE test case
Change-Id: I40ca3d8b2851bd2ccbf2826eb7ccf80abbf80b7e
Reviewed-on: https://gerrit.libreoffice.org/29193
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-09-27 10:43:33 +00:00
Michael Stahl
16c0807d75 configure: reject Apple JDK
Since commit 32bc8ddbf3 the jvmfwk rejects
Apple JDK and while the Java code builds fine with it, various tests such as
CppunitTest_dbaccess_hsqldb_test fail if it is the only installed JRE.

The simplest way to avoid the problem is to not allow building with
Apple JDK.

Change-Id: I5701e38cffded4596ac94608867a038ff76f75ec
2016-09-27 11:56:28 +02:00
Michael Stahl
9a5b10544a configure: non-working ant is an error, not a warning
For example ant 1.8.4 doesn't work with JDK 1.8.

Change-Id: I709fd0591c330cbfe6542976eb2fa0c3aec1e63f
2016-09-27 11:56:28 +02:00
Stephan Bergmann
91af7e0ee6 SAL_WARN in case bBackToLoaded failed
Change-Id: I3ee3801ae36b7394a97f46e76116cfd11c74de2d
2016-09-27 11:48:58 +02:00
Caolán McNamara
50cacaea4d convert floating add field to .ui format
Change-Id: Ica9adc19f370d6340d2f5fac552cf1b995b390e0
2016-09-27 10:43:36 +01:00
Caolán McNamara
e6fc195ae8 Resolves: tdf#98946 too many running MathTypes...
causes mathtype to display a warning dialog, so
try restoring them back to loaded after loading
them in order to get their preferred size

Change-Id: Idff714efa228a739f380dbae429d852a8f8c5298
Reviewed-on: https://gerrit.libreoffice.org/29234
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-09-27 09:14:57 +00:00
Miklos Vajna
d378cd2f76 tdf#87914 sw: add an initial .uno:SmallCaps command
- handle it in SwTextShell (for normal Writer text)
- simple icon in the galaxy theme

Change-Id: Ib8f11dbca28b19a2fc0411c92d9f0b4b052277bb
2016-09-27 11:00:42 +02:00
Stephan Bergmann
bae1e2aa63 Add note
Change-Id: I68af0bcfd6700ee40f2d0879e57de9d66c62c983
2016-09-27 09:52:59 +02:00
Stephan Bergmann
653e0ccc4e tdf#101898: Only re-substitute whole segments with $(username)
...otherwise, if $(username) happens to be "user", it will endlessly re-
substitute inside a (already partly re-substituted) URL of the form

  $(user)/...

Regression introduced with 16fb0d3d0f "tdf#98407
PathSubstitution: Add substitution for $(username)".

Change-Id: I1c8b64f383fdfd97fa5edc192e9ca4b46944d6f1
2016-09-27 09:18:11 +02:00
Tor Lillqvist
6d6668bb22 Actually, just get rid of these file-local const variables
Use string literals instead.

Follow-up to b7dfa4d662.

Change-Id: I364c792d69c052b0d581490f425b2543172c62d8
2016-09-27 10:09:30 +03:00
Takeshi Abe
7664d30a9a sw: Drop unused forward declarations
Change-Id: I2913466f8fa87b3c377a1abf65b8ccc477b73f40
Reviewed-on: https://gerrit.libreoffice.org/29311
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-27 06:55:26 +00:00
Samuel Mehrbrodt
298571e2e1 tdf#90697 unit test for rtf import
When importing this rtf file, sections were interpreted as page breaks.
They shouldn't, instead all content should be on the same page.

Change-Id: I445ce507d14d21ef568734ab7020eed9cbfe57ac
Reviewed-on: https://gerrit.libreoffice.org/29298
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-27 06:55:14 +00:00
Rosen
b7dfa4d662 tdf#38835 - strip out non-trivial globals before main
deleted calling OUString object calling in global

Change-Id: Iac4cb9583bf8c00a6743d018f6234ca5181d72e3
Reviewed-on: https://gerrit.libreoffice.org/29312
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-09-27 06:54:58 +00:00