340031 Commits

Author SHA1 Message Date
Jan Holesovsky
eb45c69b64 EMF+: Log the stride too.
Change-Id: I903d8e5629c578f292307bf3abdb2f58ef9dd92c
2013-12-05 09:08:09 +01:00
Tor Lillqvist
4aa1c8d914 Typo fix
Change-Id: I994ebbad19873236ad6d8dc99f721908722d302a
2013-12-05 09:11:18 +02:00
Tor Lillqvist
47aad4bde8 Increase consistency
Change-Id: I5469b00a533ef9bf731698d7906a470699e29ba6
2013-12-05 09:00:17 +02:00
Tor Lillqvist
2dc16ffab2 Some TABs had crept in again
Change-Id: If48a84fc7ccb1fc1ca37a6e9fe2e29473f1f32a6
2013-12-05 08:27:29 +02:00
Julien Nabet
9c2a085a45 Resolves: fdo#72280 Wrong title for Analysis of Variance (ANOVA) dialog
Change-Id: Ie2e1edee804f3e85eab08d05adecfc25ebbc77c1
Reviewed-on: https://gerrit.libreoffice.org/6934
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-12-04 22:54:51 -06:00
Kohei Yoshida
5a295eb97b Update the comment & use the column position of the last formula record.
Change-Id: I877ec2153754328781e5d87b8eca47998b70fa22
2013-12-04 21:59:30 -05:00
Kohei Yoshida
c6ccab60fa Never attempt to create formula groups based on Excel's shared formula ranges.
Because they are wrong more than half the time.

Change-Id: I24e49c53520442be698e43976d28d0f8477648e6
2013-12-04 21:53:48 -05:00
Eike Rathke
dfd1a47a38 resolved fdo#71667 and fdo#72278, fdo#69971 follow-up fix
a9d85d62a889288b17899c8defc020da487d8b36 used
ScInputHandler::EnterHandler() to reset all sort of things related to
input EditEngine, but that is a handler for Enter and does not enter a
handler and actually attempts to finalize input, which lead to various
unwanted side effects.

Introduced ScInputHandler::InputTurnOffWinEngine() as only the input bar
window EditEngine needs to be reset in the window switching case (which
EnterHandler also does hence it did prevent that bug). The approach
could be polished with further refinement but most importantly fixes the
actual problems now.

Change-Id: I9a0bc452b49ba11a3313cafbc1e5972f41dc65c7
2013-12-05 02:05:27 +01:00
Miklos Vajna
45c5124e0e writerfilter: drop ww8resource annotation in doctok
This was used as a tag for various classes, but the generated result
wasn't used anywhere, so let's just get rid of it.

Change-Id: I61dc51368177eddb6d04dba94063ba102f4ca1e5
2013-12-04 21:28:30 +01:00
Miklos Vajna
71b8dba74d writerfilter: remove unused WW8LineProps in doctok
Change-Id: I6fae7739235194c3452634ff8a173f4ab5eac425
2013-12-04 21:28:30 +01:00
Miklos Vajna
2fa8720270 writerfilter: remove unused WW8BRC in doctok
Change-Id: I9da4b0d5e003f12474fb11dc4b102e5fad79f11e
2013-12-04 21:28:30 +01:00
Miklos Vajna
5b7acdf8c8 writerfilter: remove unused WW8FFDATA in doctok
Change-Id: I62a5d45a818738fb06b1d80652c0ad6c0aee5f29
2013-12-04 21:28:30 +01:00
Kohei Yoshida
0fb7073313 Assign top cell to the formula group if it's still NULL.
This can happen when Excel's original shared formula range is across
multiple columns, in which case we split that into multiple groups (one
per column), and initialize top cell only for the left most column.

This fixes the crasher on the doc from fdo#31296.

Change-Id: I9e4def9836947fc67523f0d99ca981465709b934
2013-12-04 14:39:17 -05:00
Jacobo Aragunde Pérez
13ce74fd9b fdo#64232: Unit test for font theme attributes preservation
The unit test checks three cases:
 * attributes in run properties
 * attributes in default run properties
 * attributes in style definitions

