Commit graph

361072 commits

Author SHA1 Message Date
Michael Stahl
0f21f93208 fdo#79269: fix ODF import of style:footer-first
The implementation of SwXStyle's FirstIsShared property is busted, and
that causes xmloff to write the footer-first content into the master
footer.

Change-Id: I520a4929d9d7313da65bcdcf4094f8244382377d
2014-09-29 23:59:29 +02:00
Michael Stahl
87331efa9b sc: fix locking in ScXMLConsolidationContext
Essentially revert commit 4fa05ecc08,
plus move the unlock to the dtor for more RAII-ness.

Change-Id: Ie5a9cc183626e3f5b005348606bffa69c4be4f7f
2014-09-29 23:59:29 +02:00
Stephan Bergmann
67a9ae4dd8 Improve debug output
Change-Id: Iba0c35a5bc07ac7b67186c3eeae1a2c926a6bc69
2014-09-29 23:18:26 +02:00
Stephan Bergmann
18539f46e9 Adapt cppu::bootstrap to new Mac OS X LibreOffice.app layout
Change-Id: I60db70c38d138455230ee56a26d840aa68885b44
2014-09-29 22:53:14 +02:00
Stephan Bergmann
f6848ac737 Adapt unoinfo to new Mac OS X LibreOffice.app layout
Change-Id: I0e7fc27f558de2af7e860ca2ab2da1952fc85678
2014-09-29 22:52:28 +02:00
Stephan Bergmann
a67e6ae040 Precise, platform-specific Class-Path path for NativeLibraryLoader use
Change-Id: I01a521f5d5104bf2e6046330e2d667155c27a604
2014-09-29 22:08:29 +02:00
Michael Meeks
02f57e36bf LOK: avoid crash when zooming using quadview
Change-Id: I89a8c9e44906326976c3dc8057e1637affaf2521
2014-09-29 21:01:13 +01:00
Stephan Bergmann
2311c8d677 Precise, platform-specific Class-Path path for NativeLibraryLoader use
Change-Id: I4aecc887fc4654618444616ef83ff71266a2f93a
2014-09-29 21:57:41 +02:00
Michael Meeks
ca53769780 chart2: take the mutex to update the chart structures.
Change-Id: I8ee6ec81913c008eeb67cd70a2490b523b0d8177
2014-09-29 20:50:50 +01:00
Caolán McNamara
65277f994a Resolves: fdo#79131 crash in EnhancedCustomShapeTypeNames::Get
Change-Id: Ib21a4a1574119120f09d4ecac73b93a0f2f6739f
2014-09-29 20:41:38 +01:00
Adolfo Jayme Barrientos
4c23ff3c18 Rework the Compress Image dialog
* Switch to an horizontal layout
* Drop the expander and make file info always visible at the right side
* Resizing didn’t make sense when the expander was there, still doesn’t
* Sentence capitalization for radio buttons and check boxes, see HIG
* Add it a title!
* Make it modal

Change-Id: I08215b122bd9466c33fdc93e3c007f4aaf47b4e5
Reviewed-on: https://gerrit.libreoffice.org/11671
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-29 19:21:41 +00:00
Stephan Bergmann
826530854a vcl/osx: std::auto_ptr -> std::unique_ptr
Change-Id: If54aaffc6d88569220c4f1747926aae3199946b8
2014-09-29 21:12:57 +02:00
Miklos Vajna
9c88837f0d SwModelTestBase: allow validating only a subset of the test files
Also, as a start, enable export validation for zoom.docx.

