Commit Graph

353443 Commits

Author SHA1 Message Date
Markus Mohrhard
08bed8aa8a we need to create the buffer
Somehow this only crashes when I use gdb.

Change-Id: Ic18ffa3af931b80a7241e8fe711753db03da166e
2014-05-21 01:50:44 +02:00
Julien Nabet
227af32d8c Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part18
Change-Id: Ibf958dbfbf7cdbe6ad31d390138be8d4d468c225
2014-05-20 23:29:53 +02:00
Tor Lillqvist
0f836296ea Don't use two separate names for the same thing
Change-Id: Iad76d452d5dbaa03099c1a649d7f278b0151f340
2014-05-20 23:37:04 +03:00
Tor Lillqvist
c41ad388af We don't support the Apple Remote in sandboxed mode
Change-Id: Ie0a456647376b9d249850227d3481be5b4ee991d
2014-05-20 23:37:03 +03:00
Julien Nabet
0483124971 Following fdo#78838, let's make this part safe too
(Thank you Eike)

Change-Id: Icc7061c7f7296302d6ed21f0e74a48cbaa82011a
2014-05-20 20:50:44 +02:00
Julien Nabet
f332958999 Fix wrong copy paste, should be <ucb::CheckinArgument>
See http://nabble.documentfoundation.org/Wrong-copy-paste-in-ucbcmds-cxx-ucb-module-td4109103.html
for more details

Change-Id: I4f6754cf0350e969cece52008b310e1d8f182622
2014-05-20 20:09:41 +02:00
Jan-Marek Glogowski
a130817f7d Correct linker library sequence for pdfimport
Otherwise I get a lot of missing fontconfig symbols.

Change-Id: I9bc3e395d54380a36cd6dd73cf95b7f4e4cab54e
2014-05-20 19:59:49 +02:00
David Tardon
4ffc795536 avoid duplication
Change-Id: I2de8da0ce3648657977825309d4dd9902c0f8900
2014-05-20 19:24:17 +02:00
Stephan Bergmann
f65de4feee fdo#60338: Introduce osl_createDirectoryWithFlags
...so that utl::TempFile can pass osl_File_OpenFlag_Private and doesn't have to
resort to umask (the calls to umask around Directory::create had somewhat
erroneously been removed recently with 1d72a0262c
"Related fdo#60338: Create missing temp file dir with user's original umask,"
mistaking this for creation of intermediate directories in the hierarchy).

On Windows, the flags argument to osl_createDirectoryWithFlags is ignored
completely for now.

Change-Id: Iac56a5049d579be729a3f338aa62105123edb6cb
2014-05-20 18:12:33 +02:00
Stephan Bergmann
1122d513ef loplugin:implicitboolconversion,literaltoboolconversion
Change-Id: Ib783fd0557361286ce7b913a429c9ab8fc101c75
2014-05-20 17:59:56 +02:00
Takeshi Abe
1c9ba8a81c Avoid possible memory leaks in case of exceptions
Change-Id: Idb8f0df3848416d96299ebc47ac5bd53d766e52c
2014-05-21 00:25:20 +09:00
Stephan Bergmann
dc24203e5f fdo#78971 There's even a git hook to prevent commits containing SAL_DEBUG
Change-Id: I5a46e1eed129edf3648c68c36951d6fdf9bd370d
2014-05-20 17:01:38 +02:00
Michael Stahl
68bc8af6b6 SvxRelativeField: set the unit from the passed stringmap
In the Paragraph "Indents & Spacing" tab there are fields with unit:
<object class="svxlo-SvxRelativeField" id="spinED_LEFTINDENT:0cm">

But the unit is effectively ignored, and the resulting SvxRelativeField
with FUNIT_NONE and 9999 max somehow results in 0.18cm max when the
dialog sets cm as unit.

