summaryrefslogtreecommitdiff
path: root/oox
AgeCommit message (Collapse)Author
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
2014-08-28sanitize "using" and "using namespace" declarationsTomaž Vajngerl
Change-Id: I0b0cccc2d9cfe721c1ed421e614c4350a6b3dc7c
2014-08-28PPTX import: fix missing document metadataMiklos Vajna
Without this, the creation / modification date is lost on import. Change-Id: I0b74ac91aee7b8b3e0bc763247086a3a39816bc1
2014-08-25use ptr_vector to prevent memory leakMarkus Mohrhard
Found by Lsan. Change-Id: I727098ea3861bacf89209615e4b46e986a72c1ce
2014-08-25import the sourceLinked attributeMarkus Mohrhard
Change-Id: I74cdf7a09b2e6e3b3cd8f07b5d3495dcc66848c5
2014-08-22bnc#880448: Improved handling of placeholder shapesMatúš Kukan
If subTitle placeholder is not found, try body instead of title. And use body text styles instead of title, for subTitle. Also improve PPTShape::findPlaceholder to find placeholder with just nSecondSubType type without the same index. Change-Id: I470e7268088eb989fb934007dfcf704f67d8cb1d
2014-08-20remove whitespaceMarkus Mohrhard
Change-Id: I5634bf40e8ccc4ce076409907c13f9c6f52d11a3
2014-08-19writerfilter: fail on mistyped namespace URL'sMiklos Vajna
And also fix one typo detected by this new check. Change-Id: Iaa7a4bb0b6dc3f81e5dd0b352584029cfed4ffbb
2014-08-17remove executable bitsThomas Arnhold
Change-Id: Iec785ae538de81325812b1e6fe33115789b39770
2014-08-15oox: sort namespaces in generated headerMiklos Vajna
Otherwise it's next to impossible to reasonably diff the generated code after a change. Change-Id: I13f98532535bfe3f4915677cb3346300f25e0cfa
2014-08-13warning C4245 signed/unsigned mismatchMichael Stahl
Change-Id: If28543252ee2265e9edd7d7963c1751bd21e754d
2014-08-13update_pchThomas Arnhold
Change-Id: Ic1dae7aac2f4367b4196ba3128c0aea9be1fbbda
2014-08-12Add reference to 'DomainMapper' to some DOCX import classesAdam Co
The reason for adding 'DomainMapper' is to be able to check during import in these classes whether or not the import is in a 'styles.xml' file or not. Also added blank handling for new XML nodes. Reviewed on: https://gerrit.libreoffice.org/10870 Change-Id: Ib2acde736d96f30eda40ee327991dc6ae0ed7f25
2014-08-08Forgot to add break here.Kohei Yoshida
Change-Id: Ic7322f111ca6732243741296d7b5f577af28bf14
2014-08-07Disable export of label placement properties for radar charts.Kohei Yoshida
Change-Id: Ib9e5801bc13ccf146ddd5aa79b7cd7d2a640e203
2014-08-07Ensure we export correct labal placement value for percent/stacked charts.Kohei Yoshida
Normal charts allow a variety of label placement options, but percent/stacked charts only allow three variants, and exporting a wrong value would trigger MS Office to think the file is corrupt. Change-Id: I8bdc1dc072b29e8df2c506b6b16c61279df12045
2014-08-07bnc#821916: Better algorithm to find placeholder shape.Matúš Kukan
Placeholder type seems to be more relevant than index. Change-Id: I9d6c6cad8e0a51b2385801f65d7d1c697ad7998e
2014-08-07Area chart also doesn't support label position property.Kohei Yoshida
Change-Id: I612ca7426b2b3de07d4afe1d78cd809f1f6b37bb
2014-08-07Default data label placement may vary depending on chart types. Get it right.Kohei Yoshida
If we export a wrong placement value, MS Office will flag the file corrupt and the loading will fail. Change-Id: I7ca1239cd390494c1181ecdb3310c5f88bb18f9b
2014-08-07Doughnut charts don't support label placement option. Don't export it.Kohei Yoshida
Change-Id: I6d0e2c099869120bdf594813468a3c5ba4bb46fd
2014-08-07cppcheck: Same iterator used with different containersJulien Nabet
Change-Id: Idc7f16dc4c81857d7a3f508ed830904d90a762b0
2014-08-07Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happyStephan Bergmann
Change-Id: I9d58782c3d3bd09dc0d1d7121c057541f1186b43
2014-08-07remove unnecessary references to test-install (just use instdir)Michael Stahl
Change-Id: I99f19a3e2ed166c2ea4397f8767975973dd5d983
2014-08-07If dev-install is obsolete, why have it at all?Tor Lillqvist
Replace mentions of it in a few (dcumentation) places with test-install. Change-Id: I6fc8e58fa5813b05de16feec35215c83e0e45834
2014-08-05Avoid exporting label placement property when the chart is 3D.Kohei Yoshida
MS Office has trouble loading the file if you do. There is an exception, however. A pie chart allows label placement option even when 3D. There may be other chart types that allow variable label placement when 3D. Change-Id: I6a9247041ca6ee3ae1b9c245f5919fcb35951f24
2014-08-05oox: tokenize all attributes from CT_CnfMiklos Vajna
Change-Id: Ifceb9c1319208c897a6f018fa0b5f8863b58c3e1
2014-08-05oox: sort tokens.txtMiklos Vajna
The benefit is that then it's possible to just add new tokens at the end of the file, have your editor put them to their sorted place and have no additional noise in the commit diff. Change-Id: I221b8b10ae588180dd61207a6c9279fe8af7531f
2014-08-04Consistency around SdrOnOffItem in svx/sdtagitm.hxxStephan Bergmann
...similar to what has been done for svx/sdtmfitm.hxx in 6a2ea81ca1622d2c2ad55bea8ddc28167fcc2794 "Remove unused ctors" and 68969cc61adecac481ae9656978ef952f435b310 "Consistency around SdrMetricItem." Change-Id: I6d8b3709d6d55bd6958d38f262141c43779dfdcc
2014-08-04Let's not forget the keyword.Kohei Yoshida
Change-Id: I86c114e903eaee1404875a794ed4f1c76f61169e
2014-08-04bnc#886540: Default chart background for pptx docs should be transparent.Kohei Yoshida
Charts in docx and xlsx OTOH use solid white as the default fill style. Change-Id: Ic4351fe65cabc12d60214b67c7026a317841f2c7
2014-08-04oox: tokenize noHBand and noVBandMiklos Vajna
Change-Id: I43ea6cb2665e17239da61adffd0583b9201bef59
2014-08-04fdo#78301 : Size of word-arts change during import.Umesh Kadam
- Do not resize the fallback geometry for Word-Arts(VML), since the overlay geometry is constructed using the properties of the fallback geometry. - The resize autoshape to fit text attr of FontWork/Word-Art should always be false for the fallback geometry(the SdrObject). Change-Id: If8badb382c525875a07a0a9e6268cec036739001 Reviewed-on: https://gerrit.libreoffice.org/10486 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2014-08-01fdo#80895 : Shape in Header&Footer is getting lost after RTTushar Bende
If there is a shape in Header or footer in a docx created in MSO-2010 that shape was getting lost after RT(actually shape was there but it's properties were getting missed). Root cause was : When LO processes Header it has msRelationFragmentPath= header.xml in ShapeContextHandler::startFastElement() and searches for theme as there is No theme specific to header or footer, aThemeFragmentPath becomes empty in that case. This is because MS office shares same theme for both documentBody as well as Header or footer. To fix Get Target for Type = "officeDocument" from _rels/.rels file this target is "word/document.xml" for docx & to "ppt/presentation.xml" for pptx and use this Target for fetching correct theme.xml. Tested group shapes in header/footer,previously was not getting rendred and not preserved after RT.After this patch it's now working correctly. Tested chart in header/footer previously chart colour was not coming properly both during rendering as well as after RT.after this patch it's working correctly. Reviewed on: https://gerrit.libreoffice.org/10451 Change-Id: Id47008550da90c0d697b434b676765230e3258a7
2014-07-29Fix some number format issues, bnc#862510Matúš Kukan
Set "LinkNumberFormatToSource" to false, so that format code is not ignored. Also, do not inherit format code common for all labels, if there is specific format code for a data label. Change-Id: I505311d5df641d61e616e354734bd332609fa122
2014-07-29bnc#862510: PPTX import: Properly show data labels in percent format.Matúš Kukan
Usually, "General" is "0.00" number format, but in this case, when we want to show percent value, MSO writes that instead of "0%". Change-Id: I748719765f58e66f9f3fb43c2b527c6823ef6fa1
2014-07-29fdo#46037: remove unused comphelper/configurationhelper.hxxAlexandre Vicenzi
Change-Id: I66f9d2912202ba1393d0c65189f8a945bca4fcaa Reviewed-on: https://gerrit.libreoffice.org/10603 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-07-27indentation fixesMiklos Vajna
Change-Id: I0a0f04d0f0e008e8947a5a7e3ed6083c1589e61b
2014-07-26bnc#885825: OOXML import and export of data label borders.Kohei Yoshida
2014-07-25WaE: extern prototype in main file without definitionTor Lillqvist
Change-Id: I7121bf7bcc043065d4f10f7c67aaecd7059d6f89
2014-07-24Remove compiler warning.Kohei Yoshida
nTransparancy will be left uninitialized if unstuffing the value from the Any value fails. Change-Id: I06a5853066edeb39b811bf12fd09afbc11792add
2014-07-24bnc#887227: Do not set TextAutoGrowHeight for vertical text.Matúš Kukan
It's horribly broken and it would resize text box horizontally which is not supposed to happen. Change-Id: I201ec8dbcddca56d21bf46ea8ee838d01923c442
2014-07-24bnc#862510: PPTX import: bullets have color as following text by default.Matúš Kukan
aTextCharacterStyle contains font theme color set in Shape::createAndInsert. Change-Id: I55e66aeaa7176fbd3f64dcdf075d411f460947d4
2014-07-21Most certainly meant to be plural.Kohei Yoshida
Change-Id: I3772091c77307892b13d75cc6a5a191ec07c7bf5
2014-07-21WaE: passing class rtl::OUString by value, rather pass by referenceTor Lillqvist
Change-Id: Ib332d04fa27501ec35267b5e389c2979c9c55be2