summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
2014-10-02coverity#1242917 Result is not floating-pointCaolán McNamara
Change-Id: I284562585c10a3d68b8545df7b6cb3022001660c
2014-10-01DOCX drawingML import: handle char color from theme for shape textMiklos Vajna
When we import table styles, we apply that as direct formatting, in case there is no real direct formatting, see lcl_ApplyCellProperties() in the sw UNO implementation. We can do the same here: in case there is no other formatting, then apply the char color from the WPS theme, that will give us the expected result. Change-Id: Ic8e6afc09167f7924a11ab0b445351075f16738e
2014-10-01fdo#82577: Handle TimeNoel Grandin
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-30Resolves: fdo#79129 Crash in oox::drawingml::LayoutNode::setupShapeCaolán McNamara
Change-Id: I0bafd2c43d29806eea0ff0cb165e67aece53488f
2014-09-30bnc#584721: invisible text because of wrong color (white)Zolnai Tamás
Color::getColor() method uses some caching mechanism which works wrong when the result depend on one of the input parameters. So avoid caching in these cases. Change-Id: Ifa9221e21e685715454de86d5cec09ff6c266307
2014-09-30fdo#82577: Handle PolyPolygonNoel Grandin
Put the TOOLS PolyPolygon class in the tools namespace. Avoids clash with the Windows PolyPolygon typedef. Change-Id: I811ecbb3d55ba4ce66e4555a8586f60fcd57fb66
2014-09-29proper reading of mso-position-(horizontal|vertical)(-relative)Luboš Luňák
Change-Id: I50f537c697f6e73c1fd150f3f03fc65b85ccbeaf
2014-09-29drawingML export: fix remaining rotation / flip combinationsMiklos Vajna
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-27Use oox::drawingml::EMU_PER_HMMMiklos Vajna
Change-Id: I2034f862b5e15ffaa2ba370ae0249628677c587d
2014-09-26DOCX drawingML import: fix remaining rotation / flip combinationsMiklos Vajna
With this, each rotation = 0 / 90 / 180 / 270 and flip = none / horizontal / vertical / horizontal+vertical combination (16 cases) are imported perfectly. Also adjust a few testcases -- now that in many cases we only set the position in oox, some rounding errors went away. Change-Id: I5567a7d6964775f2caf10a0e539f3eb84d10461e
2014-09-26cleanup GUID/ClsId/CLSID typesNoel Grandin
- rename GUID to SvGUID so we don't need an #ifdef WIN32 - drop ClsId struct, since it is used interchangeably with GUID and has the same structure Change-Id: Idf5c14c82a6861ef585fb57896a9b12cfe40374c
2014-09-26Resolves: fdo#84261 unexpected exception -> clang builds terminateCaolán McNamara
Change-Id: I545ed112b54fb3d81e67b0f42230811cd48de626
2014-09-26bnc#897769: OOXML import: Import border lines using reference too.Matúš Kukan
Do not ignore 'lnRef' element. Also fix typo to apply 'seCell' properties to the right cell (southeast). Change-Id: Ia45f7016f358b70e6db06a232c569335ce9d7051
2014-09-25Fix validation problems pointed out by CppunitTest_sd_export_testsMiklos Vajna
Regression from e8bdd38882522591723097c028ca7a6927ee70c4 (fdo#83751-FILESAVE:Custom Properties dropped while exporting to .pptx, 2014-09-11), there were two problems here: 1) Using the wrong filter when the output is expected to be suitable for validation. 2) Writing empty custom property values, which is not valid. Change-Id: Ic18c789c53bd40cc8aa07385cb5fd0d5c7ada6ab
2014-09-24Remove TokenMap::getUnicodeTokenName()Matúš Kukan
Change-Id: I778dc43085b6afbb6456cbf53fe8c95b624b75b3
2014-09-24fdo#84028 : Preserved all caps property for text.sushil_shinde
1. All capital letters were exported as small letters. 2. Problem was 'cap' property was not exported for 'rPr' in drawingml. Change-Id: I81bfb418f773aa88118b22550eea2b3ec2833ea9 Reviewed-on: https://gerrit.libreoffice.org/11563 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-09-23fdo#84090: Remove maUniName from oox::TokenMapDavid Ostrovsky
Change-Id: I8165def0b6291bfd7bb109e1cdaeb4198ed696b7 Reviewed-on: https://gerrit.libreoffice.org/11560 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2014-09-23Add unit test for oox::TokenMapDavid Ostrovsky
Change-Id: Iced083868a84fd9fbb97ad91dfc0acbf5b69b766 Reviewed-on: https://gerrit.libreoffice.org/11559 Reviewed-by: David Ostrovsky <David.Ostrovsky@gmx.de> Tested-by: David Ostrovsky <David.Ostrovsky@gmx.de>
2014-09-21OOX: Update README with recently made changesDavid Ostrovsky
Change-Id: I2f4db02ede9c15193c21014a297d40a7370a505b
2014-09-21Fix some typosDavid Ostrovsky
Change-Id: I0f2821c87c03f8d3df2e60bab9e09ce6545e2b2c
2014-09-19Remove unused XFastTokenHandler functionsMatúš Kukan
Change-Id: I0d8072f1194aa837932dcffd6dc6a3761bbdc74e
2014-09-17bnc#584721: Import subtitle block to master slidesZolnai Tamás
For some reason subtitle block was skipped for layouts. It seems we can enable it for layout too, it appears well on master slides. Change-Id: I23ec7d4fcce045099bfca9e94a8c9335beaf7468
2014-09-17bnc#584721: Do not add extra title and outliner blocks to master slideZolnai Tamás
There are master slides / layouts imported from PPTX in which there is no title or body layout block, but so far Impress added these by default to the master slides if they were missing. Now they are skipped by the importer code. Change-Id: I256a4e78639ea39d0f87a94e6676422c7dbcde4a
2014-09-17bnc#584721: Right text inside the title area on master pageZolnai Tamás
With setting bClearText to true the default text used inside LO will be removed. Before that change the imported text was appended to the end of the LO default text. Now it contains only the imported text. Change-Id: I9f5eb0e20468a35c64130a433367cd3845ac7e3c
2014-09-15Ensure we export correct label placement value for clustered bar chartsMiklos Vajna
This is similar to 7b8073906adca8dae24c04a23708a3f3d582218f (Ensure we export correct labal placement value for percent/stacked charts., 2014-08-07), in case a clustered bar chart has a top placement ("t" in OOXML), then MSO complains as well. Change-Id: Iffd991127784e0e732f6ae55de956a328a3a53e5
2014-09-14Replace struct EmbeddedWAVAudioFile with simple string.Matúš Kukan
Change-Id: I6659b6e1be865546f380a28e4803fbe593de0803
2014-09-14bnc#591147: OOXML import: Import video file too.Matúš Kukan
Change-Id: Ie9b6c5ff866269e5d7a26d025cb1c0d884ff1134
2014-09-14Move oox/drawingml/*hxx internal headers to oox/inc.Matúš Kukan
Do not export LinePropertiesContext class as visible. And move GraphicProperties to its own header. Change-Id: I047c181e9f2adc7e59885f59663ea56c7eb898ed
2014-09-12Partial revert of e910705421b40f3accff684e956854ff68761574Stephan Bergmann
"Use Any.get<T>(..) instead of Any.getValue(..) and ugly cast." An empty OString means a different thing than a char* nullptr to FastSerializerHelper::startElementNS. Broke CppunitTest_sd_export_tests at least --with-export-validation. Change-Id: I4ad23c4130bf39708064569b964bcb7fb44cd3b0
2014-09-11SAL_WARN_IFTomaž Vajngerl
Change-Id: Ic2644f8a0f2f1479779aef2d6b0886604c139acb
2014-09-11Use Any.get<T>(..) instead of Any.getValue(..) and ugly castTomaž Vajngerl
Change-Id: I1c76ee7c7873e76fb1682475141c14dd658bff4a
2014-09-11more consistent code style in drawingml exportTomaž Vajngerl
Change-Id: Iba6670fbeb064ee1b1ee54a96267f660c86e18f2
2014-09-11Make GetProperty more clearTomaž Vajngerl
Change-Id: I23ba7950364fa402f1337e8557c3cf8cd9c810cc
2014-09-11bnc#892610: OOXML import: Improve chart number formats.Matúš Kukan
If sourceLinked is used, do not set "PercentageNumberFormat" even if showPercent is true. The format string should be used for "NumberFormat". c8cc89ff802d86b1f3a69afe1b4835b7df7f70c7 unnecessarily disabled "LinkNumberFormatToSource". Use that for data labels but not for axis. Also, actually make attaching number format supplier work for Calc. Previously, non standard formats were added into wrong supplier, and they were thrown away later because it was attached too late. (See also ChartModel::attachNumberFormatsSupplier) Change-Id: Iaf9945abc3d82d0ac63d9f36b8888eb49f39ab57
2014-09-10Clean-upVinaya Mandke
Change-Id: I66255e8bc37191e859c134eab7d7f8117cd9181a Reviewed-on: https://gerrit.libreoffice.org/11380 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2014-09-09Better place to initialize mnThemedIdxMatúš Kukan
To make 'if (rBackgroundFillStyle.mnThemedIdx != 0)' actually work as intended. Avoids invalid call to pTheme->getFillStyle() which is not supposed to return 0 here. Change-Id: I323e2628cba64167240e8f0b945e6693b47b8e77
2014-09-09oox: improve code formattingMichael Stahl
Change-Id: I16b1a80401369a8d78ea87a96daa3ee03d502e6f
2014-09-09oox: fix 0-pointer crash in sd_import_testsMichael Stahl
(regression from 43efd9b40d40b791a2c2deedcac36b99f7efb2cf) Change-Id: Ib8ee521cf8142000cbd38a7475772cc3455f7357
2014-09-09bnc#480256: OOXML import: Respect table background properties a bit moreMatúš Kukan
Only getBackgroundFillProperties() (fill) was used. Use also getBackgroundFillStyleRef() (fillRef). Also, do not replace table background color value with cell color, we have to interpolate the two colors (if cell color is transparent). Unfortunately, we don't use background table property in LibreOffice, so this seems to be a best workaround. Change-Id: I21bcc87a149c9f6d865ebee4012132ccc3a54af2
2014-09-08Presumably, all numeric values shall be written as i4Stephan Bergmann
...in 47c5454ea67632278d69a1ddfe97d74f5cc4449f "fdo#83428: Custom Properties dropped while exporting to docx," not just ones of UNO type double. At least, that fixes CppunitTest_sc_subsequent_export_test's testPivotTableTwoDataFieldsXLSX to not write a "DocSecurity" <property> without content (and thus fail validation). Change-Id: I2d764e65ec2af61139c6564f644d27aa9a00bd7d
2014-09-08loplugin:implicitboolconversionStephan Bergmann
Change-Id: I6caec8c11fab5fc8f1318be676e4bdf5f9cdbac5
2014-09-07-Werror=unused-variableJulien Nabet
Change-Id: I73274d0226999f0f6d8bd681a522ba81d14ebe3e
2014-09-07fdo#83428: Custom Properties dropped while exporting to docxHeena Gupta
Change-Id: Ic289fc446e49fb096cbfad789299736318019e91 Reviewed-on: https://gerrit.libreoffice.org/11265 Reviewed-by: Muthu Subramanian K <muthusuba@gmail.com> Tested-by: Muthu Subramanian K <muthusuba@gmail.com>
2014-09-04MSO finally decided to follow the spec, fdo#83312Markus Mohrhard
Change-Id: I8c611b49e3bf4645736425bd33c2994ae2c28337
2014-09-01fix typo Sufface->SurfaceThomas Viehmann
Change-Id: I90847d0edbc2c13e405562647b150012bc5df7e2 Reviewed-on: https://gerrit.libreoffice.org/11249 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2014-08-29Fix build with boost-1.56.0.Jörg Sonnenberger
Change-Id: I61686bf61ff1e0561c385492c563e4495456ca47 Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
2014-08-28bnc#822347: if number type is not set, skip numberingTomaž Vajngerl
If numbering is detected then (level is > 0) and the number type is not set, the defult bullet symbol is written. This is not correct as the default should be SVX_NUM_NUMBER_NONE which should skip numbering or set it to none. With this change the numbering is skipped (as in MSO). Change-Id: I8d08a6325509c7bd6f96f64c8d29e5f3045458ca
2014-08-28drawingml: remove AUTONUM macro, unneded checksTomaž Vajngerl
Change-Id: Ie0ad7ed9df9d0d1b19fa09b3a4b93a5cbd6b41c6
2014-08-28reduce nesting in WriteParagraphNumberingTomaž Vajngerl
Change-Id: I49a3c3449d8354ce5e2a6e42414fbefdfc489388
2014-08-28drawingml: Use SVX_NUM_NUMBER_NONE as default numbering typeTomaž Vajngerl
Change-Id: I159fcf41fdb6c49687004e959d4032aef28678a5