403477 Commits

Author SHA1 Message Date
Michael Stahl
3a3b4f2b51 sw: fix assertion on exporting novell633099-1.doc to DOC
This asserts because MarkManager::m_vAllMarks is not sorted.

info:sw.core:32273:1:sw/source/core/doc/docbm.cxx:286: 1493,39 1493,39 N2sw4mark8BookmarkE _Source_Device_Configuration
info:sw.core:32273:1:sw/source/core/doc/docbm.cxx:286: 1493,39 1493,39 N2sw4mark8BookmarkE _Deploying_the_Connector
info:sw.core:32273:1:sw/source/core/doc/docbm.cxx:286: 1493,39 1493,39 N2sw4mark8BookmarkE _Setting_up_Connection
info:sw.core:32273:1:sw/source/core/doc/docbm.cxx:286: 1493,39 1493,39 N2sw4mark8BookmarkE _Testing_the_Audit
info:sw.core:32273:1:sw/source/core/doc/docbm.cxx:286: 1493,0 1493,0 N2sw4mark23CrossRefHeadingBookmarkE __RefHeading___Toc270687978

This happens while called from SwRangeRedline::MoveFromSection; the
target paragraph has some normal bookmarks and a CrossRefBookmark
all at index 0 before, but the move messes up the sorting.

The reason is that SwIndexReg::Update() has a special case HACK to avoid
adjusting the content index of CrossRefBookmark away from 0.

Prevent the problem by tweaking the bookmark sort function to always
sort CrossRefBookmark before other marks in the paragraph.

Change-Id: I1373337a9c7e6760fdbe5b634a14c63428a2e73c
2017-02-03 18:20:07 +01:00
Michael Stahl
f6596a35c2 sw: make lcl_DebugMarks output more readable, pos. at the start
Change-Id: If9c151faefa3d109af2df7933a275c667880fb75
2017-02-03 18:20:07 +01:00
Stephan Bergmann
8c8d7ef3d8 Revert "sc tiled rendering: We keep increasing the precision here..."
This reverts commit 27ca6387b7188d1805dda8906d809025a2d3fb95, at least together
with f7962f59ea0b2a8f7c2d6c015e1c02855e1008fe "sc rowlimit: Make the cursor
better fit the rendering" it makes CppunitTest_desktop_lib fail.
2017-02-03 17:05:48 +01:00
Stephan Bergmann
42bffebf0b Revert "sc rowlimit: Make the cursor better fit the rendering."
This reverts commit f7962f59ea0b2a8f7c2d6c015e1c02855e1008fe; at least together
with 27ca6387b7188d1805dda8906d809025a2d3fb95 "sc tiled rendering: We keep
increasing the precision here..." it makes CppunitTest_desktop_lib fail.
2017-02-03 17:04:57 +01:00
Muhammet Kara
d7c48309e6 tdf#105697: Make the Screenshot command localizable
Change-Id: Ieb3f114feea3b9e9c597e0bd16ed80734dcd5ec2
Reviewed-on: https://gerrit.libreoffice.org/33865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-03 15:12:01 +00:00
Noel Grandin
71863c6188 tdf#105684 crash in mail merge wizard
commit eca5ea9f79181d45cd7fbabe2313617d3025818a
"make the AbstractDialog stuff extend from VclReferenceBase"
introduced this regression.

Fix up the asynchronous delete to work again - necessary because
the delete is triggered from deep inside the object it wants to
delete.

Change-Id: I18d5a899fbb2da772552ebba7fe6a8e810314010
Reviewed-on: https://gerrit.libreoffice.org/33881
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 14:42:07 +00:00
Marco Cecchetti
f7962f59ea sc rowlimit: Make the cursor better fit the rendering.
Change-Id: If4d02161bd8a37100d7403c05ea0840a3d2d0cf8
2017-02-03 15:23:04 +01:00
Jan Holesovsky
27ca6387b7 sc tiled rendering: We keep increasing the precision here...
... so let's finally do it right, and count in double precision directly.

Change-Id: Ic49cc42d9e61a1b9fa9853bfe93d2681a6be88b2
2017-02-03 15:23:04 +01:00
Katarina Behrens
c6315e162a gpg4libre: Download external gpgme and dependent libs
in particular, libgpg-error and libassuan
This only downloads and unpacks the tarball. Building them needs
some work still

