345996 Commits

Author SHA1 Message Date
Douglas Mencken
00dabbfc7c OpenSSL @OS X: choose correct build target
Change-Id: I58f3cc12f2fa177c26608d372f99c086503a13a5
Reviewed-on: https://gerrit.libreoffice.org/8205
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-24 17:03:50 +00:00
Douglas Mencken
72e8f628e9 Use "deprecated" API for OS X alias resolving on X 10.5
Change-Id: I68a49b95c9b4f4d1d0472a298f8b29d83435c88e
Reviewed-on: https://gerrit.libreoffice.org/8195
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-02-24 17:00:51 +00:00
Stephan Bergmann
76b114f849 implicitboolconversion: warn about implicit conversion of call args to bool
...to be able to find problems like 6e0bdf04add338b7d5b29fc7b3fc9f08cfd5e96f
"sal_Bool arg of SetUseImagesInMenus was abused to squeeze '2' through it"
earlier when converting occurrences of sal_Bool to bool.

Restricting this check to function call arguments avoids too much noise while
hopefully still catching all the relevant problems.

(This check partially overlaps the pointertobool check, so implicit conversions
from pointers to bool call arguments will now generate two loplugin warnings,
but that's harmless.)

Change-Id: I0b03b1d1615aaf8bc18e7a84c56fff3ef9903508
2014-02-24 17:25:05 +01:00
Matthias Freund
8865a555af Add two saveas icons for sifr theme.
I create two icons for the sifr-theme (the missing saveas icons).
Hope this is correct. :-)

Change-Id: I9b9063018d6d0662e8805b6cf502262deed46d3c
Reviewed-on: https://gerrit.libreoffice.org/8191
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-24 15:53:53 +00:00
Caolán McNamara
c88d2f6d57 fix 'delete' not working in the Template Manager
regression from b29c078c7f193dd7dae74baf89fe1abb9264239c because if the search
view widget is visible then its assumed that we are in search view mode

Change-Id: I8e81ffa06d5d3ac50e110105c9444707fd4c41c6
2014-02-24 14:14:25 +00:00
Caolán McNamara
5eb08bb353 ETOMANY getPropertyValue
Change-Id: I787257603e919b12fda07d3302ceba2a7787a9b9
2014-02-24 14:14:24 +00:00
Caolán McNamara
1067084f15 coverity#737536 Uncaught exception
Change-Id: Ia59a64934b65dd926c4f95953bc1ddaf00d6f8cf
2014-02-24 14:14:24 +00:00
Caolán McNamara
f3deb8c275 coverity#737516 Uncaught exception
Change-Id: I7683cd9a27b09ed9d9b57574212cde14f103d53a
2014-02-24 14:14:24 +00:00
Andras Timar
a1e63e7410 OOXML chart import: ignore rot values outside the valid range
Change-Id: I506a78a024d761d1d263a7bb1dcbf09a4bbcf4ef
2014-02-24 14:55:56 +01:00
Caolán McNamara
df2533ec40 fix MacOSX-x86_49-TDF tinderbox
Change-Id: I15632bd87be37d9bb5815c9d800271dfd4c3b016
2014-02-24 13:39:16 +00:00
Herbert Dürr
2c7528552d Resolves: #i119006# delay Mac initial event until the app has launched
delaying the initial event prevents complaints from OSX>=10.7's "windows
restore" feature to recur infinitely. Apparently OSX cleans things up for us
just before we get the applicationDidFinishLaunching() callback.

(cherry picked from commit 0f3712ff654c740f3593b9580f34cdfe21ac3250)

Conflicts:
	vcl/osx/salinst.cxx

Change-Id: I0f1d59f03ffe4efc7c9a73fa881151fa06af5424
2014-02-24 13:36:39 +00:00
Caolán McNamara
03bdbcb42a coverity#737508 Uncaught exception
Change-Id: I100bd99fdbf2929214f89baac962d74cb6a530a6
2014-02-24 13:36:09 +00:00
Caolán McNamara
f10e4ce1ed coverity#737507 Uncaught exception
Change-Id: Id035849f94bfb5e6ba7f5463a6a548bf88b77e85
2014-02-24 13:34:08 +00:00
Caolán McNamara
42d46144df coverity#737506 Uncaught exception
Change-Id: Ib36b9bab3f31b32b8be3d7c51af7f26280a7a069
2014-02-24 13:33:23 +00:00
Caolán McNamara
1d250c95dd coverity#737504 Uncaught exception
Change-Id: I3cfa8ba3baaf071e4300b12c8bbcba4c652ee309
2014-02-24 13:33:22 +00:00
Caolán McNamara
9a8a4b81b6 coverity#737502 Uncaught exception
Change-Id: I5f5b7244db311501af6ded863b4b1fa46e5a547a
2014-02-24 13:33:21 +00:00
Herbert Dürr
42837a066b Resolves: #i123840# prefer NSZero* constants over open coded alternatives
(cherry picked from commit a8c471a7003fdac7d5e1c97e903f669da6bcf0c7)

