Commit Graph

357024 Commits

Author SHA1 Message Date
Caolán McNamara
835c9e6d84 shouldn't need to call AdjustLayout now its converted to .ui
Change-Id: I539741e71785232987b26c7b414a416dda5e4bb6
2014-07-15 11:56:09 +01:00
Caolán McNamara
0167897dde coverity#735799 Dereference after null check
Change-Id: Id499cb873938621762f0e213fa17505fefb33574
2014-07-15 11:56:08 +01:00
Caolán McNamara
9a89ae5956 coverity#1224992 Uncaught exception
Change-Id: I328cf5e83e6532dfa5090f5c5e3a1568c48c11d2
2014-07-15 11:56:08 +01:00
Caolán McNamara
1e7439001f fix higher debug levels
Change-Id: I74e4689062d452f8e0fba115cd984aa876711c45
2014-07-15 11:56:08 +01:00
Caolán McNamara
11291be10e coverity#738453 Uncaught exception
Change-Id: Id05fd31d3a62bec8d658b9ecbae484ac081b8960
2014-07-15 11:56:08 +01:00
Caolán McNamara
f9c460e34d coverity#738454 Uncaught exception
Change-Id: I9b344efa1b46a6e7c6b69d3044ef88b4cba826cb
2014-07-15 11:56:07 +01:00
Cédric Bosdonnat
85d1bd151c fdo#72277: NSS-PEM yet another build fix for MS compiler
Change-Id: I524a14cd124e69e288de5ae8464eb611989dffde
2014-07-15 12:27:09 +02:00
Cédric Bosdonnat
6602f904ac fdo#72277: nss-pem fixed windows and macos build errors
Change-Id: I30b4036b6cf00dec753115bbc59990daec27ef20
2014-07-15 12:04:05 +02:00
Vinaya Mandke
0d5b053436 DOCX FILEOPEN VML Shape (image) is lost on import fdo#81031
ShapeContextHandler::getDrawingShapeContext mxDrawingShapeContext is set once and never reset.
So in a file which has numPicBullets and vml shapes in document.xml there is a problem.
First the fragment path is set as word/numbering.xml.
But when msRelationFragmentPath changes to word/document.xml,
mxDrawingShapeContext is not reset and hence the relationships are not resolved.

Conflicts:
	sw/qa/extras/ooxmlexport/ooxmlexport.cxx
Reviewed on:
	https://gerrit.libreoffice.org/10180

Change-Id: I4a1401103797972731257145430f2048b94a04bc
2014-07-15 11:52:58 +02:00
Michael Stahl
51add78184 [loplugin:literaltoboolconversion]
Change-Id: I9303249880ea0eb2f354fd3ae20c9eb3607a836b
2014-07-15 11:23:56 +02:00
Tobias Lippert
61cf536f04 fdo#80020 Fix regression for style sheet inheritance
The inheritance relationship of styles in Draw was lost when writing files.

Change-Id: I81588a031bf4c649338fad9b7342fbbe11df9aef
Reviewed-on: https://gerrit.libreoffice.org/10309
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-07-15 09:24:37 +00:00
Cédric Bosdonnat
165075e0d7 fdo#72277: Use NSS CACERT in cmis ucp with internal curl
This fix contains two parts:
  * initialize NSS in the CMIS UCP right before sending an HTTP request
    in case internal curl is used. This makes internal curl find the NSS
    CACERT database from the user mozilla profile.

  * add nsspem to allow curl to use CACERTs from libnssckbi. Without
    libnsspem curl is unable to read the certificates from the NSS
    database. The nss-pem code has been extracted from the fedora-hosted
    repository: https://git.fedorahosted.org/cgit/nss-pem.git

Change-Id: Ie8dedf020480cca01bf9761382886566a1150778
2014-07-15 11:15:45 +02:00
Joren De Cuyper
1a6e47e3fd Cleanup of switch case flowRoot in svg endelement
We don't need this switch case due the fact we already check it
before the switch itself. I did introduce this in commit
5bd241b99b but it is redundant.