Change-Id: I6001c93079fd7d899f1e119913b29ea4898b1c34
2014-05-20 16:44:29 +02:00
Michael Stahl
35199df7b7 (related: fdo#62176) Revert "reset min/max values in paragraph ...
... dialog before setting the actual value"

This prevents handling negative first-line indent in Impress, for which
it is necessary that the values are set before the limits.

This reverts commit 3d7ff1e907.

Change-Id: I47807d7d49716acab3657de1da64c6e9a99fc44d
2014-05-20 16:44:29 +02:00
Michal Siedlaczek
43cd2f79da Displaying the number of standardized pages in the Word count window
The number of standardized pages (unit defined in the options)
for the entire document and the selected area is displayed
(if enabled in options) in the Word count window.
The number of pages of size P for an area containing N characters equals P/N.
This value is a float with one decimal place precision.
The default size of the standardized page is 1800 characters
(including whitespace characters).

The configuration can be altered in Options->Writer->General.

Conflicts:
	sw/source/ui/config/optload.cxx

Change-Id: If13e87c73cb7706ff6618fa0352ba29c7c670aec
Reviewed-on: https://gerrit.libreoffice.org/7642
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-20 09:29:53 -05:00
Tor Lillqvist
63bc29b2a8 Make CoinMP build for Android
(No idea whether it works, of course.)

Patch the config.sub files to recognize arm-linux-androideabi.

Don't build any binary programs as that fails for Android becuase we don't
pass in the right C++ library to use anyway. (And those programs aren't really
useful to us anyway, on any platform, I guess?)

Change-Id: I70c7a527db41081a51548ce6983b6a9ae8a08bc7
2014-05-20 17:07:45 +03:00
David Tardon
9a076c316d normalize member var. names
Change-Id: Ib6215520d51ada6f956f8400de36f61a5ff025ba
2014-05-20 15:48:51 +02:00
David Tardon
eccaf91ec9 use VCL's OpenGLContext for 3D transitions
Change-Id: I510518461eb8bc9669d0de2679c34c473f66b175
2014-05-20 15:48:51 +02:00
Stephan Bergmann
92621df9e7 Revert "fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT"
This reverts commit 0562a17c64,
sal/log.hxx functionality is only available in C++.
2014-05-20 15:46:31 +02:00
Markus Mohrhard
ee212bf4db kill some old 16 bit column indices
Change-Id: Ie1c3f3b11ed216b53f3fd385614f6fcb2c38220c
2014-05-20 15:25:18 +02:00
Mukhiddin Yusupov
0562a17c64 fdo#43157 - Clean up OSL_ASSERT, DBG_ASSERT
Changed OSL_ASSERT with SAL_WARN_IF

Change-Id: Ie81eeb51f6978162abd372f7e9910344a2baaccd
Reviewed-on: https://gerrit.libreoffice.org/9401
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-05-20 08:16:19 -05:00
Michael Meeks
ef02ced3ec Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs
Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
2014-05-20 14:06:32 +01:00
Tor Lillqvist
c1fd24e18f Add the CoinMP libs
Change-Id: I37b4c1081055f98c9254d64480efeb2c205e711d
2014-05-20 15:25:46 +03:00
Tor Lillqvist
dd633de592 Make CoinMP build for iOS
Change-Id: I8adff18896115d7dd0fce49916a18dc830506a36
2014-05-20 15:25:45 +03:00
Tor Lillqvist
4474d705ae No reason to avoid CoinMP for Android and iOS
Change-Id: I78eb3a706251ba64ad87e7985fc43c90bea2f767
2014-05-20 15:25:45 +03:00
Tor Lillqvist
8517dc95a6 If we don't want lpsolve we don't want lpsolve
Change-Id: I6038faf296831da0855eb7cd3628c5c6978d4cb3
2014-05-20 15:25:44 +03:00
Chris Laplante
eff1d991de Move #include from middle of file to top
Change-Id: I715f606ee0f94e9ffd3ef9ec889948a56a9cdc19
Reviewed-on: https://gerrit.libreoffice.org/9381
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-20 07:24:55 -05:00
Caolán McNamara
a092418f30 we need fontconfig now
Change-Id: I0482f613d7c908488e7d9f84f891bd521e91cc15
2014-05-20 13:19:56 +01:00
Vort
be7ec1384e fdo#78689 PDF Import: get font's ascent value from different source
Change-Id: I19018d25ef53bbea225bb5a9ef806ce5c1b4adc7
Reviewed-on: https://gerrit.libreoffice.org/9410
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-05-20 06:55:32 -05:00
Caolán McNamara
27fc608747 Related: fdo#78151 disable promote or demote outline levels in master view
it doesn't make sense in master view to do that

Change-Id: I838422f93131b8a92745a624738c5be3a7ed3459
2014-05-20 12:38:51 +01:00
Caolán McNamara
52871279e9 Related: fdo#78151 fix 'pIds unsorted' warning
Change-Id: I00c533a25a851d8bf57f1b0758e98915d2291ee9
2014-05-20 12:38:51 +01:00
Laurent Balland-Poirier
bc34b4b2e2 fdo#77282 Replace "Edit Group" with "Enter Group"
Command to enter in a group of objects should be the same in Writer and Draw
Update of Help in commit 8944

Change-Id: I39d9c9f9e969978f4084703d2468bdf8a2bf7372
Reviewed-on: https://gerrit.libreoffice.org/8923
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-05-20 06:20:50 -05:00
Bisal Singh Nayal
ee0bb265c9 fdo#78290 : The File gets corrupted when saved in LO
Problem Description: Docx file containing a chart (line chart / scatter chart)which has used a builtin
marker'x' gets corrupted when we save it in LO.The reason was that while exporting LO was writing the
marker information 'x' as 'X' which MS Word doesn't recognize.‒<c:marker><c:symbol val="X" />. Also
the size of the marker was coming 1 less than the actual value. Ex: if size is 7 then it was being
written as  6.

Solution: During export I have made changes so that now LO writes 'x' in the tag information
‒<c:marker> <c:symbol val="x" />. Now the size of the marker is also being correctly exported.

Change-Id: I26b747f9576625bf3acb941322ae418a0bbc6b64
Reviewed-on: https://gerrit.libreoffice.org/9273
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-05-20 05:12:08 -05:00
Eike Rathke
23e9f36a21 simplify and ensure valid miAutoPosColumn in all cases, fdo#78838 related
Unconditionally set miAutoPosColumn at the end of all operations so it
is also valid in case of pColumnData->clear() and no entries inserted
after pDoc->GetDataEntries().

Change-Id: I689632f696091fd9ce8e93c06d7918e5eaf05ab4
2014-05-20 11:43:45 +02:00
Dinesh Patil
df973e6e95 fdo#78658 Corruption: lockedCanvas tag is missing from RT file
While export, locked Canvas is missing and drawing is
exported inside textbox. However a locked Canvas has to be exported
inside a text-box and drawing should fall under locked Canvas
for the RT file to work in MS Office 2010.

Reviewed on:
	https://gerrit.libreoffice.org/9377

Change-Id: Iea2c411302b552db18527001cc4c6d0290085afe
2014-05-20 11:33:07 +02:00
Stephan Bergmann
423921b085 fdo#78949 Handle (SAXParse-)Exception that can't pass getAllRelationships
...like it was already done in the similar else branch of
ReadRelInfoIfNecessary.  The call site at GetAllRelationshipsIfAny will
translate an m_nRelInfoStatus that remained RELINFO_NOT_INIT into an
IOException.

Change-Id: I79c601acd23b3b0020c7b4de4c20b0282524bce1
2014-05-20 11:17:22 +02:00
Noel Grandin
8d54796bf1 enhance pass-by-ref plugin to detect large arguments
Detect arguments larger than 64 chars passed by value.

Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 11:17:22 +02:00
Miklos Vajna
e4740dbecf fdo#78659 make testcase minimal
Change-Id: I393b413528685276bffd35fb7fe5ce8c742314b7
2014-05-20 10:54:22 +02:00
Ravindra Vidhate
1870ed0e4f fdo#78659:FIle geting corrupted after Roundtrip due to fieldchar.
In a hyperlink, the field with fieldchartype="end" is getting addeded eventhough there is no begin for that field.

Change-Id: I50df6efc63fc9a66b146d4a861ae4bd654b4a3c6
Reviewed-on: https://gerrit.libreoffice.org/9368
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-20 03:53:51 -05:00
Eike Rathke
76531b80ea take a shortcut on common separating ASCII characters
Change-Id: I991801b9a0b7be6024612c8f29262f2ebd8e6a64
2014-05-20 10:53:17 +02:00
Eike Rathke
43624d9370 resolved fdo#34724 Jan1 or 1Jan without separating character is not date
Change-Id: I2cf02a26b81fa634c842df455de669f1c60241bc
2014-05-20 10:34:42 +02:00
sushil_shinde
d2a19aad65 fdo#78654 LO was exporting corrupt docx file.
If docx file contains multiple hyperlinks in one paragraph
   and one of the hyperlink contains "PAGEREF" field. End tag
   for "PAGEREF" field was not exported hence it was causing
   corruption in exported file.
   Fixed export part of field end tags in case of "PAGEREF".
   Added unit test.

Change-Id: I18a3625213bf7269e3f441859a27acc38cf6ff45
Reviewed-on: https://gerrit.libreoffice.org/9364
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-05-20 03:16:26 -05:00
Tor Lillqvist
c3ed5f6d33 Fail early in OpenGLContext::ImplInit() on platforms where not yet implemented
So far this code apparently has not been invoked except in the very
special use cases for which it has been developed, and which
presumably aren't such that one would come across in "normal"
LibreOffice use.

But now it gets invoked unconditionally, in some unit tests even, and
letting it call glewInit(), which calls glGetString(), without any
OpenGL context, leads to a crash. So instead, explicitly fail early on
OS X (and iOS and Android).

Change-Id: Ia4547cc1ddff1aaa0190fcdb69506ad444214b7a
2014-05-20 11:07:10 +03:00
Stephan Bergmann
fe39041f98 Remove unnecessary casts
Change-Id: Iafc7727a22d657dfb6bc97ed767907cce3679364
2014-05-20 10:03:18 +02:00
Arnaud Versini
cd11bc699a C string usage improvment
Change-Id: I5c59f0d2d1b911ffa1ee251e0f1355d137616493
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2014-05-20 09:47:54 +02:00
Stephan Bergmann
498c314861 Hack to for now work around dpy == null crashing CppunitTest_chart2_*
...since 2fc4f5cd75 "Register OpenGL windows to
ScGridWindow upon file load."  Should be revisited and fixed properly.

Change-Id: I5a3d08cb750fd9ec7c98d5b85250eaabd1c7a8b2
2014-05-20 09:41:59 +02:00
Tor Lillqvist
f3a46244a0 Make it actually work to build GLEW for debugging
The check in the GLEW Makefile looked at the whole $(MAKECMDGOALS),
which in our case was the string 'glew.lib debug', not just 'debug'.

Change-Id: I639395c944e8f2b443cbb55b451a4036b2c9d3bb
2014-05-20 10:19:18 +03:00
Julien Nabet
1df54514d7 Resolves: fdo#78838 past-the-end iterator
Inserting data in pColumnData invalidated miAutoPosColumn
See https://bugs.freedesktop.org/show_bug.cgi?id=78838#c6

Change-Id: Iece423cd8d14f5ae7bf382583c0369895a00f168
2014-05-20 07:35:25 +02:00
Thomas Arnhold
07cb96a163 remove unused header files
Change-Id: If7ec1ff0a78f9cde5ac926e92377de4720c828b2
2014-05-20 03:00:31 +02:00
Matúš Kukan
20f2ea061d fix .kmz support on Windows; no idea why this int was unsigned
Change-Id: I08fa1c3956b48bcd65edb74add010fafa17bfe82
2014-05-20 02:49:37 +02:00