Change-Id: Ie3224f41bd29e8b258dbd6823b7c9549e1ef5b1e
2013-12-04 18:52:04 +01:00
Jacobo Aragunde Pérez
983002475f fdo#64232: Save font theme attributes in rPrDefault
The default values for run properties are stored in the styles.xml
file, in the <w:rPrDefault> tag. The process of this tag is slightly
different from normal <rPr> tags.

First, we fix DocxAttributeOutput::OutputDefaultItem to be able to
output the contents of the character grab bag.

Second, we fix StyleSheetTable::applyDefaults to read the property
values using the GetPropertyValue method instead of using an iterator
directly, because the former creates the grab bags and returns them
as properties while the latter returns all the properties individually,
including those that should be inside a grab bag.

Change-Id: I91254ba20fd9ca5a1b02afb587f52a449a215d6c
2013-12-04 18:52:03 +01:00
Jacobo Aragunde Pérez
458b89b303 fdo#64232: Fix and preserve eastAsiaTheme attribute
The attribute eastAsiaTheme was not being processed properly (the
derived theme font was being assigned to complex-script instead of
eastAsia), so this patch fixes that and it also preserves the value
of the theme itself.

Change-Id: I1a91ab2080eb2bc79f41fda9ae4bf7afb05f69a3
2013-12-04 18:52:03 +01:00
Jacobo Aragunde Pérez
9e47df8fd7 fdo#64232: Save font theme attributes back to the docx
Font theme attributes were saved to an InteropGrabBag on import, and
they have to be saved back to the document when exporting to docx.

If the user modified the font in a text fragment during edition, the
theme attribute should be discarded in favour of the font attribute.

The attributes in the grab bag are processed in the last place so we
can compare the font attributes with the original fonts to know if
they have changed.

Change-Id: I2502b4aa96213e74b46fccd1a20f99421f7cf98b
2013-12-04 18:52:03 +01:00
Jacobo Aragunde Pérez
0fa60a7f5c fdo#64232: Add font theme info to CharInteropGrabBag
The attributes w:*Theme in the rFonts tag are saved to the character
InteropGrabBag so they can be saved back to the document on export.

Font attributes are also pushed into the grab bag because they will
be needed to check if the user has modified the fonts while editing
the document.

Change-Id: Ib247845a2d5543823798e1bbd8ed1958a5d9e884
2013-12-04 18:52:02 +01:00
Jacobo Aragunde Pérez
fb5ee5c995 sw: Add support for different grab bags at PropertyMap.
Now there are two types of grab bags, for character and paragraph
attributes.

Change-Id: I41362358cd2765e5642499520d94f23f2380631d
2013-12-04 18:52:02 +01:00
Jacobo Aragunde Pérez
8a631e4718 sw: add CharInteropGrabBag uno property to characters
Change-Id: I2c6d8b1e4ef6df6a6662d5db89e67e5fba3c6ade
2013-12-04 18:52:02 +01:00
Miklos Vajna
73cf3fd42e sw doc model dump: show rsid value
Change-Id: Ic657c4bae045a2663c3b10c569af2fd0c9235775
2013-12-04 18:09:33 +01:00
Caolán McNamara
02efbed152 Resolves: rhbz#1038189 refresh printer list when print dialog launched
which is the the same thing the printer settings dialog does

Change-Id: I36fb9f057b66faa8c9fce5a9934ed2fb70786363
2013-12-04 16:49:02 +00:00
Matúš Kukan
f115ec6ce1 EMF+: Do not ignore source rectangle of the image to be rendered.
Change-Id: I4f861c7653c89d8f1ca73696e885f33f7bfc3b06
2013-12-04 17:46:41 +01:00
Stephan Bergmann
190c2fa39e use OUString::startsWith
Change-Id: I248e2e5802ef2404c49fc7bc4c9f4baa794ccdef
2013-12-04 17:41:32 +01:00
Andrzej Hunt
bfe74d2254 Add some logging to MetaFile read.
Change-Id: I11bc4a82fd0d09fb255c30f3aeffecd3b4e95c09
2013-12-04 16:29:22 +00:00
Michael Meeks
d760039be5 oox: remove debugging printf.
Change-Id: I79198f926cad736549f3251ea92971374b305999
2013-12-04 16:09:33 +00:00
Stephan Bergmann
c1da3afa51 HINSTANCE vs. HMODULE clean up
Change-Id: I6fc350f489863ec86c76822053f0a399cef5cd7f
2013-12-04 16:48:16 +01:00
Stephan Bergmann
13448d8afd Fix one more use of wsprintf
...that would fall into the same trap as
50bd5c11f551f5274be9a4411c5ddcbd32bd9a03 "wsprintf is broken by design and never
writes more than 1024 characters" if the length were not currently bounded by
2 * MAX_PATH + x < 1024 anyway.