Change-Id: I24e8c946ef8b8f094daa248c701772e54790c9d1
Reviewed-on: https://gerrit.libreoffice.org/10317
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-07-15 09:16:30 +00:00
Joren De Cuyper
5bd241b99b fdo#50114 ingore flowRoot element during svg import
This element is not specified in any released svg specification.
It might be mentioned in svg1.2 but since this is not yet released/
or will even not be released ever -> ignore it.

Change-Id: Iaf5a392893070fda9e7a420bc951c8565bcfb37f
Reviewed-on: https://gerrit.libreoffice.org/10312
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-07-15 07:34:50 +00:00
Jan Holesovsky
abc28ffc04 fdo#76803: Unit test so that this never regresses.
Change-Id: Id0b883b7d7b902c1f8e41bcf39220ef74b3488bf
2014-07-15 09:16:08 +02:00
Jan Holesovsky
003434f1e2 fdo#76803: Kill resourcemodel::Fraction, and use Fraction from tools instead.
Change-Id: I72d336b8aacf80f9ab6472c0948766ee56fda34f
2014-07-15 09:16:07 +02:00
Tomaž Vajngerl
3a2010c711 fdo#79673 revert to old NPC for MacOSX only
Change-Id: I83cfa2f11e76e03b919216e8dd04d1121ea6afd8
2014-07-15 00:08:23 +02:00
Kohei Yoshida
adf0d7b1fb Preserve the "end of list" flag for xls round-tripping.
This "end of list" flag determines whether the row insertion was an
automatic insertion at the bottom.  Calc doesn't use this at the moment
but Excel uses it to differentiate a normal row insertion from an
automatic one.

Change-Id: I6b28669d816c54d1dc1e4c106918ba688415788d
2014-07-14 16:11:53 -04:00
Kohei Yoshida
d873fd9fa2 Move this header to the source file.
refupdat.hxx is under the ui directory.  Not everyone has access to it.

Change-Id: I3f60761e1105946ed5bd6bddb339ee9a9e7705ad
2014-07-14 16:11:53 -04:00
Kohei Yoshida
953d606b99 Make these non inline.
Change-Id: Ieb54e895f334361978cfc22956ab65687fb74adf
2014-07-14 16:11:52 -04:00
Kohei Yoshida
b63b6c63fd Write test for change track round-tripping for xls file format.
Change-Id: I127879c4f1b6d3605ff800c3f3aa3929a098fead
2014-07-14 16:11:52 -04:00
Caolán McNamara
ed64e620ea oh for the love of...
Change-Id: I5cb90f10112afda77e68035d89cb7026d6e32eec
2014-07-14 20:17:48 +01:00
Matúš Kukan
a113d3a751 error: unused variable 'TIMEOUT'
Change-Id: I9fe3078e2c4ea4a63efcc3e26a090c8e3cbc7ccc
2014-07-14 20:03:21 +02:00
Michael Stahl
2e95e551c5 writerfilter: add unit test for Fraction initialization
... as used by wrap polygon import, see fdo#41068 fdo#76803.

Change-Id: I4467560c2c3bbdab3fc9f8cd7a0c0b415429186c
2014-07-14 18:59:48 +02:00
Michael Stahl
b55b96589f sd: stop calling graphics styles "Image Styles"
(regression from a71a562a99)

Change-Id: Ie3a44a80c720f59831bc2b1da91792fb8aa24d62
2014-07-14 18:57:45 +02:00
David Tardon
bdab2dc21c avoid memory leak
Change-Id: I89e458dbd01a45761948b64cb457424383ca5f51
2014-07-14 18:51:00 +02:00
Joren De Cuyper
f6df52aa3a fdo#78554 - SVG: Text from SVG no longer displayed in LibreOffice
regression of 3b7472b284

Change-Id: I95a30acbf4b2684dda9684f5b51b887356a940e1
Reviewed-on: https://gerrit.libreoffice.org/10302
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-07-14 16:17:40 +00:00
Matúš Kukan
37c3cf70c7 Related cp#1000084: Make this work for other apps too and set proper default
Extend d98c817cc7 and fix default.