Change-Id: I562fd01571929ddfb47a319038f88ea8dbfb4bdd
Reviewed-on: https://gerrit.libreoffice.org/33712
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-03 14:15:38 +00:00
Noel Grandin
78f392f30a loplugin:unusedenumconstants in xmloff
Change-Id: Ie9e6d4aa9dba97d45bf7b8afa2347d34e1651a60
Reviewed-on: https://gerrit.libreoffice.org/33871
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 12:55:29 +00:00
dilekuzulmez
82c7ac5637 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: Iaedabfa4c4242f5a37f818572fddfbcca88d5b9a
Reviewed-on: https://gerrit.libreoffice.org/33849
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
Tested-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
2017-02-03 12:18:57 +00:00
Miklos Vajna
839e53b933 compilerplugins: enable loplugin:cppunitassertequals by default
This forces writing a comparision of two variables in the
CPPUNIT_ASSERT_EQUALS(expected, actual) form, rather than
CPPUNIT_ASSERT(actual == expected). The benefit is when the test fail,
it's more clear what are these two values, rather than just seeing that
they are not equal.

In the relatively rare case when the types are not streamable, the
plugin can be silenced using CPPUNIT_ASSERT(bool(it == foo.end())). But
please always first consider making the type streamable instead. See
commit 0e1b831b93048c68735f2e2dbdcee587db4862ef
(CppunitTest_vcl_complextext: fix loplugin:cppunitassertequals warnings,
2016-12-16) for an example.

Change-Id: I564fb0724836b6dbbea9262b53ad646e285a339c
2017-02-03 12:20:03 +01:00
Arnold Dumas
b3a11c8f4f tdf#91872: Make SAL_INFO and friends more efficient
Change-Id: I8a5b1665660b0679439f07d3924bb90cb4c4075c
Reviewed-on: https://gerrit.libreoffice.org/33848
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 10:54:53 +00:00
Noel Grandin
29337650a3 boost::scoped_ptr -> std::unique_ptr in mysqlc
Change-Id: I4c8d25ed451ab03d2b5d0e9977ab74fd2ea1bb04
Reviewed-on: https://gerrit.libreoffice.org/33870
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 10:48:15 +00:00
Noel Grandin
8a16f665b1 makeAny->Any in canvas..configmgr
Change-Id: Id06812595f373cd0da8b421dbac34a60a266ae6e
Reviewed-on: https://gerrit.libreoffice.org/33869
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 10:44:01 +00:00
Stanislav Horacek
9cbc3436ea remove unused text property of spinbuttons
to remove numbers from translatable strings

Change-Id: I2cea3bef08e21683d521f9ab9ce8c11c8d2e6b49
Reviewed-on: https://gerrit.libreoffice.org/32705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-03 10:07:24 +00:00
Katarina Behrens
961563d19d Translate some German comments in sc
you beat me to it, mmeeks

Change-Id: I3191a506363ebfd9299e9c94857aacdffdb28946
Reviewed-on: https://gerrit.libreoffice.org/33855
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Tested-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-03 09:32:53 +00:00
Noel Grandin
22326cb4f5 new loplugin unusedenumvalues
Change-Id: I03d684fc35238a45a6d99855e5ee6d3a5e33740d
2017-02-03 11:28:44 +02:00
Johnny_M
a3a878268f Translate German comments
Change-Id: I36e9a90116627c44c755108cb38cb3fad8037b3f
Reviewed-on: https://gerrit.libreoffice.org/33851
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2017-02-03 09:09:34 +00:00
Noel Grandin
f4826959c1 new loplugin:unusedenumconstants
These are the simple removals, where it is obviously safe,
the more complex ones will come in separate commits

Change-Id: I7211945a6a5576354b60d9c709940ce9b674f308
Reviewed-on: https://gerrit.libreoffice.org/33828
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 08:59:39 +00:00
Noel Grandin
83721f4365 makeAny->Any in basctl..chart2
Change-Id: Ief1cdffbfc59ab4e35ac945d020772ff84c50d61
Reviewed-on: https://gerrit.libreoffice.org/33867
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-02-03 08:50:50 +00:00
Stephan Bergmann
9007cc7bca --enable-ext-google-docs is gone
Change-Id: I460eee8669900d7b6652463f996459ca0bd486e8
2017-02-03 09:28:51 +01:00
Miklos Vajna
ae828495be tdf#105707 PPTX import: warn when SmartArt is missing DrawingML fallback
By the time DiagramGraphicDataContext::onCreateContext() completes, we
know if there will be a DrawingML fallback for the SmartArt (called
ExtDrawing in the code) or not.

Warn about this case once at the end of the import when in interactive
mode. Headless mode silently ignores the warning as expected.