Change-Id: I2503ba0a9df960f2fdb51925d5fbbcff5bdb998a
2013-12-04 16:41:36 +01:00
Caolán McNamara
1ded21bfb9 Resolves: rhbz#912529 Kerkis SmallCaps shown instead of Kerkis Regular
we encounter both fonts, but all their properties that we compare
are the same, so we think they are two versions of the same font
and throw away the "Regular" version.

Change-Id: I24369f10c7a0edba1faa02621bb78616e880966e
2013-12-04 15:06:17 +00:00
Michael Meeks
4bad16b2a2 oox: render progress bar in main thread for threaded import.
Experimental only.

This avoids ,us deadlocking as the main thread tries to join it's children,
and the child threads wait to 'Yield' in the progress bar update.
Also it's generally safer to move progress reporting out of the other
threads, and to have the mainloop spinning here.
Finally  this allows people to continue to use the LibreOffice suite while
large XLSX spreadsheets are loading.

Change-Id: Id41c18f3941d6fc5eea593f7cfcf6a8b7215b3f8
2013-12-04 15:00:36 +00:00
Michael Stahl
d1539f9181 sfx2: SfxItemPtrMap is used only in shell.cxx
Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98
2013-12-04 15:39:59 +01:00
Michael Stahl
5e4c26918a SfxDispatcher: move implementation details out of header file
Change-Id: Ia831da45c00554086dc692997130688c0b3e28f5
2013-12-04 15:39:59 +01:00
Miklos Vajna
1a2f12f78f writerfilter: support nested mc:AlternateContent
It turns out it's possible to nest this, e.g. <mc:Choice
Requires="wps">, and inside that, a <mc:Choice Requires="wp14">.

Change-Id: Icb6250dcc5059894112d8eeba9f327659a42280e
2013-12-04 15:40:26 +01:00
Miklos Vajna
5003431057 DOCX drawingML shape import: always set Opaque
If behindDoc was 0, we did not set Opaque, so it went into the
background, fix this.

Change-Id: Id5aa683ffb388b1f4de33dcb19559729db5a4e02
2013-12-04 15:17:46 +01:00
Jan-Marek Glogowski
95f60222e7 fdo#67011: Run Display::Yield through KDEXLib::Yield.
Drag'n'Drop is handled in a second thread, which tries to "yield
the display" while the main Qt thread probably is already
yielding. Both need the YieldMutex, which freezes the application
until the D'n'D thread times out.

Trying to yield the display throught the application yield
results in a recursive loop.

So this catches and breaks the recursion, but just inside the Qt
thread, so other processes can "yield on the display", instead
of simply disabling the Display::Yield.

Change-Id: Ifba91aa89fe5b0a89cc94820935dc996a065112f
Reviewed-on: https://gerrit.libreoffice.org/6750
Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2013-12-04 08:17:04 -06:00
Stephan Bergmann
8d74243a65 Improve test code
Change-Id: I196a7f654bf8f061a4b050ea1fbe01fae9f450c2
2013-12-04 15:07:11 +01:00
Khaled Hosny
13086125ab Rename coretext/salgdi2.* to coretext/salgdi.*
The "2" part was a temporary measure so an older version of the file,
that is long gone, can coexist.