Change-Id: I79ad35bd5ad6fbd6e7d260864d4bf40fafb6b604
2014-07-14 18:11:17 +02:00
Caolán McNamara
cc9e4953ef Updated core
Project: help  00c49810c4e883958eb698f2f5b0d413077f14b1
2014-07-14 15:43:28 +00:00
Caolán McNamara
a27e786147 don't need any default width/height here
Change-Id: I6cbf610123b88b29a81a33320ac2c6ce5e224486
2014-07-14 16:37:56 +01:00
Palenik Mihály
415ae83522 Convert 3 dialogs to .ui
I converted RID_DLG_LISTCOMBOWIZARD, RID_DLG_GROUPBOXWIZARD and
RID_DLG_GRIDWIZARD to .ui

Change-Id: I221f22edbe4c638bfa80065d7775f78af24590cc
Reviewed-on: https://gerrit.libreoffice.org/10277
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-14 15:37:16 +00:00
rbuj
38d0bde62b ExternalProject_python3.mk: MACOSX
To build a universal binary in Mac OS X 10.6+ with an Intel processor, it is better to set --with-universal-archs=intel, remember that Rosetta is not installed by default in Mac OS X v10.6 and it is neither included nor supported in Mac OS X v10.7 or later.

If we don't use --with-universal-archs then the configure.ac sets the architectures:

...
UNIVERSAL_ARCHS="32-bit"
if test "`uname -s`" = "Darwin"
then
        if test -n "${UNIVERSALSDK}"
        then
                if test -z "`/usr/bin/file "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
                then
                        UNIVERSAL_ARCHS="intel"
                fi
        fi
fi
...

In Snow Leopard (Mac OS 10.6):

/usr/bin/file /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib: Mach-O universal binary with 4 architectures
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib (for architecture ppc7400):	Mach-O dynamically linked shared library stub ppc
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib (for architecture ppc64):	Mach-O 64-bit dynamically linked shared library stub ppc64
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib (for architecture i386):	Mach-O dynamically linked shared library stub i386
/Developer/SDKs/MacOSX10.5.sdk/usr/lib/libSystem.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library stub x86_64

/usr/bin/file /Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib: Mach-O universal binary with 3 architectures
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library stub x86_64
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib (for architecture i386):	Mach-O dynamically linked shared library stub i386
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/libSystem.dylib (for architecture ppc7400):	Mach-O dynamically linked shared library stub ppc

If x86_64 (for OS X 10.8+) or PPC (for OS X 10.5) is only desired then a universal binary is not useful and we don't have to use --enable-universalsdk=${UNIVERSALSDK}.

Change-Id: Ib0578cfdb912fed5a803df3d2e04d2b037cfe13f
Reviewed-on: https://gerrit.libreoffice.org/10249
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-14 15:36:33 +00:00
Maxim Monastirsky
cdfd24fe2a fdo#81231 Make this macro work again
Change-Id: If655b5ef94657b2771d4e05dd6a2c494aa0e587d
2014-07-14 17:58:19 +03:00
Oliver-Rainer Wittmann
e465f0f474 Resolves: #i125228# correct consideration of InputFields...
in table cells are part of table formulas

(cherry picked from commit b384441c10475c9784eae3ea501afb22e0317468)

Conflicts:
	sw/source/core/fields/cellfml.cxx

Change-Id: I4780ce0c1ac9ac911b654f61aa12938d7b225139
2014-07-14 15:57:18 +01:00
Jan Holesovsky
d641b54efc android: Hint how to get the symbols, but not a 1.5G .apk.
Change-Id: I6f6d2e7516d99a02ad813ba5e03c5cdcac2f4964
2014-07-14 16:55:13 +02:00
Miklos Vajna
f3145f74a2 Clean up SectionPropertyMap::PrepareHeaderFooterProperties()
If you copy the class members on the stack and tweak those (and not
class members), then there is no need to manually restore the copy at
the end of the method.

Change-Id: I42b50cd6b99b6b277dd9809b40385ef6512ef141
2014-07-14 16:46:39 +02:00
Miklos Vajna
8cf681c504 DOCX import: fix FooterBodyDistance for first pages
The root cause was that code in
SectionPropertyMap::PrepareHeaderFooterProperties() saved member
variables on the stack, modified them, then restored them at the end of
the method, but forgot to restore m_nBottomMargin there.