Change-Id: I4620fbd516eeb4001770a4d69a89e7831566af92
2014-09-29 20:45:56 +02:00
Julien Nabet
2b2246bb16 cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: I01999bc1283024bc4a1c380fd765a64b2da8a16a
2014-09-29 19:54:43 +02:00
Michael Jaumann
0ed0974298 fdo#59299 Personas for bottom toolbars
Change-Id: If823964bf3bb67563504db61b6c5d557cab89243
Reviewed-on: https://gerrit.libreoffice.org/11609
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2014-09-29 17:44:07 +00:00
Luboš Luňák
e5bbc721d6 test for mso-position-(horizontal|vertical)(-relative) (bnc#884615)
Change-Id: I692de6c6d3cf2b932ba96cd9978cf56f75b8cb3e
2014-09-29 18:56:29 +02:00
Luboš Luňák
16dba68cf1 map FRAME to VML's text
Again, that's what this file does elsewhere, that's what (incomplete) import
did before my changes, and it seems to match better the position that such
an element gets in Word.

Change-Id: Id09150eaaa505e6ddcd4baaf4a833000d52dd71d
2014-09-29 18:56:26 +02:00
Luboš Luňák
b3bee2b8f8 map PAGE_PRINT_AREA to VML's margin
That's what the code does elsewhere in this file, and also import does it.

Change-Id: I30e608f86a9cae66eed48dbb2e719b1455327ae3
2014-09-29 18:56:24 +02:00
Luboš Luňák
6ceeb0df69 proper reading of mso-position-(horizontal|vertical)(-relative)
Change-Id: I50f537c697f6e73c1fd150f3f03fc65b85ccbeaf
2014-09-29 18:56:21 +02:00
Luboš Luňák
1424a8174e export in .docx also vml mso-position-(horizontal|vertical)(-relative)
Change-Id: I65321bb6244e0e37ef673d726b698c3708711d53
2014-09-29 18:56:18 +02:00
Luboš Luňák
f6fa78766f docx ST_VAnchor does not know "column", it should be "text"
Change-Id: I3a5ab08e349c5c071373cda2f62e3cea593e263c
2014-09-29 18:56:14 +02:00
Tor Lillqvist
7d07cefa0e Don't try to write into invalid locations on iOS 8
Change-Id: I6a91dbd32bfebf26dbc4a83312cbe5b6af9c4fe5
2014-09-29 19:39:03 +03:00
Tor Lillqvist
0b72a16541 Pretend the app-specific "Documents" directory is the home directory on iOS
Change-Id: If8fda4b27adb2f83cbdfdbb20d90ced77e467a54
2014-09-29 19:39:02 +03:00
Tor Lillqvist
d680f6c924 More sal source files for debugging convenience
Change-Id: I43f693901e10a81c486c4f4b10c9bb9c70af3448
2014-09-29 19:39:01 +03:00
Tor Lillqvist
4a62d68ab0 Add some new source files in vcl
Change-Id: I2908fd1e93e7aa2a515c152508b66d4de38436e6
2014-09-29 19:39:00 +03:00
Tor Lillqvist
0a4d780413 No extension cache to clean unless HAVE_FEATURE_EXTENSIONS
Change-Id: Id19a93b0b428849a3590e2e28e081154c443e949
2014-09-29 19:39:00 +03:00
Tor Lillqvist
d83cd0bc89 Add desktop/source/app/*.cxx for debugging convenience
Change-Id: Idba63c9a88a6f255c58296df64f9d74379a3cc4e
2014-09-29 19:38:59 +03:00
Stephan Bergmann
b48e90799d vcl: std::auto_ptr -> std::unique_ptr
Change-Id: I5a08186b465b15311c63784506a0ca0e119286e2
2014-09-29 18:37:51 +02:00
Stephan Bergmann
0b23ac2c9d vbahelper: std::auto_ptr -> std::unique_ptr
Change-Id: Ic1b28e7f79cc7dad6a045eb64e5191991533990d
2014-09-29 18:37:51 +02:00
Stephan Bergmann
b78b143416 unotools: std::auto_ptr -> std::unique_ptr
Change-Id: I07d536d0ffdc9e09d8d0799396ad6e6c6909cf45
2014-09-29 18:37:51 +02:00
Stephan Bergmann
1467751fd8 toolkit: std::auto_ptr -> std::unique_ptr
Change-Id: I4566a0b7215b729f04591bed0ad5bed42f71f227
2014-09-29 18:37:50 +02:00
Miklos Vajna
27f58d539d DOCX export: fix order of paragraph mark properties child elements
Change-Id: I9e272996b478abe138448d305a54920b762a89b5
2014-09-29 18:35:09 +02:00
Miklos Vajna
337d3940d6 DOCX export: avoid duplicated w:sz child elements
sw/qa/extras/ooxmlexport/data/zoom.docx is a reproducer for this,
DocxAttributeOutput::CharFontSizeCJK() is just a wrapper around
CharFontSize(), and both produce a <w:sz> element, but to produce valid
OOXML, only one child element should be written, so ignore the second
one.

Change-Id: I7474fccadccf573f706c9b148b7e450c39ad5efb
2014-09-29 18:22:04 +02:00
Miklos Vajna
1415082606 drawingML export: fix remaining rotation / flip combinations
With this, each rotation = 0 / 90 / 180 / 270 and flip = none /
horizontal / vertical / horizontal+vertical combination (16 cases) are
exported perfectly.

Also, this matches what the (binary) [MS-ODRAW] export does, see
ImplEESdrWriter::ImplWriteShape().

Change-Id: I04030c8c6819c35c06ce97400eb7e2f1f7389a5f
2014-09-29 17:48:55 +02:00
Michael Stahl
09196ca6ca vcl: use WT_EXECUTEINTIMERTHREAD for Timer Queue
Currently the timer callback is running on a separate thread, but that
is unnecessary since it just does a PostMessage().

Every thread stack stack mysteriously eats 10M of VM apparently despite
dumpbin -headers soffice.bin:
"989680 size of stack reserve, 1000 size of stack commit"

Change-Id: I6eac3f6fa45939cd5dbb3dfbec61f9a504bdaa8b
2014-09-29 17:37:27 +02:00
László Németh
0597f3bb6b Set relative heights for all default heading styles
The relative height "100%" (used only by Heading 3 now) is converted
silently to absolute height (btw, also in the dialogs and in OOo, too).
Using 101% instead of 100% fixes this problem, so setting a new height
in the parent style "Heading" (for example, by Tools->Options->
LibreOffice Writer->Basic fonts (western)->Heading->Size) can change
the heights of all default headings, including Heading 3.

Change-Id: Ia44ac9d24041b75f0aedd7b56340dd41caf0020e
2014-09-29 17:37:03 +02:00
Caolán McNamara
5aa360cae0 Resolves: fdo#80468 and fdo#81223 image/frame backgrounds wrong
writer has code to fill in missing new properties from the old properties
if they exist. But xmloff is stripping them out before they get there.

Don't strip them out, and add in a missing check for one of the
archaic bg colors and add a regression test for fdo#81223

Change-Id: I9a541a9bee0a01c90f2c33383f1144ecd8b0bfff
2014-09-29 16:31:32 +01:00
Caolán McNamara
8dd2a4f0c8 revert hunk that makes sw_ooxmlexport tests fail
though it did seem on the face of it a good additional safety check

Change-Id: I76e613c0f42662d87f976d9b3bf98a4cb44b3c4e
2014-09-29 16:20:30 +01:00
Michael Meeks
cc335e4a72 scp2: define BUILD_X64 for winexplorerext.
Change-Id: I06c253cc53121559730f23906fd3ff34a4593d27
2014-09-29 14:48:08 +01:00
Stephan Bergmann
9755653991 MSVC 2012 apparently isn't ready yet for std::vector<std::unique_ptr<T>>
...producing error messages about trying to access private undefined unique_ptr
copy ctor etc.

Partial revert of 014e7933af "svtools:
std::auto_ptr -> std::unique_ptr: ...changing HTMLOptions to
std::vector<std::unique_ptr<...>> because boost::ptr_vector<...>::push_back only
supports auto_ptr, not unique_ptr," going the awkward

  std::unique_ptr x(...);
  push_back(x.get());
  x.release();

route instead (which could be simplified if boost::ptr_vector::push_back ever
started to support unique_ptr).

Change-Id: I15693030a0bbfdedbfdfbe76ede5d0c74f4e5b41
2014-09-29 15:27:46 +02:00
Stephan Bergmann
dc63542511 svx: std::auto_ptr -> std::unique_ptr
Change-Id: Ib70d974817bcdd9a582e9be28d28b007cdc3a7a7
2014-09-29 15:20:22 +02:00
Caolán McNamara
d3de12fcfc Resolves: fdo#81277 missing table cell background color in doc/html import
a regression from one of the DrawingLayer FillAttributes
changes of...

commit 7d9bb549d4
Author: Armin Le Grand <alg@apache.org>
Date:   Mon Jun 2 15:00:50 2014 +0000

    Related: #i124638# Second step of DrawingLayer FillAttributes...

    for Writer objects, now added support for Paragraph and PageStyle (including
    Header and Footer) for direct attributes and style attributes

commit 4a0b5e569d
Author: Armin Le Grand <alg@apache.org>
Date:   Thu Apr 17 16:44:58 2014 +0000

    i#124638 support for DrawingLayre FillStyle for GraphicFrames and ...

    ... EmbeddedObjectFrames in Writer

commit 6e61ecd096
Author: Armin Le Grand <alg@apache.org>
Date:   Wed Mar 19 16:17:02 2014 +0000

    Merge back branch alg_writerframes to trunk

all of which set all RES_FLYFRMFMT and RES_FRMFMT SwFmts
to use the new fill attributes, but

a) didn't change the aTableBoxSetRange for SwTableBoxFmt to include the XFILL
attributes, so importing cell bgs from .doc got dropped
b) didn't make any effort in the uno api for XCells to do the same sort
of mapping that was done for XFrames

its unclear to me if SwDrawFrmFmt is actually adapted or not, I've
assumed that it is here

Change-Id: I8d71def2aef6163099a16591f9e53ba2b430bd06
2014-09-29 14:15:20 +01:00
Robert Antoni Buj i Gelonch
bf7ddfdeb7 Fix java.util.Calendar.set in integration.forms.DateValidator
Change-Id: I1bd87c623b923469c325ebfcba4ba82e2a648ae2
Reviewed-on: https://gerrit.libreoffice.org/11694
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-29 12:54:30 +00:00
Robert Antoni Buj i Gelonch
72f50083e7 forms: getMonth() and getYear() are deprecated in java.util.Date
Change-Id: I31664bbd8c1c3b02e8a7381226d4d558b37466a2
Reviewed-on: https://gerrit.libreoffice.org/11690
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-29 12:44:30 +00:00
Stephan Bergmann
014e7933af svtools: std::auto_ptr -> std::unique_ptr
...changing HTMLOptions to std::vector<std::unique_ptr<...>> because
boost::ptr_vector<...>::push_back only supports auto_ptr, not unique_ptr.

Change-Id: Ie5f92bc40ce5425dc1c634b17addc2b0dd9bbda3
2014-09-29 13:57:17 +02:00
Tor Lillqvist
14157dcdf1 We can forget the iOS 6 SDK now
Change-Id: Ifefcf5c69ecacce0fb9538900ee67a9c086959e6
2014-09-29 14:08:47 +03:00
Noel Grandin
00bd457156 loplugin: cstylecast
Change-Id: I20358c271e32b4af11d3258c950bde836596933a
2014-09-29 12:50:36 +02:00
Noel Grandin
65b69c44fc loplugin: cstylecast
Change-Id: I31bbeb5f068754d6dc77c22d759058089b03c9b1
2014-09-29 12:50:36 +02:00
Noel Grandin
a2320eaf39 loplugin: cstylecast
Change-Id: I28443b688f8ab752162846e5cea661f26d269cad
2014-09-29 12:50:36 +02:00
Noel Grandin
0ecf6afbd1 loplugin: cstylecast
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
2014-09-29 12:50:35 +02:00