Change-Id: I3a22b287bfb1351bb73e9dabbfa67100fe17bb97
2013-12-04 16:04:24 +02:00
Andrzej J.R. Hunt
56d4f4b7b9 fdo#70144 Don't reset Document's modified flag when inserting new table.
It is unclear why the modified flag should ever be blindly overwritten hence
we no longer touch the modified flag here. (This change appears to have no
undesired side-effects.)

Change-Id: I246eb7d84249794fa4d52fcd9b008d8340bbc82d
Reviewed-on: https://gerrit.libreoffice.org/6632
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-12-04 07:53:35 -06:00
Miklos Vajna
798a563db1 drawingml import: don't set CharEscapementHeight unconditionally
Commit 840a8573c8cebe67ddd3c9fe106c7dbd789bb334 (Fix fdo#70220
Superscript not imported from pptx., 2013-10-07) made it possible to set
CharEscapementHeight even if moBaseline is not set, but this causes
problems in the docx importer + not necessary, according to the bugdoc;
so just don't do that.

Change-Id: Ib95ac449bd8fdf6376261ddc86108f0d23f2200e
2013-12-04 14:52:26 +01:00
Cédric Bosdonnat
e8df1838ec fdo#62531: checkout failed due to bad import of properties in libcmis
Change-Id: Ic9477039d7a1d9649487be634052608efe0d07b7
2013-12-04 14:14:16 +01:00
Caolán McNamara
f141505929 Relater: rhbz#903281 NULL follow frames on drag/drop
Change-Id: I50319fb218518edd23ff8c859c355265595050d6
2013-12-04 13:12:49 +00:00
Tor Lillqvist
0d9bd19c5b Add a comment
Change-Id: Icd7ecafa46392133b8f6b82574a699e843ce588f
2013-12-04 15:09:57 +02:00
Tor Lillqvist
83e835156b Bin ATSUI code
TDF has been shipping a CoreText-using LO since 4.1 and the sky hasn't
fallen. Getting rid of the ATSUI code will make other needed
refactoring easier.

Change-Id: I494096c3988ea26fa2b336621857d32b64b040f0
2013-12-04 14:34:06 +02:00
Caolán McNamara
cce14c9717 Related: fdo#72258 re-orient dialog vertically
Change-Id: I9f703e2ab5c787641e9cc62f223f39dbd5d02529
2013-12-04 12:17:21 +00:00
Caolán McNamara
f8d96ebdf7 Resolves: fdo#72258 options is .ui now, so drop SfxNoLayoutSingleTabDialog
Change-Id: Ie1def5b116c4b998e62f840b992633a8c0d4d61a
2013-12-04 11:42:32 +00:00
Manal Alhassoun
6931f43133 convert Contour queryboxes to .ui
Change-Id: Ie6dad2409a7d58a1c01973e8740f436cb597cb99
Reviewed-on: https://gerrit.libreoffice.org/6923
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-12-04 05:25:53 -06:00
Miklos Vajna
cbeb028519 DOCX import: parse drawingML group shapes in oox only
This is similar to commit d5c934d150cb6cea5f96cbbee4fb5e8312bf027e
(n#792778 DOCX import: parse group shapes in oox only, 2012-12-14),
except that was for the VML importer.

The only difference is that in case of drawingML,
OOXMLFastContextHandlerShape::lcl_createFastChildContext() is only
called for the children of the group shape, not for the element itself,
so compare against the start token, not the current element.

Change-Id: Iddeabb20bbd5f0153e2fc4e6df463830126fdd37
2013-12-04 12:13:33 +01:00
Tor Lillqvist
14d49ded71 WaE: private field 'mbPrinter' is not used
Change-Id: I78b364394b3bedafe66b2b72b3191a8ae778432b
2013-12-04 13:10:19 +02:00
Caolán McNamara
bcd6496d0e add test-case for CVE-2013-3906-1.tiff
Change-Id: I2cac26f3e949cbef16fb0c03e99d6aa9b04a7553
2013-12-04 11:07:04 +00:00
Caolán McNamara
171653e4b7 remove unnecessary inline keyword
Change-Id: I00a0c94dd9131be3969e2cfd1320682774dced3f
2013-12-04 11:07:04 +00:00