The result of this was that First Page's FooterBodyDistance got set to
zero, which is not the same as Default Style's FooterBodyDistance (150),
so on export sw::util::IsPlausableSingleWordSection() returned false,
which turned the page break into a section break.

Change-Id: I1afa2603de1313ae1e2aaefd4b7c771fce27e21e
2014-07-14 16:46:38 +02:00
Caolán McNamara
6e580f3f53 Related: fdo#52226 ensure graphics are swapped in on DrawingML::WriteImage
I imagine it would be best that the Graphics were delivered pre-swapped in by
higher levels in case there are second level caches or more complex caching
systemed wrapped around it, so warn about it in debug mode but give it a
last-ditch shot anyway. i.e. while the .docx problem should be fixed there
is a report of a very similar .xlsx problem

Change-Id: Ie40ee10fe5cba8ff9c321f47b83e33ee2c1425fd
2014-07-14 15:18:08 +01:00
David Tardon
f3d7734af4 fdo#81304 don't parse file name as part of URL
... because the name is not URL-encoded at this point, so parsing it as
a part of the URL will interpret special characters, e.g. #.

Change-Id: I780baed1753e9674d835dc296d31c088b67d8ba7
2014-07-14 15:11:17 +02:00
Noel Grandin
c72498d7ad Revert "loplugin:unreffun"
This reverts commit e3246e806c.
Which was a mistake.
2014-07-14 14:49:09 +02:00
Noel Grandin
c29338e6e1 revert bad fix
partially revert my commit 34cabe837d "loplugin:unreffun"

Change-Id: Idbfc9d1e43180c7c14e58c7b9417f3001d9805d4
2014-07-14 14:49:09 +02:00
Zolnai Tamás
11b328103f Update libgltf: various fixes, memory usage optimization (second try)
Fixes in the new tarball (beside the upstreamed bug fixes):
- In walkthrough mode camera is moved relative to the current
camera position and not relative to the initial camera position.
- The right FPS numbers are displayed under Linux.
- Some memory optimization to avoid running out of memory
in case of huge models.
- Other freedesktop bugs: fdo#81205, fdo#81207, fdo#81250

Change-Id: Ie0f65be3312688196fcca634eb396c577f991073
Reviewed-on: https://gerrit.libreoffice.org/10274
Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-07-14 12:35:52 +00:00
rbuj
2729671e35 coinmp: macosx.build.patch
Fix UNAME_PROCESSOR detection in Mac OS X.

Add a filter expression before to apply a platform-specific patch.

Change-Id: I9fc4cf790f16255f4e807e070dbae0e5a1f28781
Reviewed-on: https://gerrit.libreoffice.org/10227
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-14 11:36:13 +00:00
rbuj
986beb05e8 OS X: SDK configuration
Adds several improvements for setting the SDK.

Change-Id: Id6aa7c972ec5f11f1a43ced90f0411e55328eef3
Reviewed-on: https://gerrit.libreoffice.org/9952
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-14 11:33:58 +00:00
Noel Grandin
48528e0062 add some comments to include/tools/ref.hxx
Change-Id: Ic38d7f5f816f2a91bfb468c0b7fb241b084a0c44
2014-07-14 13:31:59 +02:00
Noel Grandin
4ed943a24b inline SvCompatWeakHdlRef typedef
.. only used in 2 places in the same file

Change-Id: I5dc1dc77c3841bf86134f6a48597f8c1e71b2b3f
2014-07-14 13:31:22 +02:00
Noel Grandin
6d2178b8c8 inline tools::SvRefBaseRef typedef
..it is only used in two places

Change-Id: If333936b26592ed44d3525f2eb3c21aafde7dddc
2014-07-14 13:30:55 +02:00
Noel Grandin
e3246e806c loplugin:unreffun
Change-Id: Ib64683372d89896e7fbac7ac9acb608c5470531c
2014-07-14 13:27:31 +02:00
Noel Grandin
06a40a242f -Wunused-variable
Change-Id: I3a22b16d2449a1cb2eba00164f8fca0fd022bd0a
2014-07-14 13:27:30 +02:00
Noel Grandin
34cabe837d loplugin:unreffun
Change-Id: Idc0f3ef53f48b2e77e4cecbcdbbc44a115c6ec2e
2014-07-14 13:27:30 +02:00