Conflicts:
	vcl/osx/salframe.cxx
	vcl/osx/salframeview.mm
	vcl/osx/salnsmenu.mm
	vcl/osx/salobj.cxx

Change-Id: I379d80355d741dd28aad2e6119a8b82ac10159f5
2014-02-24 13:17:37 +00:00
Caolán McNamara
93f3f72d18 coverity#737499 Uncaught exception
Change-Id: If4599fa76914b472ee6734f48941898f420519c3
2014-02-24 13:17:36 +00:00
Caolán McNamara
1a48456f8b coverity#737497 Uncaught exception
Change-Id: I1dc0acda818f1b520f74c282bdd17a195591e860
2014-02-24 13:17:35 +00:00
Caolán McNamara
146a5e95ad coverity#737495 Uncaught exception
Change-Id: I8a5e7111a0ddf1e651c25bd52c6af462d9075f93
2014-02-24 13:17:33 +00:00
Caolán McNamara
a3a227b5b8 coverity#737469 Uncaught exception
Change-Id: Ic090878483f2fbfc000bfc248bb52764e4e9727e
2014-02-24 13:17:32 +00:00
Caolán McNamara
6bc58bbd2a coverity#737458 Uncaught exception
Change-Id: Ida42725016395d9629bb97bd8cf0b660195c4f1c
2014-02-24 12:56:18 +00:00
Caolán McNamara
0a3526f61f coverity#737430 Uncaught exception
Change-Id: I1db24114b331970d75b01c0869708b1656be3836
2014-02-24 12:55:01 +00:00
Caolán McNamara
8fca5e299c coverity#737424 Uncaught exception
Change-Id: I8779bf79dd2342f183643767c4c424e7a5500cca
2014-02-24 12:53:51 +00:00
Caolán McNamara
6e0bdf04ad sal_Bool arg of SetUseImagesInMenus was abused to squeeze '2' through it
which means that icons suddenly reappeared in the menus when the gtk
theme had disabled them

ref e8f8f24c8415898c787bbfb629247ed62e73a2b9