Change-Id: I2bfeeedcaa244f08d8a0c208167e79d7bb697e6d
Reviewed-on: https://gerrit.libreoffice.org/33866
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-02-03 08:24:32 +00:00
David Tardon
2c1ae44189 upload boost 1.63.0
Change-Id: I7f896bb9650f68626b4bcfe96c9c41fafeab436a
Reviewed-on: https://gerrit.libreoffice.org/33827
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-03 08:17:06 +00:00
Zdeněk Crhonek
2942346c26 add OCT2BIN test case
Change-Id: Ic7ddcbe06685433a85792e7d73a962d7b73ae904
Reviewed-on: https://gerrit.libreoffice.org/33854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2017-02-03 06:52:35 +00:00
Justin Luth
eb9f90186a tdf#80807 guisaveas: never recommend system's tempdir
Various download-and-open mechanisms save to the system's
$TEMP dir. If so, don't recomment saving in that same
location in the GUI dialog! That's just silly.

Change-Id: Ifa20fdfd81d768bbd893f92a50355f08c3aab356
Reviewed-on: https://gerrit.libreoffice.org/33353
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Justin Luth <justin_luth@sil.org>
2017-02-03 04:37:25 +00:00
Takeshi Abe
c0d3916cb7 starmath: Prefix member of SmNodeToTextVisitor
Change-Id: I83f5c5664aca925f874be8ac939356228697d05f
Reviewed-on: https://gerrit.libreoffice.org/33850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
2017-02-03 04:34:55 +00:00
heiko tietze
789ed159fb tdf#105371, tdf#99456 Alignment in find & replace dialog
Fix width of labels removed and code added to define it on runtime
Fix height of buttons commented out
Resizable flag unset

Change-Id: I3ffb38b5c9b23447ac914dc8c13fa95072897ced
Reviewed-on: https://gerrit.libreoffice.org/33370
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com>
2017-02-03 01:08:01 +00:00
Mark Hung
eb9b9c28ed tdf#91795: prevent default item overwrite actual values.
A few properties of FillProeprties have the same nWID
but have different nMemberId, such as FillGradient,
FillGradientName,FillHatch,FillHatchName, FillBitmap,
FillBitmapName, and FillBitmapURL.

When putting value of an item, the default item was put
first, despite the value of the item might have already
been put.

Move the part of the code that put default item upfront
so that it will not overwrite actual value accidentally.

Change-Id: I54288420abde333e5b3e4cdd31ca9fae0c3ed7ab
Reviewed-on: https://gerrit.libreoffice.org/33594
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-02 21:11:47 +00:00
Miklos Vajna
7bee82cac7 Remove generated JSON file
Change-Id: I4744b244269f49e2aae4c2159bdb7f91c1f5be6c
2017-02-02 22:00:21 +01:00
Johnny_M
6d12c968f7 Translate German comments
Change-Id: I3b2f4083eeed8a5d56e314796af13841ef19bf56
Reviewed-on: https://gerrit.libreoffice.org/33846
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-02-02 20:52:01 +00:00
Mark Hung
542421402d tdf#104270 count hanging margin only if there is hanging portion.
GetHangingMargin() also returns offset for PostItPortion, assure
there is a hanging portion before using the value.

Change-Id: I750b8078fbd607d49f4bf5f76ea606fc36ea5c23
Reviewed-on: https://gerrit.libreoffice.org/33832
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-02 20:43:20 +00:00
dilekuzulmez
a364e1f039 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I2a48e513ad71609b11eb02eb5da7aa7d76860e7d
Reviewed-on: https://gerrit.libreoffice.org/33841
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-02-02 19:59:56 +00:00
jan Iversen
8944a4dc98 gbuild-to-ide added -DLIBO_INTERNAL_ONLY to CXXFLAGS
In order to compile correct this flag is needed and
it is not exported in the json files

Change-Id: Ib8f0b882f2d59ed467a9198c148263e2882c60b3
2017-02-02 20:29:05 +01:00
David Tardon
23f7e82c7b drop bundled ooo2gd (Google Docs) extension
LibreOffice has had direct support for Google Drive since (I think) 5.1,
via libcmis.

