summaryrefslogtreecommitdiff
path: root/oox/source/token
AgeCommit message (Collapse)Author
2017-04-16first stab at replacing hard coded relationships with calls to a methodMarkus Mohrhard
Change-Id: I4d1fd6ac3d32180972d82c67a81adf4953e3a82d Reviewed-on: https://gerrit.libreoffice.org/32409 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2017-01-24Drop incorrect "artistic" prefix from some token namesTor Lillqvist
Apparently copy/paste mistakes in the 642a252cf1a2f1d08c4bbfcae15527bb82c7664d and 21d4cfe19e2796ebf89c408e292c4473924b2bc4 commits from 2014; most of the picture effect type tokens added in that commit do have names that start with "artistic" but not all. Does not break any unit test. (Does not fix the bug I am investigating either, though.) Change-Id: I2c3bb7243e1feaa3fa949b58d3acf34825d6987b
2017-01-04replace namespace URL strings with function calls...Rosemary Sebastian
Change-Id: I0b8b265df487aaeb76238013bc93c78e49a9e1a6 Reviewed-on: https://gerrit.libreoffice.org/32723 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-12-26use the existing namespace map for the oox namespace exportMarkus Mohrhard
Change-Id: I7909b08db556c6c65c1547303f2b899c30feaba4 Reviewed-on: https://gerrit.libreoffice.org/32425 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-12-26use uniform initializer syntax to simplify codeMarkus Mohrhard
Change-Id: I617c63c16cc2ba06f88d7101716ab05daf4b30a4 Reviewed-on: https://gerrit.libreoffice.org/32423 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-12-02tdf#104310: Accept x12ac lists and fallbacks in dataValidationsMike Kaganski
Change-Id: I42cf20fcfe3ec03ebd09923be509a9d11e0b40da Reviewed-on: https://gerrit.libreoffice.org/31516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
2016-09-17convert ShapePropertyId to scoped enum and use it for enumarrayJochen Nitschke
new type ShapePropertyIds replaces vector and plain arrays replace END enum member with LAST remove PROP_END_LIST from plain arrays and properties script store ShapepropertyInfo as reference in ObjectTypeFormatEntry store ShapePropertyIds as reference ShapePropertyInfo Change-Id: If273cc9e6c7bbd625dba5dc79f1c4ae0b21bdb3c Reviewed-on: https://gerrit.libreoffice.org/28960 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-05-10Silence Clang -Wimplicit-fallthrough in gperf-generated codeStephan Bergmann
...in preparation of eventually enabling -Wimplicit-fallthrough for Clang. Change-Id: Idca352d011505e83dbe275cb19626c8b9d8560c8
2016-02-22add Wildcards / PROP_Wildcards, tdf#72196Eike Rathke
Change-Id: I7045042cba991a834f24f237d983ac3693f4b93d
2016-01-21oox, writerfilter: incorrect a14 namespaceMichael Stahl
Change-Id: I813ca0510b6cfc26c307c510f3511c01c0f65c85
2015-11-09pptx: "fall" transition, which needed p15 namespaceTomaž Vajngerl
Added p15 namespace which is present in MSO 2013+ documents. It adds a "prstTrans" element with a string "prst" attribute which is a name of the transition to be performed. This was added to support "fall" transition which translates to "fallOver" preset transition. Change-Id: I429bb106a12c1b99cce756502508e917720daef3
2015-11-08oox: define p14 namespace in strict, define P14_TOKENTomaž Vajngerl
Change-Id: I9c92b9a637f43fd425cd0741e480b72ee5cff919
2015-11-08oox: p14 namespace (MSO 2010) + tokens for slide transitionsTomaž Vajngerl
Change-Id: I72d1901ceb2e43e459efb197cb72bd701c7d8f63
2015-07-25tdf#92256: Make OOXML filter CONV_A1_XL_A1 aware tooKatarina Behrens
+ don't write string ref syntax if it hasn't been read or explicitly changed Change-Id: Id3788a71a4a3d0672283a4770c7d7a9608beb06f Reviewed-on: https://gerrit.libreoffice.org/17326 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-07-23tdf#92256: OOXML save/load syntax for string referenceKatarina Behrens
+ introduce a separate LibO namespace for that Change-Id: Ie62da0746e81ea0d861680863beb03094649d41c Reviewed-on: https://gerrit.libreoffice.org/17216 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-05-15support iconSets in extLst entriesMarkus Mohrhard
Change-Id: Iec293ec3541b87b16f5a8097d51b878166814670
2015-05-05loplugin:staticmethodsNoel Grandin
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
2015-04-23this should be sorted and unique, no?Eike Rathke
Change-Id: Ic310a81aedc35b9a64ab60cadae30343a6115d60
2015-04-23add TotalsRow to properties indexEike Rathke
Change-Id: I1929e27d850144639db3826a0ec60a3085771296
2014-12-22Refactor building perfect hash tabels for tokensDaniel Sikeler
moved the defines to be usable in more modules moved perl-script to be usable in more modules Change-Id: If893e4b7e9dc670646bdf097cb6fa5710e45f1ac
2014-11-01oox: introduce W_TOKEN() macroMiklos Vajna
It was inconsistent that when parsing <a:foo> elements, A_TOKEN(foo) was available, but for <w:foo> elements there was no W_TOKEN() macro. Also, there were two manual variants (NMSP_doc|XML_foo or via OOX_TOKEN(doc, foo)), replace both of them with W_TOKEN() for easier searching. Change-Id: Ic5cd027f07518535b92671ffe3c486016a3f9f0a
2014-10-23inline TokenMap::getUtf8TokenNameMatúš Kukan
Change-Id: Icd9c6ebc9feb3e7aba28b01729b582a8f49c832a
2014-10-23maTokenNames.size() is constant: use it and be a bit fasterMatúš Kukan
Change-Id: I39a6e2badf0c159e87763e2782bc89f0ee6068ec
2014-09-29proper reading of mso-position-(horizontal|vertical)(-relative)Luboš Luňák
Change-Id: I50f537c697f6e73c1fd150f3f03fc65b85ccbeaf
2014-09-24Remove TokenMap::getUnicodeTokenName()Matúš Kukan
Change-Id: I778dc43085b6afbb6456cbf53fe8c95b624b75b3
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-08-19writerfilter: fail on mistyped namespace URL'sMiklos Vajna
And also fix one typo detected by this new check. Change-Id: Iaa7a4bb0b6dc3f81e5dd0b352584029cfed4ffbb
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-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-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-04oox: tokenize noHBand and noVBandMiklos Vajna
Change-Id: I43ea6cb2665e17239da61adffd0583b9201bef59
2014-07-26bnc#885825: OOXML import and export of data label borders.Kohei Yoshida
2014-07-21fdo#80897: Preservation of text warp properties.Rohit Deshmukh
- Generic fix for all warp properties Change-Id: I77c37759aa49706fc3cd1a80770a85face53f0a2
2014-07-09remove no longer needed http://sprm nonsenseMiklos Vajna
Change-Id: I2f8d473ab564c9849963d937690fc48bc04a17b9
2014-07-07Adjust for the splitting of number format properties in chart.Kohei Yoshida
Since 1d38cb365543924f9c50014e6b2227e77de1d0c9, "number format" and "link number format to source" properties are 2 separate properties. Adjust OOXML import code for that split. Also, always set axis' number format via NumberFormat property even when it's a percent format. The axis object doesn't keep a non-percent and percent number formats separately. Change-Id: I8667b6f1a78d88cc37d059518919ad1b37f154e1
2014-06-25remove whitespacesMarkus Mohrhard
Change-Id: Ie14ba3dcb97f20479a04538748ef2c1c9e6c5dac
2014-05-23oox, writerfilter: add a14 namespace and tokensJacobo Aragunde Pérez
Added the artistic effects defined in the MS-ODRAWXML extension. Ref: http://msdn.microsoft.com/en-us/library/dd905216(v=office.12).aspx Change-Id: I24c5e5bbe569f160d300a7a7293ca047cb7a1b88.
2014-05-06oox: prepare for importing a TextBox property on shapesMiklos Vajna
Writer's SwXShape doesn't have that property yet, though. Change-Id: I997eb188574fab93d35595972fdc2eaebabc015b
2014-04-22fod#77122 DOCX filter: link between textboxes is not being preservedumeshkadam
Added support for linked textboxes for docx interoperability. Reviewed on: https://gerrit.libreoffice.org/9092 Change-Id: I7db4f5a1783afff53c64908d182788b262f5e863
2014-04-13Use --switch=2 --readonly-tables gperf optionsTor Lillqvist
The --switch option saves about one megabyte of code (or data), and the --readonly-tables seems like a good idea in general. Change-Id: I19419e2cb9bb76dea4547512572b689883c41d8d
2014-03-20ooxml: preserve checkbox sdt controlJacobo Aragunde Pérez
Checkbox controls in docx are implemented with a sdt block containing the property w:14:checkbox, which has several child elements. To implement the preservation of the field, we had to add several tags to the ooxml model file. Notice they belong to namespace w14, that's why we had to add a redundant definitions of CT_STRING, ST_STRING and their actions. Then, we just used the existing mechanisms on the importer and the exporter. Finally, added a unit test. TODO: the checkbox is preserved on export but it cannot be modified. We should import it like we do for combo and date boxes. Change-Id: I40f29b48ec24719c48482b9c8cff10176d1b188d
2014-03-18fdo#76249 DOCX export DML Drawing as lockedCanvas if it's inside DMLTextFrameVinaya Mandke
The Locked Canvas is imported correctly, but while exporting the drawing is exported inside a textbox. However a locked Canvas has to be exported inside a text-box for the RT file to work in MS Word 2010. As dml drawing elements are not allowed in the dml textboxes. Export as Locked Canvas iff the drawing was originally a Locked Canvas and is now inside a DML Text Frame. As otherwise the Locked Canvas is exported correctly as a DMLDrawing. Reviewed on: https://gerrit.libreoffice.org/8618 Change-Id: Ifa350d8922a22c4e480411530aa4d953bd3ed2ac
2014-03-10oox: handle all w14 text effects at groupshape importTomaž Vajngerl
When dealing with groupshapes, the responsibility to process the w14 text effects elements is in oox. This commit adds the code to handle all elements and its children elements and attributes and puts the values into a CharInteropGrabBag. Change-Id: Iafb8759bd60e0ee831296dc2d9159f4311ad5403
2014-03-06add the xml strict namespaces to misc/namespaces.txtMarkus Mohrhard
Change-Id: Ie83b5c94f1f002851bff3b39b1d9b676a3e44aa1
2014-03-05oox & writerfilter: add "anchorId" token and update model.xmlTomaž Vajngerl
Change-Id: Ibcbf552621b8c6c5c143521a697026cdeac90706
2014-03-04in the old design all lists needed to be the same size, fdo75200Markus Mohrhard
We did not crash in the invalid memory access because the lists were continuous in memory and we would just pick the next id. However it crashed when trying to map some of the ids to non existant strings. This commit also removes the need for the earlier fix for this bug that just hit the problem behind some checks much later in the call chain. Change-Id: Ic6658987815c4e84ed2449934c310e30dcd0ed4c
2014-03-02fix strict namespace list generationMarkus Mohrhard
The two perl scripts were apparently only generating the same order by luck. It did not work on all systems. Change-Id: Ib83ee5c6572d3bae2e2ac1846850bd65303e7d43
2014-03-01handle OOXML strict namespacesMarkus Mohrhard
Change-Id: I198862388426161e3f054a5f128639c59f3c9d24