Change-Id: Ia9aef5ca39bda2ddf6d7c4ebc2bddc01d470d09b
2014-02-24 12:53:14 +00:00
Caolán McNamara
a8fad94ef2 coverity#737422 Uncaught exception
Change-Id: Ieca32131ad7b1019338af8042ab6905e3ba152d6
2014-02-24 12:53:14 +00:00
Caolán McNamara
4e2db965f9 coverity#737388 Uncaught exception
Change-Id: I55fd2311d6439a6f8616f9c21fa1e7222efde794
2014-02-24 12:53:14 +00:00
Caolán McNamara
b10fee9d8d coverity#737363 Uncaught exception
Change-Id: I29717d8379a69eede5ef44b57934c2fe70c04248
2014-02-24 12:53:13 +00:00
Caolán McNamara
e2abad8add coverity#737355 Uncaught exception
Change-Id: Ib6b54de2a02fedd42fa28155762b4d3c25957607
2014-02-24 12:53:13 +00:00
Caolán McNamara
687f46d608 coverity#737354 Uncaught exception
Change-Id: Iedbff972ef4fba9b0fa877db76a1e9b099223279
2014-02-24 12:53:13 +00:00
Caolán McNamara
4e95a50d8b coverity#737343 Uncaught exception
Change-Id: I5097c5c98580619d066ea928f1970cc6e7160783
2014-02-24 12:53:13 +00:00
Caolán McNamara
7d2d7b5e59 coverity#737340 Uncaught exception
Change-Id: I1549368658a5918fb16b58b614c2c789be94060e
2014-02-24 12:53:12 +00:00
Caolán McNamara
2e9d267c2b coverity#737278 Uncaught exception
Change-Id: I8b9c02d5e87433cb48a7cee37b696d36e453dd52
2014-02-24 12:53:12 +00:00
Caolán McNamara
484af8f1d2 coverity#737277 Uncaught exception
Change-Id: I4bb6964fb585a027ade3540456bf71bdf70d7662
2014-02-24 12:53:12 +00:00
Caolán McNamara
9ee8026d8b coverity#737274 Uncaught exception
Change-Id: I33a22974a9485e4556ed44f990d6d13a8901c511
2014-02-24 12:53:11 +00:00
Caolán McNamara
3907ef9e47 coverity#737273 Uncaught exception
Change-Id: Ib1e7ee8903c9b3e276c9244a6e4b67499f22c661
2014-02-24 12:53:11 +00:00
Caolán McNamara
50ffcf3bd5 coverity#737272 Uncaught exception
Change-Id: Ibab84222db96181b175f58625105af1237e48136
2014-02-24 12:53:11 +00:00
Caolán McNamara
5eb9477445 coverity#737271 Uncaught exception
Change-Id: I3275220925cc81ce5dbf507793e0d74cb88e2ab4
2014-02-24 12:53:11 +00:00
Caolán McNamara
f78dbca682 coverity#737270 Uncaught exception
Change-Id: I7f129c868034df3d56060cc870c335b36a1a6d4a
2014-02-24 12:53:10 +00:00
Caolán McNamara
3d5f2d13df coverity#737269 Uncaught exception
Change-Id: Ib6240c818c6f17df63693aa4fc4a4ca207df27b6
2014-02-24 12:53:10 +00:00
Caolán McNamara
9cbc3a2aa7 coverity#707304 Uncaught exception
Change-Id: I4384b87566d595ce47dd934e35c8bb9267d6cb1b
2014-02-24 12:53:10 +00:00
Caolán McNamara
e72f739393 coverity#707318 Uncaught exception
Change-Id: I65bfcbe4ab6fceed3ae474dcb3225df197ddaa2b
2014-02-24 12:53:09 +00:00
Caolán McNamara
662283db76 coverity#735810 Dereference after null check
Change-Id: I005ae6bf505fd2131c06e889f9fc3c12dae23c64
2014-02-24 12:53:09 +00:00
Caolán McNamara
e40a7f2e59 coverity#735808 Dereference after null check
Change-Id: Idd8ff57f5c970d15e199831bb1b1251ced32eeec
2014-02-24 12:53:09 +00:00
Caolán McNamara
b854cb787e coverity#735747 Dereference after null check
also

coverity#736774 Dereference before null check

Change-Id: Ic2e2a341565af0609ec748b40ac7848a46c9e3af
2014-02-24 12:53:09 +00:00
Caolán McNamara
819cc64318 coverity#735751 Dereference after null check
Change-Id: Id7e11fefec40d11c509bde01533122ca68db7402
2014-02-24 12:53:08 +00:00
Caolán McNamara
21cea08139 coverity#735801 Dereference after null check
Change-Id: I4a403098388bdb7f4f09242fcd71a50d38fc630e
2014-02-24 12:53:08 +00:00
Stephan Bergmann
13afdc0b14 warning C4805: '==' : unsafe mix of type 'sal_Bool' and type 'bool'
Change-Id: I3719401a0eb68ba9204be19c2dd4f93617bf097c
2014-02-24 13:32:44 +01:00
Jacobo Aragunde Pérez
9fab183d4d sw: Unit test for spreadsheets embedded in docx
Change-Id: I0a91ea0ca36d57320c3495a5cedba7924d3a7ea7
2014-02-24 13:26:58 +01:00
Jacobo Aragunde Pérez
1428ec6f4e sw: Preserve embedded spreadsheets in docx
Embedded spreadsheets consist on two files:

* The spreadsheet found in word/embeddings/ directory.
* A preview image found in word/media/ directory.

This patch saves these two files and writes the proper XML to the
document. It looks like this:

    <w:object>
      <v:shape id="ole_rId2"
      style="width:362.55pt;height:145.7pt" o:ole="">
        <v:imagedata r:id="rId3" />
      </v:shape>
      <o:OLEObject Type="Embed" ProgID="Excel.Sheet.12"
      ShapeID="ole_rId2" DrawAspect="Content"
      ObjectID="_227653443" r:id="rId2" />
    </w:object>

Some simplifications were done in comparison with the XML generated
by Word; the lines above seem to be the minimum working code.

Similarly to drawings, charts, etc. our code postpones the actual
process of the OLE objects until the rPr tag is closed.

TODO:
* Unit tests.
* Add information about xlsx extension to [Content_Types].xml
  * Without that, Word doesn't detect the OLE as an spreadsheet.

Change-Id: Ia0c797b72cd6e99ca9ad7fa11897b62ab3867a5e
2014-02-24 13:26:40 +01:00