Change-Id: I7587923b3fd7dd505124b790066cdaa99a858af1
Reviewed-on: https://gerrit.libreoffice.org/33822
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-02 19:13:54 +00:00
Zdeněk Crhonek
925552f777 add SEARCH test case
Change-Id: Icf81d4536ecfbdd0c059ca3be595145884b19a99
Reviewed-on: https://gerrit.libreoffice.org/33845
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Zdenek Crhonek <zcrhonek@gmail.com>
2017-02-02 19:04:23 +00:00
Stephan Bergmann
916061041e Too dumb to sort
Change-Id: I0ba613bff040d07554dc41783aea332d0a597b3c
2017-02-02 19:44:32 +01:00
Samuel Mehrbrodt
436035a2b2 Fix some typos
Change-Id: Ide3786aad5589e2d430a4e3890d51117b145e51d
Reviewed-on: https://gerrit.libreoffice.org/33842
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-02-02 17:29:29 +00:00
Tor Lillqvist
90c4e14a06 Bin code that has been in #if 0 since 2011
Change-Id: I218f94c546fb1635691e33e41f6e3f69b93b8f83
2017-02-02 19:20:10 +02:00
Caolán McNamara
6263d03d53 bffvalidator: animated text srpm has 1 byte payload, not 2
which is why my sample document creates a .doc which triggers
word's safe mode

this has been wrong since initial impl in

commit 4d5c193b2fd38c6cab049fcb97189462fff0fddb
...
    2003/07/17 14:13:17 mmaher 1.64.6.6: #110851# Added support for animated text effects

a mere 13+ years ago

Change-Id: I8c4d95dac8e03f6523a2a036f0100f425f787a13
2017-02-02 16:09:06 +00:00
Caolán McNamara
22ec7880ba bffvalidator: fix a retro-fitted by ms after the fact warning
nVerBuiltInNamesWhenSaved (2 bytes): An unsigned integer that specifies the
version number of the style names as defined by the application that writes the
file. This value SHOULD be 0.

old number is 2: which means...

"Word 97 2"

Specifying a value of 0 is recommended for maximum compatibility, as it will
cause all versions of Word to update the names to whatever set of application
defined style names is current, with little performance penalty.

http://msdn.microsoft.com/en-us/library/0E246123-E907-4AD1-9DFC-558512E2B052

Change-Id: I9a04f62f950c7965d6eb5e6ff23d9c09fe38d99e
2017-02-02 15:51:45 +00:00
David Tardon
a7b9eb7e0f workaround libtool library name subst.
When libtool links a library with another libtool-based library, it
replaces -lfoo by path to installed foo, like $foo-libdir/libfoo.la.
harfbuzz would be installed to /usr/local/lib by default, therefore
libtool replaces -lharfbuzz by /usr/local/lib/libharfbuzz.la in
libfreetype.la, which causes a failure (nonexistent file) when building
fontconfig...

Change-Id: Ie2510034e69803af084dd90671fdbc8f6863fcf2
2017-02-02 16:22:44 +01:00
David Tardon
a84c22107e build only fontconfig lib
Change-Id: I4fbbd7dfc828e4e38bd59feb93b02fcd6daa74a5
2017-02-02 16:22:44 +01:00
David Tardon
038844ad1a run verbose make for fontconfig
Change-Id: I67055b9cf325b71b0f227b59d94158c334dc724b
2017-02-02 16:22:43 +01:00
David Tardon
e060317a7a fontconfig uses pkg-config to detect freetype now
Change-Id: I12cc3a8a36aeafd5184eee4051bc798c22769d8c
2017-02-02 16:22:41 +01:00
Stephan Bergmann
538c042d9a loplugin:unnecessaryoverride
Change-Id: I7a45ef38380d62ddb847bab87a2ee15ca67621fc
2017-02-02 15:18:31 +01:00
Stephan Bergmann
5595ee701e loplugin:useuniqueptr
Change-Id: I3a246a22baaac8195dc1b94c42994de7d80e8336
2017-02-02 15:17:52 +01:00
Michael Stahl
19c0eff34a writerfilter: remove gperf related declarations
Reportedly gperf 3.1 changes the signature of in_word_set(), where the
len parameter changes from unsigned int to size_t.

It turns out the only forward declaration for this function is currently
unused, so just remove it.

Change-Id: Ifbc582cd31ca37fff9ff95a3706ee902ecfe5223
2017-02-02 15:08:01 +01:00
Miklos Vajna
27a9059146 sc: fix loplugin:stringconstant warnings
Change-Id: I6f9e77ed380baba0a46374292fb2a65d41e15e71
2017-02-02 14:34:20 +01:00
Stephan Bergmann
162e185c53 loplugin:stringconstant
Change-Id: I14ac842fa7b8a8ec8c6eb7554d136a68fe727ed7
2017-02-02 14:19:48 +01:00